@lcdp/api-react-rest-client 2.1.2-develop.4466791376 → 2.1.2
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 +4 -6
- package/auth/src/models/RestError.js +0 -2
- package/banking-operation/src/models/HttpLink.d.ts +1 -1
- package/configuration/src/models/RestError.d.ts +4 -6
- package/configuration/src/models/RestError.js +0 -2
- package/content/src/models/RestError.d.ts +4 -6
- package/content/src/models/RestError.js +0 -2
- 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 +4 -6
- package/favorite/src/models/RestError.js +0 -2
- package/inventory/src/models/HttpLink.d.ts +1 -1
- package/inventory/src/models/RestError.d.ts +4 -6
- package/inventory/src/models/RestError.js +0 -2
- package/invoice/src/models/HttpLink.d.ts +1 -1
- package/invoice/src/models/RestError.d.ts +4 -6
- package/invoice/src/models/RestError.js +0 -2
- 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 +4 -6
- package/laboratory-store/src/models/RestError.js +0 -2
- package/laboratory-store-log/src/models/HttpLink.d.ts +1 -1
- package/lexicon/src/models/RestError.d.ts +4 -6
- package/lexicon/src/models/RestError.js +0 -2
- package/litigation/src/models/RestError.d.ts +4 -6
- package/litigation/src/models/RestError.js +0 -2
- package/magic-cart/src/models/HttpLink.d.ts +1 -1
- package/mangopay-hook/src/models/RestError.d.ts +4 -6
- package/mangopay-hook/src/models/RestError.js +0 -2
- 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 +4 -6
- package/notification/src/models/RestError.js +0 -2
- package/order/src/models/HttpLink.d.ts +1 -1
- package/order/src/models/MetaOrder.d.ts +6 -6
- package/order/src/models/MetaOrder.js +8 -7
- package/order/src/models/MetaOrderPrices.d.ts +9 -9
- package/order/src/models/MetaOrderPrices.js +10 -9
- package/order/src/models/MetaOrderWarning.d.ts +5 -5
- package/order/src/models/MetaOrderWarning.js +4 -4
- package/order/src/models/Order.d.ts +28 -28
- package/order/src/models/Order.js +31 -31
- package/order/src/models/OrderItemPrices.d.ts +1 -1
- package/order/src/models/OrderItemPrices.js +2 -2
- package/order/src/models/RestError.d.ts +4 -6
- package/order/src/models/RestError.js +0 -2
- 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 +4 -6
- package/product/src/models/RestError.js +0 -2
- 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 +4 -6
- package/pub/src/models/RestError.js +0 -2
- 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 +4 -6
- package/rfx/src/models/RestError.js +0 -2
- 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 +4 -6
- package/sale-offer/src/models/RestError.js +0 -2
- package/sale-offer-log/src/models/HttpLink.d.ts +1 -1
- package/servant/src/models/RestError.d.ts +4 -6
- package/servant/src/models/RestError.js +0 -2
- package/shipment/src/models/HttpLink.d.ts +1 -1
- package/shipment/src/models/RestError.d.ts +4 -6
- package/shipment/src/models/RestError.js +0 -2
- package/shipment/src/models/Shipment.d.ts +3 -3
- package/shipment/src/models/Shipment.js +3 -3
- package/shipment/src/models/index.d.ts +0 -1
- package/shipment/src/models/index.js +0 -1
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +2 -15
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +4 -18
- package/shopping-cart/src/models/CartSubCart.d.ts +7 -13
- package/shopping-cart/src/models/CartSubCart.js +8 -9
- package/shopping-cart/src/models/CartSubCartLine.d.ts +5 -5
- package/shopping-cart/src/models/CartSubCartLine.js +5 -5
- package/shopping-cart/src/models/CartSubCartTransport.d.ts +4 -10
- package/shopping-cart/src/models/CartSubCartTransport.js +4 -5
- package/shopping-cart/src/models/HttpLink.d.ts +1 -1
- package/shopping-cart/src/models/RestError.d.ts +4 -6
- package/shopping-cart/src/models/RestError.js +0 -2
- package/statistic/src/models/HttpLink.d.ts +1 -1
- package/statistic/src/models/RestError.d.ts +4 -6
- package/statistic/src/models/RestError.js +0 -2
- package/subscription/src/models/HttpLink.d.ts +1 -1
- package/subscription/src/models/RestError.d.ts +4 -6
- package/subscription/src/models/RestError.js +0 -2
- package/thread/src/models/HttpLink.d.ts +1 -1
- package/ubo/src/models/RestError.d.ts +4 -6
- package/ubo/src/models/RestError.js +0 -2
- package/user/src/models/HttpLink.d.ts +1 -1
- package/user/src/models/RestError.d.ts +4 -6
- package/user/src/models/RestError.js +0 -2
- package/wish/src/models/HttpLink.d.ts +1 -1
- package/wish/src/models/RestError.d.ts +4 -6
- package/wish/src/models/RestError.js +0 -2
- package/shipment/src/models/ShipmentLabels.d.ts +0 -33
- package/shipment/src/models/ShipmentLabels.js +0 -44
|
@@ -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
|
|
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
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,8 +54,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
58
|
-
CODE019 = "CODE019"
|
|
57
|
+
CODE018 = "CODE018"
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
60
|
* @export
|
|
@@ -80,6 +79,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
80
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
81
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
81
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
|
-
MESSAGE018 = "Trial already used"
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
85
83
|
}
|
|
@@ -66,7 +66,6 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
-
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
70
|
/**
|
|
72
71
|
* @export
|
|
@@ -93,5 +92,4 @@ var RestErrorMessageEnum;
|
|
|
93
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
94
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
94
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
-
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
97
95
|
})(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
|
|
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
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,8 +54,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
58
|
-
CODE019 = "CODE019"
|
|
57
|
+
CODE018 = "CODE018"
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
60
|
* @export
|
|
@@ -80,6 +79,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
80
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
81
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
81
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
|
-
MESSAGE018 = "Trial already used"
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
85
83
|
}
|
|
@@ -66,7 +66,6 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
-
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
70
|
/**
|
|
72
71
|
* @export
|
|
@@ -93,5 +92,4 @@ var RestErrorMessageEnum;
|
|
|
93
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
94
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
94
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
-
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
97
95
|
})(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 { HttpLink } from './HttpLink';
|
|
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 {HttpLink}
|
|
29
29
|
* @memberof Shipment
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
label?: HttpLink;
|
|
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 HttpLink_1 = require("./HttpLink");
|
|
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
|
+
'label': !(0, runtime_1.exists)(json, 'label') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['label']),
|
|
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
|
+
'label': (0, HttpLink_1.HttpLinkToJSON)(value.label),
|
|
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()),
|
|
@@ -13,7 +13,6 @@ export * from './RestError';
|
|
|
13
13
|
export * from './Shipment';
|
|
14
14
|
export * from './ShipmentCreationParameters';
|
|
15
15
|
export * from './ShipmentError';
|
|
16
|
-
export * from './ShipmentLabels';
|
|
17
16
|
export * from './ShipmentParcel';
|
|
18
17
|
export * from './ShipmentParcelStatus';
|
|
19
18
|
export * from './SkybillLink';
|
|
@@ -29,7 +29,6 @@ __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);
|
|
33
32
|
__exportStar(require("./ShipmentParcel"), exports);
|
|
34
33
|
__exportStar(require("./ShipmentParcelStatus"), exports);
|
|
35
34
|
__exportStar(require("./SkybillLink"), exports);
|
|
@@ -17,9 +17,6 @@ export interface DeleteCurrentCartSubCartRequest {
|
|
|
17
17
|
export interface GetCurrentCartSubCartRequest {
|
|
18
18
|
subCartId: number;
|
|
19
19
|
}
|
|
20
|
-
export interface GetCurrentCartSubCartsRequest {
|
|
21
|
-
orderBy?: GetCurrentCartSubCartsOrderByEnum;
|
|
22
|
-
}
|
|
23
20
|
/**
|
|
24
21
|
* no description
|
|
25
22
|
*/
|
|
@@ -43,19 +40,9 @@ export declare class ManageCartSubCartApi extends BaseAPI {
|
|
|
43
40
|
/**
|
|
44
41
|
* Get user cart split by SubCart
|
|
45
42
|
*/
|
|
46
|
-
getCurrentCartSubCartsRaw(
|
|
43
|
+
getCurrentCartSubCartsRaw(): Promise<ApiResponse<Array<CartSubCart> | BlobWithMeta>>;
|
|
47
44
|
/**
|
|
48
45
|
* Get user cart split by SubCart
|
|
49
46
|
*/
|
|
50
|
-
getCurrentCartSubCarts(
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @export
|
|
54
|
-
* @enum {string}
|
|
55
|
-
*/
|
|
56
|
-
export declare enum GetCurrentCartSubCartsOrderByEnum {
|
|
57
|
-
UPDATEDATasc = "UPDATED_AT:asc",
|
|
58
|
-
UPDATEDATdesc = "UPDATED_AT:desc",
|
|
59
|
-
TOTALEXCLUDINGTAXESasc = "TOTAL_EXCLUDING_TAXES:asc",
|
|
60
|
-
TOTALEXCLUDINGTAXESdesc = "TOTAL_EXCLUDING_TAXES:desc"
|
|
47
|
+
getCurrentCartSubCarts(): Promise<Array<CartSubCart> | BlobWithMeta>;
|
|
61
48
|
}
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.ManageCartSubCartApi = void 0;
|
|
68
68
|
var runtime_1 = require("../runtime");
|
|
69
69
|
var models_1 = require("../models");
|
|
70
70
|
/**
|
|
@@ -211,16 +211,13 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
211
211
|
/**
|
|
212
212
|
* Get user cart split by SubCart
|
|
213
213
|
*/
|
|
214
|
-
ManageCartSubCartApi.prototype.getCurrentCartSubCartsRaw = function (
|
|
214
|
+
ManageCartSubCartApi.prototype.getCurrentCartSubCartsRaw = function () {
|
|
215
215
|
return __awaiter(this, void 0, void 0, function () {
|
|
216
216
|
var queryParameters, headerParameters, token, tokenString, response, contentType, response_3;
|
|
217
217
|
return __generator(this, function (_a) {
|
|
218
218
|
switch (_a.label) {
|
|
219
219
|
case 0:
|
|
220
220
|
queryParameters = {};
|
|
221
|
-
if (requestParameters.orderBy !== undefined) {
|
|
222
|
-
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
223
|
-
}
|
|
224
221
|
headerParameters = {};
|
|
225
222
|
if (this.configuration && this.configuration.apiKey) {
|
|
226
223
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
@@ -267,12 +264,12 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
267
264
|
/**
|
|
268
265
|
* Get user cart split by SubCart
|
|
269
266
|
*/
|
|
270
|
-
ManageCartSubCartApi.prototype.getCurrentCartSubCarts = function (
|
|
267
|
+
ManageCartSubCartApi.prototype.getCurrentCartSubCarts = function () {
|
|
271
268
|
return __awaiter(this, void 0, void 0, function () {
|
|
272
269
|
var response;
|
|
273
270
|
return __generator(this, function (_a) {
|
|
274
271
|
switch (_a.label) {
|
|
275
|
-
case 0: return [4 /*yield*/, this.getCurrentCartSubCartsRaw(
|
|
272
|
+
case 0: return [4 /*yield*/, this.getCurrentCartSubCartsRaw()];
|
|
276
273
|
case 1:
|
|
277
274
|
response = _a.sent();
|
|
278
275
|
return [4 /*yield*/, response.value()];
|
|
@@ -284,14 +281,3 @@ var ManageCartSubCartApi = /** @class */ (function (_super) {
|
|
|
284
281
|
return ManageCartSubCartApi;
|
|
285
282
|
}(runtime_1.BaseAPI));
|
|
286
283
|
exports.ManageCartSubCartApi = ManageCartSubCartApi;
|
|
287
|
-
/**
|
|
288
|
-
* @export
|
|
289
|
-
* @enum {string}
|
|
290
|
-
*/
|
|
291
|
-
var GetCurrentCartSubCartsOrderByEnum;
|
|
292
|
-
(function (GetCurrentCartSubCartsOrderByEnum) {
|
|
293
|
-
GetCurrentCartSubCartsOrderByEnum["UPDATEDATasc"] = "UPDATED_AT:asc";
|
|
294
|
-
GetCurrentCartSubCartsOrderByEnum["UPDATEDATdesc"] = "UPDATED_AT:desc";
|
|
295
|
-
GetCurrentCartSubCartsOrderByEnum["TOTALEXCLUDINGTAXESasc"] = "TOTAL_EXCLUDING_TAXES:asc";
|
|
296
|
-
GetCurrentCartSubCartsOrderByEnum["TOTALEXCLUDINGTAXESdesc"] = "TOTAL_EXCLUDING_TAXES:desc";
|
|
297
|
-
})(GetCurrentCartSubCartsOrderByEnum = exports.GetCurrentCartSubCartsOrderByEnum || (exports.GetCurrentCartSubCartsOrderByEnum = {}));
|
|
@@ -23,49 +23,43 @@ export interface CartSubCart {
|
|
|
23
23
|
* @type {number}
|
|
24
24
|
* @memberof CartSubCart
|
|
25
25
|
*/
|
|
26
|
-
id
|
|
27
|
-
/**
|
|
28
|
-
* Last update date of this sub cart
|
|
29
|
-
* @type {Date}
|
|
30
|
-
* @memberof CartSubCart
|
|
31
|
-
*/
|
|
32
|
-
updatedAt: Date;
|
|
26
|
+
id?: number;
|
|
33
27
|
/**
|
|
34
28
|
*
|
|
35
29
|
* @type {CartSubCartTransport}
|
|
36
30
|
* @memberof CartSubCart
|
|
37
31
|
*/
|
|
38
|
-
transport
|
|
32
|
+
transport?: CartSubCartTransport;
|
|
39
33
|
/**
|
|
40
34
|
*
|
|
41
35
|
* @type {SellerLink}
|
|
42
36
|
* @memberof CartSubCart
|
|
43
37
|
*/
|
|
44
|
-
seller
|
|
38
|
+
seller?: SellerLink;
|
|
45
39
|
/**
|
|
46
40
|
*
|
|
47
41
|
* @type {number}
|
|
48
42
|
* @memberof CartSubCart
|
|
49
43
|
*/
|
|
50
|
-
lineCount
|
|
44
|
+
lineCount?: number;
|
|
51
45
|
/**
|
|
52
46
|
*
|
|
53
47
|
* @type {HttpLink}
|
|
54
48
|
* @memberof CartSubCart
|
|
55
49
|
*/
|
|
56
|
-
lines
|
|
50
|
+
lines?: HttpLink;
|
|
57
51
|
/**
|
|
58
52
|
* Total buyer commission for this sub cart
|
|
59
53
|
* @type {number}
|
|
60
54
|
* @memberof CartSubCart
|
|
61
55
|
*/
|
|
62
|
-
totalBuyerCommissionExcludingTaxes
|
|
56
|
+
totalBuyerCommissionExcludingTaxes?: number;
|
|
63
57
|
/**
|
|
64
58
|
* Total price of the cart excluding taxes
|
|
65
59
|
* @type {number}
|
|
66
60
|
* @memberof CartSubCart
|
|
67
61
|
*/
|
|
68
|
-
totalExcludingTaxes
|
|
62
|
+
totalExcludingTaxes?: number;
|
|
69
63
|
}
|
|
70
64
|
export declare function CartSubCartFromJSON(json: any): CartSubCart;
|
|
71
65
|
export declare function CartSubCartFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSubCart;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CartSubCartToJSON = exports.CartSubCartFromJSONTyped = exports.CartSubCartFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
var CartSubCartTransport_1 = require("./CartSubCartTransport");
|
|
18
19
|
var HttpLink_1 = require("./HttpLink");
|
|
19
20
|
var SellerLink_1 = require("./SellerLink");
|
|
@@ -26,14 +27,13 @@ function CartSubCartFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
return json;
|
|
27
28
|
}
|
|
28
29
|
return {
|
|
29
|
-
'id': json['id'],
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'totalExcludingTaxes': json['totalExcludingTaxes'],
|
|
30
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
31
|
+
'transport': !(0, runtime_1.exists)(json, 'transport') ? undefined : (0, CartSubCartTransport_1.CartSubCartTransportFromJSON)(json['transport']),
|
|
32
|
+
'seller': !(0, runtime_1.exists)(json, 'seller') ? undefined : (0, SellerLink_1.SellerLinkFromJSON)(json['seller']),
|
|
33
|
+
'lineCount': !(0, runtime_1.exists)(json, 'lineCount') ? undefined : json['lineCount'],
|
|
34
|
+
'lines': !(0, runtime_1.exists)(json, 'lines') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['lines']),
|
|
35
|
+
'totalBuyerCommissionExcludingTaxes': !(0, runtime_1.exists)(json, 'totalBuyerCommissionExcludingTaxes') ? undefined : json['totalBuyerCommissionExcludingTaxes'],
|
|
36
|
+
'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
exports.CartSubCartFromJSONTyped = CartSubCartFromJSONTyped;
|
|
@@ -46,7 +46,6 @@ function CartSubCartToJSON(value) {
|
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
'id': value.id,
|
|
49
|
-
'updatedAt': (value.updatedAt.toISOString()),
|
|
50
49
|
'transport': (0, CartSubCartTransport_1.CartSubCartTransportToJSON)(value.transport),
|
|
51
50
|
'seller': (0, SellerLink_1.SellerLinkToJSON)(value.seller),
|
|
52
51
|
'lineCount': value.lineCount,
|
|
@@ -22,25 +22,25 @@ export interface CartSubCartLine {
|
|
|
22
22
|
* @type {number}
|
|
23
23
|
* @memberof CartSubCartLine
|
|
24
24
|
*/
|
|
25
|
-
id
|
|
25
|
+
id?: number;
|
|
26
26
|
/**
|
|
27
27
|
* Quantity desired by the buyer
|
|
28
28
|
* @type {number}
|
|
29
29
|
* @memberof CartSubCartLine
|
|
30
30
|
*/
|
|
31
|
-
quantity
|
|
31
|
+
quantity?: number;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {ProductLink}
|
|
35
35
|
* @memberof CartSubCartLine
|
|
36
36
|
*/
|
|
37
|
-
product
|
|
37
|
+
product?: ProductLink;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {SaleOfferLink}
|
|
41
41
|
* @memberof CartSubCartLine
|
|
42
42
|
*/
|
|
43
|
-
saleOffer
|
|
43
|
+
saleOffer?: SaleOfferLink;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {number}
|
|
@@ -52,7 +52,7 @@ export interface CartSubCartLine {
|
|
|
52
52
|
* @type {number}
|
|
53
53
|
* @memberof CartSubCartLine
|
|
54
54
|
*/
|
|
55
|
-
totalExcludingTaxes
|
|
55
|
+
totalExcludingTaxes?: number;
|
|
56
56
|
}
|
|
57
57
|
export declare function CartSubCartLineFromJSON(json: any): CartSubCartLine;
|
|
58
58
|
export declare function CartSubCartLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSubCartLine;
|
|
@@ -26,12 +26,12 @@ function CartSubCartLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
-
'id': json['id'],
|
|
30
|
-
'quantity': json['quantity'],
|
|
31
|
-
'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
32
|
-
'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
|
|
29
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
30
|
+
'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
|
|
31
|
+
'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
32
|
+
'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
|
|
33
33
|
'distributionRangeId': !(0, runtime_1.exists)(json, 'distributionRangeId') ? undefined : json['distributionRangeId'],
|
|
34
|
-
'totalExcludingTaxes': json['totalExcludingTaxes'],
|
|
34
|
+
'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
exports.CartSubCartLineFromJSONTyped = CartSubCartLineFromJSONTyped;
|
|
@@ -20,25 +20,19 @@ export interface CartSubCartTransport {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof CartSubCartTransport
|
|
22
22
|
*/
|
|
23
|
-
minimumPrice
|
|
23
|
+
minimumPrice?: number | null;
|
|
24
24
|
/**
|
|
25
25
|
* Total shipping fees price of the sub cart excluding taxes
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof CartSubCartTransport
|
|
28
28
|
*/
|
|
29
|
-
totalShippingFeesExcludingTaxes
|
|
29
|
+
totalShippingFeesExcludingTaxes?: number;
|
|
30
30
|
/**
|
|
31
|
-
* Limit in euro (totalExcludingTaxes) to achieve to have free
|
|
31
|
+
* Limit in euro (totalExcludingTaxes) to achieve to have free sheeping fees. If no fee carriage threshold, value is null.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof CartSubCartTransport
|
|
34
34
|
*/
|
|
35
|
-
freeCarriageThreshold
|
|
36
|
-
/**
|
|
37
|
-
* Delivery delay in days
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof CartSubCartTransport
|
|
40
|
-
*/
|
|
41
|
-
deliveryDelay: number;
|
|
35
|
+
freeCarriageThreshold?: number | null;
|
|
42
36
|
}
|
|
43
37
|
export declare function CartSubCartTransportFromJSON(json: any): CartSubCartTransport;
|
|
44
38
|
export declare function CartSubCartTransportFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSubCartTransport;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CartSubCartTransportToJSON = exports.CartSubCartTransportFromJSONTyped = exports.CartSubCartTransportFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
function CartSubCartTransportFromJSON(json) {
|
|
18
19
|
return CartSubCartTransportFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -23,10 +24,9 @@ function CartSubCartTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
return json;
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
26
|
-
'minimumPrice': json['minimumPrice'],
|
|
27
|
-
'totalShippingFeesExcludingTaxes': json['totalShippingFeesExcludingTaxes'],
|
|
28
|
-
'freeCarriageThreshold': json['freeCarriageThreshold'],
|
|
29
|
-
'deliveryDelay': json['deliveryDelay'],
|
|
27
|
+
'minimumPrice': !(0, runtime_1.exists)(json, 'minimumPrice') ? json['minimumPrice'] : json['minimumPrice'],
|
|
28
|
+
'totalShippingFeesExcludingTaxes': !(0, runtime_1.exists)(json, 'totalShippingFeesExcludingTaxes') ? undefined : json['totalShippingFeesExcludingTaxes'],
|
|
29
|
+
'freeCarriageThreshold': !(0, runtime_1.exists)(json, 'freeCarriageThreshold') ? json['freeCarriageThreshold'] : json['freeCarriageThreshold'],
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
exports.CartSubCartTransportFromJSONTyped = CartSubCartTransportFromJSONTyped;
|
|
@@ -41,7 +41,6 @@ function CartSubCartTransportToJSON(value) {
|
|
|
41
41
|
'minimumPrice': value.minimumPrice,
|
|
42
42
|
'totalShippingFeesExcludingTaxes': value.totalShippingFeesExcludingTaxes,
|
|
43
43
|
'freeCarriageThreshold': value.freeCarriageThreshold,
|
|
44
|
-
'deliveryDelay': value.deliveryDelay,
|
|
45
44
|
};
|
|
46
45
|
}
|
|
47
46
|
exports.CartSubCartTransportToJSON = CartSubCartTransportToJSON;
|
|
@@ -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
|
|
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
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,8 +54,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
58
|
-
CODE019 = "CODE019"
|
|
57
|
+
CODE018 = "CODE018"
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
60
|
* @export
|
|
@@ -80,6 +79,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
80
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
81
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
81
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
|
-
MESSAGE018 = "Trial already used"
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
85
83
|
}
|
|
@@ -66,7 +66,6 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
-
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
70
|
/**
|
|
72
71
|
* @export
|
|
@@ -93,5 +92,4 @@ var RestErrorMessageEnum;
|
|
|
93
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
94
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
94
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
-
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
97
95
|
})(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
|
|
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
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -54,8 +54,7 @@ export declare enum RestErrorCodeEnum {
|
|
|
54
54
|
CODE015 = "CODE015",
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
|
-
CODE018 = "CODE018"
|
|
58
|
-
CODE019 = "CODE019"
|
|
57
|
+
CODE018 = "CODE018"
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
60
|
* @export
|
|
@@ -80,6 +79,5 @@ export declare enum RestErrorMessageEnum {
|
|
|
80
79
|
MESSAGE015 = "Can not release quantity greater than claimed",
|
|
81
80
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
81
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
|
-
MESSAGE018 = "Trial already used"
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
82
|
+
MESSAGE018 = "Trial already used"
|
|
85
83
|
}
|
|
@@ -66,7 +66,6 @@ var RestErrorCodeEnum;
|
|
|
66
66
|
RestErrorCodeEnum["CODE016"] = "CODE016";
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
|
-
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
69
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
70
|
/**
|
|
72
71
|
* @export
|
|
@@ -93,5 +92,4 @@ var RestErrorMessageEnum;
|
|
|
93
92
|
RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
|
|
94
93
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
94
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
|
-
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
97
95
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|