{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OrderItemPurchaseEditRequest", "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "sku": { "type": "string", "maxLength": 100 }, "unit": { "type": "string", "minLength": 1, "maxLength": 30 }, "quantity": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,10}(?:\\.\\d{0,5})?$" }, "price": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$" }, "po_note": { "type": "string", "title": "Comment" }, "custom_fields": { "type": "array", "items": { "type": "object", "additionalProperties": {} } }, "tax_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "shipping_amount": { "type": "string", "format": "decimal", "pattern": "^-?\\d{0,13}(?:\\.\\d{0,8})?$", "nullable": true }, "receive_method": { "allOf": [ { "$ref": "#/components/schemas/ReceiveMethodEnum" } ], "minimum": 0, "maximum": 65535 } }, "required": [ "custom_fields", "id", "name", "price", "quantity", "unit" ] }