@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.
Files changed (85) hide show
  1. package/auth/src/models/RestError.d.ts +6 -4
  2. package/auth/src/models/RestError.js +2 -0
  3. package/catalog/src/models/RestError.d.ts +6 -4
  4. package/catalog/src/models/RestError.js +2 -0
  5. package/configuration/src/models/RestError.d.ts +6 -4
  6. package/configuration/src/models/RestError.js +2 -0
  7. package/content/src/models/RestError.d.ts +6 -4
  8. package/content/src/models/RestError.js +2 -0
  9. package/favorite/src/models/RestError.d.ts +6 -4
  10. package/favorite/src/models/RestError.js +2 -0
  11. package/inventory/src/models/RestError.d.ts +6 -4
  12. package/inventory/src/models/RestError.js +2 -0
  13. package/invoice/src/models/RestError.d.ts +6 -4
  14. package/invoice/src/models/RestError.js +2 -0
  15. package/laboratory-store/src/models/RestError.d.ts +6 -4
  16. package/laboratory-store/src/models/RestError.js +2 -0
  17. package/lexicon/src/models/RestError.d.ts +6 -4
  18. package/lexicon/src/models/RestError.js +2 -0
  19. package/litigation/src/models/RestError.d.ts +6 -4
  20. package/litigation/src/models/RestError.js +2 -0
  21. package/mangopay-hook/src/models/RestError.d.ts +6 -4
  22. package/mangopay-hook/src/models/RestError.js +2 -0
  23. package/notification/src/models/Notification.d.ts +6 -0
  24. package/notification/src/models/Notification.js +2 -0
  25. package/notification/src/models/NotificationTypeId.d.ts +5 -0
  26. package/notification/src/models/NotificationTypeId.js +5 -0
  27. package/notification/src/models/RestError.d.ts +6 -4
  28. package/notification/src/models/RestError.js +2 -0
  29. package/order/src/apis/ManageOrderApi.d.ts +7 -17
  30. package/order/src/apis/ManageOrderApi.js +10 -90
  31. package/order/src/apis/ManageOrderItemApi.d.ts +4 -4
  32. package/order/src/apis/ManageOrderItemApi.js +4 -4
  33. package/order/src/apis/SearchOrderItemApi.d.ts +2 -0
  34. package/order/src/apis/SearchOrderItemApi.js +2 -0
  35. package/order/src/models/Order.d.ts +20 -1
  36. package/order/src/models/Order.js +7 -0
  37. package/order/src/models/OrderJournal.d.ts +19 -0
  38. package/order/src/models/OrderJournal.js +8 -0
  39. package/order/src/models/OrderStatus.d.ts +4 -2
  40. package/order/src/models/OrderStatus.js +4 -2
  41. package/order/src/models/OrderStatusReason.d.ts +24 -0
  42. package/order/src/models/OrderStatusReason.js +39 -0
  43. package/order/src/models/OrderUpdateParameters.d.ts +20 -0
  44. package/order/src/models/OrderUpdateParameters.js +8 -0
  45. package/order/src/models/RestError.d.ts +6 -4
  46. package/order/src/models/RestError.js +2 -0
  47. package/order/src/models/UpdateOrderStatusParameters.d.ts +3 -5
  48. package/order/src/models/UpdateOrderStatusParameters.js +2 -4
  49. package/order/src/models/index.d.ts +1 -0
  50. package/order/src/models/index.js +1 -0
  51. package/order-log/src/models/OrderLog.d.ts +19 -0
  52. package/order-log/src/models/OrderLog.js +3 -2
  53. package/order-log/src/models/OrderLogAllOf.d.ts +19 -0
  54. package/order-log/src/models/OrderLogAllOf.js +7 -0
  55. package/order-log/src/models/OrderStatusReason.d.ts +24 -0
  56. package/order-log/src/models/OrderStatusReason.js +39 -0
  57. package/order-log/src/models/index.d.ts +1 -0
  58. package/order-log/src/models/index.js +1 -0
  59. package/package.json +1 -1
  60. package/product/src/models/RestError.d.ts +6 -4
  61. package/product/src/models/RestError.js +2 -0
  62. package/pub/src/models/RestError.d.ts +6 -4
  63. package/pub/src/models/RestError.js +2 -0
  64. package/rfx/src/models/RestError.d.ts +6 -4
  65. package/rfx/src/models/RestError.js +2 -0
  66. package/sale-offer/src/models/RestError.d.ts +6 -4
  67. package/sale-offer/src/models/RestError.js +2 -0
  68. package/servant/src/models/RestError.d.ts +6 -4
  69. package/servant/src/models/RestError.js +2 -0
  70. package/shipment/src/models/RestError.d.ts +6 -4
  71. package/shipment/src/models/RestError.js +2 -0
  72. package/shopping-cart/src/models/RestError.d.ts +6 -4
  73. package/shopping-cart/src/models/RestError.js +2 -0
  74. package/statistic/src/models/RestError.d.ts +6 -4
  75. package/statistic/src/models/RestError.js +2 -0
  76. package/subscription/src/models/RestError.d.ts +6 -4
  77. package/subscription/src/models/RestError.js +2 -0
  78. package/ubo/src/models/RestError.d.ts +6 -4
  79. package/ubo/src/models/RestError.js +2 -0
  80. package/user/src/models/NotificationTypeId.d.ts +5 -0
  81. package/user/src/models/NotificationTypeId.js +5 -0
  82. package/user/src/models/RestError.d.ts +6 -4
  83. package/user/src/models/RestError.js +2 -0
  84. package/wish/src/models/RestError.d.ts +6 -4
  85. package/wish/src/models/RestError.js +2 -0
@@ -34,6 +34,7 @@ function NotificationFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'isRead': !(0, runtime_1.exists)(json, 'isRead') ? undefined : json['isRead'],
35
35
  'target': !(0, runtime_1.exists)(json, 'target') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['target']),
36
36
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
37
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
37
38
  };
38
39
  }
39
40
  exports.NotificationFromJSONTyped = NotificationFromJSONTyped;
@@ -53,6 +54,7 @@ function NotificationToJSON(value) {
53
54
  'isRead': value.isRead,
54
55
  'target': (0, HttpLink_1.HttpLinkToJSON)(value.target),
55
56
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
57
+ 'metadata': value.metadata,
56
58
  };
57
59
  }
58
60
  exports.NotificationToJSON = NotificationToJSON;
@@ -42,9 +42,14 @@ export declare enum NotificationTypeId {
42
42
  ORDERACCEPTED = "ORDER_ACCEPTED",
43
43
  ORDERARCHIVEDBUYER = "ORDER_ARCHIVED_BUYER",
44
44
  ORDERCANCELEDBUYER = "ORDER_CANCELED_BUYER",
45
+ ORDERCANCELEDSELLER = "ORDER_CANCELED_SELLER",
45
46
  ORDERCREATEDBUYER = "ORDER_CREATED_BUYER",
46
47
  ORDERCREATEDSELLER = "ORDER_CREATED_SELLER",
47
48
  ORDERDAILYMAIL = "ORDER_DAILY_MAIL",
49
+ ORDERMODIFIED = "ORDER_MODIFIED",
50
+ ORDERMODIFICATIONDELAY = "ORDER_MODIFICATION_DELAY",
51
+ ORDERMODIFICATIONACCEPTEDSELLER = "ORDER_MODIFICATION_ACCEPTED_SELLER",
52
+ ORDERMODIFICATIONREJECTEDSELLER = "ORDER_MODIFICATION_REJECTED_SELLER",
48
53
  ORDERRECEIVED = "ORDER_RECEIVED",
49
54
  ORDERSENDINGDELAY = "ORDER_SENDING_DELAY",
50
55
  ORDERSENTBUYER = "ORDER_SENT_BUYER",
@@ -48,9 +48,14 @@ var NotificationTypeId;
48
48
  NotificationTypeId["ORDERACCEPTED"] = "ORDER_ACCEPTED";
49
49
  NotificationTypeId["ORDERARCHIVEDBUYER"] = "ORDER_ARCHIVED_BUYER";
50
50
  NotificationTypeId["ORDERCANCELEDBUYER"] = "ORDER_CANCELED_BUYER";
51
+ NotificationTypeId["ORDERCANCELEDSELLER"] = "ORDER_CANCELED_SELLER";
51
52
  NotificationTypeId["ORDERCREATEDBUYER"] = "ORDER_CREATED_BUYER";
52
53
  NotificationTypeId["ORDERCREATEDSELLER"] = "ORDER_CREATED_SELLER";
53
54
  NotificationTypeId["ORDERDAILYMAIL"] = "ORDER_DAILY_MAIL";
55
+ NotificationTypeId["ORDERMODIFIED"] = "ORDER_MODIFIED";
56
+ NotificationTypeId["ORDERMODIFICATIONDELAY"] = "ORDER_MODIFICATION_DELAY";
57
+ NotificationTypeId["ORDERMODIFICATIONACCEPTEDSELLER"] = "ORDER_MODIFICATION_ACCEPTED_SELLER";
58
+ NotificationTypeId["ORDERMODIFICATIONREJECTEDSELLER"] = "ORDER_MODIFICATION_REJECTED_SELLER";
54
59
  NotificationTypeId["ORDERRECEIVED"] = "ORDER_RECEIVED";
55
60
  NotificationTypeId["ORDERSENDINGDELAY"] = "ORDER_SENDING_DELAY";
56
61
  NotificationTypeId["ORDERSENTBUYER"] = "ORDER_SENT_BUYER";
@@ -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 = {}));
@@ -10,13 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { AnomaliesUpdateParameters, Order, OrderStatus, OrderUpdateParameters, Reservation, ReservationUpdateParameters } from '../models';
13
+ import { AnomaliesUpdateParameters, Order, OrderUpdateParameters, Reservation, ReservationUpdateParameters } from '../models';
14
14
  export interface CreateOrderRequest {
15
15
  from: string;
16
16
  }
17
17
  export interface SetOrderAcceptedRequest {
18
18
  orderReference: string;
19
19
  body: boolean;
20
+ ifMatch?: string;
20
21
  }
21
22
  export interface SetOrderDeliveryConfirmedRequest {
22
23
  orderReference: string;
@@ -32,6 +33,7 @@ export interface SetOrderPausedRequest {
32
33
  }
33
34
  export interface UpdateOrderRequest {
34
35
  orderReference: string;
36
+ ifMatch?: string;
35
37
  orderUpdateParameters?: OrderUpdateParameters;
36
38
  }
37
39
  export interface UpdateOrderAnomaliesRequest {
@@ -43,10 +45,6 @@ export interface UpdateOrderReservationRequest {
43
45
  reservationId: string;
44
46
  reservationUpdateParameters: ReservationUpdateParameters;
45
47
  }
46
- export interface UpdateOrderStatusRequest {
47
- orderReference: string;
48
- body: string;
49
- }
50
48
  /**
51
49
  * no description
52
50
  */
@@ -62,12 +60,12 @@ export declare class ManageOrderApi extends BaseAPI {
62
60
  */
63
61
  createOrder(requestParameters: CreateOrderRequest): Promise<Order | BlobWithMeta>;
64
62
  /**
65
- * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_ACCEPTANCE, ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
63
+ * Set the accepted flag for order identified by OrderId. # Preconditions : ## Common - \'paused\' property is false - \'accepted\' property is false (Limitation that may be removed in the future) - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ## As seller - Status in (WAITING_FOR_SELLER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY) ## As buyer - Status in (WAITING_FOR_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) ## As admin - No additional
66
64
  * Set order accepted flag
67
65
  */
68
66
  setOrderAcceptedRaw(requestParameters: SetOrderAcceptedRequest): Promise<ApiResponse<void>>;
69
67
  /**
70
- * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_ACCEPTANCE, ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
68
+ * Set the accepted flag for order identified by OrderId. # Preconditions : ## Common - \'paused\' property is false - \'accepted\' property is false (Limitation that may be removed in the future) - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ## As seller - Status in (WAITING_FOR_SELLER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY) ## As buyer - Status in (WAITING_FOR_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) ## As admin - No additional
71
69
  * Set order accepted flag
72
70
  */
73
71
  setOrderAccepted(requestParameters: SetOrderAcceptedRequest): Promise<void>;
@@ -102,10 +100,12 @@ export declare class ManageOrderApi extends BaseAPI {
102
100
  */
103
101
  setOrderPaused(requestParameters: SetOrderPausedRequest): Promise<void>;
104
102
  /**
103
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status (As Admin) - Always possible ## Status (As Seller) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized ## Status (As buyer) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
105
104
  * Update an order
106
105
  */
107
106
  updateOrderRaw(requestParameters: UpdateOrderRequest): Promise<ApiResponse<Order | BlobWithMeta>>;
108
107
  /**
108
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status (As Admin) - Always possible ## Status (As Seller) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized ## Status (As buyer) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
109
109
  * Update an order
110
110
  */
111
111
  updateOrder(requestParameters: UpdateOrderRequest): Promise<Order | BlobWithMeta>;
@@ -127,14 +127,4 @@ export declare class ManageOrderApi extends BaseAPI {
127
127
  * Update order reservations
128
128
  */
129
129
  updateOrderReservation(requestParameters: UpdateOrderReservationRequest): Promise<Reservation | BlobWithMeta>;
130
- /**
131
- * Allow to update order status directly.
132
- * Update order status
133
- */
134
- updateOrderStatusRaw(requestParameters: UpdateOrderStatusRequest): Promise<ApiResponse<OrderStatus | BlobWithMeta>>;
135
- /**
136
- * Allow to update order status directly.
137
- * Update order status
138
- */
139
- updateOrderStatus(requestParameters: UpdateOrderStatusRequest): Promise<OrderStatus | BlobWithMeta>;
140
130
  }
@@ -162,7 +162,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
162
162
  });
163
163
  };
164
164
  /**
165
- * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_ACCEPTANCE, ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
165
+ * Set the accepted flag for order identified by OrderId. # Preconditions : ## Common - \'paused\' property is false - \'accepted\' property is false (Limitation that may be removed in the future) - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ## As seller - Status in (WAITING_FOR_SELLER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY) ## As buyer - Status in (WAITING_FOR_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) ## As admin - No additional
166
166
  * Set order accepted flag
167
167
  */
168
168
  ManageOrderApi.prototype.setOrderAcceptedRaw = function (requestParameters) {
@@ -180,6 +180,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
180
180
  queryParameters = {};
181
181
  headerParameters = {};
182
182
  headerParameters['Content-Type'] = 'application/json';
183
+ if (requestParameters.ifMatch !== undefined && requestParameters.ifMatch !== null) {
184
+ headerParameters['If-Match'] = String(requestParameters.ifMatch);
185
+ }
183
186
  if (this.configuration && this.configuration.apiKey) {
184
187
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
185
188
  }
@@ -221,7 +224,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
221
224
  });
222
225
  };
223
226
  /**
224
- * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_ACCEPTANCE, ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
227
+ * Set the accepted flag for order identified by OrderId. # Preconditions : ## Common - \'paused\' property is false - \'accepted\' property is false (Limitation that may be removed in the future) - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ## As seller - Status in (WAITING_FOR_SELLER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY) ## As buyer - Status in (WAITING_FOR_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) ## As admin - No additional
225
228
  * Set order accepted flag
226
229
  */
227
230
  ManageOrderApi.prototype.setOrderAccepted = function (requestParameters) {
@@ -462,6 +465,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
462
465
  });
463
466
  };
464
467
  /**
468
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status (As Admin) - Always possible ## Status (As Seller) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized ## Status (As buyer) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
465
469
  * Update an order
466
470
  */
467
471
  ManageOrderApi.prototype.updateOrderRaw = function (requestParameters) {
@@ -476,6 +480,9 @@ var ManageOrderApi = /** @class */ (function (_super) {
476
480
  queryParameters = {};
477
481
  headerParameters = {};
478
482
  headerParameters['Content-Type'] = 'application/merge-patch+json';
483
+ if (requestParameters.ifMatch !== undefined && requestParameters.ifMatch !== null) {
484
+ headerParameters['If-Match'] = String(requestParameters.ifMatch);
485
+ }
479
486
  if (this.configuration && this.configuration.apiKey) {
480
487
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
481
488
  }
@@ -528,6 +535,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
528
535
  });
529
536
  };
530
537
  /**
538
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status (As Admin) - Always possible ## Status (As Seller) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized ## Status (As buyer) - CANCELED: > Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
531
539
  * Update an order
532
540
  */
533
541
  ManageOrderApi.prototype.updateOrder = function (requestParameters) {
@@ -708,94 +716,6 @@ var ManageOrderApi = /** @class */ (function (_super) {
708
716
  });
709
717
  });
710
718
  };
711
- /**
712
- * Allow to update order status directly.
713
- * Update order status
714
- */
715
- ManageOrderApi.prototype.updateOrderStatusRaw = function (requestParameters) {
716
- return __awaiter(this, void 0, void 0, function () {
717
- var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_9;
718
- return __generator(this, function (_b) {
719
- switch (_b.label) {
720
- case 0:
721
- if (requestParameters.orderReference === null || requestParameters.orderReference === undefined) {
722
- throw new runtime_1.RequiredError('orderReference', 'Required parameter requestParameters.orderReference was null or undefined when calling updateOrderStatus.');
723
- }
724
- if (requestParameters.body === null || requestParameters.body === undefined) {
725
- throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling updateOrderStatus.');
726
- }
727
- queryParameters = {};
728
- headerParameters = {};
729
- headerParameters['Content-Type'] = 'application/json';
730
- if (this.configuration && this.configuration.apiKey) {
731
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
732
- }
733
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
734
- token = this.configuration.accessToken;
735
- if (!(typeof token === 'function')) return [3 /*break*/, 2];
736
- return [4 /*yield*/, token("bearerAuth", [])];
737
- case 1:
738
- _a = _b.sent();
739
- return [3 /*break*/, 3];
740
- case 2:
741
- _a = token;
742
- _b.label = 3;
743
- case 3:
744
- tokenString = _a;
745
- if (tokenString) {
746
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
747
- }
748
- _b.label = 4;
749
- case 4:
750
- _b.trys.push([4, 6, , 7]);
751
- return [4 /*yield*/, this.request({
752
- path: "/orders/{orderReference}/status".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters.orderReference))),
753
- method: 'PUT',
754
- headers: headerParameters,
755
- query: queryParameters,
756
- body: requestParameters.body,
757
- })];
758
- case 5:
759
- response = _b.sent();
760
- contentType = response.headers.get("content-type");
761
- if (contentType && contentType.indexOf("application/json") !== -1) {
762
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OrderStatusFromJSON)(jsonValue); })];
763
- }
764
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
765
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
766
- }
767
- else {
768
- // TODO : Better handling of others application types
769
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
770
- }
771
- return [3 /*break*/, 7];
772
- case 6:
773
- response_9 = _b.sent();
774
- console.debug(response_9);
775
- throw response_9;
776
- case 7: return [2 /*return*/];
777
- }
778
- });
779
- });
780
- };
781
- /**
782
- * Allow to update order status directly.
783
- * Update order status
784
- */
785
- ManageOrderApi.prototype.updateOrderStatus = function (requestParameters) {
786
- return __awaiter(this, void 0, void 0, function () {
787
- var response;
788
- return __generator(this, function (_a) {
789
- switch (_a.label) {
790
- case 0: return [4 /*yield*/, this.updateOrderStatusRaw(requestParameters)];
791
- case 1:
792
- response = _a.sent();
793
- return [4 /*yield*/, response.value()];
794
- case 2: return [2 /*return*/, _a.sent()];
795
- }
796
- });
797
- });
798
- };
799
719
  return ManageOrderApi;
800
720
  }(runtime_1.BaseAPI));
801
721
  exports.ManageOrderApi = ManageOrderApi;
@@ -48,12 +48,12 @@ export declare class ManageOrderItemApi extends BaseAPI {
48
48
  */
49
49
  createOrUpdateOrderItem(requestParameters: CreateOrUpdateOrderItemRequest): Promise<OrderItem | BlobWithMeta>;
50
50
  /**
51
- * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order
51
+ * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
52
52
  * Delete order item
53
53
  */
54
54
  deleteOrderItemRaw(requestParameters: DeleteOrderItemRequest): Promise<ApiResponse<void>>;
55
55
  /**
56
- * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order
56
+ * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
57
57
  * Delete order item
58
58
  */
59
59
  deleteOrderItem(requestParameters: DeleteOrderItemRequest): Promise<void>;
@@ -68,12 +68,12 @@ export declare class ManageOrderItemApi extends BaseAPI {
68
68
  */
69
69
  deleteOrderRemovedItem(requestParameters: DeleteOrderRemovedItemRequest): Promise<void>;
70
70
  /**
71
- * Important note : As a business concern, it is best to use \"deleteOrderItem\" when possible to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order
71
+ * Important note : In case of remove: As a business concern, it\'s mandatory to use \"deleteOrderItem\" to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. If you call this route with \'0\' quantity and \"deleteOrderItem\" must be called, you will receive 412 - Precondition failed. In case of refund: you can set the quantity at 0 Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
72
72
  * Update order item
73
73
  */
74
74
  updateOrderItemRaw(requestParameters: UpdateOrderItemRequest): Promise<ApiResponse<OrderItem | BlobWithMeta>>;
75
75
  /**
76
- * Important note : As a business concern, it is best to use \"deleteOrderItem\" when possible to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order
76
+ * Important note : In case of remove: As a business concern, it\'s mandatory to use \"deleteOrderItem\" to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. If you call this route with \'0\' quantity and \"deleteOrderItem\" must be called, you will receive 412 - Precondition failed. In case of refund: you can set the quantity at 0 Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
77
77
  * Update order item
78
78
  */
79
79
  updateOrderItem(requestParameters: UpdateOrderItemRequest): Promise<OrderItem | BlobWithMeta>;
@@ -164,7 +164,7 @@ var ManageOrderItemApi = /** @class */ (function (_super) {
164
164
  });
165
165
  };
166
166
  /**
167
- * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order
167
+ * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
168
168
  * Delete order item
169
169
  */
170
170
  ManageOrderItemApi.prototype.deleteOrderItemRaw = function (requestParameters) {
@@ -221,7 +221,7 @@ var ManageOrderItemApi = /** @class */ (function (_super) {
221
221
  });
222
222
  };
223
223
  /**
224
- * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order
224
+ * Preconditions : - Order items can be removed (If refund is needed, deletion will be forbidden) - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
225
225
  * Delete order item
226
226
  */
227
227
  ManageOrderItemApi.prototype.deleteOrderItem = function (requestParameters) {
@@ -310,7 +310,7 @@ var ManageOrderItemApi = /** @class */ (function (_super) {
310
310
  });
311
311
  };
312
312
  /**
313
- * Important note : As a business concern, it is best to use \"deleteOrderItem\" when possible to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order
313
+ * Important note : In case of remove: As a business concern, it\'s mandatory to use \"deleteOrderItem\" to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. If you call this route with \'0\' quantity and \"deleteOrderItem\" must be called, you will receive 412 - Precondition failed. In case of refund: you can set the quantity at 0 Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
314
314
  * Update order item
315
315
  */
316
316
  ManageOrderItemApi.prototype.updateOrderItemRaw = function (requestParameters) {
@@ -383,7 +383,7 @@ var ManageOrderItemApi = /** @class */ (function (_super) {
383
383
  });
384
384
  };
385
385
  /**
386
- * Important note : As a business concern, it is best to use \"deleteOrderItem\" when possible to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order
386
+ * Important note : In case of remove: As a business concern, it\'s mandatory to use \"deleteOrderItem\" to free up the line in the order. See OrderItemsOperations to check when \"deleteOrderItem\" can be called. If you call this route with \'0\' quantity and \"deleteOrderItem\" must be called, you will receive 412 - Precondition failed. In case of refund: you can set the quantity at 0 Restrictions : - Order item new quantity should be less or equals the current one Preconditions : - No invoice edited for this order - No payment transaction linked to this order - You are the seller of the order or you are administrator
387
387
  * Update order item
388
388
  */
389
389
  ManageOrderItemApi.prototype.updateOrderItem = function (requestParameters) {
@@ -69,10 +69,12 @@ export declare class SearchOrderItemApi extends BaseAPI {
69
69
  */
70
70
  getOrderRefundedItems(requestParameters: GetOrderRefundedItemsRequest): Promise<Array<OrderRefundedItem> | BlobWithMeta>;
71
71
  /**
72
+ * # Preconditions : - You are buyer/seller of the order or you are administrator
72
73
  * Get removed items for order identified by orderReference
73
74
  */
74
75
  getOrderRemovedItemsRaw(requestParameters: GetOrderRemovedItemsRequest): Promise<ApiResponse<Array<OrderRemovedItem> | BlobWithMeta>>;
75
76
  /**
77
+ * # Preconditions : - You are buyer/seller of the order or you are administrator
76
78
  * Get removed items for order identified by orderReference
77
79
  */
78
80
  getOrderRemovedItems(requestParameters: GetOrderRemovedItemsRequest): Promise<Array<OrderRemovedItem> | BlobWithMeta>;
@@ -411,6 +411,7 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
411
411
  });
412
412
  };
413
413
  /**
414
+ * # Preconditions : - You are buyer/seller of the order or you are administrator
414
415
  * Get removed items for order identified by orderReference
415
416
  */
416
417
  SearchOrderItemApi.prototype.getOrderRemovedItemsRaw = function (requestParameters) {
@@ -478,6 +479,7 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
478
479
  });
479
480
  };
480
481
  /**
482
+ * # Preconditions : - You are buyer/seller of the order or you are administrator
481
483
  * Get removed items for order identified by orderReference
482
484
  */
483
485
  SearchOrderItemApi.prototype.getOrderRemovedItems = function (requestParameters) {
@@ -15,12 +15,13 @@ import { HttpLink } from './HttpLink';
15
15
  import { OrderJournal } from './OrderJournal';
16
16
  import { OrderPrices } from './OrderPrices';
17
17
  import { OrderStatus } from './OrderStatus';
18
+ import { OrderStatusReason } from './OrderStatusReason';
18
19
  import { OrderStorageType } from './OrderStorageType';
19
20
  import { OrderThreads } from './OrderThreads';
20
21
  import { OrderType } from './OrderType';
21
22
  import { UserLink } from './UserLink';
22
23
  /**
23
- * One order contain all items that a buyer request to one seller. If shipping address is empty, use billing address as shipping address
24
+ * One order contain all items that a buyer request to one seller. If shipping address is empty, use billing address as shipping address * Important note : Only administrator and the user who modified the status can see the \'statusComment\' field
24
25
  * @export
25
26
  * @interface Order
26
27
  */
@@ -43,6 +44,18 @@ export interface Order {
43
44
  * @memberof Order
44
45
  */
45
46
  status: OrderStatus;
47
+ /**
48
+ *
49
+ * @type {OrderStatusReason}
50
+ * @memberof Order
51
+ */
52
+ statusReason: OrderStatusReason;
53
+ /**
54
+ * Smart sentence given detail about the current status
55
+ * @type {string}
56
+ * @memberof Order
57
+ */
58
+ statusComment?: string | null;
46
59
  /**
47
60
  * True if the seller accepted the order, false if not
48
61
  * @type {boolean}
@@ -205,6 +218,12 @@ export interface Order {
205
218
  * @memberof Order
206
219
  */
207
220
  journal: OrderJournal;
221
+ /**
222
+ * Version of the order. It is changed each time the order or items are updated
223
+ * @type {string}
224
+ * @memberof Order
225
+ */
226
+ eTag: string;
208
227
  }
209
228
  export declare function OrderFromJSON(json: any): Order;
210
229
  export declare function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order;
@@ -21,6 +21,7 @@ var HttpLink_1 = require("./HttpLink");
21
21
  var OrderJournal_1 = require("./OrderJournal");
22
22
  var OrderPrices_1 = require("./OrderPrices");
23
23
  var OrderStatus_1 = require("./OrderStatus");
24
+ var OrderStatusReason_1 = require("./OrderStatusReason");
24
25
  var OrderStorageType_1 = require("./OrderStorageType");
25
26
  var OrderThreads_1 = require("./OrderThreads");
26
27
  var OrderType_1 = require("./OrderType");
@@ -37,6 +38,8 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'reference': json['reference'],
38
39
  'type': (0, OrderType_1.OrderTypeFromJSON)(json['type']),
39
40
  'status': (0, OrderStatus_1.OrderStatusFromJSON)(json['status']),
41
+ 'statusReason': (0, OrderStatusReason_1.OrderStatusReasonFromJSON)(json['statusReason']),
42
+ 'statusComment': !(0, runtime_1.exists)(json, 'statusComment') ? json['statusComment'] : json['statusComment'],
40
43
  'accepted': json['accepted'],
41
44
  'paused': json['paused'],
42
45
  'inLitigation': json['inLitigation'],
@@ -64,6 +67,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
64
67
  'availableItemsOperations': (0, HttpLink_1.HttpLinkFromJSON)(json['availableItemsOperations']),
65
68
  'tags': json['tags'],
66
69
  'journal': (0, OrderJournal_1.OrderJournalFromJSON)(json['journal']),
70
+ 'eTag': json['eTag'],
67
71
  };
68
72
  }
69
73
  exports.OrderFromJSONTyped = OrderFromJSONTyped;
@@ -78,6 +82,8 @@ function OrderToJSON(value) {
78
82
  'reference': value.reference,
79
83
  'type': (0, OrderType_1.OrderTypeToJSON)(value.type),
80
84
  'status': (0, OrderStatus_1.OrderStatusToJSON)(value.status),
85
+ 'statusReason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.statusReason),
86
+ 'statusComment': value.statusComment,
81
87
  'accepted': value.accepted,
82
88
  'paused': value.paused,
83
89
  'inLitigation': value.inLitigation,
@@ -105,6 +111,7 @@ function OrderToJSON(value) {
105
111
  'availableItemsOperations': (0, HttpLink_1.HttpLinkToJSON)(value.availableItemsOperations),
106
112
  'tags': value.tags,
107
113
  'journal': (0, OrderJournal_1.OrderJournalToJSON)(value.journal),
114
+ 'eTag': value.eTag,
108
115
  };
109
116
  }
110
117
  exports.OrderToJSON = OrderToJSON;
@@ -9,12 +9,31 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { OrderPrices } from './OrderPrices';
12
13
  /**
13
14
  *
14
15
  * @export
15
16
  * @interface OrderJournal
16
17
  */
17
18
  export interface OrderJournal {
19
+ /**
20
+ *
21
+ * @type {OrderPrices}
22
+ * @memberof OrderJournal
23
+ */
24
+ pricesOnCreation?: OrderPrices;
25
+ /**
26
+ * Id of the user that modified status
27
+ * @type {number}
28
+ * @memberof OrderJournal
29
+ */
30
+ statusUpdatedBy: number | null;
31
+ /**
32
+ * Date of the updated status (RFC 3339, section 5.6)
33
+ * @type {Date}
34
+ * @memberof OrderJournal
35
+ */
36
+ statusUpdatedAt: Date;
18
37
  /**
19
38
  * Date when free shipping was reached
20
39
  * @type {Date}
@@ -14,6 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OrderJournalToJSON = exports.OrderJournalFromJSONTyped = exports.OrderJournalFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var OrderPrices_1 = require("./OrderPrices");
17
19
  function OrderJournalFromJSON(json) {
18
20
  return OrderJournalFromJSONTyped(json, false);
19
21
  }
@@ -23,6 +25,9 @@ function OrderJournalFromJSONTyped(json, ignoreDiscriminator) {
23
25
  return json;
24
26
  }
25
27
  return {
28
+ 'pricesOnCreation': !(0, runtime_1.exists)(json, 'pricesOnCreation') ? undefined : (0, OrderPrices_1.OrderPricesFromJSON)(json['pricesOnCreation']),
29
+ 'statusUpdatedBy': json['statusUpdatedBy'],
30
+ 'statusUpdatedAt': (new Date(json['statusUpdatedAt'])),
26
31
  'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
27
32
  };
28
33
  }
@@ -35,6 +40,9 @@ function OrderJournalToJSON(value) {
35
40
  return null;
36
41
  }
37
42
  return {
43
+ 'pricesOnCreation': (0, OrderPrices_1.OrderPricesToJSON)(value.pricesOnCreation),
44
+ 'statusUpdatedBy': value.statusUpdatedBy,
45
+ 'statusUpdatedAt': (value.statusUpdatedAt.toISOString()),
38
46
  'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : value.freeShippingReachedDate.toISOString()),
39
47
  };
40
48
  }
@@ -15,8 +15,10 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum OrderStatus {
18
- WAITINGFORACCEPTANCE = "WAITING_FOR_ACCEPTANCE",
19
- ACCEPTANCEDELAY = "ACCEPTANCE_DELAY",
18
+ WAITINGFORSELLERACCEPTANCE = "WAITING_FOR_SELLER_ACCEPTANCE",
19
+ WAITINGFORBUYERACCEPTANCE = "WAITING_FOR_BUYER_ACCEPTANCE",
20
+ SELLERACCEPTANCEDELAY = "SELLER_ACCEPTANCE_DELAY",
21
+ BUYERACCEPTANCEDELAY = "BUYER_ACCEPTANCE_DELAY",
20
22
  WAITINGFORSENDING = "WAITING_FOR_SENDING",
21
23
  SENDINGDELAY = "SENDING_DELAY",
22
24
  DELIVERYONGOING = "DELIVERY_ONGOING",
@@ -21,8 +21,10 @@ exports.OrderStatusToJSON = exports.OrderStatusFromJSONTyped = exports.OrderStat
21
21
  */
22
22
  var OrderStatus;
23
23
  (function (OrderStatus) {
24
- OrderStatus["WAITINGFORACCEPTANCE"] = "WAITING_FOR_ACCEPTANCE";
25
- OrderStatus["ACCEPTANCEDELAY"] = "ACCEPTANCE_DELAY";
24
+ OrderStatus["WAITINGFORSELLERACCEPTANCE"] = "WAITING_FOR_SELLER_ACCEPTANCE";
25
+ OrderStatus["WAITINGFORBUYERACCEPTANCE"] = "WAITING_FOR_BUYER_ACCEPTANCE";
26
+ OrderStatus["SELLERACCEPTANCEDELAY"] = "SELLER_ACCEPTANCE_DELAY";
27
+ OrderStatus["BUYERACCEPTANCEDELAY"] = "BUYER_ACCEPTANCE_DELAY";
26
28
  OrderStatus["WAITINGFORSENDING"] = "WAITING_FOR_SENDING";
27
29
  OrderStatus["SENDINGDELAY"] = "SENDING_DELAY";
28
30
  OrderStatus["DELIVERYONGOING"] = "DELIVERY_ONGOING";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP orders
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;