changedInput schema / properties / discount_pct / description
Previous value: -"Discount rate as a percent, e.g. 10 for 10%"New value: +"Discount in percent of the subtotal, 0-100, e.g. 10 for 10% off. Default 0."
addedInput schema / properties / discount_pct / maximum
Added value: +100
addedInput schema / properties / discount_pct / minimum
Added value: +0
changedInput schema / properties / items / description
Previous value: -"List of items, each with name, quantity, and price"New value: +"Line items (at least one), each {description, quantity, unit_price}; line amount = quantity x unit_price."
addedInput schema / properties / items / items
Added value: +{
+ "properties": {
+ "description": {
+ "description": "What was sold or done, e.g. \"Logo design\" or \"Consulting hours\"",
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantity": {
+ "description": "Quantity or hours, must be > 0, e.g. 10",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "unit_price": {
+ "description": "Price per unit in the invoice currency, >= 0, e.g. 50",
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "description",
+ "quantity",
+ "unit_price"
+ ],
+ "type": "object"
+}
addedInput schema / properties / items / minItems
Added value: +1
changedInput schema / properties / tax_rate_pct / description
Previous value: -"Tax rate as a percent, e.g. 8 for 8%"New value: +"Tax rate in percent, 0-100, applied after the discount, e.g. 18 for 18% GST. Default 0."
addedInput schema / properties / tax_rate_pct / maximum
Added value: +100
addedInput schema / properties / tax_rate_pct / minimum
Added value: +0
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "discount": {
+ "description": "Discount amount = subtotal x discount_pct / 100.",
+ "type": "number"
+ },
+ "subtotal": {
+ "description": "Sum of quantity x unit_price, rounded to 2 dp.",
+ "type": "number"
+ },
+ "tax": {
+ "description": "Tax amount = (subtotal - discount) x tax_rate_pct / 100.",
+ "type": "number"
+ },
+ "total": {
+ "description": "Final amount = subtotal - discount + tax.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "subtotal",
+ "discount",
+ "tax",
+ "total"
+ ],
+ "type": "object"
+}