@lcdp/api-react-rest-client 2.5.6-LDS-3250-permettre-annulation-acheteur.6892373975 → 2.5.6-develop.6796406639

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 (49) hide show
  1. package/lexicon/src/apis/ManageLexiconApi.d.ts +2 -2
  2. package/lexicon/src/apis/ManageLexiconApi.js +2 -2
  3. package/notification/src/models/NotificationTypeId.d.ts +0 -3
  4. package/notification/src/models/NotificationTypeId.js +0 -3
  5. package/order/src/apis/ManageOrderApi.d.ts +19 -8
  6. package/order/src/apis/ManageOrderApi.js +92 -9
  7. package/order/src/apis/ManageOrderItemApi.d.ts +4 -4
  8. package/order/src/apis/ManageOrderItemApi.js +4 -4
  9. package/order/src/apis/SearchOrderApi.d.ts +2 -0
  10. package/order/src/apis/SearchOrderApi.js +2 -0
  11. package/order/src/apis/SearchOrderItemApi.d.ts +0 -2
  12. package/order/src/apis/SearchOrderItemApi.js +0 -2
  13. package/order/src/models/Order.d.ts +1 -14
  14. package/order/src/models/Order.js +0 -5
  15. package/order/src/models/OrderJournal.d.ts +0 -19
  16. package/order/src/models/OrderJournal.js +0 -8
  17. package/order/src/models/OrderStatus.d.ts +2 -4
  18. package/order/src/models/OrderStatus.js +2 -4
  19. package/order/src/models/OrderUpdateParameters.d.ts +0 -20
  20. package/order/src/models/OrderUpdateParameters.js +0 -8
  21. package/order/src/models/Reservation.d.ts +6 -0
  22. package/order/src/models/Reservation.js +2 -0
  23. package/order/src/models/UpdateOrderStatusParameters.d.ts +5 -3
  24. package/order/src/models/UpdateOrderStatusParameters.js +4 -2
  25. package/order/src/models/index.d.ts +0 -1
  26. package/order/src/models/index.js +0 -1
  27. package/order-log/src/models/OrderLog.d.ts +0 -19
  28. package/order-log/src/models/OrderLog.js +2 -3
  29. package/order-log/src/models/OrderLogAllOf.d.ts +0 -19
  30. package/order-log/src/models/OrderLogAllOf.js +0 -7
  31. package/order-log/src/models/index.d.ts +0 -1
  32. package/order-log/src/models/index.js +0 -1
  33. package/package.json +1 -1
  34. package/sale-offer/src/apis/ManageSaleOfferApi.d.ts +2 -2
  35. package/sale-offer/src/apis/ManageSaleOfferApi.js +2 -2
  36. package/sale-offer/src/models/SaleOffer.d.ts +1 -1
  37. package/sale-offer/src/models/SaleOffer.js +1 -1
  38. package/sale-offer/src/models/SaleOfferCreationParameters.d.ts +2 -2
  39. package/sale-offer/src/models/SaleOfferCreationParameters.js +1 -1
  40. package/sale-offer/src/models/SaleOfferJournal.d.ts +1 -1
  41. package/sale-offer/src/models/SaleOfferJournal.js +2 -3
  42. package/sale-offer/src/models/SaleOfferNewVersionParameters.d.ts +1 -1
  43. package/sale-offer/src/models/SaleOfferNewVersionParameters.js +1 -1
  44. package/user/src/models/NotificationTypeId.d.ts +0 -3
  45. package/user/src/models/NotificationTypeId.js +0 -3
  46. package/order/src/models/OrderStatusReason.d.ts +0 -24
  47. package/order/src/models/OrderStatusReason.js +0 -39
  48. package/order-log/src/models/OrderStatusReason.d.ts +0 -24
  49. package/order-log/src/models/OrderStatusReason.js +0 -39
@@ -22,12 +22,12 @@ export interface DeleteTagRequest {
22
22
  */
23
23
  export declare class ManageLexiconApi extends BaseAPI {
24
24
  /**
25
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
25
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
26
26
  * Create a new tag
27
27
  */
28
28
  createTagRaw(requestParameters: CreateTagRequest): Promise<ApiResponse<Tag | BlobWithMeta>>;
29
29
  /**
30
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
30
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
31
31
  * Create a new tag
32
32
  */
33
33
  createTag(requestParameters: CreateTagRequest): Promise<Tag | BlobWithMeta>;
@@ -76,7 +76,7 @@ var ManageLexiconApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
79
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
80
80
  * Create a new tag
81
81
  */
82
82
  ManageLexiconApi.prototype.createTagRaw = function (requestParameters) {
@@ -143,7 +143,7 @@ var ManageLexiconApi = /** @class */ (function (_super) {
143
143
  });
144
144
  };
145
145
  /**
146
- * Tag should be register in this API to be reuse more easely Precondition : - Tag should not be null or an empty string - Tag should be less than 25 characters
146
+ * Tag should be register in this API to be reuse more easely Preconditions : - Tag should not be null or an empty string - Tag should be less than 25 characters
147
147
  * Create a new tag
148
148
  */
149
149
  ManageLexiconApi.prototype.createTag = function (requestParameters) {
@@ -45,9 +45,6 @@ export declare enum NotificationTypeId {
45
45
  ORDERCREATEDBUYER = "ORDER_CREATED_BUYER",
46
46
  ORDERCREATEDSELLER = "ORDER_CREATED_SELLER",
47
47
  ORDERDAILYMAIL = "ORDER_DAILY_MAIL",
48
- ORDERMODIFIED = "ORDER_MODIFIED",
49
- ORDERMODIFICATIONDELAY = "ORDER_MODIFICATION_DELAY",
50
- ORDERMODIFICATIONACCEPTEDBUYER = "ORDER_MODIFICATION_ACCEPTED_BUYER",
51
48
  ORDERRECEIVED = "ORDER_RECEIVED",
52
49
  ORDERSENDINGDELAY = "ORDER_SENDING_DELAY",
53
50
  ORDERSENTBUYER = "ORDER_SENT_BUYER",
@@ -51,9 +51,6 @@ var NotificationTypeId;
51
51
  NotificationTypeId["ORDERCREATEDBUYER"] = "ORDER_CREATED_BUYER";
52
52
  NotificationTypeId["ORDERCREATEDSELLER"] = "ORDER_CREATED_SELLER";
53
53
  NotificationTypeId["ORDERDAILYMAIL"] = "ORDER_DAILY_MAIL";
54
- NotificationTypeId["ORDERMODIFIED"] = "ORDER_MODIFIED";
55
- NotificationTypeId["ORDERMODIFICATIONDELAY"] = "ORDER_MODIFICATION_DELAY";
56
- NotificationTypeId["ORDERMODIFICATIONACCEPTEDBUYER"] = "ORDER_MODIFICATION_ACCEPTED_BUYER";
57
54
  NotificationTypeId["ORDERRECEIVED"] = "ORDER_RECEIVED";
58
55
  NotificationTypeId["ORDERSENDINGDELAY"] = "ORDER_SENDING_DELAY";
59
56
  NotificationTypeId["ORDERSENTBUYER"] = "ORDER_SENT_BUYER";
@@ -10,14 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { AnomaliesUpdateParameters, Order, OrderUpdateParameters, Reservation, ReservationUpdateParameters } from '../models';
13
+ import { AnomaliesUpdateParameters, Order, OrderStatus, 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;
21
20
  }
22
21
  export interface SetOrderDeliveryConfirmedRequest {
23
22
  orderReference: string;
@@ -44,6 +43,10 @@ export interface UpdateOrderReservationRequest {
44
43
  reservationId: string;
45
44
  reservationUpdateParameters: ReservationUpdateParameters;
46
45
  }
46
+ export interface UpdateOrderStatusRequest {
47
+ orderReference: string;
48
+ body: string;
49
+ }
47
50
  /**
48
51
  * no description
49
52
  */
@@ -59,12 +62,12 @@ export declare class ManageOrderApi extends BaseAPI {
59
62
  */
60
63
  createOrder(requestParameters: CreateOrderRequest): Promise<Order | BlobWithMeta>;
61
64
  /**
62
- * 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
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
66
  * Set order accepted flag
64
67
  */
65
68
  setOrderAcceptedRaw(requestParameters: SetOrderAcceptedRequest): Promise<ApiResponse<void>>;
66
69
  /**
67
- * 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
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
71
  * Set order accepted flag
69
72
  */
70
73
  setOrderAccepted(requestParameters: SetOrderAcceptedRequest): Promise<void>;
@@ -99,12 +102,10 @@ export declare class ManageOrderApi extends BaseAPI {
99
102
  */
100
103
  setOrderPaused(requestParameters: SetOrderPausedRequest): Promise<void>;
101
104
  /**
102
- * # 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
103
105
  * Update an order
104
106
  */
105
107
  updateOrderRaw(requestParameters: UpdateOrderRequest): Promise<ApiResponse<Order | BlobWithMeta>>;
106
108
  /**
107
- * # 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
108
109
  * Update an order
109
110
  */
110
111
  updateOrder(requestParameters: UpdateOrderRequest): Promise<Order | BlobWithMeta>;
@@ -117,13 +118,23 @@ export declare class ManageOrderApi extends BaseAPI {
117
118
  */
118
119
  updateOrderAnomalies(requestParameters: UpdateOrderAnomaliesRequest): Promise<void>;
119
120
  /**
120
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
121
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
121
122
  * Update order reservations
122
123
  */
123
124
  updateOrderReservationRaw(requestParameters: UpdateOrderReservationRequest): Promise<ApiResponse<Reservation | BlobWithMeta>>;
124
125
  /**
125
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
126
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
126
127
  * Update order reservations
127
128
  */
128
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>;
129
140
  }
@@ -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 : ## 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
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
166
166
  * Set order accepted flag
167
167
  */
168
168
  ManageOrderApi.prototype.setOrderAcceptedRaw = function (requestParameters) {
@@ -180,9 +180,6 @@ 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
- }
186
183
  if (this.configuration && this.configuration.apiKey) {
187
184
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
188
185
  }
@@ -224,7 +221,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
224
221
  });
225
222
  };
226
223
  /**
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
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
228
225
  * Set order accepted flag
229
226
  */
230
227
  ManageOrderApi.prototype.setOrderAccepted = function (requestParameters) {
@@ -465,7 +462,6 @@ var ManageOrderApi = /** @class */ (function (_super) {
465
462
  });
466
463
  };
467
464
  /**
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
469
465
  * Update an order
470
466
  */
471
467
  ManageOrderApi.prototype.updateOrderRaw = function (requestParameters) {
@@ -532,7 +528,6 @@ var ManageOrderApi = /** @class */ (function (_super) {
532
528
  });
533
529
  };
534
530
  /**
535
- * # 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
536
531
  * Update an order
537
532
  */
538
533
  ManageOrderApi.prototype.updateOrder = function (requestParameters) {
@@ -623,7 +618,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
623
618
  });
624
619
  };
625
620
  /**
626
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
621
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
627
622
  * Update order reservations
628
623
  */
629
624
  ManageOrderApi.prototype.updateOrderReservationRaw = function (requestParameters) {
@@ -696,7 +691,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
696
691
  });
697
692
  };
698
693
  /**
699
- * # Preconditions : - \'released\' can not be greater than \'claimed\'
694
+ * # Preconditions : - \'released\' can not be greater than \'claimed\' - \'released\' can be modified only if \'limitedStock\' is true
700
695
  * Update order reservations
701
696
  */
702
697
  ManageOrderApi.prototype.updateOrderReservation = function (requestParameters) {
@@ -713,6 +708,94 @@ var ManageOrderApi = /** @class */ (function (_super) {
713
708
  });
714
709
  });
715
710
  };
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
+ };
716
799
  return ManageOrderApi;
717
800
  }(runtime_1.BaseAPI));
718
801
  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 - You are the seller of the order or you are administrator
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
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 - You are the seller of the order or you are administrator
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
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 : 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
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
72
72
  * Update order item
73
73
  */
74
74
  updateOrderItemRaw(requestParameters: UpdateOrderItemRequest): Promise<ApiResponse<OrderItem | BlobWithMeta>>;
75
75
  /**
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
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
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 - You are the seller of the order or you are administrator
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
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 - You are the seller of the order or you are administrator
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
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 : 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
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
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 : 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
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
387
387
  * Update order item
388
388
  */
389
389
  ManageOrderItemApi.prototype.updateOrderItem = function (requestParameters) {
@@ -65,10 +65,12 @@ export declare class SearchOrderApi extends BaseAPI {
65
65
  */
66
66
  getOrderDeliveryVoucher(requestParameters: GetOrderDeliveryVoucherRequest): Promise<BlobWithMeta>;
67
67
  /**
68
+ * Preconditions : - You are administrator, BUYER or SELLER
68
69
  * Get reservations for an order
69
70
  */
70
71
  getOrderReservationsRaw(requestParameters: GetOrderReservationsRequest): Promise<ApiResponse<Array<Reservation> | BlobWithMeta>>;
71
72
  /**
73
+ * Preconditions : - You are administrator, BUYER or SELLER
72
74
  * Get reservations for an order
73
75
  */
74
76
  getOrderReservations(requestParameters: GetOrderReservationsRequest): Promise<Array<Reservation> | BlobWithMeta>;
@@ -240,6 +240,7 @@ var SearchOrderApi = /** @class */ (function (_super) {
240
240
  });
241
241
  };
242
242
  /**
243
+ * Preconditions : - You are administrator, BUYER or SELLER
243
244
  * Get reservations for an order
244
245
  */
245
246
  SearchOrderApi.prototype.getOrderReservationsRaw = function (requestParameters) {
@@ -304,6 +305,7 @@ var SearchOrderApi = /** @class */ (function (_super) {
304
305
  });
305
306
  };
306
307
  /**
308
+ * Preconditions : - You are administrator, BUYER or SELLER
307
309
  * Get reservations for an order
308
310
  */
309
311
  SearchOrderApi.prototype.getOrderReservations = function (requestParameters) {
@@ -69,12 +69,10 @@ 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
73
72
  * Get removed items for order identified by orderReference
74
73
  */
75
74
  getOrderRemovedItemsRaw(requestParameters: GetOrderRemovedItemsRequest): Promise<ApiResponse<Array<OrderRemovedItem> | BlobWithMeta>>;
76
75
  /**
77
- * # Preconditions : - You are buyer/seller of the order or you are administrator
78
76
  * Get removed items for order identified by orderReference
79
77
  */
80
78
  getOrderRemovedItems(requestParameters: GetOrderRemovedItemsRequest): Promise<Array<OrderRemovedItem> | BlobWithMeta>;
@@ -411,7 +411,6 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
411
411
  });
412
412
  };
413
413
  /**
414
- * # Preconditions : - You are buyer/seller of the order or you are administrator
415
414
  * Get removed items for order identified by orderReference
416
415
  */
417
416
  SearchOrderItemApi.prototype.getOrderRemovedItemsRaw = function (requestParameters) {
@@ -479,7 +478,6 @@ var SearchOrderItemApi = /** @class */ (function (_super) {
479
478
  });
480
479
  };
481
480
  /**
482
- * # Preconditions : - You are buyer/seller of the order or you are administrator
483
481
  * Get removed items for order identified by orderReference
484
482
  */
485
483
  SearchOrderItemApi.prototype.getOrderRemovedItems = function (requestParameters) {
@@ -15,13 +15,12 @@ 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';
19
18
  import { OrderStorageType } from './OrderStorageType';
20
19
  import { OrderThreads } from './OrderThreads';
21
20
  import { OrderType } from './OrderType';
22
21
  import { UserLink } from './UserLink';
23
22
  /**
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
23
+ * One order contain all items that a buyer request to one seller. If shipping address is empty, use billing address as shipping address
25
24
  * @export
26
25
  * @interface Order
27
26
  */
@@ -44,18 +43,6 @@ export interface Order {
44
43
  * @memberof Order
45
44
  */
46
45
  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;
59
46
  /**
60
47
  * True if the seller accepted the order, false if not
61
48
  * @type {boolean}
@@ -21,7 +21,6 @@ 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");
25
24
  var OrderStorageType_1 = require("./OrderStorageType");
26
25
  var OrderThreads_1 = require("./OrderThreads");
27
26
  var OrderType_1 = require("./OrderType");
@@ -38,8 +37,6 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
38
37
  'reference': json['reference'],
39
38
  'type': (0, OrderType_1.OrderTypeFromJSON)(json['type']),
40
39
  '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'],
43
40
  'accepted': json['accepted'],
44
41
  'paused': json['paused'],
45
42
  'inLitigation': json['inLitigation'],
@@ -81,8 +78,6 @@ function OrderToJSON(value) {
81
78
  'reference': value.reference,
82
79
  'type': (0, OrderType_1.OrderTypeToJSON)(value.type),
83
80
  'status': (0, OrderStatus_1.OrderStatusToJSON)(value.status),
84
- 'statusReason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.statusReason),
85
- 'statusComment': value.statusComment,
86
81
  'accepted': value.accepted,
87
82
  'paused': value.paused,
88
83
  'inLitigation': value.inLitigation,
@@ -9,31 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { OrderPrices } from './OrderPrices';
13
12
  /**
14
13
  *
15
14
  * @export
16
15
  * @interface OrderJournal
17
16
  */
18
17
  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;
37
18
  /**
38
19
  * Date when free shipping was reached
39
20
  * @type {Date}
@@ -14,8 +14,6 @@
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");
19
17
  function OrderJournalFromJSON(json) {
20
18
  return OrderJournalFromJSONTyped(json, false);
21
19
  }
@@ -25,9 +23,6 @@ function OrderJournalFromJSONTyped(json, ignoreDiscriminator) {
25
23
  return json;
26
24
  }
27
25
  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'])),
31
26
  'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
32
27
  };
33
28
  }
@@ -40,9 +35,6 @@ function OrderJournalToJSON(value) {
40
35
  return null;
41
36
  }
42
37
  return {
43
- 'pricesOnCreation': (0, OrderPrices_1.OrderPricesToJSON)(value.pricesOnCreation),
44
- 'statusUpdatedBy': value.statusUpdatedBy,
45
- 'statusUpdatedAt': (value.statusUpdatedAt.toISOString()),
46
38
  'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : value.freeShippingReachedDate.toISOString()),
47
39
  };
48
40
  }
@@ -15,10 +15,8 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum OrderStatus {
18
- WAITINGFORSELLERACCEPTANCE = "WAITING_FOR_SELLER_ACCEPTANCE",
19
- WAITINGFORBUYERACCEPTANCE = "WAITING_FOR_BUYER_ACCEPTANCE",
20
- SELLERACCEPTANCEDELAY = "SELLER_ACCEPTANCE_DELAY",
21
- BUYERACCEPTANCEDELAY = "BUYER_ACCEPTANCE_DELAY",
18
+ WAITINGFORACCEPTANCE = "WAITING_FOR_ACCEPTANCE",
19
+ ACCEPTANCEDELAY = "ACCEPTANCE_DELAY",
22
20
  WAITINGFORSENDING = "WAITING_FOR_SENDING",
23
21
  SENDINGDELAY = "SENDING_DELAY",
24
22
  DELIVERYONGOING = "DELIVERY_ONGOING",
@@ -21,10 +21,8 @@ exports.OrderStatusToJSON = exports.OrderStatusFromJSONTyped = exports.OrderStat
21
21
  */
22
22
  var OrderStatus;
23
23
  (function (OrderStatus) {
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";
24
+ OrderStatus["WAITINGFORACCEPTANCE"] = "WAITING_FOR_ACCEPTANCE";
25
+ OrderStatus["ACCEPTANCEDELAY"] = "ACCEPTANCE_DELAY";
28
26
  OrderStatus["WAITINGFORSENDING"] = "WAITING_FOR_SENDING";
29
27
  OrderStatus["SENDINGDELAY"] = "SENDING_DELAY";
30
28
  OrderStatus["DELIVERYONGOING"] = "DELIVERY_ONGOING";
@@ -9,32 +9,12 @@
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';
14
12
  /**
15
13
  *
16
14
  * @export
17
15
  * @interface OrderUpdateParameters
18
16
  */
19
17
  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;
38
18
  /**
39
19
  * Labels of the order
40
20
  * @type {Array<string>}
@@ -15,8 +15,6 @@
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");
20
18
  function OrderUpdateParametersFromJSON(json) {
21
19
  return OrderUpdateParametersFromJSONTyped(json, false);
22
20
  }
@@ -26,9 +24,6 @@ function OrderUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
26
24
  return json;
27
25
  }
28
26
  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'],
32
27
  'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
33
28
  };
34
29
  }
@@ -41,9 +36,6 @@ function OrderUpdateParametersToJSON(value) {
41
36
  return null;
42
37
  }
43
38
  return {
44
- 'status': (0, UpdateOrderStatusParameters_1.UpdateOrderStatusParametersToJSON)(value.status),
45
- 'statusReason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.statusReason),
46
- 'statusComment': value.statusComment,
47
39
  'tags': value.tags,
48
40
  };
49
41
  }
@@ -35,6 +35,12 @@ export interface Reservation {
35
35
  * @memberof Reservation
36
36
  */
37
37
  saleOffer?: SaleOfferLink;
38
+ /**
39
+ * True if the associated sale offer have a limited stock. False if not. Important note : You can not release claimed items for a non limited-stock sale offer.
40
+ * @type {boolean}
41
+ * @memberof Reservation
42
+ */
43
+ limitedStock?: boolean;
38
44
  /**
39
45
  * Total number of item linked to this order (claimed + released)
40
46
  * @type {number}
@@ -29,6 +29,7 @@ function ReservationFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
30
30
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
31
31
  'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
32
+ 'limitedStock': !(0, runtime_1.exists)(json, 'limitedStock') ? undefined : json['limitedStock'],
32
33
  'total': !(0, runtime_1.exists)(json, 'total') ? undefined : json['total'],
33
34
  'claimed': !(0, runtime_1.exists)(json, 'claimed') ? undefined : json['claimed'],
34
35
  'released': !(0, runtime_1.exists)(json, 'released') ? undefined : json['released'],
@@ -46,6 +47,7 @@ function ReservationToJSON(value) {
46
47
  'id': value.id,
47
48
  'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
48
49
  'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
50
+ 'limitedStock': value.limitedStock,
49
51
  'total': value.total,
50
52
  'claimed': value.claimed,
51
53
  'released': value.released,
@@ -15,14 +15,16 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum UpdateOrderStatusParameters {
18
- WAITINGFORSELLERACCEPTANCE = "WAITING_FOR_SELLER_ACCEPTANCE",
19
- WAITINGFORBUYERACCEPTANCE = "WAITING_FOR_BUYER_ACCEPTANCE",
18
+ WAITINGFORACCEPTANCE = "WAITING_FOR_ACCEPTANCE",
19
+ ACCEPTANCEDELAY = "ACCEPTANCE_DELAY",
20
20
  WAITINGFORSENDING = "WAITING_FOR_SENDING",
21
+ SENDINGDELAY = "SENDING_DELAY",
21
22
  DELIVERYONGOING = "DELIVERY_ONGOING",
22
23
  WAITINGFORVALIDATION = "WAITING_FOR_VALIDATION",
23
24
  CANCELED = "CANCELED",
24
25
  ARCHIVED = "ARCHIVED",
25
- WAITINGFORADMINVALIDATION = "WAITING_FOR_ADMIN_VALIDATION"
26
+ WAITINGFORADMINVALIDATION = "WAITING_FOR_ADMIN_VALIDATION",
27
+ DELIVERYLATE = "DELIVERY_LATE"
26
28
  }
27
29
  export declare function UpdateOrderStatusParametersFromJSON(json: any): UpdateOrderStatusParameters;
28
30
  export declare function UpdateOrderStatusParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderStatusParameters;
@@ -21,14 +21,16 @@ exports.UpdateOrderStatusParametersToJSON = exports.UpdateOrderStatusParametersF
21
21
  */
22
22
  var UpdateOrderStatusParameters;
23
23
  (function (UpdateOrderStatusParameters) {
24
- UpdateOrderStatusParameters["WAITINGFORSELLERACCEPTANCE"] = "WAITING_FOR_SELLER_ACCEPTANCE";
25
- UpdateOrderStatusParameters["WAITINGFORBUYERACCEPTANCE"] = "WAITING_FOR_BUYER_ACCEPTANCE";
24
+ UpdateOrderStatusParameters["WAITINGFORACCEPTANCE"] = "WAITING_FOR_ACCEPTANCE";
25
+ UpdateOrderStatusParameters["ACCEPTANCEDELAY"] = "ACCEPTANCE_DELAY";
26
26
  UpdateOrderStatusParameters["WAITINGFORSENDING"] = "WAITING_FOR_SENDING";
27
+ UpdateOrderStatusParameters["SENDINGDELAY"] = "SENDING_DELAY";
27
28
  UpdateOrderStatusParameters["DELIVERYONGOING"] = "DELIVERY_ONGOING";
28
29
  UpdateOrderStatusParameters["WAITINGFORVALIDATION"] = "WAITING_FOR_VALIDATION";
29
30
  UpdateOrderStatusParameters["CANCELED"] = "CANCELED";
30
31
  UpdateOrderStatusParameters["ARCHIVED"] = "ARCHIVED";
31
32
  UpdateOrderStatusParameters["WAITINGFORADMINVALIDATION"] = "WAITING_FOR_ADMIN_VALIDATION";
33
+ UpdateOrderStatusParameters["DELIVERYLATE"] = "DELIVERY_LATE";
32
34
  })(UpdateOrderStatusParameters = exports.UpdateOrderStatusParameters || (exports.UpdateOrderStatusParameters = {}));
33
35
  function UpdateOrderStatusParametersFromJSON(json) {
34
36
  return UpdateOrderStatusParametersFromJSONTyped(json, false);
@@ -24,7 +24,6 @@ export * from './OrderRefundedItem';
24
24
  export * from './OrderRemovedItem';
25
25
  export * from './OrderRemovedItemUpdateParameters';
26
26
  export * from './OrderStatus';
27
- export * from './OrderStatusReason';
28
27
  export * from './OrderStorageType';
29
28
  export * from './OrderThreads';
30
29
  export * from './OrderType';
@@ -40,7 +40,6 @@ __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);
44
43
  __exportStar(require("./OrderStorageType"), exports);
45
44
  __exportStar(require("./OrderThreads"), exports);
46
45
  __exportStar(require("./OrderType"), exports);
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { Log } from './Log';
13
13
  import { OrderLink } from './OrderLink';
14
- import { OrderStatusReason } from './OrderStatusReason';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -30,24 +29,6 @@ export interface OrderLog extends Log {
30
29
  * @memberof OrderLog
31
30
  */
32
31
  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;
51
32
  }
52
33
  export declare function OrderLogFromJSON(json: any): OrderLog;
53
34
  export declare function OrderLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderLog;
@@ -27,7 +27,6 @@ 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");
31
30
  function OrderLogFromJSON(json) {
32
31
  return OrderLogFromJSONTyped(json, false);
33
32
  }
@@ -36,7 +35,7 @@ function OrderLogFromJSONTyped(json, ignoreDiscriminator) {
36
35
  if ((json === undefined) || (json === null)) {
37
36
  return json;
38
37
  }
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'] });
38
+ return __assign(__assign({}, (0, Log_1.LogFromJSONTyped)(json, ignoreDiscriminator)), { 'type': json['type'], 'order': (0, OrderLink_1.OrderLinkFromJSON)(json['order']) });
40
39
  }
41
40
  exports.OrderLogFromJSONTyped = OrderLogFromJSONTyped;
42
41
  function OrderLogToJSON(value) {
@@ -46,6 +45,6 @@ function OrderLogToJSON(value) {
46
45
  if (value === null) {
47
46
  return null;
48
47
  }
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 });
48
+ return __assign(__assign({}, (0, Log_1.LogToJSON)(value)), { 'type': value.type, 'order': (0, OrderLink_1.OrderLinkToJSON)(value.order) });
50
49
  }
51
50
  exports.OrderLogToJSON = OrderLogToJSON;
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { OrderLink } from './OrderLink';
13
- import { OrderStatusReason } from './OrderStatusReason';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -29,24 +28,6 @@ export interface OrderLogAllOf {
29
28
  * @memberof OrderLogAllOf
30
29
  */
31
30
  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;
50
31
  }
51
32
  export declare function OrderLogAllOfFromJSON(json: any): OrderLogAllOf;
52
33
  export declare function OrderLogAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderLogAllOf;
@@ -15,7 +15,6 @@
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");
19
18
  function OrderLogAllOfFromJSON(json) {
20
19
  return OrderLogAllOfFromJSONTyped(json, false);
21
20
  }
@@ -27,9 +26,6 @@ function OrderLogAllOfFromJSONTyped(json, ignoreDiscriminator) {
27
26
  return {
28
27
  'type': json['type'],
29
28
  'order': (0, OrderLink_1.OrderLinkFromJSON)(json['order']),
30
- 'reason': (0, OrderStatusReason_1.OrderStatusReasonFromJSON)(json['reason']),
31
- 'comment': json['comment'],
32
- 'updatedBy': json['updatedBy'],
33
29
  };
34
30
  }
35
31
  exports.OrderLogAllOfFromJSONTyped = OrderLogAllOfFromJSONTyped;
@@ -43,9 +39,6 @@ function OrderLogAllOfToJSON(value) {
43
39
  return {
44
40
  'type': value.type,
45
41
  'order': (0, OrderLink_1.OrderLinkToJSON)(value.order),
46
- 'reason': (0, OrderStatusReason_1.OrderStatusReasonToJSON)(value.reason),
47
- 'comment': value.comment,
48
- 'updatedBy': value.updatedBy,
49
42
  };
50
43
  }
51
44
  exports.OrderLogAllOfToJSON = OrderLogAllOfToJSON;
@@ -5,7 +5,6 @@ export * from './OrderLink';
5
5
  export * from './OrderLinkAllOf';
6
6
  export * from './OrderLog';
7
7
  export * from './OrderLogAllOf';
8
- export * from './OrderStatusReason';
9
8
  export * from './PaginatedObject';
10
9
  export * from './PaginatedOrderLogs';
11
10
  export * from './PaginatedOrderLogsAllOf';
@@ -21,7 +21,6 @@ __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);
25
24
  __exportStar(require("./PaginatedObject"), exports);
26
25
  __exportStar(require("./PaginatedOrderLogs"), exports);
27
26
  __exportStar(require("./PaginatedOrderLogsAllOf"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.5.6-LDS-3250-permettre-annulation-acheteur.6892373975",
3
+ "version": "2.5.6-develop.6796406639",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -43,12 +43,12 @@ export interface UpdateSaleOffersRequest {
43
43
  */
44
44
  export declare class ManageSaleOfferApi extends BaseAPI {
45
45
  /**
46
- * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
46
+ * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice - For unitary sale offer, minimalQuantity should be lower than stock remainingQuantity # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
47
47
  * Create a new sale offer
48
48
  */
49
49
  createSaleOfferRaw(requestParameters: CreateSaleOfferRequest): Promise<ApiResponse<SaleOffer | BlobWithMeta>>;
50
50
  /**
51
- * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
51
+ * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice - For unitary sale offer, minimalQuantity should be lower than stock remainingQuantity # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
52
52
  * Create a new sale offer
53
53
  */
54
54
  createSaleOffer(requestParameters: CreateSaleOfferRequest): Promise<SaleOffer | BlobWithMeta>;
@@ -76,7 +76,7 @@ var ManageSaleOfferApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
- * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
79
+ * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice - For unitary sale offer, minimalQuantity should be lower than stock remainingQuantity # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
80
80
  * Create a new sale offer
81
81
  */
82
82
  ManageSaleOfferApi.prototype.createSaleOfferRaw = function (requestParameters) {
@@ -143,7 +143,7 @@ var ManageSaleOfferApi = /** @class */ (function (_super) {
143
143
  });
144
144
  };
145
145
  /**
146
- * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
146
+ * Create a new sale offer. WARNING : There is some special restrictions according the user that create sale offer # All : - Owner should have a valid mangopay mandate - Unit price should be lower than product unitPrice - For unitary sale offer, minimalQuantity should be lower than stock remainingQuantity # Pharmacy : - Can only create UNITARY sale offer - Sale offer should have at least one item in quantity - Can not set images on sale offers - Can not create sale offers without stock - Can create sale offer only for legal allowed products - Batch should be auhtorized by ANSM/DGCCRF - Lapsing date of stock must be after REQUIRED_LAPSING_MONTHS months # Laboratory : - Can not create a sale offer on a product that already have an existing non-disabled sale offer - Can create sale offer without lapsing - Can create sale offer without remaining quantity
147
147
  * Create a new sale offer
148
148
  */
149
149
  ManageSaleOfferApi.prototype.createSaleOffer = function (requestParameters) {
@@ -58,7 +58,7 @@ export interface SaleOffer {
58
58
  * @type {AnyIdentifiedDistributionMode}
59
59
  * @memberof SaleOffer
60
60
  */
61
- distributionMode?: AnyIdentifiedDistributionMode | null;
61
+ distributionMode?: AnyIdentifiedDistributionMode;
62
62
  /**
63
63
  * The minimal unit price for this sale offer.
64
64
  * @type {number}
@@ -37,7 +37,7 @@ function SaleOfferFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
38
38
  'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
39
39
  'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
40
- 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
40
+ 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? undefined : (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
41
41
  'minimalUnitPrice': !(0, runtime_1.exists)(json, 'minimalUnitPrice') ? undefined : json['minimalUnitPrice'],
42
42
  'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'],
43
43
  'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
@@ -13,7 +13,7 @@ import { AnyDistributionMode } from './AnyDistributionMode';
13
13
  import { SaleOfferCreationImagesParameters } from './SaleOfferCreationImagesParameters';
14
14
  import { Stock } from './Stock';
15
15
  /**
16
- * All these fields are required for ad creation from scratch but optional when copying from an existing ad
16
+ * All these fields are optional when copying from an existing ad. List of fields required in case of sale offer creation from scratch : - ownerId - productId - distributionMode
17
17
  * @export
18
18
  * @interface SaleOfferCreationParameters
19
19
  */
@@ -41,7 +41,7 @@ export interface SaleOfferCreationParameters {
41
41
  * @type {AnyDistributionMode}
42
42
  * @memberof SaleOfferCreationParameters
43
43
  */
44
- distributionMode?: AnyDistributionMode | null;
44
+ distributionMode?: AnyDistributionMode;
45
45
  /**
46
46
  * Free text to describe this ad
47
47
  * @type {string}
@@ -30,7 +30,7 @@ function SaleOfferCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'ownerId': !(0, runtime_1.exists)(json, 'ownerId') ? undefined : json['ownerId'],
31
31
  'productId': !(0, runtime_1.exists)(json, 'productId') ? undefined : json['productId'],
32
32
  'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
33
- 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyDistributionMode_1.AnyDistributionModeFromJSON)(json['distributionMode']),
33
+ 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? undefined : (0, AnyDistributionMode_1.AnyDistributionModeFromJSON)(json['distributionMode']),
34
34
  'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
35
35
  'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, SaleOfferCreationImagesParameters_1.SaleOfferCreationImagesParametersFromJSON)(json['images']),
36
36
  'rank': !(0, runtime_1.exists)(json, 'rank') ? json['rank'] : json['rank'],
@@ -20,7 +20,7 @@ export interface SaleOfferJournal {
20
20
  * @type {Date}
21
21
  * @memberof SaleOfferJournal
22
22
  */
23
- statusUpdatedAt?: Date;
23
+ statusUpdatedAt: Date;
24
24
  }
25
25
  export declare function SaleOfferJournalFromJSON(json: any): SaleOfferJournal;
26
26
  export declare function SaleOfferJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferJournal;
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SaleOfferJournalToJSON = exports.SaleOfferJournalFromJSONTyped = exports.SaleOfferJournalFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  function SaleOfferJournalFromJSON(json) {
19
18
  return SaleOfferJournalFromJSONTyped(json, false);
20
19
  }
@@ -24,7 +23,7 @@ function SaleOfferJournalFromJSONTyped(json, ignoreDiscriminator) {
24
23
  return json;
25
24
  }
26
25
  return {
27
- 'statusUpdatedAt': !(0, runtime_1.exists)(json, 'statusUpdatedAt') ? undefined : (new Date(json['statusUpdatedAt'])),
26
+ 'statusUpdatedAt': (new Date(json['statusUpdatedAt'])),
28
27
  };
29
28
  }
30
29
  exports.SaleOfferJournalFromJSONTyped = SaleOfferJournalFromJSONTyped;
@@ -36,7 +35,7 @@ function SaleOfferJournalToJSON(value) {
36
35
  return null;
37
36
  }
38
37
  return {
39
- 'statusUpdatedAt': value.statusUpdatedAt === undefined ? undefined : (value.statusUpdatedAt.toISOString()),
38
+ 'statusUpdatedAt': (value.statusUpdatedAt.toISOString()),
40
39
  };
41
40
  }
42
41
  exports.SaleOfferJournalToJSON = SaleOfferJournalToJSON;
@@ -29,7 +29,7 @@ export interface SaleOfferNewVersionParameters {
29
29
  * @type {AnyDistributionMode}
30
30
  * @memberof SaleOfferNewVersionParameters
31
31
  */
32
- distributionMode?: AnyDistributionMode | null;
32
+ distributionMode?: AnyDistributionMode;
33
33
  /**
34
34
  *
35
35
  * @type {SaleOfferCreationImagesParameters}
@@ -28,7 +28,7 @@ function SaleOfferNewVersionParametersFromJSONTyped(json, ignoreDiscriminator) {
28
28
  }
29
29
  return {
30
30
  'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
31
- 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyDistributionMode_1.AnyDistributionModeFromJSON)(json['distributionMode']),
31
+ 'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? undefined : (0, AnyDistributionMode_1.AnyDistributionModeFromJSON)(json['distributionMode']),
32
32
  'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, SaleOfferCreationImagesParameters_1.SaleOfferCreationImagesParametersFromJSON)(json['images']),
33
33
  'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
34
34
  'rank': !(0, runtime_1.exists)(json, 'rank') ? json['rank'] : json['rank'],
@@ -45,9 +45,6 @@ export declare enum NotificationTypeId {
45
45
  ORDERCREATEDBUYER = "ORDER_CREATED_BUYER",
46
46
  ORDERCREATEDSELLER = "ORDER_CREATED_SELLER",
47
47
  ORDERDAILYMAIL = "ORDER_DAILY_MAIL",
48
- ORDERMODIFIED = "ORDER_MODIFIED",
49
- ORDERMODIFICATIONDELAY = "ORDER_MODIFICATION_DELAY",
50
- ORDERMODIFICATIONACCEPTEDBUYER = "ORDER_MODIFICATION_ACCEPTED_BUYER",
51
48
  ORDERRECEIVED = "ORDER_RECEIVED",
52
49
  ORDERSENDINGDELAY = "ORDER_SENDING_DELAY",
53
50
  ORDERSENTBUYER = "ORDER_SENT_BUYER",
@@ -51,9 +51,6 @@ var NotificationTypeId;
51
51
  NotificationTypeId["ORDERCREATEDBUYER"] = "ORDER_CREATED_BUYER";
52
52
  NotificationTypeId["ORDERCREATEDSELLER"] = "ORDER_CREATED_SELLER";
53
53
  NotificationTypeId["ORDERDAILYMAIL"] = "ORDER_DAILY_MAIL";
54
- NotificationTypeId["ORDERMODIFIED"] = "ORDER_MODIFIED";
55
- NotificationTypeId["ORDERMODIFICATIONDELAY"] = "ORDER_MODIFICATION_DELAY";
56
- NotificationTypeId["ORDERMODIFICATIONACCEPTEDBUYER"] = "ORDER_MODIFICATION_ACCEPTED_BUYER";
57
54
  NotificationTypeId["ORDERRECEIVED"] = "ORDER_RECEIVED";
58
55
  NotificationTypeId["ORDERSENDINGDELAY"] = "ORDER_SENDING_DELAY";
59
56
  NotificationTypeId["ORDERSENTBUYER"] = "ORDER_SENT_BUYER";
@@ -1,24 +0,0 @@
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;
@@ -1,39 +0,0 @@
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;
@@ -1,24 +0,0 @@
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;
@@ -1,39 +0,0 @@
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;