@gls_spain/gps-common 35.5.0 → 35.6.0
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 +14 -2
- package/package.json +1 -1
- package/schemas/definitions/defaults.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
# [35.
|
|
1
|
+
# [35.6.0](https://github.com/GLS-Spain/gps-common/compare/v35.5.0...v35.6.0) (2024-09-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* working on derivationRate schema ([b27dffb](https://github.com/GLS-Spain/gps-common/commit/b27dffbb6f16564933efd591a13d9f37e95948e4))
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
### Features
|
|
5
10
|
|
|
6
|
-
* new
|
|
11
|
+
* add new field constantShopReturn ([4190b17](https://github.com/GLS-Spain/gps-common/commit/4190b178b536a8265b3448d2ad8944d3153a8b6b))
|
|
7
12
|
|
|
13
|
+
# [35.5.0](https://github.com/GLS-Spain/gps-common/compare/v35.4.18...v35.5.0) (2024-09-11)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* new request for reverse logistic request depositedTo ([4d3bdc1](https://github.com/GLS-Spain/gps-common/commit/4d3bdc1bc8346f03c5bb26aeae89584d4392ad56))
|
|
19
|
+
|
|
8
20
|
## [35.4.18](https://github.com/GLS-Spain/gps-common/compare/v35.4.17...v35.4.18) (2024-08-14)
|
|
9
21
|
|
|
10
22
|
|
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
|
});
|