@gls_spain/gps-common 35.15.5 → 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,24 @@
1
- ## [35.15.5](https://github.com/GLS-Spain/gps-common/compare/v35.15.4...v35.15.5) (2026-03-10)
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 fiscal new properties in schema ([0cb77ad](https://github.com/GLS-Spain/gps-common/commit/0cb77ad9a691c79bd33f0df9ea9a3a35026aea2b))
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
+
15
+ ## [35.15.5](https://github.com/GLS-Spain/gps-common/compare/v35.15.4...v35.15.5) (2026-03-10)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add fiscal new properties in schema ([0cb77ad](https://github.com/GLS-Spain/gps-common/commit/0cb77ad9a691c79bd33f0df9ea9a3a35026aea2b))
21
+
8
22
  ## [35.15.4](https://github.com/GLS-Spain/gps-common/compare/v35.15.3...v35.15.4) (2026-03-10)
9
23
 
10
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.15.5",
3
+ "version": "35.15.7",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -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');
@@ -755,6 +756,7 @@ const createLockerRequest = () =>
755
756
  required: ['type', 'coordinates'],
756
757
  additionalProperties: false,
757
758
  },
759
+ precision: { type: 'string' },
758
760
  },
759
761
  required: ['geometry'],
760
762
  additionalProperties: false,
@@ -768,8 +770,22 @@ const createLockerRequest = () =>
768
770
  timezone: shop().properties.timezone,
769
771
  activity: shop().properties.activity,
770
772
  eco: shop().properties.eco,
771
-
772
- fiscal: fiscal(),
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
+ },
773
789
 
774
790
  nxt: {
775
791
  type: 'object',