{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["company","supplier","order"],"properties":{"company":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"logo_base64":{"type":"string"}}},"supplier":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"address":{"type":"string"},"contact_person":{"type":"string"}}},"order":{"type":"object","required":["number","date","lines","subtotal","tax_amount","total"],"properties":{"number":{"type":"string"},"date":{"type":"string"},"delivery_date":{"type":"string"},"shipping_address":{"type":"string"},"lines":{"type":"array","items":{"type":"object","required":["description","quantity","unit_price","amount"],"properties":{"description":{"type":"string"},"quantity":{"type":"string"},"unit_price":{"type":"string"},"amount":{"type":"string"}}}},"subtotal":{"type":"string"},"tax_amount":{"type":"string"},"total":{"type":"string"},"notes":{"type":"string"},"terms":{"type":"string"}}}}}