changedInput schema / properties / invoice / properties / lines / items / properties / quantity / anyOf
Previous value: -[
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+]
changedInput schema / properties / invoice / properties / lines / items / properties / total_price / anyOf
Previous value: -[
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
-]New value: +[
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+]
changedInput schema / properties / invoice / properties / lines / items / properties / unit_price / anyOf
Previous value: -[
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
-]New value: +[
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+]
changedInput schema / properties / invoice / properties / lines / items / properties / vat_rate / anyOf
Previous value: -[
- {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
-]New value: +[
+ {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+]
changedInput schema / properties / invoice / properties / payment / anyOf
Previous value: -[
- {
- "description": "Payment terms and method.\n\nMaps to IT DatiPagamento, UBL PaymentMeans, ZUGFeRD ram:SpecifiedTradePaymentTerms.\n\n[AMBIGUITY: IT uses structured codes (TP01/02/03 + MP01-23). UBL and ZUGFeRD use\n free-text terms + UNCL4461 payment means codes. The base model uses free-form\n strings to remain format-neutral; country validators enforce their own code sets.]\nOption A: Store raw country codes → simpler, no translation layer needed.\nOption B: Use enums mapped per country → more type-safe but requires maintenance.\nChosen: Option A (raw strings). Rationale: code sets vary significantly (IT has 23\npayment methods, UBL UNCL4461 has 70+).",
- "properties": {
- "amount": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
- ],
- "description": "Payment amount"
- },
- "bank_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Financial institution name"
- },
- "bic": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "BIC/SWIFT code for international transfers"
- },
- "due_date": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Payment due date (YYYY-MM-DD)"
- },
- "iban": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "IBAN for bank transfers (validated by xml_utils.validate_iban)"
- },
- "payment_method_code": {
- "description": "Country-specific payment method code (IT: MP01-23, UBL: UNCL4461)",
- "type": "string"
- },
- "payment_terms_code": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Country-specific payment terms code (IT: TP01/02/03, ES: contado/plazo)"
- }
- },
- "required": [
- "payment_method_code",
- "amount"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "description": "Payment terms and method.\n\nMaps to IT DatiPagamento, UBL PaymentMeans, ZUGFeRD ram:SpecifiedTradePaymentTerms.\n\n[AMBIGUITY: IT uses structured codes (TP01/02/03 + MP01-23). UBL and ZUGFeRD use\n free-text terms + UNCL4461 payment means codes. The base model uses free-form\n strings to remain format-neutral; country validators enforce their own code sets.]\nOption A: Store raw country codes → simpler, no translation layer needed.\nOption B: Use enums mapped per country → more type-safe but requires maintenance.\nChosen: Option A (raw strings). Rationale: code sets vary significantly (IT has 23\npayment methods, UBL UNCL4461 has 70+).",
+ "properties": {
+ "amount": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+ ],
+ "description": "Payment amount"
+ },
+ "bank_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Financial institution name"
+ },
+ "bic": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "BIC/SWIFT code for international transfers"
+ },
+ "due_date": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Payment due date (YYYY-MM-DD)"
+ },
+ "iban": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "IBAN for bank transfers (validated by xml_utils.validate_iban)"
+ },
+ "payment_method_code": {
+ "description": "Country-specific payment method code (IT: MP01-23, UBL: UNCL4461)",
+ "type": "string"
+ },
+ "payment_terms_code": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Country-specific payment terms code (IT: TP01/02/03, ES: contado/plazo)"
+ }
+ },
+ "required": [
+ "payment_method_code",
+ "amount"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]
changedInput schema / properties / invoice / properties / vat_summary / items / properties / taxable_base / anyOf
Previous value: -[
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
-]New value: +[
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+]
changedInput schema / properties / invoice / properties / vat_summary / items / properties / vat_amount / anyOf
Previous value: -[
- {
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
-]New value: +[
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+]
changedInput schema / properties / invoice / properties / vat_summary / items / properties / vat_rate / anyOf
Previous value: -[
- {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- {
- "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
- "type": "string"
- }
-]New value: +[
+ {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+]