{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/PaymentTerms", "title": "PaymentTerms", "type": "object", "description": "Payment terms governing when and how invoices should be paid", "properties": { "code": { "type": "string", "description": "Payment terms code", "examples": [ "NET30", "NET60", "2/10NET30" ] }, "description": { "type": "string", "description": "Human-readable payment terms description", "example": "A sample description." }, "netDays": { "type": "integer", "description": "Number of days until payment is due", "example": 10 }, "discountPercent": { "type": "number", "format": "double", "description": "Early payment discount percentage", "example": 42.5 }, "discountDays": { "type": "integer", "description": "Number of days within which discount applies", "example": 10 } } }