@gls_spain/gps-common 34.26.8 → 34.26.10

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
- ## [34.26.8](https://github.com/GLS-Spain/gps-common/compare/v34.26.7...v34.26.8) (2021-11-16)
1
+ ## [34.26.10](https://github.com/GLS-Spain/gps-common/compare/v34.26.9...v34.26.10) (2022-03-08)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * add required to lastname ([eafbef4](https://github.com/GLS-Spain/gps-common/commit/eafbef4c2b8bcf31f1b6819f80caa8a92be6a3a9))
6
+ * add lastname to fiscal ([449db3b](https://github.com/GLS-Spain/gps-common/commit/449db3b8d93dbe3d23557bbe9bc0df5043555d6d))
7
7
 
8
+ ## [34.26.9](https://github.com/GLS-Spain/gps-common/compare/v34.26.8...v34.26.9) (2021-11-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * move required lastname fiscal to normal sender ([a958618](https://github.com/GLS-Spain/gps-common/commit/a9586182d64d37f39f16dea51142fba845f562a4))
14
+
15
+ ## [34.26.8](https://github.com/GLS-Spain/gps-common/compare/v34.26.7...v34.26.8) (2021-11-16)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add required to lastname ([eafbef4](https://github.com/GLS-Spain/gps-common/commit/eafbef4c2b8bcf31f1b6819f80caa8a92be6a3a9))
21
+
8
22
  ## [34.26.7](https://github.com/GLS-Spain/gps-common/compare/v34.26.6...v34.26.7) (2021-11-15)
9
23
 
10
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.26.8",
3
+ "version": "34.26.10",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -86,6 +86,7 @@ const sale = () => ({
86
86
  type: 'object',
87
87
  properties: {
88
88
  name: { type: 'string', trim: true },
89
+ lastname: { type: 'string', trim: true },
89
90
  nif: { type: 'string', trim: true },
90
91
  nifType: nifType(),
91
92
  countryPassport: country(),
@@ -93,13 +94,13 @@ const sale = () => ({
93
94
  emails: { type: 'array', items: email(), uniqueItems: true },
94
95
  phones: { type: 'array', items: phone(), uniqueItems: true },
95
96
  },
96
- required: ['name', 'lastname', 'nif', 'address', 'emails', 'phones', 'nifType'],
97
+ required: ['name','lastname', 'nif', 'address', 'emails', 'phones', 'nifType'],
97
98
  additionalProperties: false,
98
99
  },
99
100
  notes: { type: 'string', trim: true },
100
101
  reference: { type: 'string', trim: true },
101
102
  },
102
- required: ['name', 'nif', 'address', 'emails', 'phones', 'fiscal'],
103
+ required: ['name', 'lastname','nif', 'address', 'emails', 'phones', 'fiscal'],
103
104
  additionalProperties: false,
104
105
  },
105
106
  payment: {