@gls_spain/gps-common 35.5.0 → 35.6.1
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,29 @@
|
|
|
1
|
-
|
|
1
|
+
## [35.6.1](https://github.com/GLS-Spain/gps-common/compare/v35.6.0...v35.6.1) (2024-09-26)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* add maximun 32767 to clientCode shop form ([39e9d76](https://github.com/GLS-Spain/gps-common/commit/39e9d767b8ad39ee8c3dfbd92237f828a93e555b))
|
|
7
7
|
|
|
8
|
+
# [35.6.0](https://github.com/GLS-Spain/gps-common/compare/v35.5.0...v35.6.0) (2024-09-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* working on derivationRate schema ([b27dffb](https://github.com/GLS-Spain/gps-common/commit/b27dffbb6f16564933efd591a13d9f37e95948e4))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add new field constantShopReturn ([4190b17](https://github.com/GLS-Spain/gps-common/commit/4190b178b536a8265b3448d2ad8944d3153a8b6b))
|
|
19
|
+
|
|
20
|
+
# [35.5.0](https://github.com/GLS-Spain/gps-common/compare/v35.4.18...v35.5.0) (2024-09-11)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* new request for reverse logistic request depositedTo ([4d3bdc1](https://github.com/GLS-Spain/gps-common/commit/4d3bdc1bc8346f03c5bb26aeae89584d4392ad56))
|
|
26
|
+
|
|
8
27
|
## [35.4.18](https://github.com/GLS-Spain/gps-common/compare/v35.4.17...v35.4.18) (2024-08-14)
|
|
9
28
|
|
|
10
29
|
|
package/package.json
CHANGED
|
@@ -6,10 +6,11 @@ const derivationRate = () => ({
|
|
|
6
6
|
type: 'object',
|
|
7
7
|
properties: {
|
|
8
8
|
constant: { ...money(), description: 'fixed amount paid in cents, per package' },
|
|
9
|
+
constantShopReturn: { ...money(), description: 'fixed amount paid in cents, per package' },
|
|
9
10
|
variableStart: { type: 'number', description: 'weight threshold in kg to start paying the variable, per package' },
|
|
10
11
|
variable: { ...money(), description: 'amount paid in cents for each additional kg beyond the weight threshold, per package' },
|
|
11
12
|
},
|
|
12
|
-
required: ['constant', 'variableStart', 'variable'],
|
|
13
|
+
required: ['constant', 'variableStart', 'variable', 'constantShopReturn'],
|
|
13
14
|
additionalProperties: false,
|
|
14
15
|
description: 'pricePerPackage = constant + max(0, weight - variableStart) * variable',
|
|
15
16
|
});
|
|
@@ -267,7 +267,7 @@ const shop = () => ({
|
|
|
267
267
|
// 2023-01-12 JL están definidos como string
|
|
268
268
|
// TODO en el momento que el frontend sea capaz de mandar integer, se quita "string"
|
|
269
269
|
squareCode: { type: ['integer', 'string'], minimum: 0, maximum: 32767, description: 'agency code' },
|
|
270
|
-
clientCode: { type: ['integer', 'string'], minimum: 0, description: 'client code' },
|
|
270
|
+
clientCode: { type: ['integer', 'string'], minimum: 0, maximum: 32767,description: 'client code' },
|
|
271
271
|
// 2024-07-22 JJC campo de agencia de canalización
|
|
272
272
|
channelingAgencyCode: { type: ['integer', 'string', 'null'], description: 'Channeling Agency Code' },
|
|
273
273
|
},
|