@djust-b2b/djust-front-sdk 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +7 -4
- package/lib/interfaces/models/customer-user.d.ts +6 -0
- package/lib/interfaces/models/order.d.ts +96 -0
- package/lib/services/auth/index.d.ts +12 -13
- package/lib/services/auth/index.js +12 -13
- package/lib/services/commercial-order/definitions.d.ts +20 -3
- package/lib/services/commercial-order/index.d.ts +361 -15
- package/lib/services/commercial-order/index.js +397 -33
- package/lib/services/customer-account/index.d.ts +1781 -23
- package/lib/services/customer-account/index.js +1780 -45
- package/lib/services/customer-user/definitions.d.ts +3 -1
- package/lib/services/customer-user/index.d.ts +2 -2
- package/lib/services/logistic-order/definitions.d.ts +16 -1
- package/lib/services/logistic-order/index.d.ts +799 -28
- package/lib/services/logistic-order/index.js +823 -28
- package/lib/services/navigation-category/index.d.ts +122 -3
- package/lib/services/navigation-category/index.js +122 -3
- package/package.json +1 -1
|
@@ -1,105 +1,876 @@
|
|
|
1
|
-
import { AddLogisticOrderReviewParameters, AddLogisticOrderReviewResponse, ApproveLogisticOrderParameters, ApproveLogisticOrderResponse, CancelLogisticOrderParameters, CancelLogisticOrderResponse, ConfirmLogisticOrderReceptionParameters, ConfirmLogisticOrderReceptionResponse, CreateLogisticOrderThreadParameters, DisapproveLogisticOrderParameters, DisapproveLogisticOrderResponse, GetLogisticOrderAccountingDocumentsParameters, GetLogisticOrderAccountingDocumentsResponse, GetLogisticOrderAccountingDocumentUrlParameters, GetLogisticOrderApproversParameters, GetLogisticOrderApproversResponse, GetLogisticOrderCustomFieldsParameters, GetLogisticOrderCustomFieldsResponse, GetLogisticOrderDocumentsParameters, GetLogisticOrderDocumentsResponse, GetLogisticOrderDocumentUrlParameters, GetLogisticOrderLineCustomFieldsParameters, GetLogisticOrderLineCustomFieldsResponse, GetLogisticOrderLinesParameters, GetLogisticOrderLinesResponse, GetLogisticOrderParameters, GetLogisticOrderResponse, GetLogisticOrderReviewParameters, GetLogisticOrderReviewResponse, GetLogisticOrderShippingAddressParameters, GetLogisticOrderShippingAddressResponse, GetLogisticOrdersParameters, GetLogisticOrdersResponse, GetThreadReasonTypesResponse, GetThreadSubReasonsParameters, GetThreadSubReasonsResponse, UpdateLogisticOrderBillingInformationParameters, UpdateLogisticOrderCustomFieldsParameters, UpdateLogisticOrderCustomFieldsResponse, UpdateLogisticOrderLineCustomFieldsParameters, UpdateLogisticOrderLineCustomFieldsResponse, UpdateLogisticOrderShippingAddressParameters, UpdateLogisticOrderShippingInformationParameters, UpdateLogisticOrderShippingTypeParameters } from "./definitions";
|
|
1
|
+
import { AddLogisticOrderReviewParameters, AddLogisticOrderReviewResponse, ApproveLogisticOrderParameters, ApproveLogisticOrderResponse, CancelLogisticOrderParameters, CancelLogisticOrderResponse, ConfirmLogisticOrderReceptionParameters, ConfirmLogisticOrderReceptionResponse, CreateLogisticOrderParameters, CreateLogisticOrderThreadParameters, DisapproveLogisticOrderParameters, DisapproveLogisticOrderResponse, GetLogisticOrderAccountingDocumentsParameters, GetLogisticOrderAccountingDocumentsResponse, GetLogisticOrderAccountingDocumentUrlParameters, GetLogisticOrderApproversParameters, GetLogisticOrderApproversResponse, GetLogisticOrderCustomFieldsParameters, GetLogisticOrderCustomFieldsResponse, GetLogisticOrderDocumentsParameters, GetLogisticOrderDocumentsResponse, GetLogisticOrderDocumentUrlParameters, GetLogisticOrderLineCustomFieldsParameters, GetLogisticOrderLineCustomFieldsResponse, GetLogisticOrderLinesParameters, GetLogisticOrderLinesResponse, GetLogisticOrderParameters, GetLogisticOrderResponse, GetLogisticOrderReviewParameters, GetLogisticOrderReviewResponse, GetLogisticOrderShippingAddressParameters, GetLogisticOrderShippingAddressResponse, GetLogisticOrdersParameters, GetLogisticOrdersResponse, GetThreadReasonTypesResponse, GetThreadSubReasonsParameters, GetThreadSubReasonsResponse, UpdateLogisticOrderBillingInformationParameters, UpdateLogisticOrderCustomFieldsParameters, UpdateLogisticOrderCustomFieldsResponse, UpdateLogisticOrderLineCustomFieldsParameters, UpdateLogisticOrderLineCustomFieldsResponse, UpdateLogisticOrderShippingAddressParameters, UpdateLogisticOrderShippingInformationParameters, UpdateLogisticOrderShippingTypeParameters, UpdateOnHoldLogisticOrderLineParameters, UpdateOnHoldLogisticOrderLinesParameters, UpdateOnHoldLogisticOrderLinesResponse } from "./definitions";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* 🚚 Gets logistic orders.
|
|
4
|
+
*
|
|
5
|
+
* This function retrieves all logistic orders. The parameter locale is mandatory and validated
|
|
6
|
+
* before the request is executed.
|
|
7
|
+
*
|
|
8
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders [ORDER-550]`
|
|
9
|
+
*
|
|
10
|
+
* | Parameter | Type | Required | Description |
|
|
11
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
12
|
+
* | `approvalIds` | `string` | ❌ | The IDs of the users responsible for the approval of the logistic order. |
|
|
13
|
+
* | `locale` | `string` | ✅ | The locale in which to return the logistic order. |
|
|
14
|
+
* | `logisticStatus` | `OrderLogisticStatusType[]` | ❌ | The statuses of the logistic orders you want to retrieve . |
|
|
15
|
+
* | `incident` | `boolean` | ❌ | Whether you want to retrieve incidents or not. |
|
|
16
|
+
* | `paymentOptions` | `PaymentOption[]` | ❌ | The types of payment (e.g., `BANK WIRE`, `CREDIT_CARD`). |
|
|
17
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
18
|
+
* | `page` | `integer` | ❌ | The page number you want to retrieve. |
|
|
19
|
+
* | `size` | `integer` | ❌ | The size of the page you want to retrieve. |
|
|
20
|
+
* | `sort` | `string` | ❌ | The order how you want to retrieve the custom fields. |
|
|
21
|
+
*
|
|
22
|
+
* 📤 **Returns**:
|
|
23
|
+
* A `Promise` resolving to a single `GetLogisticOrdersResponse` object representing the page of logistic orders.
|
|
24
|
+
*
|
|
25
|
+
* 🛠 **Example usage**:
|
|
26
|
+
* ```ts
|
|
27
|
+
* const orders = await getLogisticOrders({
|
|
28
|
+
* locale: "fr",
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @param {GetLogisticOrdersParameters} params - The parameters for the request.
|
|
33
|
+
* @throws {Error} If `locale` is missing.
|
|
34
|
+
* @returns {Promise<GetLogisticOrdersResponse>} A promise resolving to the response containing page object.
|
|
4
35
|
*/
|
|
5
36
|
export declare function getLogisticOrders({ approvalIds, locale, logisticStatus, incident, paymentOptions, nbPreviewLines, page, size, sort, }: GetLogisticOrdersParameters): Promise<GetLogisticOrdersResponse>;
|
|
6
37
|
/**
|
|
7
|
-
* Get logistic order custom fields
|
|
38
|
+
* 🚚 Get logistic order's custom fields.
|
|
39
|
+
*
|
|
40
|
+
* This function retrieves custom fields of logistic orders, identified by
|
|
41
|
+
* the `customFieldIds`. This parameter is mandatory and validated
|
|
42
|
+
* before the request is executed.
|
|
43
|
+
*
|
|
44
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/custom-fields [ORDER-553]`
|
|
45
|
+
*
|
|
46
|
+
* | Parameter | Type | Required | Description |
|
|
47
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
48
|
+
* | `customFieldIds` | `string[]` | ✅ | The list of custom fields' ID you want to retrieve. |
|
|
49
|
+
* | `page` | `integer` | ❌ | The page number you want to retrieve. |
|
|
50
|
+
* | `size` | `integer` | ❌ | The size of the page you want to retrieve. |
|
|
51
|
+
* | `sort` | `string` | ❌ | The order how you want to retrieve the custom fields. |
|
|
52
|
+
*
|
|
53
|
+
* 📤 **Returns**:
|
|
54
|
+
* A `Promise` resolving to a single `GetLogisticOrderCustomFieldsResponse` object representing the page of custom fields.
|
|
55
|
+
*
|
|
56
|
+
* 🛠 **Example usage**:
|
|
57
|
+
* ```ts
|
|
58
|
+
* const customFields = await getLogisticOrderCustomFields({
|
|
59
|
+
* customFieldIds: ["customFieldId1", "customFieldId2"],
|
|
60
|
+
* page: 1,
|
|
61
|
+
* size: 20,
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param {GetLogisticOrderCustomFieldsParameters} params - The parameters for the request.
|
|
66
|
+
* @throws {Error} If `customFieldIds` is missing.
|
|
67
|
+
* @returns {Promise<GetLogisticOrderCustomFieldsResponse>} A promise resolving to the response containing the page object.
|
|
8
68
|
*/
|
|
9
69
|
export declare function getLogisticOrderCustomFields({ customFieldIds, page, size, sort, }: GetLogisticOrderCustomFieldsParameters): Promise<GetLogisticOrderCustomFieldsResponse>;
|
|
10
70
|
/**
|
|
11
|
-
* Get logistic order
|
|
71
|
+
* 🚚 Get logistic order lines' custom fields.
|
|
72
|
+
*
|
|
73
|
+
* This function retrieves custom fields of logistic order lines, identified by
|
|
74
|
+
* the `customFieldIds`. This parameter is mandatory and validated
|
|
75
|
+
* before the request is executed.
|
|
76
|
+
*
|
|
77
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/lines/custom-fields [ORDER-554]`
|
|
78
|
+
*
|
|
79
|
+
* | Parameter | Type | Required | Description |
|
|
80
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
81
|
+
* | `customFieldIds` | `string[]` | ✅ | The list of custom fields' ID you want to retrieve. |
|
|
82
|
+
* | `page` | `integer` | ❌ | The page number you want to retrieve. |
|
|
83
|
+
* | `size` | `integer` | ❌ | The size of the page you want to retrieve. |
|
|
84
|
+
* | `sort` | `string` | ❌ | The order how you want to retrieve the custom fields. |
|
|
85
|
+
*
|
|
86
|
+
* 📤 **Returns**:
|
|
87
|
+
* A `Promise` resolving to a single `GetLogisticOrderLineCustomFieldsResponse` object representing the page of custom fields.
|
|
88
|
+
*
|
|
89
|
+
* 🛠 **Example usage**:
|
|
90
|
+
* ```ts
|
|
91
|
+
* const customFields = await updateLogisticOrderCustomFields({
|
|
92
|
+
* customFieldIds: ["customFieldId1", "customFieldId2"],
|
|
93
|
+
* page: 1,
|
|
94
|
+
* size: 20,
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @param {GetLogisticOrderLineCustomFieldsParameters} params - The parameters for the request.
|
|
99
|
+
* @throws {Error} If `customFieldIds` is missing.
|
|
100
|
+
* @returns {Promise<GetLogisticOrderLineCustomFieldsResponse>} A promise resolving to the response containing the page object.
|
|
12
101
|
*/
|
|
13
102
|
export declare function getLogisticOrderLineCustomFields({ customFieldIds, page, size, sort, }: GetLogisticOrderLineCustomFieldsParameters): Promise<GetLogisticOrderLineCustomFieldsResponse>;
|
|
14
103
|
/**
|
|
15
|
-
*
|
|
104
|
+
* 🚚 Gets a specific logistic order.
|
|
105
|
+
*
|
|
106
|
+
* This function retrieves a specific logistic order, identified by
|
|
107
|
+
* the `orderId`. This parameter is mandatory and validated
|
|
108
|
+
* before the request is executed.
|
|
109
|
+
*
|
|
110
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId} [ORDER-501]`
|
|
111
|
+
*
|
|
112
|
+
* | Parameter | Type | Required | Description |
|
|
113
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
114
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order you want to retrieve. |
|
|
115
|
+
* | `locale` | `string` | ✅ | The locale in which to return the logistic order. |
|
|
116
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
117
|
+
*
|
|
118
|
+
* 📤 **Returns**:
|
|
119
|
+
* A `Promise` resolving to a single `GetLogisticOrderResponse` object representing the logistic order.
|
|
120
|
+
*
|
|
121
|
+
* 🛠 **Example usage**:
|
|
122
|
+
* ```ts
|
|
123
|
+
* const order = await getLogisticOrder({
|
|
124
|
+
* orderId: "logisticOrder1",
|
|
125
|
+
* locale: "fr",
|
|
126
|
+
* });
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @param {GetLogisticOrderParameters} params - The parameters for the request.
|
|
130
|
+
* @throws {Error} If `orderId` is missing.
|
|
131
|
+
* @returns {Promise<GetLogisticOrderResponse>} A promise resolving to the response containing the logistic order.
|
|
16
132
|
*/
|
|
17
133
|
export declare function getLogisticOrder({ orderId, locale, nbPreviewLines, }: GetLogisticOrderParameters): Promise<GetLogisticOrderResponse>;
|
|
18
134
|
/**
|
|
19
|
-
*
|
|
135
|
+
* 🚚 Updates a specific logistic order's custom fields.
|
|
136
|
+
*
|
|
137
|
+
* This function updates the custom fields of a specific logistic order, identified by
|
|
138
|
+
* the `orderId`. This parameter is mandatory and validated
|
|
139
|
+
* before the request is executed.
|
|
140
|
+
*
|
|
141
|
+
* 🛠 **Endpoint**: `PATCH /v1/shop/logistic-orders/${orderId} [ORDER-205]`
|
|
142
|
+
*
|
|
143
|
+
* | Parameter | Type | Required | Description |
|
|
144
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
145
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the custom fields. |
|
|
146
|
+
* | `customFields` | `CustomFieldValueObject[]` | ✅ | The custom fields with value and externalId. |
|
|
147
|
+
* | `locale` | `string` | ❌ | The locale in which to return the logistic order. |
|
|
148
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
149
|
+
*
|
|
150
|
+
* 📤 **Returns**:
|
|
151
|
+
* A `Promise` resolving to a single `UpdateOrderLogisticCustomFieldResponse` object representing the logistic order.
|
|
152
|
+
*
|
|
153
|
+
* 🛠 **Example usage**:
|
|
154
|
+
* ```ts
|
|
155
|
+
* const order = await updateLogisticOrderCustomFields({
|
|
156
|
+
* orderId: "logisticOrder1",
|
|
157
|
+
* customFields: [{ customFieldId: "externalId1", customFieldValue: "value1" }, { customFieldId: "externalId2", customFieldValue: "value2" }],
|
|
158
|
+
* });
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* @param {UpdateOrderLogisticCustomFieldParameters} params - The parameters for the request.
|
|
162
|
+
* @throws {Error} If `orderId` or `customFields` is missing.
|
|
163
|
+
* @returns {Promise<UpdateOrderLogisticCustomFieldResponse>} A promise resolving to the response containing the logistic order.
|
|
20
164
|
*/
|
|
21
165
|
export declare function updateLogisticOrderCustomFields({ orderId, locale, nbPreviewLines, customFields, }: UpdateLogisticOrderCustomFieldsParameters): Promise<UpdateLogisticOrderCustomFieldsResponse>;
|
|
22
166
|
/**
|
|
23
|
-
*
|
|
167
|
+
* 🚚 Gets a specific logistic order's accounting documents.
|
|
168
|
+
*
|
|
169
|
+
* This function retrieves the accounting documents of a specific logistic order, identified by
|
|
170
|
+
* the `orderId`. This parameter is mandatory and validated
|
|
171
|
+
* before the request is executed.
|
|
172
|
+
*
|
|
173
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/accounting-documents [ORDER-551]`
|
|
174
|
+
*
|
|
175
|
+
* | Parameter | Type | Required | Description |
|
|
176
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
177
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the accounting documents. |
|
|
178
|
+
*
|
|
179
|
+
* 📤 **Returns**:
|
|
180
|
+
* A `Promise` resolving to a single `GetLogisticOrderAccountingDocumentsResponse` object representing the list of accounting documents of the logistic order.
|
|
181
|
+
*
|
|
182
|
+
* 🛠 **Example usage**:
|
|
183
|
+
* ```ts
|
|
184
|
+
* const accountingDocuments = await getLogisticOrderAccountingDocuments({
|
|
185
|
+
* orderId: "logisticOrder1",
|
|
186
|
+
* });
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* @param {GetLogisticOrderAccountingDocumentsParameters} params - The parameters for the request.
|
|
190
|
+
* @throws {Error} If `orderId` is missing.
|
|
191
|
+
* @returns {Promise<GetLogisticOrderAccountingDocumentsResponse>} A promise resolving to the response containing the list of accounting documents.
|
|
24
192
|
*/
|
|
25
193
|
export declare function getLogisticOrderAccountingDocuments({ orderId, }: GetLogisticOrderAccountingDocumentsParameters): Promise<GetLogisticOrderAccountingDocumentsResponse>;
|
|
26
194
|
/**
|
|
27
|
-
*
|
|
195
|
+
* 🚚 Gets specific accounting document urls of a specific logistic order.
|
|
196
|
+
*
|
|
197
|
+
* This function retrieves specific accounting document urls of a specific logistic order, both identified by
|
|
198
|
+
* the `orderId` and the `documentId`. Both parameters are mandatory and validated
|
|
199
|
+
* before the request is executed.
|
|
200
|
+
*
|
|
201
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/accounting-documents/{documentId} [ORDER-506]`
|
|
202
|
+
*
|
|
203
|
+
* | Parameter | Type | Required | Description |
|
|
204
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
205
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the accounting documents. |
|
|
206
|
+
* | `documentId` | `string` | ✅ | The ID of the accounting document to be downloaded. |
|
|
207
|
+
*
|
|
208
|
+
* 📤 **Returns**:
|
|
209
|
+
* A `Promise` resolving to a single `GetLogisticOrderAccountingDocumentsResponse` object representing the list of accounting document's urls.
|
|
210
|
+
*
|
|
211
|
+
* 🛠 **Example usage**:
|
|
212
|
+
* ```ts
|
|
213
|
+
* const accountingDocumentUrls = await getLogisticOrderAccountingDocumentUrl({
|
|
214
|
+
* orderId: "logisticOrder1",
|
|
215
|
+
* documentId: "document1",
|
|
216
|
+
* });
|
|
217
|
+
* ```
|
|
218
|
+
*
|
|
219
|
+
* @param {GetLogisticOrderAccountingDocumentUrlParameters} params - The parameters for the request.
|
|
220
|
+
* @throws {Error} If `orderId` or `documentId` is missing.
|
|
221
|
+
* @returns {Promise<string[]>} A promise resolving to the response containing the list of document's urls.
|
|
28
222
|
*/
|
|
29
223
|
export declare function getLogisticOrderAccountingDocumentUrl({ orderId, documentId, }: GetLogisticOrderAccountingDocumentUrlParameters): Promise<string[]>;
|
|
30
224
|
/**
|
|
31
|
-
*
|
|
225
|
+
* 🚚 Approves a logistic order.
|
|
226
|
+
*
|
|
227
|
+
* This function approves a specific logistic order, identified by the `orderId`. The parameters `orderId` and `locale` are mandatory and validated
|
|
228
|
+
* before the request is executed.
|
|
229
|
+
*
|
|
230
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/approve [ORDER-200]`
|
|
231
|
+
*
|
|
232
|
+
* | Parameter | Type | Required | Description |
|
|
233
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
234
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order you want to approve. |
|
|
235
|
+
* | `locale` | `string` | ✅ | The locale in which to return the logistic order. |
|
|
236
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
237
|
+
*
|
|
238
|
+
* 📤 **Returns**:
|
|
239
|
+
* A `Promise` resolving to a single `ApproveLogisticOrderResponse` object representing the logistic order approved.
|
|
240
|
+
*
|
|
241
|
+
* 🛠 **Example usage**:
|
|
242
|
+
* ```ts
|
|
243
|
+
* const order = await approveLogisticOrder({
|
|
244
|
+
* orderId: "logisticOrder1",
|
|
245
|
+
* locale: "fr",
|
|
246
|
+
* });
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* @param {ApproveLogisticOrderParameters} params - The parameters for the request.
|
|
250
|
+
* @throws {Error} If `orderId` or `locale` is missing.
|
|
251
|
+
* @returns {Promise<ApproveLogisticOrderResponse>} A promise resolving to the response containing the logistic order.
|
|
32
252
|
*/
|
|
33
253
|
export declare function approveLogisticOrder({ orderId, locale, nbPreviewLines, }: ApproveLogisticOrderParameters): Promise<ApproveLogisticOrderResponse>;
|
|
34
254
|
/**
|
|
35
|
-
*
|
|
255
|
+
* 🚚 Gets a logistic order's approvers.
|
|
256
|
+
*
|
|
257
|
+
* This function retrieves the users able to approve a specific logistic order, identified by the `orderId`. This parameter is mandatory and validated
|
|
258
|
+
* before the request is executed.
|
|
259
|
+
*
|
|
260
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/approvers [ORDER-556]`
|
|
261
|
+
*
|
|
262
|
+
* | Parameter | Type | Required | Description |
|
|
263
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
264
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the approvers. |
|
|
265
|
+
*
|
|
266
|
+
* 📤 **Returns**:
|
|
267
|
+
* A `Promise` resolving to a single `ApproveLogisticOrderResponse` object representing a list of approval objects, a combination of a user, the logistic order and an approval status.
|
|
268
|
+
*
|
|
269
|
+
* 🛠 **Example usage**:
|
|
270
|
+
* ```ts
|
|
271
|
+
* const approvalObjects = await getLogisticOrderApprovers({
|
|
272
|
+
* orderId: "logisticOrder1",
|
|
273
|
+
* });
|
|
274
|
+
* ```
|
|
275
|
+
*
|
|
276
|
+
* @param {GetLogisticOrderApproversParameters} params - The parameters for the request.
|
|
277
|
+
* @throws {Error} If `orderId` is missing.
|
|
278
|
+
* @returns {Promise<GetLogisticOrderApproversResponse>} A promise resolving to the response containing a list of approval objects.
|
|
36
279
|
*/
|
|
37
280
|
export declare function getLogisticOrderApprovers({ orderId, }: GetLogisticOrderApproversParameters): Promise<GetLogisticOrderApproversResponse>;
|
|
38
281
|
/**
|
|
39
|
-
*
|
|
282
|
+
* 🚚 Updates a logistic order's billing information.
|
|
283
|
+
*
|
|
284
|
+
* This function updates the billing information of a specific logistic order, both identified by the `orderId` and the `billingAddressId`. Both parameters are mandatory and validated
|
|
285
|
+
* before the request is executed.
|
|
286
|
+
*
|
|
287
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/billing-information [ORDER-209]`
|
|
288
|
+
*
|
|
289
|
+
* | Parameter | Type | Required | Description |
|
|
290
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
291
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the billing information. |
|
|
292
|
+
* | `billingAddressId`| `string` | ✅ | The ID of the billing address you want to add to the logistic order. |
|
|
293
|
+
*
|
|
294
|
+
* 📤 **Returns**:
|
|
295
|
+
* A `Promise` resolving when the billing information of the logistic order is updated.
|
|
296
|
+
*
|
|
297
|
+
* 🛠 **Example usage**:
|
|
298
|
+
* ```ts
|
|
299
|
+
* await updateLogisticOrderBillingInformation({
|
|
300
|
+
* orderId: "logisticOrder1",
|
|
301
|
+
* billingAddressId: "address1",
|
|
302
|
+
* });
|
|
303
|
+
* ```
|
|
304
|
+
*
|
|
305
|
+
* @param {UpdateLogisticOrderBillingInformationParameters} params - The parameters for the request.
|
|
306
|
+
* @throws {Error} If `orderId` or `billingAddressId` is missing.
|
|
307
|
+
* @returns {Promise<void>} A promise resolving when the billing information is updated.
|
|
40
308
|
*/
|
|
41
309
|
export declare function updateLogisticOrderBillingInformation({ orderId, billingAddressId, }: UpdateLogisticOrderBillingInformationParameters): Promise<void>;
|
|
42
310
|
/**
|
|
43
|
-
*
|
|
311
|
+
* 🚚 Cancels a logistic order.
|
|
312
|
+
*
|
|
313
|
+
* This function cancels a specific logistic order, identified by the `orderId`. The parameters `orderId` and `locale` are mandatory and validated
|
|
314
|
+
* before the request is executed.
|
|
315
|
+
*
|
|
316
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/cancel [ORDER-201]`
|
|
317
|
+
*
|
|
318
|
+
* | Parameter | Type | Required | Description |
|
|
319
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
320
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order you want to cancel. |
|
|
321
|
+
* | `locale` | `string` | ✅ | The locale in which to return the logistic order. |
|
|
322
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
323
|
+
*
|
|
324
|
+
* 📤 **Returns**:
|
|
325
|
+
* A `Promise` resolving to a single `CancelLogisticOrderResponse` object representing the logistic order cancelled.
|
|
326
|
+
*
|
|
327
|
+
* 🛠 **Example usage**:
|
|
328
|
+
* ```ts
|
|
329
|
+
* const order = await cancelLogisticOrder({
|
|
330
|
+
* orderId: "logisticOrder1",
|
|
331
|
+
* locale: "fr",
|
|
332
|
+
* });
|
|
333
|
+
* ```
|
|
334
|
+
*
|
|
335
|
+
* @param {CancelLogisticOrderParameters} params - The parameters for the request.
|
|
336
|
+
* @throws {Error} If `orderId` or `locale` is missing.
|
|
337
|
+
* @returns {Promise<CancelLogisticOrderResponse>} A promise resolving to the response containing the logistic order.
|
|
44
338
|
*/
|
|
45
339
|
export declare function cancelLogisticOrder({ orderId, locale, nbPreviewLines, }: CancelLogisticOrderParameters): Promise<CancelLogisticOrderResponse>;
|
|
46
340
|
/**
|
|
47
|
-
*
|
|
341
|
+
* 🚚 Confirms reception of logistic order.
|
|
342
|
+
*
|
|
343
|
+
* This function confirms the reception of a specific logistic order, identified by the `orderId`. The parameters `orderId` and `locale` are mandatory and validated
|
|
344
|
+
* before the request is executed.
|
|
345
|
+
*
|
|
346
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/confirm-reception [ORDER-203]`
|
|
347
|
+
*
|
|
348
|
+
* | Parameter | Type | Required | Description |
|
|
349
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
350
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order you want to confirm reception. |
|
|
351
|
+
* | `locale` | `string` | ✅ | The locale in which to return the logistic order. |
|
|
352
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
353
|
+
*
|
|
354
|
+
* 📤 **Returns**:
|
|
355
|
+
* A `Promise` resolving to a single `ConfirmLogisticOrderReceptionResponse` object representing the logistic order received.
|
|
356
|
+
*
|
|
357
|
+
* 🛠 **Example usage**:
|
|
358
|
+
* ```ts
|
|
359
|
+
* const order = await confirmLogisticOrderReception({
|
|
360
|
+
* orderId: "logisticOrder1",
|
|
361
|
+
* locale: "fr",
|
|
362
|
+
* });
|
|
363
|
+
* ```
|
|
364
|
+
*
|
|
365
|
+
* @param {ConfirmLogisticOrderReceptionParameters} params - The parameters for the request.
|
|
366
|
+
* @throws {Error} If `orderId` or `locale` is missing.
|
|
367
|
+
* @returns {Promise<ConfirmLogisticOrderReceptionResponse>} A promise resolving to the response containing the logistic order.
|
|
48
368
|
*/
|
|
49
369
|
export declare function confirmLogisticOrderReception({ orderId, locale, nbPreviewLines, }: ConfirmLogisticOrderReceptionParameters): Promise<ConfirmLogisticOrderReceptionResponse>;
|
|
50
370
|
/**
|
|
51
|
-
*
|
|
371
|
+
* 🚚 Update a DRAFT_ORDER_ON_HOLD logistic order to CREATED.
|
|
372
|
+
*
|
|
373
|
+
* This function updates the status of a specific logistic order, identified by the `orderId`, from DRAFT_ORDER_ON_HOLD to CREATED. The parameter `orderId` is mandatory and validated
|
|
374
|
+
* before the request is executed.
|
|
375
|
+
*
|
|
376
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/created [ORDER-220]`
|
|
377
|
+
*
|
|
378
|
+
* | Parameter | Type | Required | Description |
|
|
379
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
380
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order you want to pass to CREATED. |
|
|
381
|
+
*
|
|
382
|
+
* 📤 **Returns**:
|
|
383
|
+
* A `Promise` resolving when the logistic order's status is passed to CREATED.
|
|
384
|
+
*
|
|
385
|
+
* 🛠 **Example usage**:
|
|
386
|
+
* ```ts
|
|
387
|
+
* await createLogisticOrder({
|
|
388
|
+
* orderId: "logisticOrder1",
|
|
389
|
+
* });
|
|
390
|
+
* ```
|
|
391
|
+
*
|
|
392
|
+
* @param {CreateLogisticOrderParameters} params - The parameters for the request.
|
|
393
|
+
* @throws {Error} If `orderId` or `locale` is missing.
|
|
394
|
+
* @returns {Promise<void>} A promise resolving when the logistic order is created.
|
|
395
|
+
*/
|
|
396
|
+
export declare function createLogisticOrder({ orderId, }: CreateLogisticOrderParameters): Promise<void>;
|
|
397
|
+
/**
|
|
398
|
+
* 🚚 Disapproves a logistic order.
|
|
399
|
+
*
|
|
400
|
+
* This function disapproves a specific logistic order, identified by the `orderId`. The parameters `orderId` and `locale` are mandatory and validated
|
|
401
|
+
* before the request is executed.
|
|
402
|
+
*
|
|
403
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/disapprove [ORDER-204]`
|
|
404
|
+
*
|
|
405
|
+
* | Parameter | Type | Required | Description |
|
|
406
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
407
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order you want to disapprove. |
|
|
408
|
+
* | `locale` | `string` | ✅ | The locale in which to return the logistic order. |
|
|
409
|
+
* | `nbPreviewLines` | `integer` | ❌ | The number of lines to display in the logistic order. |
|
|
410
|
+
*
|
|
411
|
+
* 📤 **Returns**:
|
|
412
|
+
* A `Promise` resolving to a single `DisapproveLogisticOrderResponse` object representing the logistic order disapproved.
|
|
413
|
+
*
|
|
414
|
+
* 🛠 **Example usage**:
|
|
415
|
+
* ```ts
|
|
416
|
+
* const order = await disapproveLogisticOrder({
|
|
417
|
+
* orderId: "logisticOrder1",
|
|
418
|
+
* locale: "fr",
|
|
419
|
+
* });
|
|
420
|
+
* ```
|
|
421
|
+
*
|
|
422
|
+
* @param {DisapproveLogisticOrderParameters} params - The parameters for the request.
|
|
423
|
+
* @throws {Error} If `orderId` or `locale` is missing.
|
|
424
|
+
* @returns {Promise<DisapproveLogisticOrderResponse>} A promise resolving to the response containing the logistic order.
|
|
52
425
|
*/
|
|
53
426
|
export declare function disapproveLogisticOrder({ orderId, locale, nbPreviewLines, }: DisapproveLogisticOrderParameters): Promise<DisapproveLogisticOrderResponse>;
|
|
54
427
|
/**
|
|
55
|
-
*
|
|
428
|
+
* 🚚 Gets a specific logistic order's documents.
|
|
429
|
+
*
|
|
430
|
+
* This function retrieves the documents of a specific logistic order, identified by
|
|
431
|
+
* the `orderId`. This parameter is mandatory and validated
|
|
432
|
+
* before the request is executed.
|
|
433
|
+
*
|
|
434
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/documents [ORDER-552]`
|
|
435
|
+
*
|
|
436
|
+
* | Parameter | Type | Required | Description |
|
|
437
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
438
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the documents. |
|
|
439
|
+
* | `idType` | `OrderIdType` | ❌ | The type of order ID (e.g., `DJUST_ID`, `EXTERNAL_ID`, `REFERENCE`). |
|
|
440
|
+
*
|
|
441
|
+
* 📤 **Returns**:
|
|
442
|
+
* A `Promise` resolving to a single `GetLogisticOrderDocumentsParameters` object representing the list of documents of the logistic order.
|
|
443
|
+
*
|
|
444
|
+
* 🛠 **Example usage**:
|
|
445
|
+
* ```ts
|
|
446
|
+
* const documents = await getLogisticOrderDocuments({
|
|
447
|
+
* orderId: "logisticOrder1",
|
|
448
|
+
* });
|
|
449
|
+
* ```
|
|
450
|
+
*
|
|
451
|
+
* @param {GetLogisticOrderDocumentsParameters} params - The parameters for the request.
|
|
452
|
+
* @throws {Error} If `orderId` is missing.
|
|
453
|
+
* @returns {Promise<GetLogisticOrderDocumentsParameters>} A promise resolving to the response containing the list of documents.
|
|
56
454
|
*/
|
|
57
455
|
export declare function getLogisticOrderDocuments({ orderId, idType, }: GetLogisticOrderDocumentsParameters): Promise<GetLogisticOrderDocumentsResponse>;
|
|
58
456
|
/**
|
|
59
|
-
*
|
|
457
|
+
* 🚚 Gets specific document urls of a specific logistic order.
|
|
458
|
+
*
|
|
459
|
+
* This function retrieves specific document urls of a specific logistic order, both identified by
|
|
460
|
+
* the `orderId` and the `documentId`. Both parameters are mandatory and validated
|
|
461
|
+
* before the request is executed.
|
|
462
|
+
*
|
|
463
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/documents/{documentId} [ORDER-508]`
|
|
464
|
+
*
|
|
465
|
+
* | Parameter | Type | Required | Description |
|
|
466
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
467
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the documents. |
|
|
468
|
+
* | `documentId` | `string` | ✅ | The ID of the document to be downloaded. |
|
|
469
|
+
*
|
|
470
|
+
* 📤 **Returns**:
|
|
471
|
+
* A `Promise` resolving to a single `GetLogisticOrderAccountingDocumentsResponse` object representing the list of document's urls.
|
|
472
|
+
*
|
|
473
|
+
* 🛠 **Example usage**:
|
|
474
|
+
* ```ts
|
|
475
|
+
* const documentUrls = await getLogisticOrderDocumentUrl({
|
|
476
|
+
* orderId: "logisticOrder1",
|
|
477
|
+
* documentId: "document1",
|
|
478
|
+
* });
|
|
479
|
+
* ```
|
|
480
|
+
*
|
|
481
|
+
* @param {GetLogisticOrderAccountingDocumentUrlParameters} params - The parameters for the request.
|
|
482
|
+
* @throws {Error} If `orderId` or `documentId` is missing.
|
|
483
|
+
* @returns {Promise<string[]>} A promise resolving to the response containing the list of document's urls.
|
|
60
484
|
*/
|
|
61
485
|
export declare function getLogisticOrderDocumentUrl({ orderId, documentId, }: GetLogisticOrderDocumentUrlParameters): Promise<string[]>;
|
|
62
486
|
/**
|
|
63
|
-
*
|
|
487
|
+
* 🚚 Gets order lines of a specific logistic order.
|
|
488
|
+
*
|
|
489
|
+
* This function retrieves the order lines of a specific logistic order, identified by
|
|
490
|
+
* the `orderId`. This parameter is mandatory and validated
|
|
491
|
+
* before the request is executed.
|
|
492
|
+
*
|
|
493
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/lines [ORDER-555]`
|
|
494
|
+
*
|
|
495
|
+
* | Parameter | Type | Required | Description |
|
|
496
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
497
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the order lines. |
|
|
498
|
+
* | `page` | `integer` | ❌ | The page number you want to retrieve. |
|
|
499
|
+
* | `size` | `integer` | ❌ | The size of the page you want to retrieve. |
|
|
500
|
+
* | `sort` | `string` | ❌ | The order how you want to retrieve the custom fields. |
|
|
501
|
+
* | `locale` | `string` | ❌ | The locale in which to return the logistic order lines. |
|
|
502
|
+
*
|
|
503
|
+
* 📤 **Returns**:
|
|
504
|
+
* A `Promise` resolving to a single `GetLogisticOrderLinesResponse` object representing the page of logistic order lines.
|
|
505
|
+
*
|
|
506
|
+
* 🛠 **Example usage**:
|
|
507
|
+
* ```ts
|
|
508
|
+
* const logisticOrderLines = await getLogisticOrderLines({
|
|
509
|
+
* orderId: "logisticOrder1",
|
|
510
|
+
* });
|
|
511
|
+
* ```
|
|
512
|
+
*
|
|
513
|
+
* @param {GetLogisticOrderLinesParameters} params - The parameters for the request.
|
|
514
|
+
* @throws {Error} If `orderId` is missing.
|
|
515
|
+
* @returns {Promise<GetLogisticOrderLinesResponse>} A promise resolving to the response containing the page object.
|
|
64
516
|
*/
|
|
65
517
|
export declare function getLogisticOrderLines({ orderId, page, size, sort, locale, }: GetLogisticOrderLinesParameters): Promise<GetLogisticOrderLinesResponse>;
|
|
66
518
|
/**
|
|
67
|
-
*
|
|
519
|
+
* 🚚 Updates order lines of a specific DRAFT_ORDER_ON_HOLD logistic order.
|
|
520
|
+
*
|
|
521
|
+
* This function updates the confirmed quantity and custom field values of the order lines of a specific logistic order, identified by
|
|
522
|
+
* the `orderId`. This parameter, as well as the `lines`, is mandatory and validated before the request is executed.
|
|
523
|
+
*
|
|
524
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/lines [ORDER-250]`
|
|
525
|
+
*
|
|
526
|
+
* | Parameter | Type | Required | Description |
|
|
527
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
528
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the lines. |
|
|
529
|
+
* | `lines` | `OrderLogisticLineUpdate[]` | ✅ | The lines you want to update. |
|
|
530
|
+
*
|
|
531
|
+
* 📤 **Returns**:
|
|
532
|
+
* A `Promise` resolving to a single `UpdateOnHoldLogisticOrderLinesResponse` object representing the error report for each lines that failed to update.
|
|
533
|
+
*
|
|
534
|
+
* 🛠 **Example usage**:
|
|
535
|
+
* ```ts
|
|
536
|
+
* const errorReport = await updateOnHoldLogisticOrderLines({
|
|
537
|
+
* orderId: "logisticOrder1",
|
|
538
|
+
* lines: [
|
|
539
|
+
{
|
|
540
|
+
"customFields": [
|
|
541
|
+
{
|
|
542
|
+
"customFieldId": "customField1",
|
|
543
|
+
"customFieldValue": "value1"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"id": "orderLine1",
|
|
547
|
+
"quantity": 1,
|
|
548
|
+
"updateAction": "ADD_QUANTITY"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
* });
|
|
552
|
+
* ```
|
|
553
|
+
*
|
|
554
|
+
* @param {UpdateOnHoldLogisticOrderLinesParameters} params - The parameters for the request.
|
|
555
|
+
* @throws {Error} If `orderId` or `lines` is missing.
|
|
556
|
+
* @returns {Promise<UpdateOnHoldLogisticOrderLinesResponse>} A promise resolving to the response containing the error report.
|
|
557
|
+
*/
|
|
558
|
+
export declare function updateOnHoldLogisticOrderLines({ orderId, lines, }: UpdateOnHoldLogisticOrderLinesParameters): Promise<UpdateOnHoldLogisticOrderLinesResponse>;
|
|
559
|
+
/**
|
|
560
|
+
* 🚚 Updates specific logistic order line's customFields.
|
|
561
|
+
*
|
|
562
|
+
* This function updates a specific logistic order line's customFields, identified by both
|
|
563
|
+
* the `orderId` and the `lineId`. These parameters, as well as the `customFields` is mandatory and validated
|
|
564
|
+
* before the request is executed.
|
|
565
|
+
*
|
|
566
|
+
* 🛠 **Endpoint**: `PATCH /v1/shop/logistic-orders/${orderId}/lines/${lineId} [ORDER-206]`
|
|
567
|
+
*
|
|
568
|
+
* | Parameter | Type | Required | Description |
|
|
569
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
570
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update an order line. |
|
|
571
|
+
* | `lineId` | `string` | ✅ | The ID of the logistic order line you want to update. |
|
|
572
|
+
* | `customFields` | `CustomFieldValueObject[]` | ✅ | The custom fields to add with value and externalId. |
|
|
573
|
+
* | `locale` | `string` | ❌ | The locale in which to return the logistic order lines. |
|
|
574
|
+
*
|
|
575
|
+
* 📤 **Returns**:
|
|
576
|
+
* A `Promise` resolving to a single `UpdateLogisticOrderLineCustomFieldsResponse` object representing the updated logistic order line.
|
|
577
|
+
*
|
|
578
|
+
* 🛠 **Example usage**:
|
|
579
|
+
* ```ts
|
|
580
|
+
* const newLogisticOrderLine = await updateLogisticOrderLineCustomFields({
|
|
581
|
+
* orderId: "logisticOrder1",
|
|
582
|
+
* lineId: "logisticOrderLine1",
|
|
583
|
+
* customFields: [{externalId: "cf1", value: "value1"}, {externalId: "cf2", value: "value2"}]
|
|
584
|
+
* });
|
|
585
|
+
* ```
|
|
586
|
+
*
|
|
587
|
+
* @param {UpdateLogisticOrderLineCustomFieldsParameters} params - The parameters for the request.
|
|
588
|
+
* @throws {Error} If `orderId` or `lineId` is missing.
|
|
589
|
+
* @returns {Promise<UpdateLogisticOrderLineCustomFieldsResponse>} A promise resolving to the response containing the logistic order line.
|
|
68
590
|
*/
|
|
69
591
|
export declare function updateLogisticOrderLineCustomFields({ orderId, lineId, locale, customFields, }: UpdateLogisticOrderLineCustomFieldsParameters): Promise<UpdateLogisticOrderLineCustomFieldsResponse>;
|
|
70
592
|
/**
|
|
71
|
-
*
|
|
593
|
+
* 🚚 Updates order line of a specific DRAFT_ORDER_ON_HOLD logistic order.
|
|
594
|
+
*
|
|
595
|
+
* This function updates the confirmed quantity of a specific order line of a specific logistic order, both identified by
|
|
596
|
+
* the `orderId` and the `orderLineId`. Both parameters, as well as the `quantity`, are mandatory and validated before the request is executed.
|
|
597
|
+
*
|
|
598
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/lines/${orderLineId} [ORDER-218]`
|
|
599
|
+
*
|
|
600
|
+
* | Parameter | Type | Required | Description |
|
|
601
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
602
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the lines. |
|
|
603
|
+
* | `orderLineId` | `string` | ✅ | The ID of the logistic order line you want to update. |
|
|
604
|
+
* | `quantity` | `number` | ✅ | The lines you want to update. |
|
|
605
|
+
*
|
|
606
|
+
* 📤 **Returns**:
|
|
607
|
+
* A `Promise` resolving when the logistic order line is updated.
|
|
608
|
+
*
|
|
609
|
+
* 🛠 **Example usage**:
|
|
610
|
+
* ```ts
|
|
611
|
+
* await updateOnHoldLogisticOrderLine({
|
|
612
|
+
* orderId: "logisticOrder1",
|
|
613
|
+
* orderLineId: "logisticOrderLine1",
|
|
614
|
+
* quantity: 1
|
|
615
|
+
* ```
|
|
616
|
+
*
|
|
617
|
+
* @param {UpdateOnHoldLogisticOrderLineParameters} params - The parameters for the request.
|
|
618
|
+
* @throws {Error} If `orderId`, `orderLineId` or `quantity` is missing.
|
|
619
|
+
* @returns {Promise<void>} A promise resolving when the logistic order line is updated.
|
|
620
|
+
*/
|
|
621
|
+
export declare function updateOnHoldLogisticOrderLine({ orderId, orderLineId, quantity, }: UpdateOnHoldLogisticOrderLineParameters): Promise<void>;
|
|
622
|
+
/**
|
|
623
|
+
* 🚚 Updates a logistic order's shipping address.
|
|
624
|
+
*
|
|
625
|
+
* This function updates the shipping address of a specific logistic order, both identified by the `orderId` and the `shippingAddressId`. Both parameters are mandatory and validated
|
|
626
|
+
* before the request is executed.
|
|
627
|
+
*
|
|
628
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/shipping-address [ORDER-210]`
|
|
629
|
+
*
|
|
630
|
+
* | Parameter | Type | Required | Description |
|
|
631
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
632
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the shipping address. |
|
|
633
|
+
* | `shippingAddressId`| `string` | ✅ | The ID of the shipping address you want to set to the logistic order. |
|
|
634
|
+
*
|
|
635
|
+
* 📤 **Returns**:
|
|
636
|
+
* A `Promise` resolving when the shipping address of the logistic order is set.
|
|
637
|
+
*
|
|
638
|
+
* 🛠 **Example usage**:
|
|
639
|
+
* ```ts
|
|
640
|
+
* await updateLogisticOrderShippingAddress({
|
|
641
|
+
* orderId: "logisticOrder1",
|
|
642
|
+
* shippingAddressId: "address1",
|
|
643
|
+
* });
|
|
644
|
+
* ```
|
|
645
|
+
*
|
|
646
|
+
* @param {UpdateLogisticOrderShippingInformationParameters} params - The parameters for the request.
|
|
647
|
+
* @throws {Error} If `orderId` or `shippingAddressId` is missing.
|
|
648
|
+
* @returns {Promise<void>} A promise resolving when the shipping address of the logistic order is set.
|
|
72
649
|
*/
|
|
73
650
|
export declare function updateLogisticOrderShippingAddress({ orderId, shippingAddressId, }: UpdateLogisticOrderShippingAddressParameters): Promise<void>;
|
|
74
651
|
/**
|
|
75
|
-
*
|
|
652
|
+
* 🚚 Gets a logistic order's shipping information.
|
|
653
|
+
*
|
|
654
|
+
* This function retrieves the shipping information of a specific logistic order, identified by the `orderId`. This parameter is mandatory and validated
|
|
655
|
+
* before the request is executed.
|
|
656
|
+
*
|
|
657
|
+
* 🛠 **Endpoint**: `GET /v1/shop/logistic-orders/${orderId}/shipping-information [ORDER-502]`
|
|
658
|
+
*
|
|
659
|
+
* | Parameter | Type | Required | Description |
|
|
660
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
661
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the shipping information. |
|
|
662
|
+
*
|
|
663
|
+
* 📤 **Returns**:
|
|
664
|
+
* A `Promise` resolving to a single `GetLogisticOrderShippingAddressResponse` object representing the array of the logistic order's shipping information.
|
|
665
|
+
*
|
|
666
|
+
* 🛠 **Example usage**:
|
|
667
|
+
* ```ts
|
|
668
|
+
* const shippingInformation = await getLogisticOrderShippingInformation({
|
|
669
|
+
* orderId: "logisticOrder1",
|
|
670
|
+
* });
|
|
671
|
+
* ```
|
|
672
|
+
*
|
|
673
|
+
* @param {GetLogisticOrderShippingAddressParameters} params - The parameters for the request.
|
|
674
|
+
* @throws {Error} If `orderId` is missing.
|
|
675
|
+
* @returns {Promise<GetLogisticOrderShippingAddressResponse>} A promise resolving to the response containing the array of shipping information.
|
|
76
676
|
*/
|
|
77
677
|
export declare function getLogisticOrderShippingInformation({ orderId, }: GetLogisticOrderShippingAddressParameters): Promise<GetLogisticOrderShippingAddressResponse>;
|
|
78
678
|
/**
|
|
79
|
-
*
|
|
679
|
+
* 🚚 Updates a logistic order's shipping information.
|
|
680
|
+
*
|
|
681
|
+
* This function updates the shipping information of a specific logistic order, identified by the `orderId`. This parameter, as well as the `shippingAddressId` and the `shippingType`, are mandatory and validated
|
|
682
|
+
* before the request is executed.
|
|
683
|
+
*
|
|
684
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/shipping-information [ORDER-214]`
|
|
685
|
+
*
|
|
686
|
+
* | Parameter | Type | Required | Description |
|
|
687
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
688
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the shipping information. |
|
|
689
|
+
* | `shippingAddressId`| `string` | ✅ | The ID of the shipping address you want to add to the logistic order. |
|
|
690
|
+
* | `shippingType` | `string` | ✅ | The type of shipping address to be added with the shipping address. |
|
|
691
|
+
*
|
|
692
|
+
* 📤 **Returns**:
|
|
693
|
+
* A `Promise` resolving when the shipping information of the logistic order is updated.
|
|
694
|
+
*
|
|
695
|
+
* 🛠 **Example usage**:
|
|
696
|
+
* ```ts
|
|
697
|
+
* await updateLogisticOrderShippingInformation({
|
|
698
|
+
* orderId: "logisticOrder1",
|
|
699
|
+
* shippingAddressId: "address1",
|
|
700
|
+
* });
|
|
701
|
+
* ```
|
|
702
|
+
*
|
|
703
|
+
* @param {UpdateLogisticOrderShippingInformationParameters} params - The parameters for the request.
|
|
704
|
+
* @throws {Error} If `orderId` or `shippingAddressId` is missing.
|
|
705
|
+
* @returns {Promise<void>} A promise resolving when the shipping information is updated.
|
|
80
706
|
*/
|
|
81
707
|
export declare function updateLogisticOrderShippingInformation({ orderId, shippingAddressId, shippingType, }: UpdateLogisticOrderShippingInformationParameters): Promise<void>;
|
|
82
708
|
/**
|
|
83
|
-
*
|
|
709
|
+
* 🚚 Updates a logistic order's shipping type.
|
|
710
|
+
*
|
|
711
|
+
* This function updates the shipping type of a specific logistic order, both identified by the `orderId` and the `shippingType`. Both parameters are mandatory and validated
|
|
712
|
+
* before the request is executed.
|
|
713
|
+
*
|
|
714
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/logistic-orders/${orderId}/shipping-information [ORDER-211]`
|
|
715
|
+
*
|
|
716
|
+
* | Parameter | Type | Required | Description |
|
|
717
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
718
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to update the shipping type. |
|
|
719
|
+
* | `shippingType` | `string` | ✅ | The shipping type you want to set to the logistic order. |
|
|
720
|
+
*
|
|
721
|
+
* 📤 **Returns**:
|
|
722
|
+
* A `Promise` resolving when the shipping type of the logistic order is set.
|
|
723
|
+
*
|
|
724
|
+
* 🛠 **Example usage**:
|
|
725
|
+
* ```ts
|
|
726
|
+
* await updateLogisticOrderShippingType({
|
|
727
|
+
* orderId: "logisticOrder1",
|
|
728
|
+
* shippingType: "shipping_type",
|
|
729
|
+
* });
|
|
730
|
+
* ```
|
|
731
|
+
*
|
|
732
|
+
* @param {UpdateLogisticOrderShippingTypeParameters} params - The parameters for the request.
|
|
733
|
+
* @throws {Error} If `orderId` or `shippingType` is missing.
|
|
734
|
+
* @returns {Promise<void>} A promise resolving when the shipping type of the logistic order is set.
|
|
84
735
|
*/
|
|
85
736
|
export declare function updateLogisticOrderShippingType({ orderId, shippingType, }: UpdateLogisticOrderShippingTypeParameters): Promise<void>;
|
|
86
737
|
/**
|
|
87
|
-
*
|
|
738
|
+
* 🚚 Creates a thread on a specific logistic order.
|
|
739
|
+
*
|
|
740
|
+
* This function creates a thread on a specific logistic order, identified by
|
|
741
|
+
* the `orderId`. This parameter, as well as the `lineId`, the `message` and the `reasonCode`, is mandatory and validated
|
|
742
|
+
* before the request is executed.
|
|
743
|
+
*
|
|
744
|
+
* 🛠 **Endpoint**: `POST /v1/shop/logistic-orders/${orderId}/threads [ORDER-100]`
|
|
745
|
+
*
|
|
746
|
+
* | Parameter | Type | Required | Description |
|
|
747
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
748
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order for which you want to create a thread. |
|
|
749
|
+
* | `lineId` | `string` | ✅ | The ID of the logistic order line involved in the thread. |
|
|
750
|
+
* | `message` | `string` | ✅ | A message to add comments on the thread. |
|
|
751
|
+
* | `reasonCode` | `string` | ✅ | The code indentifying the type of thread. |
|
|
752
|
+
*
|
|
753
|
+
* 📤 **Returns**:
|
|
754
|
+
* A `Promise` resolving when the thread is created.
|
|
755
|
+
*
|
|
756
|
+
* 🛠 **Example usage**:
|
|
757
|
+
* ```ts
|
|
758
|
+
* await createLogisticOrderThread({
|
|
759
|
+
* orderId: "logisticOrder1",
|
|
760
|
+
* lineId: "logisticOrderLine1",
|
|
761
|
+
* message: "This is a message",
|
|
762
|
+
* reasonCode: "REFUND"
|
|
763
|
+
* });
|
|
764
|
+
* ```
|
|
765
|
+
*
|
|
766
|
+
* @param {CreateLogisticOrderThreadParameters} params - The parameters for the request.
|
|
767
|
+
* @throws {Error} If `orderId`, `lineId`, `message` or `reasonCode` is missing.
|
|
768
|
+
* @returns {Promise<void>} A promise resolving when the thread is created.
|
|
88
769
|
*/
|
|
89
770
|
export declare function createLogisticOrderThread({ orderId, lineId, message, reasonCode, }: CreateLogisticOrderThreadParameters): Promise<void>;
|
|
90
771
|
/**
|
|
91
|
-
*
|
|
772
|
+
* 🚚 Gets a specific logistic order's review.
|
|
773
|
+
*
|
|
774
|
+
* This function retrieves a specific logistic order line's review, identified by
|
|
775
|
+
* the `orderId`. This parameter is mandatory and validated
|
|
776
|
+
* before the request is executed.
|
|
777
|
+
*
|
|
778
|
+
* 🛠 **Endpoint**: `GET /v1/shop/rating-orders/${orderId} [ORDER-504]`
|
|
779
|
+
*
|
|
780
|
+
* | Parameter | Type | Required | Description |
|
|
781
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
782
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the review. |
|
|
783
|
+
*
|
|
784
|
+
* 📤 **Returns**:
|
|
785
|
+
* A `Promise` resolving to a single `GetLogisticOrderReviewResponse` object representing the review of the logistic order.
|
|
786
|
+
*
|
|
787
|
+
* 🛠 **Example usage**:
|
|
788
|
+
* ```ts
|
|
789
|
+
* const review = await getLogisticOrderReview({
|
|
790
|
+
* orderId: "logisticOrder1",
|
|
791
|
+
* });
|
|
792
|
+
* ```
|
|
793
|
+
*
|
|
794
|
+
* @param {GetLogisticOrderReviewParameters} params - The parameters for the request.
|
|
795
|
+
* @throws {Error} If `orderId` is missing.
|
|
796
|
+
* @returns {Promise<GetLogisticOrderReviewResponse>} A promise resolving to a response containing the review of the logistic order.
|
|
92
797
|
*/
|
|
93
798
|
export declare function getLogisticOrderReview({ orderId, }: GetLogisticOrderReviewParameters): Promise<GetLogisticOrderReviewResponse>;
|
|
94
799
|
/**
|
|
95
|
-
*
|
|
800
|
+
* 🚚 Adds a rewiew on a specific logistic order.
|
|
801
|
+
*
|
|
802
|
+
* This function adds a review on a specific logistic order, identified by
|
|
803
|
+
* the `orderId`. This parameter, as well as the `comment` and `grade`, is mandatory and validated
|
|
804
|
+
* before the request is executed.
|
|
805
|
+
*
|
|
806
|
+
* 🛠 **Endpoint**: `PUT /v1/shop/rating-orders/${orderId} [ORDER-219]`
|
|
807
|
+
*
|
|
808
|
+
* | Parameter | Type | Required | Description |
|
|
809
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
810
|
+
* | `orderId` | `string` | ✅ | The ID of the logistic order of which you want to retrieve the review. |
|
|
811
|
+
* | `comment` | `string` | ✅ | A comment on how the logistic order as realized. |
|
|
812
|
+
* | `grade` | `number` | ✅ | A grade to rate the logistic order. |
|
|
813
|
+
*
|
|
814
|
+
* 📤 **Returns**:
|
|
815
|
+
* A `Promise` resolving to a single `AddLogisticOrderReviewResponse` object representing the review of the logistic order.
|
|
816
|
+
*
|
|
817
|
+
* 🛠 **Example usage**:
|
|
818
|
+
* ```ts
|
|
819
|
+
* const review = await addLogisticOrderReview({
|
|
820
|
+
* orderId: "logisticOrder1",
|
|
821
|
+
* comment: "This was a bad order",
|
|
822
|
+
* grade: 0,
|
|
823
|
+
* });
|
|
824
|
+
* ```
|
|
825
|
+
*
|
|
826
|
+
* @param {AddLogisticOrderReviewParameters} params - The parameters for the request.
|
|
827
|
+
* @throws {Error} If `orderId`, `comment` or `grade` is missing.
|
|
828
|
+
* @returns {Promise<AddLogisticOrderReviewResponse>} A promise resolving to a response containing the review of the logistic order.
|
|
96
829
|
*/
|
|
97
|
-
export declare function
|
|
830
|
+
export declare function addLogisticOrderReview({ orderId, comment, grade, }: AddLogisticOrderReviewParameters): Promise<AddLogisticOrderReviewResponse>;
|
|
98
831
|
/**
|
|
99
|
-
*
|
|
832
|
+
* 🚚 Gets thread reason types.
|
|
833
|
+
*
|
|
834
|
+
* This function retrieves all the thread reason types. No parameters for this request.
|
|
835
|
+
*
|
|
836
|
+
* 🛠 **Endpoint**: `GET /v1/shop/threads/reason-types [ORDER-550]`
|
|
837
|
+
*
|
|
838
|
+
* 📤 **Returns**:
|
|
839
|
+
* A `Promise` resolving to a single `GetThreadReasonTypesResponse` object representing the array of reason types.
|
|
840
|
+
*
|
|
841
|
+
* 🛠 **Example usage**:
|
|
842
|
+
* ```ts
|
|
843
|
+
* const reasonTypes = await getThreadReasonTypes();
|
|
844
|
+
* ```
|
|
845
|
+
*
|
|
846
|
+
* @returns {Promise<GetThreadReasonTypesResponse>} A promise resolving to a response containing the array of reason types.
|
|
100
847
|
*/
|
|
101
848
|
export declare function getThreadReasonTypes(): Promise<GetThreadReasonTypesResponse>;
|
|
102
849
|
/**
|
|
103
|
-
*
|
|
850
|
+
* 🚚 Gets thread subreasons.
|
|
851
|
+
*
|
|
852
|
+
* This function retrieves all the subreasons under a reason type, identified by
|
|
853
|
+
* the `reasonType`. This parameter is mandatory and validated
|
|
854
|
+
* before the request is executed.
|
|
855
|
+
*
|
|
856
|
+
* 🛠 **Endpoint**: `GET /v1/shop/threads/reason-types/${reasonType}/sub-reasons [ORDER-551]`
|
|
857
|
+
*
|
|
858
|
+
* | Parameter | Type | Required | Description |
|
|
859
|
+
* |-------------------|---------------------------------|------------|------------------------------------------|
|
|
860
|
+
* | `reasonType` | `string` | ✅ | The type of thread reasons. |
|
|
861
|
+
*
|
|
862
|
+
* 📤 **Returns**:
|
|
863
|
+
* A `Promise` resolving to a single `GetThreadSubReasonsResponse` object representing the array of subreasons.
|
|
864
|
+
*
|
|
865
|
+
* 🛠 **Example usage**:
|
|
866
|
+
* ```ts
|
|
867
|
+
* const subreasons = await getThreadSubReasons({
|
|
868
|
+
* reasonType: "REFUND",
|
|
869
|
+
* });
|
|
870
|
+
* ```
|
|
871
|
+
*
|
|
872
|
+
* @param {GetThreadSubReasonsParameters} params - The parameters for the request.
|
|
873
|
+
* @throws {Error} If `reasonType` is missing.
|
|
874
|
+
* @returns {Promise<GetThreadSubReasonsResponse>} A promise resolving to a response containing the array of subreasons.
|
|
104
875
|
*/
|
|
105
876
|
export declare function getThreadSubReasons({ reasonType, }: GetThreadSubReasonsParameters): Promise<GetThreadSubReasonsResponse>;
|