@gls_spain/gps-common 35.15.6 → 35.15.8
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/CHANGELOG.md +16 -2
- package/package.json +1 -1
- package/schemas/definitions/common.js +1 -1
- package/schemas/definitions/shops.js +56 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
## [35.15.
|
|
1
|
+
## [35.15.8](https://github.com/GLS-Spain/gps-common/compare/v35.15.7...v35.15.8) (2026-03-10)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* fix door property ([8980881](https://github.com/GLS-Spain/gps-common/commit/8980881dc14fdedad49a7179af810ab0bac36b55))
|
|
7
7
|
|
|
8
|
+
## [35.15.7](https://github.com/GLS-Spain/gps-common/compare/v35.15.6...v35.15.7) (2026-03-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add fiscal and activity new properties ([709fb68](https://github.com/GLS-Spain/gps-common/commit/709fb689abcd20cf64f42195b42f29062c9f3818))
|
|
14
|
+
|
|
15
|
+
## [35.15.6](https://github.com/GLS-Spain/gps-common/compare/v35.15.5...v35.15.6) (2026-03-10)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add precision property in locker schema ([272afef](https://github.com/GLS-Spain/gps-common/commit/272afef03027de66379b44873f9953623e921e56))
|
|
21
|
+
|
|
8
22
|
## [35.15.5](https://github.com/GLS-Spain/gps-common/compare/v35.15.4...v35.15.5) (2026-03-10)
|
|
9
23
|
|
|
10
24
|
|
package/package.json
CHANGED
|
@@ -420,7 +420,7 @@ const fiscal = () => ({
|
|
|
420
420
|
items: contact(),
|
|
421
421
|
},
|
|
422
422
|
address: address(),
|
|
423
|
-
paymentMethod: { type: 'string', enum: ['transfer', 'confirming','Domiciliado'] },
|
|
423
|
+
paymentMethod: { type: 'string', enum: ['transfer', 'confirming', 'Domiciliado'] },
|
|
424
424
|
dueDays: { type: 'integer', minimum: 0 },
|
|
425
425
|
activity: { type: 'string', trim: true, description: 'IAE', maxLength: 50 },
|
|
426
426
|
retention: { type: 'integer', description: 'invoice retention percentage' },
|
|
@@ -28,6 +28,7 @@ const {
|
|
|
28
28
|
fiscal,
|
|
29
29
|
findByFiscal,
|
|
30
30
|
findByIdInternational,
|
|
31
|
+
address,
|
|
31
32
|
} = require('./common');
|
|
32
33
|
const { network, objectWithNetworkId } = require('./networks');
|
|
33
34
|
const { defaults, derivationSettings, expirationSettings } = require('./defaults');
|
|
@@ -638,7 +639,34 @@ const locker = () => ({
|
|
|
638
639
|
type: 'array',
|
|
639
640
|
items: contact(),
|
|
640
641
|
},
|
|
641
|
-
fiscal:
|
|
642
|
+
fiscal: {
|
|
643
|
+
type: 'object',
|
|
644
|
+
properties: {
|
|
645
|
+
iban: { type: 'string', trim: true },
|
|
646
|
+
businessName: { type: 'string', trim: true },
|
|
647
|
+
nif: { type: 'string', trim: true },
|
|
648
|
+
contacts: { type: 'array', items: contact() },
|
|
649
|
+
// ✅ address inline — address() tiene additionalProperties:false sin 'door'
|
|
650
|
+
address: {
|
|
651
|
+
type: 'object',
|
|
652
|
+
properties: {
|
|
653
|
+
street: { type: 'string', trim: true },
|
|
654
|
+
door: { type: 'string', trim: true },
|
|
655
|
+
postalCode: { type: 'string', trim: true },
|
|
656
|
+
locality: { type: 'string', trim: true },
|
|
657
|
+
country: { type: 'string', trim: true },
|
|
658
|
+
},
|
|
659
|
+
required: ['street', 'postalCode', 'locality', 'country'],
|
|
660
|
+
additionalProperties: false,
|
|
661
|
+
},
|
|
662
|
+
paymentMethod: { type: 'string', trim: true },
|
|
663
|
+
dueDays: { type: 'integer', minimum: 0 },
|
|
664
|
+
activity: { type: 'string', trim: true, maxLength: 50 },
|
|
665
|
+
retention: { type: 'integer' },
|
|
666
|
+
},
|
|
667
|
+
required: ['iban', 'businessName', 'nif', 'contacts', 'address', 'dueDays', 'retention'],
|
|
668
|
+
additionalProperties: false,
|
|
669
|
+
},
|
|
642
670
|
activity: shopActivity(),
|
|
643
671
|
notes: { type: 'string', trim: true },
|
|
644
672
|
derivationSettings: derivationSettings(),
|
|
@@ -769,8 +797,33 @@ const createLockerRequest = () =>
|
|
|
769
797
|
timezone: shop().properties.timezone,
|
|
770
798
|
activity: shop().properties.activity,
|
|
771
799
|
eco: shop().properties.eco,
|
|
772
|
-
|
|
773
|
-
|
|
800
|
+
fiscal: {
|
|
801
|
+
type: 'object',
|
|
802
|
+
properties: {
|
|
803
|
+
iban: { type: 'string', trim: true },
|
|
804
|
+
businessName: { type: 'string', trim: true },
|
|
805
|
+
nif: { type: 'string', trim: true },
|
|
806
|
+
contacts: { type: 'array', items: contact() },
|
|
807
|
+
address: {
|
|
808
|
+
type: 'object',
|
|
809
|
+
properties: {
|
|
810
|
+
street: { type: 'string', trim: true },
|
|
811
|
+
door: { type: 'string', trim: true },
|
|
812
|
+
postalCode: { type: 'string', trim: true },
|
|
813
|
+
locality: { type: 'string', trim: true },
|
|
814
|
+
country: { type: 'string', trim: true },
|
|
815
|
+
},
|
|
816
|
+
required: ['street', 'postalCode', 'locality', 'country'],
|
|
817
|
+
additionalProperties: false,
|
|
818
|
+
},
|
|
819
|
+
paymentMethod: { type: 'string', trim: true },
|
|
820
|
+
dueDays: { type: 'integer', minimum: 0 },
|
|
821
|
+
activity: { type: 'string', trim: true, maxLength: 50 },
|
|
822
|
+
retention: { type: 'integer' },
|
|
823
|
+
},
|
|
824
|
+
required: ['iban', 'businessName', 'nif', 'contacts', 'address', 'dueDays', 'retention'],
|
|
825
|
+
additionalProperties: false,
|
|
826
|
+
},
|
|
774
827
|
|
|
775
828
|
nxt: {
|
|
776
829
|
type: 'object',
|