@lcdp/api-react-rest-client 2.5.5-LDS-3225-modification-de-commande-vendeu.6783976225 → 2.5.5-LDS-3224-annulation-de-commande.6784526402
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,6 +17,7 @@ export interface CreateOrderRequest {
|
|
|
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;
|
|
@@ -58,12 +59,12 @@ export declare class ManageOrderApi extends BaseAPI {
|
|
|
58
59
|
*/
|
|
59
60
|
createOrder(requestParameters: CreateOrderRequest): Promise<Order | BlobWithMeta>;
|
|
60
61
|
/**
|
|
61
|
-
* Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false
|
|
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
|
|
62
63
|
* Set order accepted flag
|
|
63
64
|
*/
|
|
64
65
|
setOrderAcceptedRaw(requestParameters: SetOrderAcceptedRequest): Promise<ApiResponse<void>>;
|
|
65
66
|
/**
|
|
66
|
-
* Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false
|
|
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
|
|
67
68
|
* Set order accepted flag
|
|
68
69
|
*/
|
|
69
70
|
setOrderAccepted(requestParameters: SetOrderAcceptedRequest): Promise<void>;
|
|
@@ -98,12 +99,12 @@ export declare class ManageOrderApi extends BaseAPI {
|
|
|
98
99
|
*/
|
|
99
100
|
setOrderPaused(requestParameters: SetOrderPausedRequest): Promise<void>;
|
|
100
101
|
/**
|
|
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
|
|
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
|
|
102
103
|
* Update an order
|
|
103
104
|
*/
|
|
104
105
|
updateOrderRaw(requestParameters: UpdateOrderRequest): Promise<ApiResponse<Order | BlobWithMeta>>;
|
|
105
106
|
/**
|
|
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
|
|
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
|
|
107
108
|
* Update an order
|
|
108
109
|
*/
|
|
109
110
|
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 : - \'paused\' property is false
|
|
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
|
|
158
158
|
* Set order accepted flag
|
|
159
159
|
*/
|
|
160
160
|
ManageOrderApi.prototype.setOrderAcceptedRaw = function (requestParameters) {
|
|
@@ -172,6 +172,9 @@ 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
|
+
}
|
|
175
178
|
if (this.configuration && this.configuration.apiKey) {
|
|
176
179
|
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
177
180
|
}
|
|
@@ -205,7 +208,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
|
|
|
205
208
|
});
|
|
206
209
|
};
|
|
207
210
|
/**
|
|
208
|
-
* Set the accepted flag for order identified by OrderId. # Preconditions : - \'paused\' property is false
|
|
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
|
|
209
212
|
* Set order accepted flag
|
|
210
213
|
*/
|
|
211
214
|
ManageOrderApi.prototype.setOrderAccepted = function (requestParameters) {
|
|
@@ -422,7 +425,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
|
|
|
422
425
|
});
|
|
423
426
|
};
|
|
424
427
|
/**
|
|
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
|
|
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
|
|
426
429
|
* Update an order
|
|
427
430
|
*/
|
|
428
431
|
ManageOrderApi.prototype.updateOrderRaw = function (requestParameters) {
|
|
@@ -481,7 +484,7 @@ var ManageOrderApi = /** @class */ (function (_super) {
|
|
|
481
484
|
});
|
|
482
485
|
};
|
|
483
486
|
/**
|
|
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
|
|
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
|
|
485
488
|
* Update an order
|
|
486
489
|
*/
|
|
487
490
|
ManageOrderApi.prototype.updateOrder = function (requestParameters) {
|
|
@@ -9,12 +9,19 @@
|
|
|
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;
|
|
18
25
|
/**
|
|
19
26
|
* Id of the user that modified status
|
|
20
27
|
* @type {number}
|
|
@@ -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,7 @@ 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']),
|
|
26
29
|
'statusModifiedBy': json['statusModifiedBy'],
|
|
27
30
|
'freeShippingReachedDate': (json['freeShippingReachedDate'] === null ? null : new Date(json['freeShippingReachedDate'])),
|
|
28
31
|
};
|
|
@@ -36,6 +39,7 @@ function OrderJournalToJSON(value) {
|
|
|
36
39
|
return null;
|
|
37
40
|
}
|
|
38
41
|
return {
|
|
42
|
+
'pricesOnCreation': (0, OrderPrices_1.OrderPricesToJSON)(value.pricesOnCreation),
|
|
39
43
|
'statusModifiedBy': value.statusModifiedBy,
|
|
40
44
|
'freeShippingReachedDate': (value.freeShippingReachedDate === null ? null : value.freeShippingReachedDate.toISOString()),
|
|
41
45
|
};
|