@lcdp/api-react-rest-client 2.5.5-LDS-3226-modification-de-commande-achete.6783978614 → 2.5.5-LDS-3225-modification-de-commande-vendeu.6783976225

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.
@@ -17,7 +17,6 @@ export interface CreateOrderRequest {
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;
@@ -59,12 +58,12 @@ export declare class ManageOrderApi extends BaseAPI {
59
58
  */
60
59
  createOrder(requestParameters: CreateOrderRequest): Promise<Order | BlobWithMeta>;
61
60
  /**
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
61
+ * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
63
62
  * Set order accepted flag
64
63
  */
65
64
  setOrderAcceptedRaw(requestParameters: SetOrderAcceptedRequest): Promise<ApiResponse<void>>;
66
65
  /**
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
66
+ * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
68
67
  * Set order accepted flag
69
68
  */
70
69
  setOrderAccepted(requestParameters: SetOrderAcceptedRequest): Promise<void>;
@@ -99,12 +98,12 @@ export declare class ManageOrderApi extends BaseAPI {
99
98
  */
100
99
  setOrderPaused(requestParameters: SetOrderPausedRequest): Promise<void>;
101
100
  /**
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_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
101
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status ### CANCELED: - You are the seller - Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ### OTHERS : - You are an admin
103
102
  * Update an order
104
103
  */
105
104
  updateOrderRaw(requestParameters: UpdateOrderRequest): Promise<ApiResponse<Order | BlobWithMeta>>;
106
105
  /**
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_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
106
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status ### CANCELED: - You are the seller - Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ### OTHERS : - You are an admin
108
107
  * Update an order
109
108
  */
110
109
  updateOrder(requestParameters: UpdateOrderRequest): Promise<Order | BlobWithMeta>;
@@ -154,7 +154,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
154
154
  });
155
155
  };
156
156
  /**
157
- * 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
157
+ * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
158
158
  * Set order accepted flag
159
159
  */
160
160
  ManageOrderApi.prototype.setOrderAcceptedRaw = function (requestParameters) {
@@ -172,9 +172,6 @@ var ManageOrderApi = /** @class */ (function (_super) {
172
172
  queryParameters = {};
173
173
  headerParameters = {};
174
174
  headerParameters['Content-Type'] = 'application/json';
175
- if (requestParameters.ifMatch !== undefined && requestParameters.ifMatch !== null) {
176
- headerParameters['If-Match'] = String(requestParameters.ifMatch);
177
- }
178
175
  if (this.configuration && this.configuration.apiKey) {
179
176
  headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
180
177
  }
@@ -208,7 +205,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
208
205
  });
209
206
  };
210
207
  /**
211
- * 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
208
+ * Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false - Status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) - \'accepted\' property is false (Limitation that may be removed in the future) - You are the SELLER
212
209
  * Set order accepted flag
213
210
  */
214
211
  ManageOrderApi.prototype.setOrderAccepted = function (requestParameters) {
@@ -425,7 +422,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
425
422
  });
426
423
  };
427
424
  /**
428
- * # 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_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
425
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status ### CANCELED: - You are the seller - Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ### OTHERS : - You are an admin
429
426
  * Update an order
430
427
  */
431
428
  ManageOrderApi.prototype.updateOrderRaw = function (requestParameters) {
@@ -484,7 +481,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
484
481
  });
485
482
  };
486
483
  /**
487
- * # 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_BUYER_ACCEPTANCE, BUYER_ACCEPTANCE_DELAY) - OTHERS: > Not authorized
484
+ * # Preconditions : ## tags - You are an admin ## statusReason / statusCause - You are the user who set the status or you are currently setting the status ## Status ### CANCELED: - You are the seller - Current status in (WAITING_FOR_SELLER_ACCEPTANCE, WAITING_FOR_BUYER_ACCEPTANCE, SELLER_ACCEPTANCE_DELAY, BUYER_ACCEPTANCE_DELAY) ### OTHERS : - You are an admin
488
485
  * Update an order
489
486
  */
490
487
  ManageOrderApi.prototype.updateOrder = function (requestParameters) {
@@ -9,19 +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
18
  /**
26
19
  * Id of the user that modified status
27
20
  * @type {number}
@@ -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,7 +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
26
  'statusModifiedBy': json['statusModifiedBy'],
30
27
  'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
31
28
  };
@@ -39,7 +36,6 @@ function OrderJournalToJSON(value) {
39
36
  return null;
40
37
  }
41
38
  return {
42
- 'pricesOnCreation': (0, OrderPrices_1.OrderPricesToJSON)(value.pricesOnCreation),
43
39
  'statusModifiedBy': value.statusModifiedBy,
44
40
  'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : value.freeShippingReachedDate.toISOString()),
45
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.5.5-LDS-3226-modification-de-commande-achete.6783978614",
3
+ "version": "2.5.5-LDS-3225-modification-de-commande-vendeu.6783976225",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },