@lcdp/api-react-rest-client 2.1.2-develop.4312108229 → 2.1.2-develop.4364529993
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/auth/src/models/HttpLink.d.ts +1 -1
- package/auth/src/models/RestError.d.ts +6 -4
- package/auth/src/models/RestError.js +2 -0
- package/banking-operation/src/models/HttpLink.d.ts +1 -1
- package/configuration/src/models/RestError.d.ts +6 -4
- package/configuration/src/models/RestError.js +2 -0
- package/content/src/models/RestError.d.ts +6 -4
- package/content/src/models/RestError.js +2 -0
- package/factory/src/models/HttpLink.d.ts +1 -1
- package/favorite/src/models/HttpLink.d.ts +1 -1
- package/favorite/src/models/RestError.d.ts +6 -4
- package/favorite/src/models/RestError.js +2 -0
- package/inventory/src/models/HttpLink.d.ts +1 -1
- package/inventory/src/models/RestError.d.ts +6 -4
- package/inventory/src/models/RestError.js +2 -0
- package/invoice/src/models/HttpLink.d.ts +1 -1
- package/invoice/src/models/RestError.d.ts +6 -4
- package/invoice/src/models/RestError.js +2 -0
- package/laboratory-store/src/models/HttpLink.d.ts +1 -1
- package/laboratory-store/src/models/ImageVersions.d.ts +6 -6
- package/laboratory-store/src/models/RestError.d.ts +6 -4
- package/laboratory-store/src/models/RestError.js +2 -0
- package/laboratory-store-log/src/models/HttpLink.d.ts +1 -1
- package/lexicon/src/models/RestError.d.ts +6 -4
- package/lexicon/src/models/RestError.js +2 -0
- package/litigation/src/models/RestError.d.ts +6 -4
- package/litigation/src/models/RestError.js +2 -0
- package/magic-cart/src/models/HttpLink.d.ts +1 -1
- package/mangopay-hook/src/models/RestError.d.ts +6 -4
- package/mangopay-hook/src/models/RestError.js +2 -0
- package/message/src/models/HttpLink.d.ts +1 -1
- package/notification/src/models/HttpLink.d.ts +1 -1
- package/notification/src/models/RestError.d.ts +6 -4
- package/notification/src/models/RestError.js +2 -0
- package/order/src/models/HttpLink.d.ts +1 -1
- package/order/src/models/RestError.d.ts +6 -4
- package/order/src/models/RestError.js +2 -0
- package/order-log/src/models/HttpLink.d.ts +1 -1
- package/package.json +1 -1
- package/product/src/models/HttpLink.d.ts +1 -1
- package/product/src/models/ImageVersions.d.ts +6 -6
- package/product/src/models/RestError.d.ts +6 -4
- package/product/src/models/RestError.js +2 -0
- package/pub/src/models/HttpLink.d.ts +1 -1
- package/pub/src/models/ImageVersions.d.ts +6 -6
- package/pub/src/models/RestError.d.ts +6 -4
- package/pub/src/models/RestError.js +2 -0
- package/recommendation/src/models/HttpLink.d.ts +1 -1
- package/rfx/src/models/HttpLink.d.ts +1 -1
- package/rfx/src/models/RestError.d.ts +6 -4
- package/rfx/src/models/RestError.js +2 -0
- package/sale-offer/src/models/HttpLink.d.ts +1 -1
- package/sale-offer/src/models/ImageVersions.d.ts +6 -6
- package/sale-offer/src/models/RestError.d.ts +6 -4
- package/sale-offer/src/models/RestError.js +2 -0
- package/sale-offer-log/src/models/HttpLink.d.ts +1 -1
- package/servant/src/models/RestError.d.ts +6 -4
- package/servant/src/models/RestError.js +2 -0
- package/shipment/src/models/HttpLink.d.ts +1 -1
- package/shipment/src/models/RestError.d.ts +6 -4
- package/shipment/src/models/RestError.js +2 -0
- package/shipment/src/models/Shipment.d.ts +3 -3
- package/shipment/src/models/Shipment.js +3 -3
- package/shipment/src/models/ShipmentLabels.d.ts +33 -0
- package/shipment/src/models/ShipmentLabels.js +44 -0
- package/shipment/src/models/index.d.ts +1 -0
- package/shipment/src/models/index.js +1 -0
- package/shopping-cart/src/models/HttpLink.d.ts +1 -1
- package/shopping-cart/src/models/RestError.d.ts +6 -4
- package/shopping-cart/src/models/RestError.js +2 -0
- package/statistic/src/models/HttpLink.d.ts +1 -1
- package/statistic/src/models/RestError.d.ts +6 -4
- package/statistic/src/models/RestError.js +2 -0
- package/subscription/src/models/HttpLink.d.ts +1 -1
- package/subscription/src/models/RestError.d.ts +6 -4
- package/subscription/src/models/RestError.js +2 -0
- package/thread/src/models/HttpLink.d.ts +1 -1
- package/ubo/src/models/RestError.d.ts +6 -4
- package/ubo/src/models/RestError.js +2 -0
- package/user/src/models/HttpLink.d.ts +1 -1
- package/user/src/models/RestError.d.ts +6 -4
- package/user/src/models/RestError.js +2 -0
- package/wish/src/models/HttpLink.d.ts +1 -1
- package/wish/src/models/RestError.d.ts +6 -4
- package/wish/src/models/RestError.js +2 -0
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ShipmentLabels } from './ShipmentLabels';
|
|
13
13
|
import { ShipmentParcel } from './ShipmentParcel';
|
|
14
14
|
/**
|
|
15
15
|
* A shipment is a transport request for X parcels.
|
|
@@ -25,10 +25,10 @@ export interface Shipment {
|
|
|
25
25
|
reservationNumber?: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {ShipmentLabels}
|
|
29
29
|
* @memberof Shipment
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
labels?: ShipmentLabels;
|
|
32
32
|
/**
|
|
33
33
|
* Pickup date for this shipment
|
|
34
34
|
* @type {Date}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ShipmentToJSON = exports.ShipmentFromJSONTyped = exports.ShipmentFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
-
var
|
|
18
|
+
var ShipmentLabels_1 = require("./ShipmentLabels");
|
|
19
19
|
var ShipmentParcel_1 = require("./ShipmentParcel");
|
|
20
20
|
function ShipmentFromJSON(json) {
|
|
21
21
|
return ShipmentFromJSONTyped(json, false);
|
|
@@ -27,7 +27,7 @@ function ShipmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
'reservationNumber': !(0, runtime_1.exists)(json, 'reservationNumber') ? undefined : json['reservationNumber'],
|
|
30
|
-
'
|
|
30
|
+
'labels': !(0, runtime_1.exists)(json, 'labels') ? undefined : (0, ShipmentLabels_1.ShipmentLabelsFromJSON)(json['labels']),
|
|
31
31
|
'pickupDate': !(0, runtime_1.exists)(json, 'pickupDate') ? undefined : (new Date(json['pickupDate'])),
|
|
32
32
|
'parcels': !(0, runtime_1.exists)(json, 'parcels') ? undefined : (json['parcels'].map(ShipmentParcel_1.ShipmentParcelFromJSON)),
|
|
33
33
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
@@ -43,7 +43,7 @@ function ShipmentToJSON(value) {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
'reservationNumber': value.reservationNumber,
|
|
46
|
-
'
|
|
46
|
+
'labels': (0, ShipmentLabels_1.ShipmentLabelsToJSON)(value.labels),
|
|
47
47
|
'pickupDate': value.pickupDate === undefined ? undefined : (value.pickupDate.toISOString()),
|
|
48
48
|
'parcels': value.parcels === undefined ? undefined : (value.parcels.map(ShipmentParcel_1.ShipmentParcelToJSON)),
|
|
49
49
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP shipment
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ShipmentLabels
|
|
16
|
+
*/
|
|
17
|
+
export interface ShipmentLabels {
|
|
18
|
+
/**
|
|
19
|
+
* URI to PDF file
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ShipmentLabels
|
|
22
|
+
*/
|
|
23
|
+
pdf?: string;
|
|
24
|
+
/**
|
|
25
|
+
* URI to ZPL file
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ShipmentLabels
|
|
28
|
+
*/
|
|
29
|
+
zpl?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function ShipmentLabelsFromJSON(json: any): ShipmentLabels;
|
|
32
|
+
export declare function ShipmentLabelsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShipmentLabels;
|
|
33
|
+
export declare function ShipmentLabelsToJSON(value?: ShipmentLabels | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP shipment
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ShipmentLabelsToJSON = exports.ShipmentLabelsFromJSONTyped = exports.ShipmentLabelsFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
function ShipmentLabelsFromJSON(json) {
|
|
19
|
+
return ShipmentLabelsFromJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
exports.ShipmentLabelsFromJSON = ShipmentLabelsFromJSON;
|
|
22
|
+
function ShipmentLabelsFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'pdf': !(0, runtime_1.exists)(json, 'pdf') ? undefined : json['pdf'],
|
|
28
|
+
'zpl': !(0, runtime_1.exists)(json, 'zpl') ? undefined : json['zpl'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ShipmentLabelsFromJSONTyped = ShipmentLabelsFromJSONTyped;
|
|
32
|
+
function ShipmentLabelsToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'pdf': value.pdf,
|
|
41
|
+
'zpl': value.zpl,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ShipmentLabelsToJSON = ShipmentLabelsToJSON;
|
|
@@ -13,6 +13,7 @@ export * from './RestError';
|
|
|
13
13
|
export * from './Shipment';
|
|
14
14
|
export * from './ShipmentCreationParameters';
|
|
15
15
|
export * from './ShipmentError';
|
|
16
|
+
export * from './ShipmentLabels';
|
|
16
17
|
export * from './ShipmentParcel';
|
|
17
18
|
export * from './ShipmentParcelStatus';
|
|
18
19
|
export * from './SkybillLink';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./RestError"), exports);
|
|
|
29
29
|
__exportStar(require("./Shipment"), exports);
|
|
30
30
|
__exportStar(require("./ShipmentCreationParameters"), exports);
|
|
31
31
|
__exportStar(require("./ShipmentError"), exports);
|
|
32
|
+
__exportStar(require("./ShipmentLabels"), exports);
|
|
32
33
|
__exportStar(require("./ShipmentParcel"), exports);
|
|
33
34
|
__exportStar(require("./ShipmentParcelStatus"), exports);
|
|
34
35
|
__exportStar(require("./SkybillLink"), exports);
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|
|
@@ -66,6 +66,7 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
+
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
69
70
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
70
71
|
/**
|
|
71
72
|
* @export
|
|
@@ -92,4 +93,5 @@ var RestErrorMessageEnum;
|
|
|
92
93
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
93
94
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
94
95
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
+
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
95
97
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RestError
|
|
22
22
|
*/
|
|
23
23
|
code: RestErrorCodeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
|
|
25
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,7 +54,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
57
|
+
CODE018 = "CODE018",
|
|
58
|
+
CODE019 = "CODE019"
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* @export
|
|
@@ -79,5 +80,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
79
80
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
80
81
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
81
82
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
82
|
-
MESSAGE018 = "Trial already used"
|
|
83
|
+
MESSAGE018 = "Trial already used",
|
|
84
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
83
85
|
}
|