Skip to content

Commit 754ac7f

Browse files
author
k-wysocki-bl
committed
open-api: update regex patterns
1 parent 87c3405 commit 754ac7f

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

api-changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Dodano ograniczenia liczby elementów w tablicy: `minItems`, `maxItems`.
1313
- Dodano ograniczenia długości dla właściwości typu string: `minLength` oraz `maxLength`.
1414
- Zaktualizowano opisy właściwości (`invoiceMetadataAuthorizedSubject.role`, `invoiceMetadataBuyer`, `invoiceMetadataThirdSubject.role`, `buyerIdentifier`).
15+
- Zaktualizowano regex patterny dla `vatUeIdentifier`, `authorizedFingerprintIdentifier`, `internalId`, `nipVatUe`, `peppolId`.
1516

1617
### Wersja 2.0.0 RC5.6
1718

open-api.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6901,11 +6901,13 @@
69016901
"type": "object",
69026902
"properties": {
69036903
"vatUeIdentifier": {
6904+
"pattern": "^(ATU\\d{8}|BE[01]{1}\\d{9}|BG\\d{9,10}|CY\\d{8}[A-Z]|CZ\\d{8,10}|DE\\d{9}|DK\\d{8}|EE\\d{9}|EL\\d{9}|ES([A-Z]\\d{8}|\\d{8}[A-Z]|[A-Z]\\d{7}[A-Z])|FI\\d{8}|FR[A-Z0-9]{2}\\d{9}|HR\\d{11}|HU\\d{8}|IE(\\d{7}[A-Z]{2}|\\d[A-Z0-9+*]\\d{5}[A-Z])|IT\\d{11}|LT(\\d{9}|\\d{12})|LU\\d{8}|LV\\d{11}|MT\\d{8}|NL[A-Z0-9+*]{12}|PT\\d{9}|RO\\d{2,10}|SE\\d{12}|SI\\d{8}|SK\\d{10}|XI((\\d{9}|\\d{12})|(GD|HA)\\d{3}))$",
69046905
"type": "string",
69056906
"description": "Wartość identyfikatora (numeru identyfikacyjnego VAT) podmiotu unijnego.",
69066907
"nullable": true
69076908
},
69086909
"authorizedFingerprintIdentifier": {
6910+
"pattern": "^[0-9A-F]{64}$",
69096911
"type": "string",
69106912
"description": "Odcisk palca certyfikatu kwalifikowanego uprawnionego.",
69116913
"nullable": true
@@ -7288,6 +7290,13 @@
72887290
},
72897291
"additionalProperties": false
72907292
},
7293+
"InternalId": {
7294+
"maxLength": 16,
7295+
"minLength": 16,
7296+
"pattern": "^[1-9]((\\d[1-9])|([1-9]\\d))\\d{7}-\\d{5}$",
7297+
"type": "string",
7298+
"description": "Identyfikator wewnętrzny, składający się z numeru NIP i 5 cyfr."
7299+
},
72917300
"InvoiceExportRequest": {
72927301
"required": [
72937302
"encryption",
@@ -8106,6 +8115,11 @@
81068115
"type": "string",
81078116
"description": "10 cyfrowy numer NIP."
81088117
},
8118+
"NipVatUe": {
8119+
"pattern": "^[1-9]((\\d[1-9])|([1-9]\\d))\\d{7}-(ATU\\d{8}|BE[01]{1}\\d{9}|BG\\d{9,10}|CY\\d{8}[A-Z]|CZ\\d{8,10}|DE\\d{9}|DK\\d{8}|EE\\d{9}|EL\\d{9}|ES([A-Z]\\d{8}|\\d{8}[A-Z]|[A-Z]\\d{7}[A-Z])|FI\\d{8}|FR[A-Z0-9]{2}\\d{9}|HR\\d{11}|HU\\d{8}|IE(\\d{7}[A-Z]{2}|\\d[A-Z0-9+*]\\d{5}[A-Z])|IT\\d{11}|LT(\\d{9}|\\d{12})|LU\\d{8}|LV\\d{11}|MT\\d{8}|NL[A-Z0-9+*]{12}|PT\\d{9}|RO\\d{2,10}|SE\\d{12}|SI\\d{8}|SK\\d{10}|XI((\\d{9}|\\d{12})|(GD|HA)\\d{3}))$",
8120+
"type": "string",
8121+
"description": "Identyfikator złożony, czyli dwuczłonowy identyfikator składający się z nr NIP podmiotu polskiego oraz numeru VAT UE podmiotu unijnego."
8122+
},
81098123
"OnlineSessionContextLimitsOverride": {
81108124
"required": [
81118125
"maxInvoices",
@@ -8352,6 +8366,7 @@
83528366
"PeppolId": {
83538367
"maxLength": 9,
83548368
"minLength": 9,
8369+
"pattern": "^P[A-Z]{2}[0-9]{6}$",
83558370
"type": "string",
83568371
"description": "Identyfikator dostawcy usług Peppol."
83578372
},
@@ -9149,7 +9164,7 @@
91499164
"minLength": 11,
91509165
"pattern": "^\\d{2}(?:0[1-9]|1[0-2]|2[1-9]|3[0-2]|4[1-9]|5[0-2]|6[1-9]|7[0-2]|8[1-9]|9[0-2])\\d{7}$",
91519166
"type": "string",
9152-
"description": "11 cyfrowy numer PESEL"
9167+
"description": "11 cyfrowy numer PESEL."
91539168
},
91549169
"PublicKeyCertificate": {
91559170
"required": [
@@ -9566,7 +9581,7 @@
95669581
"maxLength": 36,
95679582
"minLength": 36,
95689583
"type": "string",
9569-
"description": "Numer referencyjny"
9584+
"description": "Numer referencyjny."
95709585
},
95719586
"RetrieveCertificatesListItem": {
95729587
"required": [
@@ -10109,7 +10124,7 @@
1010910124
"maxLength": 44,
1011010125
"minLength": 44,
1011110126
"type": "string",
10112-
"description": "SHA-256 w Base64",
10127+
"description": "SHA-256 w Base64.",
1011310128
"format": "byte"
1011410129
},
1011510130
"SortOrder": {

0 commit comments

Comments
 (0)