@gls_spain/gps-common 35.15.6 → 35.15.7
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
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
## [35.15.
|
|
1
|
+
## [35.15.7](https://github.com/GLS-Spain/gps-common/compare/v35.15.6...v35.15.7) (2026-03-10)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* add
|
|
6
|
+
* add fiscal and activity new properties ([709fb68](https://github.com/GLS-Spain/gps-common/commit/709fb689abcd20cf64f42195b42f29062c9f3818))
|
|
7
7
|
|
|
8
|
+
## [35.15.6](https://github.com/GLS-Spain/gps-common/compare/v35.15.5...v35.15.6) (2026-03-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add precision property in locker schema ([272afef](https://github.com/GLS-Spain/gps-common/commit/272afef03027de66379b44873f9953623e921e56))
|
|
14
|
+
|
|
8
15
|
## [35.15.5](https://github.com/GLS-Spain/gps-common/compare/v35.15.4...v35.15.5) (2026-03-10)
|
|
9
16
|
|
|
10
17
|
|
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');
|
|
@@ -769,8 +770,22 @@ const createLockerRequest = () =>
|
|
|
769
770
|
timezone: shop().properties.timezone,
|
|
770
771
|
activity: shop().properties.activity,
|
|
771
772
|
eco: shop().properties.eco,
|
|
772
|
-
|
|
773
|
-
|
|
773
|
+
fiscal: {
|
|
774
|
+
type: 'object',
|
|
775
|
+
properties: {
|
|
776
|
+
iban: { type: 'string', trim: true },
|
|
777
|
+
businessName: { type: 'string', trim: true },
|
|
778
|
+
nif: { type: 'string', trim: true },
|
|
779
|
+
contacts: { type: 'array', items: contact() },
|
|
780
|
+
address: address(),
|
|
781
|
+
paymentMethod: { type: 'string', trim: true }, // sin enum — Salesforce manda "Domiciliado"
|
|
782
|
+
dueDays: { type: 'integer', minimum: 0 },
|
|
783
|
+
activity: { type: 'string', trim: true, maxLength: 50 }, // opcional, fuera de required
|
|
784
|
+
retention: { type: 'integer' },
|
|
785
|
+
},
|
|
786
|
+
required: ['iban', 'businessName', 'nif', 'contacts', 'address', 'dueDays', 'retention'],
|
|
787
|
+
additionalProperties: false,
|
|
788
|
+
},
|
|
774
789
|
|
|
775
790
|
nxt: {
|
|
776
791
|
type: 'object',
|