@fin.cx/einvoice 8.3.0 → 8.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/formats/cii/facturx/facturx.encoder.js +5 -3
- package/dist_ts/formats/cii/zugferd/zugferd.encoder.js +7 -7
- package/dist_ts/formats/ubl/generic/ubl.encoder.d.ts +0 -7
- package/dist_ts/formats/ubl/generic/ubl.encoder.js +9 -23
- package/dist_ts/formats/ubl/xrechnung/xrechnung.encoder.d.ts +0 -5
- package/dist_ts/formats/ubl/xrechnung/xrechnung.encoder.js +1 -23
- package/dist_ts/formats/utils/country.code.d.ts +15 -0
- package/dist_ts/formats/utils/country.code.js +41 -0
- package/dist_ts/formats/validation/codelist.validator.js +2 -2
- package/dist_ts/formats/validation/validation.types.js +23 -6
- package/package.json +2 -2
- package/readme.md +1 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/formats/cii/facturx/facturx.encoder.ts +4 -2
- package/ts/formats/cii/zugferd/zugferd.encoder.ts +6 -6
- package/ts/formats/ubl/generic/ubl.encoder.ts +13 -24
- package/ts/formats/ubl/xrechnung/xrechnung.encoder.ts +0 -23
- package/ts/formats/utils/country.code.ts +53 -0
- package/ts/formats/validation/codelist.validator.ts +2 -2
- package/ts/formats/validation/validation.types.ts +22 -5
|
@@ -96,13 +96,30 @@ export const CodeLists = {
|
|
|
96
96
|
])
|
|
97
97
|
},
|
|
98
98
|
|
|
99
|
-
// ISO 3166-1 alpha-2
|
|
99
|
+
// ISO 3166-1 alpha-2 country codes, as EN 16931 accepts them (BR-CL-14, BR-CL-15): the code list
|
|
100
|
+
// of the CEN/TC 434 validation artefacts 1.3.16 for UBL, which adds 1A (Kosovo) and XI (Northern
|
|
101
|
+
// Ireland) to the codes ISO 3166-1 assigns
|
|
100
102
|
ISO3166: {
|
|
101
|
-
version: '
|
|
103
|
+
version: 'EN 16931 validation artefacts 1.3.16',
|
|
102
104
|
codes: new Set([
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
105
|
+
'1A', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU',
|
|
106
|
+
'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM',
|
|
107
|
+
'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF',
|
|
108
|
+
'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY',
|
|
109
|
+
'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET',
|
|
110
|
+
'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI',
|
|
111
|
+
'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN',
|
|
112
|
+
'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE',
|
|
113
|
+
'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ',
|
|
114
|
+
'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD',
|
|
115
|
+
'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT',
|
|
116
|
+
'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO',
|
|
117
|
+
'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN',
|
|
118
|
+
'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC',
|
|
119
|
+
'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST',
|
|
120
|
+
'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN',
|
|
121
|
+
'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC',
|
|
122
|
+
'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'XI', 'YE', 'YT', 'ZA', 'ZM', 'ZW',
|
|
106
123
|
])
|
|
107
124
|
},
|
|
108
125
|
|