@lcdp/api-react-rest-client 2.5.9-develop.7030419516 → 2.5.9-develop.7111707220
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/RestError.d.ts +6 -4
- package/auth/src/models/RestError.js +2 -0
- package/catalog/src/models/RestError.d.ts +6 -4
- package/catalog/src/models/RestError.js +2 -0
- 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/favorite/src/models/RestError.d.ts +6 -4
- package/favorite/src/models/RestError.js +2 -0
- package/inventory/src/models/RestError.d.ts +6 -4
- package/inventory/src/models/RestError.js +2 -0
- package/invoice/src/models/RestError.d.ts +6 -4
- package/invoice/src/models/RestError.js +2 -0
- package/laboratory-store/src/models/RestError.d.ts +6 -4
- package/laboratory-store/src/models/RestError.js +2 -0
- 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/mangopay-hook/src/models/RestError.d.ts +6 -4
- package/mangopay-hook/src/models/RestError.js +2 -0
- package/notification/src/models/Notification.d.ts +6 -0
- package/notification/src/models/Notification.js +2 -0
- package/notification/src/models/NotificationTypeId.d.ts +5 -0
- package/notification/src/models/NotificationTypeId.js +5 -0
- package/notification/src/models/RestError.d.ts +6 -4
- package/notification/src/models/RestError.js +2 -0
- package/order/src/apis/ManageOrderApi.d.ts +7 -17
- package/order/src/apis/ManageOrderApi.js +10 -90
- package/order/src/apis/ManageOrderItemApi.d.ts +4 -4
- package/order/src/apis/ManageOrderItemApi.js +4 -4
- package/order/src/apis/SearchOrderItemApi.d.ts +2 -0
- package/order/src/apis/SearchOrderItemApi.js +2 -0
- package/order/src/models/Order.d.ts +20 -1
- package/order/src/models/Order.js +7 -0
- package/order/src/models/OrderJournal.d.ts +19 -0
- package/order/src/models/OrderJournal.js +8 -0
- package/order/src/models/OrderStatus.d.ts +4 -2
- package/order/src/models/OrderStatus.js +4 -2
- package/order/src/models/OrderStatusReason.d.ts +24 -0
- package/order/src/models/OrderStatusReason.js +39 -0
- package/order/src/models/OrderUpdateParameters.d.ts +20 -0
- package/order/src/models/OrderUpdateParameters.js +8 -0
- package/order/src/models/RestError.d.ts +6 -4
- package/order/src/models/RestError.js +2 -0
- package/order/src/models/UpdateOrderStatusParameters.d.ts +3 -5
- package/order/src/models/UpdateOrderStatusParameters.js +2 -4
- package/order/src/models/index.d.ts +1 -0
- package/order/src/models/index.js +1 -0
- package/order-log/src/models/OrderLog.d.ts +19 -0
- package/order-log/src/models/OrderLog.js +3 -2
- package/order-log/src/models/OrderLogAllOf.d.ts +19 -0
- package/order-log/src/models/OrderLogAllOf.js +7 -0
- package/order-log/src/models/OrderStatusReason.d.ts +24 -0
- package/order-log/src/models/OrderStatusReason.js +39 -0
- package/order-log/src/models/index.d.ts +1 -0
- package/order-log/src/models/index.js +1 -0
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +6 -4
- package/product/src/models/RestError.js +2 -0
- package/pub/src/models/RestError.d.ts +6 -4
- package/pub/src/models/RestError.js +2 -0
- package/rfx/src/models/RestError.d.ts +6 -4
- package/rfx/src/models/RestError.js +2 -0
- package/sale-offer/src/models/RestError.d.ts +6 -4
- package/sale-offer/src/models/RestError.js +2 -0
- package/servant/src/models/RestError.d.ts +6 -4
- package/servant/src/models/RestError.js +2 -0
- package/shipment/src/models/RestError.d.ts +6 -4
- package/shipment/src/models/RestError.js +2 -0
- package/shopping-cart/src/models/RestError.d.ts +6 -4
- package/shopping-cart/src/models/RestError.js +2 -0
- package/statistic/src/models/RestError.d.ts +6 -4
- package/statistic/src/models/RestError.js +2 -0
- package/subscription/src/models/RestError.d.ts +6 -4
- package/subscription/src/models/RestError.js +2 -0
- package/ubo/src/models/RestError.d.ts +6 -4
- package/ubo/src/models/RestError.js +2 -0
- package/user/src/models/NotificationTypeId.d.ts +5 -0
- package/user/src/models/NotificationTypeId.js +5 -0
- package/user/src/models/RestError.d.ts +6 -4
- package/user/src/models/RestError.js +2 -0
- package/wish/src/models/RestError.d.ts +6 -4
- package/wish/src/models/RestError.js +2 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP orders
|
|
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.OrderStatusReasonToJSON = exports.OrderStatusReasonFromJSONTyped = exports.OrderStatusReasonFromJSON = exports.OrderStatusReason = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Reason of the status change or current status. Note that if you do not give any reason during status change, field will be set to OTHER
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var OrderStatusReason;
|
|
23
|
+
(function (OrderStatusReason) {
|
|
24
|
+
OrderStatusReason["MAXQUANTITY"] = "MAX_QUANTITY";
|
|
25
|
+
OrderStatusReason["OUTDATEDAD"] = "OUTDATED_AD";
|
|
26
|
+
OrderStatusReason["OTHER"] = "OTHER";
|
|
27
|
+
})(OrderStatusReason = exports.OrderStatusReason || (exports.OrderStatusReason = {}));
|
|
28
|
+
function OrderStatusReasonFromJSON(json) {
|
|
29
|
+
return OrderStatusReasonFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.OrderStatusReasonFromJSON = OrderStatusReasonFromJSON;
|
|
32
|
+
function OrderStatusReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.OrderStatusReasonFromJSONTyped = OrderStatusReasonFromJSONTyped;
|
|
36
|
+
function OrderStatusReasonToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.OrderStatusReasonToJSON = OrderStatusReasonToJSON;
|
|
@@ -9,12 +9,32 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { OrderStatusReason } from './OrderStatusReason';
|
|
13
|
+
import { UpdateOrderStatusParameters } from './UpdateOrderStatusParameters';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
15
17
|
* @interface OrderUpdateParameters
|
|
16
18
|
*/
|
|
17
19
|
export interface OrderUpdateParameters {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {UpdateOrderStatusParameters}
|
|
23
|
+
* @memberof OrderUpdateParameters
|
|
24
|
+
*/
|
|
25
|
+
status?: UpdateOrderStatusParameters;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {OrderStatusReason}
|
|
29
|
+
* @memberof OrderUpdateParameters
|
|
30
|
+
*/
|
|
31
|
+
statusReason?: OrderStatusReason;
|
|
32
|
+
/**
|
|
33
|
+
* Smart sentence given detail about the new status
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof OrderUpdateParameters
|
|
36
|
+
*/
|
|
37
|
+
statusComment?: string | null;
|
|
18
38
|
/**
|
|
19
39
|
* Labels of the order
|
|
20
40
|
* @type {Array<string>}
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.OrderUpdateParametersToJSON = exports.OrderUpdateParametersFromJSONTyped = exports.OrderUpdateParametersFromJSON = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var OrderStatusReason_1 = require("./OrderStatusReason");
|
|
19
|
+
var UpdateOrderStatusParameters_1 = require("./UpdateOrderStatusParameters");
|
|
18
20
|
function OrderUpdateParametersFromJSON(json) {
|
|
19
21
|
return OrderUpdateParametersFromJSONTyped(json, false);
|
|
20
22
|
}
|
|
@@ -24,6 +26,9 @@ function OrderUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
26
|
return json;
|
|
25
27
|
}
|
|
26
28
|
return {
|
|
29
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, UpdateOrderStatusParameters_1.UpdateOrderStatusParametersFromJSON)(json['status']),
|
|
30
|
+
'statusReason': !(0, runtime_1.exists)(json, 'statusReason') ? undefined : (0, OrderStatusReason_1.OrderStatusReasonFromJSON)(json['statusReason']),
|
|
31
|
+
'statusComment': !(0, runtime_1.exists)(json, 'statusComment') ? json['statusComment'] : json['statusComment'],
|
|
27
32
|
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
28
33
|
};
|
|
29
34
|
}
|
|
@@ -36,6 +41,9 @@ function OrderUpdateParametersToJSON(value) {
|
|
|
36
41
|
return null;
|
|
37
42
|
}
|
|
38
43
|
return {
|
|
44
|
+
'status': (0, UpdateOrderStatusParameters_1.UpdateOrderStatusParametersToJSON)(value.status),
|
|
45
|
+
'statusReason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.statusReason),
|
|
46
|
+
'statusComment': value.statusComment,
|
|
39
47
|
'tags': value.tags,
|
|
40
48
|
};
|
|
41
49
|
}
|
|
@@ -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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `CODE020` - ETag do not match
|
|
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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `MESSAGE020` - ETag do not match
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -55,7 +55,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
57
|
CODE018 = "CODE018",
|
|
58
|
-
CODE019 = "CODE019"
|
|
58
|
+
CODE019 = "CODE019",
|
|
59
|
+
CODE020 = "CODE020"
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @export
|
|
@@ -81,5 +82,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
81
82
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
83
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
84
|
MESSAGE018 = "Trial already used",
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
85
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users",
|
|
86
|
+
MESSAGE020 = "ETag do not match"
|
|
85
87
|
}
|
|
@@ -67,6 +67,7 @@ var RestErrorCodeEnum;
|
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
69
|
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
|
+
RestErrorCodeEnum["CODE020"] = "CODE020";
|
|
70
71
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
72
|
/**
|
|
72
73
|
* @export
|
|
@@ -94,4 +95,5 @@ var RestErrorMessageEnum;
|
|
|
94
95
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
96
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
97
|
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
98
|
+
RestErrorMessageEnum["MESSAGE020"] = "ETag do not match";
|
|
97
99
|
})(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
|
|
@@ -15,16 +15,14 @@
|
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
17
|
export declare enum UpdateOrderStatusParameters {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
WAITINGFORSELLERACCEPTANCE = "WAITING_FOR_SELLER_ACCEPTANCE",
|
|
19
|
+
WAITINGFORBUYERACCEPTANCE = "WAITING_FOR_BUYER_ACCEPTANCE",
|
|
20
20
|
WAITINGFORSENDING = "WAITING_FOR_SENDING",
|
|
21
|
-
SENDINGDELAY = "SENDING_DELAY",
|
|
22
21
|
DELIVERYONGOING = "DELIVERY_ONGOING",
|
|
23
22
|
WAITINGFORVALIDATION = "WAITING_FOR_VALIDATION",
|
|
24
23
|
CANCELED = "CANCELED",
|
|
25
24
|
ARCHIVED = "ARCHIVED",
|
|
26
|
-
WAITINGFORADMINVALIDATION = "WAITING_FOR_ADMIN_VALIDATION"
|
|
27
|
-
DELIVERYLATE = "DELIVERY_LATE"
|
|
25
|
+
WAITINGFORADMINVALIDATION = "WAITING_FOR_ADMIN_VALIDATION"
|
|
28
26
|
}
|
|
29
27
|
export declare function UpdateOrderStatusParametersFromJSON(json: any): UpdateOrderStatusParameters;
|
|
30
28
|
export declare function UpdateOrderStatusParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderStatusParameters;
|
|
@@ -21,16 +21,14 @@ exports.UpdateOrderStatusParametersToJSON = exports.UpdateOrderStatusParametersF
|
|
|
21
21
|
*/
|
|
22
22
|
var UpdateOrderStatusParameters;
|
|
23
23
|
(function (UpdateOrderStatusParameters) {
|
|
24
|
-
UpdateOrderStatusParameters["
|
|
25
|
-
UpdateOrderStatusParameters["
|
|
24
|
+
UpdateOrderStatusParameters["WAITINGFORSELLERACCEPTANCE"] = "WAITING_FOR_SELLER_ACCEPTANCE";
|
|
25
|
+
UpdateOrderStatusParameters["WAITINGFORBUYERACCEPTANCE"] = "WAITING_FOR_BUYER_ACCEPTANCE";
|
|
26
26
|
UpdateOrderStatusParameters["WAITINGFORSENDING"] = "WAITING_FOR_SENDING";
|
|
27
|
-
UpdateOrderStatusParameters["SENDINGDELAY"] = "SENDING_DELAY";
|
|
28
27
|
UpdateOrderStatusParameters["DELIVERYONGOING"] = "DELIVERY_ONGOING";
|
|
29
28
|
UpdateOrderStatusParameters["WAITINGFORVALIDATION"] = "WAITING_FOR_VALIDATION";
|
|
30
29
|
UpdateOrderStatusParameters["CANCELED"] = "CANCELED";
|
|
31
30
|
UpdateOrderStatusParameters["ARCHIVED"] = "ARCHIVED";
|
|
32
31
|
UpdateOrderStatusParameters["WAITINGFORADMINVALIDATION"] = "WAITING_FOR_ADMIN_VALIDATION";
|
|
33
|
-
UpdateOrderStatusParameters["DELIVERYLATE"] = "DELIVERY_LATE";
|
|
34
32
|
})(UpdateOrderStatusParameters = exports.UpdateOrderStatusParameters || (exports.UpdateOrderStatusParameters = {}));
|
|
35
33
|
function UpdateOrderStatusParametersFromJSON(json) {
|
|
36
34
|
return UpdateOrderStatusParametersFromJSONTyped(json, false);
|
|
@@ -24,6 +24,7 @@ export * from './OrderRefundedItem';
|
|
|
24
24
|
export * from './OrderRemovedItem';
|
|
25
25
|
export * from './OrderRemovedItemUpdateParameters';
|
|
26
26
|
export * from './OrderStatus';
|
|
27
|
+
export * from './OrderStatusReason';
|
|
27
28
|
export * from './OrderStorageType';
|
|
28
29
|
export * from './OrderThreads';
|
|
29
30
|
export * from './OrderType';
|
|
@@ -40,6 +40,7 @@ __exportStar(require("./OrderRefundedItem"), exports);
|
|
|
40
40
|
__exportStar(require("./OrderRemovedItem"), exports);
|
|
41
41
|
__exportStar(require("./OrderRemovedItemUpdateParameters"), exports);
|
|
42
42
|
__exportStar(require("./OrderStatus"), exports);
|
|
43
|
+
__exportStar(require("./OrderStatusReason"), exports);
|
|
43
44
|
__exportStar(require("./OrderStorageType"), exports);
|
|
44
45
|
__exportStar(require("./OrderThreads"), exports);
|
|
45
46
|
__exportStar(require("./OrderType"), exports);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Log } from './Log';
|
|
13
13
|
import { OrderLink } from './OrderLink';
|
|
14
|
+
import { OrderStatusReason } from './OrderStatusReason';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -29,6 +30,24 @@ export interface OrderLog extends Log {
|
|
|
29
30
|
* @memberof OrderLog
|
|
30
31
|
*/
|
|
31
32
|
order: OrderLink;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {OrderStatusReason}
|
|
36
|
+
* @memberof OrderLog
|
|
37
|
+
*/
|
|
38
|
+
reason: OrderStatusReason;
|
|
39
|
+
/**
|
|
40
|
+
* Smart sentence given detail about the new status
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof OrderLog
|
|
43
|
+
*/
|
|
44
|
+
comment: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Id of the user that updated status
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof OrderLog
|
|
49
|
+
*/
|
|
50
|
+
updatedBy: number | null;
|
|
32
51
|
}
|
|
33
52
|
export declare function OrderLogFromJSON(json: any): OrderLog;
|
|
34
53
|
export declare function OrderLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderLog;
|
|
@@ -27,6 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.OrderLogToJSON = exports.OrderLogFromJSONTyped = exports.OrderLogFromJSON = void 0;
|
|
28
28
|
var Log_1 = require("./Log");
|
|
29
29
|
var OrderLink_1 = require("./OrderLink");
|
|
30
|
+
var OrderStatusReason_1 = require("./OrderStatusReason");
|
|
30
31
|
function OrderLogFromJSON(json) {
|
|
31
32
|
return OrderLogFromJSONTyped(json, false);
|
|
32
33
|
}
|
|
@@ -35,7 +36,7 @@ function OrderLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
if ((json === undefined) || (json === null)) {
|
|
36
37
|
return json;
|
|
37
38
|
}
|
|
38
|
-
return __assign(__assign({}, (0, Log_1.LogFromJSONTyped)(json, ignoreDiscriminator)), { 'type': json['type'], 'order': (0, OrderLink_1.OrderLinkFromJSON)(json['order']) });
|
|
39
|
+
return __assign(__assign({}, (0, Log_1.LogFromJSONTyped)(json, ignoreDiscriminator)), { 'type': json['type'], 'order': (0, OrderLink_1.OrderLinkFromJSON)(json['order']), 'reason': (0, OrderStatusReason_1.OrderStatusReasonFromJSON)(json['reason']), 'comment': json['comment'], 'updatedBy': json['updatedBy'] });
|
|
39
40
|
}
|
|
40
41
|
exports.OrderLogFromJSONTyped = OrderLogFromJSONTyped;
|
|
41
42
|
function OrderLogToJSON(value) {
|
|
@@ -45,6 +46,6 @@ function OrderLogToJSON(value) {
|
|
|
45
46
|
if (value === null) {
|
|
46
47
|
return null;
|
|
47
48
|
}
|
|
48
|
-
return __assign(__assign({}, (0, Log_1.LogToJSON)(value)), { 'type': value.type, 'order': (0, OrderLink_1.OrderLinkToJSON)(value.order) });
|
|
49
|
+
return __assign(__assign({}, (0, Log_1.LogToJSON)(value)), { 'type': value.type, 'order': (0, OrderLink_1.OrderLinkToJSON)(value.order), 'reason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.reason), 'comment': value.comment, 'updatedBy': value.updatedBy });
|
|
49
50
|
}
|
|
50
51
|
exports.OrderLogToJSON = OrderLogToJSON;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { OrderLink } from './OrderLink';
|
|
13
|
+
import { OrderStatusReason } from './OrderStatusReason';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -28,6 +29,24 @@ export interface OrderLogAllOf {
|
|
|
28
29
|
* @memberof OrderLogAllOf
|
|
29
30
|
*/
|
|
30
31
|
order: OrderLink;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {OrderStatusReason}
|
|
35
|
+
* @memberof OrderLogAllOf
|
|
36
|
+
*/
|
|
37
|
+
reason: OrderStatusReason;
|
|
38
|
+
/**
|
|
39
|
+
* Smart sentence given detail about the new status
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof OrderLogAllOf
|
|
42
|
+
*/
|
|
43
|
+
comment: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Id of the user that updated status
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof OrderLogAllOf
|
|
48
|
+
*/
|
|
49
|
+
updatedBy: number | null;
|
|
31
50
|
}
|
|
32
51
|
export declare function OrderLogAllOfFromJSON(json: any): OrderLogAllOf;
|
|
33
52
|
export declare function OrderLogAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderLogAllOf;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.OrderLogAllOfToJSON = exports.OrderLogAllOfFromJSONTyped = exports.OrderLogAllOfFromJSON = void 0;
|
|
17
17
|
var OrderLink_1 = require("./OrderLink");
|
|
18
|
+
var OrderStatusReason_1 = require("./OrderStatusReason");
|
|
18
19
|
function OrderLogAllOfFromJSON(json) {
|
|
19
20
|
return OrderLogAllOfFromJSONTyped(json, false);
|
|
20
21
|
}
|
|
@@ -26,6 +27,9 @@ function OrderLogAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
return {
|
|
27
28
|
'type': json['type'],
|
|
28
29
|
'order': (0, OrderLink_1.OrderLinkFromJSON)(json['order']),
|
|
30
|
+
'reason': (0, OrderStatusReason_1.OrderStatusReasonFromJSON)(json['reason']),
|
|
31
|
+
'comment': json['comment'],
|
|
32
|
+
'updatedBy': json['updatedBy'],
|
|
29
33
|
};
|
|
30
34
|
}
|
|
31
35
|
exports.OrderLogAllOfFromJSONTyped = OrderLogAllOfFromJSONTyped;
|
|
@@ -39,6 +43,9 @@ function OrderLogAllOfToJSON(value) {
|
|
|
39
43
|
return {
|
|
40
44
|
'type': value.type,
|
|
41
45
|
'order': (0, OrderLink_1.OrderLinkToJSON)(value.order),
|
|
46
|
+
'reason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.reason),
|
|
47
|
+
'comment': value.comment,
|
|
48
|
+
'updatedBy': value.updatedBy,
|
|
42
49
|
};
|
|
43
50
|
}
|
|
44
51
|
exports.OrderLogAllOfToJSON = OrderLogAllOfToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP order logs
|
|
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
|
+
* Reason of the status change or current status. Note that if you do not give any reason during status change, field will be set to OTHER
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum OrderStatusReason {
|
|
18
|
+
MAXQUANTITY = "MAX_QUANTITY",
|
|
19
|
+
OUTDATEDAD = "OUTDATED_AD",
|
|
20
|
+
OTHER = "OTHER"
|
|
21
|
+
}
|
|
22
|
+
export declare function OrderStatusReasonFromJSON(json: any): OrderStatusReason;
|
|
23
|
+
export declare function OrderStatusReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusReason;
|
|
24
|
+
export declare function OrderStatusReasonToJSON(value?: OrderStatusReason | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP order logs
|
|
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.OrderStatusReasonToJSON = exports.OrderStatusReasonFromJSONTyped = exports.OrderStatusReasonFromJSON = exports.OrderStatusReason = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Reason of the status change or current status. Note that if you do not give any reason during status change, field will be set to OTHER
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var OrderStatusReason;
|
|
23
|
+
(function (OrderStatusReason) {
|
|
24
|
+
OrderStatusReason["MAXQUANTITY"] = "MAX_QUANTITY";
|
|
25
|
+
OrderStatusReason["OUTDATEDAD"] = "OUTDATED_AD";
|
|
26
|
+
OrderStatusReason["OTHER"] = "OTHER";
|
|
27
|
+
})(OrderStatusReason = exports.OrderStatusReason || (exports.OrderStatusReason = {}));
|
|
28
|
+
function OrderStatusReasonFromJSON(json) {
|
|
29
|
+
return OrderStatusReasonFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.OrderStatusReasonFromJSON = OrderStatusReasonFromJSON;
|
|
32
|
+
function OrderStatusReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.OrderStatusReasonFromJSONTyped = OrderStatusReasonFromJSONTyped;
|
|
36
|
+
function OrderStatusReasonToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.OrderStatusReasonToJSON = OrderStatusReasonToJSON;
|
|
@@ -5,6 +5,7 @@ export * from './OrderLink';
|
|
|
5
5
|
export * from './OrderLinkAllOf';
|
|
6
6
|
export * from './OrderLog';
|
|
7
7
|
export * from './OrderLogAllOf';
|
|
8
|
+
export * from './OrderStatusReason';
|
|
8
9
|
export * from './PaginatedObject';
|
|
9
10
|
export * from './PaginatedOrderLogs';
|
|
10
11
|
export * from './PaginatedOrderLogsAllOf';
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./OrderLink"), exports);
|
|
|
21
21
|
__exportStar(require("./OrderLinkAllOf"), exports);
|
|
22
22
|
__exportStar(require("./OrderLog"), exports);
|
|
23
23
|
__exportStar(require("./OrderLogAllOf"), exports);
|
|
24
|
+
__exportStar(require("./OrderStatusReason"), exports);
|
|
24
25
|
__exportStar(require("./PaginatedObject"), exports);
|
|
25
26
|
__exportStar(require("./PaginatedOrderLogs"), exports);
|
|
26
27
|
__exportStar(require("./PaginatedOrderLogsAllOf"), exports);
|
package/package.json
CHANGED
|
@@ -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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `CODE020` - ETag do not match
|
|
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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `MESSAGE020` - ETag do not match
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -55,7 +55,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
57
|
CODE018 = "CODE018",
|
|
58
|
-
CODE019 = "CODE019"
|
|
58
|
+
CODE019 = "CODE019",
|
|
59
|
+
CODE020 = "CODE020"
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @export
|
|
@@ -81,5 +82,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
81
82
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
83
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
84
|
MESSAGE018 = "Trial already used",
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
85
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users",
|
|
86
|
+
MESSAGE020 = "ETag do not match"
|
|
85
87
|
}
|
|
@@ -67,6 +67,7 @@ var RestErrorCodeEnum;
|
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
69
|
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
|
+
RestErrorCodeEnum["CODE020"] = "CODE020";
|
|
70
71
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
72
|
/**
|
|
72
73
|
* @export
|
|
@@ -94,4 +95,5 @@ var RestErrorMessageEnum;
|
|
|
94
95
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
96
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
97
|
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
98
|
+
RestErrorMessageEnum["MESSAGE020"] = "ETag do not match";
|
|
97
99
|
})(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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `CODE020` - ETag do not match
|
|
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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `MESSAGE020` - ETag do not match
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -55,7 +55,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
57
|
CODE018 = "CODE018",
|
|
58
|
-
CODE019 = "CODE019"
|
|
58
|
+
CODE019 = "CODE019",
|
|
59
|
+
CODE020 = "CODE020"
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @export
|
|
@@ -81,5 +82,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
81
82
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
83
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
84
|
MESSAGE018 = "Trial already used",
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
85
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users",
|
|
86
|
+
MESSAGE020 = "ETag do not match"
|
|
85
87
|
}
|
|
@@ -67,6 +67,7 @@ var RestErrorCodeEnum;
|
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
69
|
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
|
+
RestErrorCodeEnum["CODE020"] = "CODE020";
|
|
70
71
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
72
|
/**
|
|
72
73
|
* @export
|
|
@@ -94,4 +95,5 @@ var RestErrorMessageEnum;
|
|
|
94
95
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
96
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
97
|
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
98
|
+
RestErrorMessageEnum["MESSAGE020"] = "ETag do not match";
|
|
97
99
|
})(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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `CODE020` - ETag do not match
|
|
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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `MESSAGE020` - ETag do not match
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -55,7 +55,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
57
|
CODE018 = "CODE018",
|
|
58
|
-
CODE019 = "CODE019"
|
|
58
|
+
CODE019 = "CODE019",
|
|
59
|
+
CODE020 = "CODE020"
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @export
|
|
@@ -81,5 +82,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
81
82
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
83
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
84
|
MESSAGE018 = "Trial already used",
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
85
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users",
|
|
86
|
+
MESSAGE020 = "ETag do not match"
|
|
85
87
|
}
|
|
@@ -67,6 +67,7 @@ var RestErrorCodeEnum;
|
|
|
67
67
|
RestErrorCodeEnum["CODE017"] = "CODE017";
|
|
68
68
|
RestErrorCodeEnum["CODE018"] = "CODE018";
|
|
69
69
|
RestErrorCodeEnum["CODE019"] = "CODE019";
|
|
70
|
+
RestErrorCodeEnum["CODE020"] = "CODE020";
|
|
70
71
|
})(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
|
|
71
72
|
/**
|
|
72
73
|
* @export
|
|
@@ -94,4 +95,5 @@ var RestErrorMessageEnum;
|
|
|
94
95
|
RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
|
|
95
96
|
RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
|
|
96
97
|
RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
|
|
98
|
+
RestErrorMessageEnum["MESSAGE020"] = "ETag do not match";
|
|
97
99
|
})(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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `CODE020` - ETag do not match
|
|
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` - Image dimension exceeded * `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
|
|
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` - Image dimension exceeded * `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 * `MESSAGE020` - ETag do not match
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RestError
|
|
28
28
|
*/
|
|
@@ -55,7 +55,8 @@ export declare enum RestErrorCodeEnum {
|
|
|
55
55
|
CODE016 = "CODE016",
|
|
56
56
|
CODE017 = "CODE017",
|
|
57
57
|
CODE018 = "CODE018",
|
|
58
|
-
CODE019 = "CODE019"
|
|
58
|
+
CODE019 = "CODE019",
|
|
59
|
+
CODE020 = "CODE020"
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
62
|
* @export
|
|
@@ -81,5 +82,6 @@ export declare enum RestErrorMessageEnum {
|
|
|
81
82
|
MESSAGE016 = "Can not release a negative quantity of items",
|
|
82
83
|
MESSAGE017 = "Batch is forbidden for sale",
|
|
83
84
|
MESSAGE018 = "Trial already used",
|
|
84
|
-
MESSAGE019 = "Unable to generate session from disposableToken for admin users"
|
|
85
|
+
MESSAGE019 = "Unable to generate session from disposableToken for admin users",
|
|
86
|
+
MESSAGE020 = "ETag do not match"
|
|
85
87
|
}
|