@gls_spain/gps-common 34.26.10 → 34.26.11
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 +9 -2
- package/errors/AgenciaTributariaDNI.js +11 -0
- package/errors/index.js +3 -0
- package/open-api-spec/index.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
## [34.26.
|
|
1
|
+
## [34.26.11](https://github.com/GLS-Spain/gps-common/compare/v34.26.10...v34.26.11) (2022-03-08)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* add
|
|
6
|
+
* add resource error ([1a21baa](https://github.com/GLS-Spain/gps-common/commit/1a21baa17a1c79c0f1cac3e0edc8b275e0ac5d97))
|
|
7
7
|
|
|
8
|
+
## [34.26.10](https://github.com/GLS-Spain/gps-common/compare/v34.26.9...v34.26.10) (2022-03-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add lastname to fiscal ([449db3b](https://github.com/GLS-Spain/gps-common/commit/449db3b8d93dbe3d23557bbe9bc0df5043555d6d))
|
|
14
|
+
|
|
8
15
|
## [34.26.9](https://github.com/GLS-Spain/gps-common/compare/v34.26.8...v34.26.9) (2021-11-16)
|
|
9
16
|
|
|
10
17
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const { DatabaseError } = require('@gls_spain/mongodb');
|
|
2
|
+
|
|
3
|
+
class AgenciaTributariaDNI extends DatabaseError {
|
|
4
|
+
constructor(message = 'Sale destination is invalid.') {
|
|
5
|
+
// noinspection JSCheckFunctionSignatures
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = 'AgenciaTributariaDNI';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = AgenciaTributariaDNI;
|
package/errors/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const SaleDoesNotExistError = require('./SaleDoesNotExistError');
|
|
|
32
32
|
const SaleAlreadyExistsError = require('./SaleAlreadyExistsError');
|
|
33
33
|
const InconsistentSalesSettingsError = require('./InconsistentSalesSettingsError');
|
|
34
34
|
const InvalidSaleDestinationError = require('./InvalidSaleDestinationError');
|
|
35
|
+
const AgenciaTributariaDNI = require('./AgenciaTributariaDNI');
|
|
35
36
|
const GLSSpainError = require('./GLSSpainError');
|
|
36
37
|
const GLSRecordingError = require('./GLSRecordingError');
|
|
37
38
|
const LabelDoesNotExistError = require('./LabelDoesNotExistError');
|
|
@@ -71,6 +72,7 @@ const errorsNames = {
|
|
|
71
72
|
SaleAlreadyExistsError: 'SaleAlreadyExistsError',
|
|
72
73
|
InconsistentSalesSettingsError: 'InconsistentSalesSettingsError',
|
|
73
74
|
InvalidSaleDestinationError: 'InvalidSaleDestinationError',
|
|
75
|
+
AgenciaTributariaDNI: 'AgenciaTributariaDNI',
|
|
74
76
|
GLSSpainError: 'GLSSpainError',
|
|
75
77
|
GLSRecordingError: 'GLSRecordingError',
|
|
76
78
|
LabelDoesNotExistError: 'LabelDoesNotExistError',
|
|
@@ -111,6 +113,7 @@ module.exports = {
|
|
|
111
113
|
SaleAlreadyExistsError,
|
|
112
114
|
InconsistentSalesSettingsError,
|
|
113
115
|
InvalidSaleDestinationError,
|
|
116
|
+
AgenciaTributariaDNI,
|
|
114
117
|
GLSSpainError,
|
|
115
118
|
GLSRecordingError,
|
|
116
119
|
LabelDoesNotExistError,
|
package/open-api-spec/index.js
CHANGED
|
@@ -43,6 +43,7 @@ const {
|
|
|
43
43
|
SaleAlreadyExistsError,
|
|
44
44
|
InconsistentSalesSettingsError,
|
|
45
45
|
InvalidSaleDestinationError,
|
|
46
|
+
AgenciaTributariaDNI,
|
|
46
47
|
GLSSpainError,
|
|
47
48
|
LabelDoesNotExistError,
|
|
48
49
|
} = require('../errors');
|
|
@@ -930,6 +931,7 @@ const errors = {
|
|
|
930
931
|
saleAlreadyExists: new SaleAlreadyExistsError(),
|
|
931
932
|
inconsistentSalesSettings: new InconsistentSalesSettingsError(),
|
|
932
933
|
invalidSaleDestination: new InvalidSaleDestinationError(),
|
|
934
|
+
AgenciaTributariaDNI: new AgenciaTributariaDNI(),
|
|
933
935
|
glsSpainError: new GLSSpainError(),
|
|
934
936
|
labelDoesNotExist: new LabelDoesNotExistError(),
|
|
935
937
|
};
|