diff --git a/bill/delivery.go b/bill/delivery.go index 36e71a06..a7cd129e 100644 --- a/bill/delivery.go +++ b/bill/delivery.go @@ -14,7 +14,7 @@ type Delivery struct { Receiver *org.Party `json:"receiver,omitempty" jsonschema:"title=Receiver"` // Identities is used to define specific codes or IDs that may be used to // identify the delivery. - Identities []*org.Identity `json:"identities,omitempty" jsonschema:"title=Identities"` + Identities []*org.Identity `json:"identities,omitempty" jsonschema:"title=Identities" en16931:"BT-71"` // When the goods should be expected. Date *cal.Date `json:"date,omitempty" jsonschema:"title=Date" en16931:"BT-72"` // Period of time in which to expect delivery if a specific date is not available. diff --git a/bill/line.go b/bill/line.go index 6dcbe27a..129c7160 100644 --- a/bill/line.go +++ b/bill/line.go @@ -30,7 +30,7 @@ type Line struct { // Charges applied to this line Charges []*LineCharge `json:"charges,omitempty" jsonschema:"title=Charges" en16931:"BG-28"` // Map of taxes to be applied and used in the invoice totals - Taxes tax.Set `json:"taxes,omitempty" jsonschema:"title=Taxes"` + Taxes tax.Set `json:"taxes,omitempty" jsonschema:"title=Taxes" en16931:"BG-30"` // Total line amount after applying discounts to the sum (calculated). Total num.Amount `json:"total" jsonschema:"title=Total" jsonschema_extras:"calculated=true" en16931:"BT-131"` // Set of specific notes for this line that may be required for diff --git a/org/item.go b/org/item.go index 92c8f733..f58a2fd7 100644 --- a/org/item.go +++ b/org/item.go @@ -37,7 +37,7 @@ type Item struct { // Currency used for the item's price. Currency currency.Code `json:"currency,omitempty" jsonschema:"title=Currency"` // Base price of a single unit to be sold. - Price num.Amount `json:"price" jsonschema:"title=Price"` + Price num.Amount `json:"price" jsonschema:"title=Price" en16931:"BT-146"` // AltPrices defines a list of prices with their currencies that may be used // as an alternative to the item's base price. AltPrices []*currency.Amount `json:"alt_prices,omitempty" jsonschema:"title=Alternative Prices"` diff --git a/tax/totals.go b/tax/totals.go index 1743e8be..d5ba8d60 100644 --- a/tax/totals.go +++ b/tax/totals.go @@ -28,15 +28,15 @@ type RateTotal struct { // this would be possible. Country l10n.TaxCountryCode `json:"country,omitempty" jsonschema:"title=Country"` // If the rate is defined with extensions, they'll be used to group by also. - Ext Extensions `json:"ext,omitempty" jsonschema:"title=Extensions"` + Ext Extensions `json:"ext,omitempty" jsonschema:"title=Extensions" en16931:"BT-118"` // Base amount that the percentage is applied to. - Base num.Amount `json:"base" jsonschema:"title=Base"` + Base num.Amount `json:"base" jsonschema:"title=Base" en16931:"BT-116"` // Percentage of the rate. Will be nil when taxes are **exempt**. - Percent *num.Percentage `json:"percent,omitempty" jsonschema:"title=Percent"` + Percent *num.Percentage `json:"percent,omitempty" jsonschema:"title=Percent" en16931:"BT-119"` // Surcharge applied to the rate. Surcharge *RateTotalSurcharge `json:"surcharge,omitempty" jsonschema:"title=Surcharge"` // Total amount of rate, excluding surcharges - Amount num.Amount `json:"amount" jsonschema:"title=Amount"` + Amount num.Amount `json:"amount" jsonschema:"title=Amount" en16931:"BT-117"` } // RateTotalSurcharge reflects the sum surcharges inside the rate.