@whiplashmerch/whiplash-api-client 0.2.0 → 0.2.2
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/dist/client.esm.js +20 -26
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Orders.d.ts +18 -18
- package/dist/generated/data-contracts.d.ts +12 -17
- package/generated/Orders.ts +18 -18
- package/generated/data-contracts.ts +12 -17
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIV21EntitiesPostResponse, APIV2EntitiesCount, APIV2EntitiesMetaFields, APIV2EntitiesOrder, APIV2EntitiesOrderDocument, APIV2EntitiesOrderEvent, APIV2EntitiesOrderItem, APIV2EntitiesResult, APIV2EntitiesSerialNumber, GetApiV21OrdersCountParams, GetApiV21OrdersIdEventsCountParams, GetApiV21OrdersIdEventsParams, GetApiV21OrdersIdMetaFieldsParams, GetApiV21OrdersIdOrderDocumentsParams, GetApiV21OrdersIdOrderItemsCountParams, GetApiV21OrdersIdOrderItemsParams, GetApiV21OrdersParams, GetApiV2OrdersCountParams, GetApiV2OrdersIdEventsCountParams, GetApiV2OrdersIdEventsParams, GetApiV2OrdersIdMetaFieldsParams, GetApiV2OrdersIdOrderDocumentsParams, GetApiV2OrdersIdOrderItemsCountParams, GetApiV2OrdersIdOrderItemsParams, GetApiV2OrdersParams, PostApiV21Orders, PostApiV21OrdersIdOrderDocuments, PostApiV21OrdersIdOrderItems, PostApiV2Orders, PostApiV2OrdersIdOrderDocuments, PostApiV2OrdersIdOrderItems, PutApiV21Orders, PutApiV21OrdersIdCall, PutApiV21OrdersIdMetaFields, PutApiV21OrdersOriginator, PutApiV2Orders, PutApiV2OrdersIdCall, PutApiV2OrdersIdMetaFields, PutApiV2OrdersOriginator } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* @description Create an order
|
|
5
5
|
*
|
|
6
6
|
* @tags orders
|
|
7
7
|
* @name PostApiV2Orders
|
|
@@ -10,7 +10,7 @@ import { HttpClient, RequestParams } from "./http-client";
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const postApiV2Orders: (client: HttpClient, ApiV2Orders: PostApiV2Orders, params?: RequestParams) => Promise<APIV2EntitiesOrder>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* @description Retrieves a list of orders
|
|
14
14
|
*
|
|
15
15
|
* @tags orders
|
|
16
16
|
* @name GetApiV2Orders
|
|
@@ -19,7 +19,7 @@ export declare const postApiV2Orders: (client: HttpClient, ApiV2Orders: PostApiV
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const getApiV2Orders: (client: HttpClient, query: GetApiV2OrdersParams, params?: RequestParams) => Promise<APIV2EntitiesOrder[]>;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* @description Returns count of orders
|
|
23
23
|
*
|
|
24
24
|
* @tags orders
|
|
25
25
|
* @name GetApiV2OrdersCount
|
|
@@ -46,7 +46,7 @@ export declare const postApiV2OrdersBulk: (client: HttpClient, resources: object
|
|
|
46
46
|
*/
|
|
47
47
|
export declare const getApiV2OrdersActions: (client: HttpClient, params?: RequestParams) => Promise<void>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* @description Update an order
|
|
50
50
|
*
|
|
51
51
|
* @tags originators
|
|
52
52
|
* @name PutApiV2OrdersOriginatorOriginatorId
|
|
@@ -55,7 +55,7 @@ export declare const getApiV2OrdersActions: (client: HttpClient, params?: Reques
|
|
|
55
55
|
*/
|
|
56
56
|
export declare const putApiV2OrdersOriginatorOriginatorId: (client: HttpClient, originatorId: number, ApiV2OrdersOriginator: PutApiV2OrdersOriginator, params?: RequestParams) => Promise<APIV2EntitiesOrder>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* @description Retrieve an order
|
|
59
59
|
*
|
|
60
60
|
* @tags originators
|
|
61
61
|
* @name GetApiV2OrdersOriginatorOriginatorId
|
|
@@ -64,7 +64,7 @@ export declare const putApiV2OrdersOriginatorOriginatorId: (client: HttpClient,
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const getApiV2OrdersOriginatorOriginatorId: (client: HttpClient, originatorId: number, params?: RequestParams) => Promise<APIV2EntitiesOrder>;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* @description Returns count of order's events
|
|
68
68
|
*
|
|
69
69
|
* @tags orders
|
|
70
70
|
* @name GetApiV2OrdersIdEventsCount
|
|
@@ -73,7 +73,7 @@ export declare const getApiV2OrdersOriginatorOriginatorId: (client: HttpClient,
|
|
|
73
73
|
*/
|
|
74
74
|
export declare const getApiV2OrdersIdEventsCount: (client: HttpClient, { id, ...query }: GetApiV2OrdersIdEventsCountParams, params?: RequestParams) => Promise<APIV2EntitiesCount>;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* @description Get the order history
|
|
77
77
|
*
|
|
78
78
|
* @tags orders
|
|
79
79
|
* @name GetApiV2OrdersIdEvents
|
|
@@ -82,7 +82,7 @@ export declare const getApiV2OrdersIdEventsCount: (client: HttpClient, { id, ...
|
|
|
82
82
|
*/
|
|
83
83
|
export declare const getApiV2OrdersIdEvents: (client: HttpClient, { id, ...query }: GetApiV2OrdersIdEventsParams, params?: RequestParams) => Promise<APIV2EntitiesOrderEvent[]>;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* @description Update an order
|
|
86
86
|
*
|
|
87
87
|
* @tags orders
|
|
88
88
|
* @name PutApiV2OrdersId
|
|
@@ -91,7 +91,7 @@ export declare const getApiV2OrdersIdEvents: (client: HttpClient, { id, ...query
|
|
|
91
91
|
*/
|
|
92
92
|
export declare const putApiV2OrdersId: (client: HttpClient, id: number, ApiV2Orders: PutApiV2Orders, params?: RequestParams) => Promise<APIV2EntitiesOrder>;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* @description Retrieve an order
|
|
95
95
|
*
|
|
96
96
|
* @tags orders
|
|
97
97
|
* @name GetApiV2OrdersId
|
|
@@ -181,7 +181,7 @@ export declare const putApiV2OrdersIdCallAction: (client: HttpClient, action: st
|
|
|
181
181
|
*/
|
|
182
182
|
export declare const getApiV2OrdersIdSerialNumbers: (client: HttpClient, id: number, params?: RequestParams) => Promise<APIV2EntitiesSerialNumber[]>;
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* @description Create an order
|
|
185
185
|
*
|
|
186
186
|
* @tags orders
|
|
187
187
|
* @name PostApiV21Orders
|
|
@@ -190,7 +190,7 @@ export declare const getApiV2OrdersIdSerialNumbers: (client: HttpClient, id: num
|
|
|
190
190
|
*/
|
|
191
191
|
export declare const postApiV21Orders: (client: HttpClient, ApiV21Orders: PostApiV21Orders, params?: RequestParams) => Promise<APIV21EntitiesPostResponse>;
|
|
192
192
|
/**
|
|
193
|
-
*
|
|
193
|
+
* @description Retrieves a list of orders
|
|
194
194
|
*
|
|
195
195
|
* @tags orders
|
|
196
196
|
* @name GetApiV21Orders
|
|
@@ -199,7 +199,7 @@ export declare const postApiV21Orders: (client: HttpClient, ApiV21Orders: PostAp
|
|
|
199
199
|
*/
|
|
200
200
|
export declare const getApiV21Orders: (client: HttpClient, query: GetApiV21OrdersParams, params?: RequestParams) => Promise<APIV2EntitiesOrder[]>;
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* @description Returns count of orders
|
|
203
203
|
*
|
|
204
204
|
* @tags orders
|
|
205
205
|
* @name GetApiV21OrdersCount
|
|
@@ -226,7 +226,7 @@ export declare const postApiV21OrdersBulk: (client: HttpClient, resources: objec
|
|
|
226
226
|
*/
|
|
227
227
|
export declare const getApiV21OrdersActions: (client: HttpClient, params?: RequestParams) => Promise<void>;
|
|
228
228
|
/**
|
|
229
|
-
*
|
|
229
|
+
* @description Update an order
|
|
230
230
|
*
|
|
231
231
|
* @tags originators
|
|
232
232
|
* @name PutApiV21OrdersOriginatorOriginatorId
|
|
@@ -235,7 +235,7 @@ export declare const getApiV21OrdersActions: (client: HttpClient, params?: Reque
|
|
|
235
235
|
*/
|
|
236
236
|
export declare const putApiV21OrdersOriginatorOriginatorId: (client: HttpClient, originatorId: number, ApiV21OrdersOriginator: PutApiV21OrdersOriginator, params?: RequestParams) => Promise<void>;
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
238
|
+
* @description Retrieve an order
|
|
239
239
|
*
|
|
240
240
|
* @tags originators
|
|
241
241
|
* @name GetApiV21OrdersOriginatorOriginatorId
|
|
@@ -244,7 +244,7 @@ export declare const putApiV21OrdersOriginatorOriginatorId: (client: HttpClient,
|
|
|
244
244
|
*/
|
|
245
245
|
export declare const getApiV21OrdersOriginatorOriginatorId: (client: HttpClient, originatorId: number, params?: RequestParams) => Promise<APIV2EntitiesOrder>;
|
|
246
246
|
/**
|
|
247
|
-
*
|
|
247
|
+
* @description Returns count of order's events
|
|
248
248
|
*
|
|
249
249
|
* @tags orders
|
|
250
250
|
* @name GetApiV21OrdersIdEventsCount
|
|
@@ -253,7 +253,7 @@ export declare const getApiV21OrdersOriginatorOriginatorId: (client: HttpClient,
|
|
|
253
253
|
*/
|
|
254
254
|
export declare const getApiV21OrdersIdEventsCount: (client: HttpClient, { id, ...query }: GetApiV21OrdersIdEventsCountParams, params?: RequestParams) => Promise<APIV2EntitiesCount>;
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* @description Get the order history
|
|
257
257
|
*
|
|
258
258
|
* @tags orders
|
|
259
259
|
* @name GetApiV21OrdersIdEvents
|
|
@@ -262,7 +262,7 @@ export declare const getApiV21OrdersIdEventsCount: (client: HttpClient, { id, ..
|
|
|
262
262
|
*/
|
|
263
263
|
export declare const getApiV21OrdersIdEvents: (client: HttpClient, { id, ...query }: GetApiV21OrdersIdEventsParams, params?: RequestParams) => Promise<APIV2EntitiesOrderEvent[]>;
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
265
|
+
* @description Update an order
|
|
266
266
|
*
|
|
267
267
|
* @tags orders
|
|
268
268
|
* @name PutApiV21OrdersId
|
|
@@ -271,7 +271,7 @@ export declare const getApiV21OrdersIdEvents: (client: HttpClient, { id, ...quer
|
|
|
271
271
|
*/
|
|
272
272
|
export declare const putApiV21OrdersId: (client: HttpClient, id: number, ApiV21Orders: PutApiV21Orders, params?: RequestParams) => Promise<void>;
|
|
273
273
|
/**
|
|
274
|
-
*
|
|
274
|
+
* @description Retrieve an order
|
|
275
275
|
*
|
|
276
276
|
* @tags orders
|
|
277
277
|
* @name GetApiV21OrdersId
|
|
@@ -1238,6 +1238,7 @@ export interface APIV2EntitiesOrderDocument {
|
|
|
1238
1238
|
/** the order document file url */
|
|
1239
1239
|
url?: string;
|
|
1240
1240
|
}
|
|
1241
|
+
/** Get the order history */
|
|
1241
1242
|
export interface APIV2EntitiesOrderEvent {
|
|
1242
1243
|
/**
|
|
1243
1244
|
* the event date and time
|
|
@@ -1757,7 +1758,7 @@ export interface APIV2EntitiesShipnotice {
|
|
|
1757
1758
|
* @format int32
|
|
1758
1759
|
*/
|
|
1759
1760
|
shipnotice_item_sku_count?: number;
|
|
1760
|
-
shipnotice_items?: APIV2EntitiesShipnoticeItem;
|
|
1761
|
+
shipnotice_items?: APIV2EntitiesShipnoticeItem[];
|
|
1761
1762
|
/** url of the shipping label */
|
|
1762
1763
|
shipping_label_url?: string;
|
|
1763
1764
|
shipping_method?: APIV2EntitiesShippingMethod;
|
|
@@ -2060,20 +2061,14 @@ export interface APIV2EntitiesUser {
|
|
|
2060
2061
|
id?: number;
|
|
2061
2062
|
/** last name of the user */
|
|
2062
2063
|
last_name?: string;
|
|
2063
|
-
/**
|
|
2064
|
-
* locale for language settings
|
|
2065
|
-
* @default "en"
|
|
2066
|
-
*/
|
|
2064
|
+
/** locale for language settings */
|
|
2067
2065
|
locale?: ApiV2EntitiesUserLocale;
|
|
2068
2066
|
/**
|
|
2069
2067
|
* partner_id of the user
|
|
2070
2068
|
* @format int32
|
|
2071
2069
|
*/
|
|
2072
2070
|
partner_id?: number;
|
|
2073
|
-
/**
|
|
2074
|
-
* role of the user
|
|
2075
|
-
* @default "customer"
|
|
2076
|
-
*/
|
|
2071
|
+
/** role of the user */
|
|
2077
2072
|
role?: ApiV2EntitiesUserRole;
|
|
2078
2073
|
/**
|
|
2079
2074
|
* the user sign in count
|
|
@@ -3468,18 +3463,12 @@ export declare enum ApiV2EntitiesOrderIncoterm {
|
|
|
3468
3463
|
DEQ = "DEQ",
|
|
3469
3464
|
DDU = "DDU"
|
|
3470
3465
|
}
|
|
3471
|
-
/**
|
|
3472
|
-
* locale for language settings
|
|
3473
|
-
* @default "en"
|
|
3474
|
-
*/
|
|
3466
|
+
/** locale for language settings */
|
|
3475
3467
|
export declare enum ApiV2EntitiesUserLocale {
|
|
3476
3468
|
En = "en",
|
|
3477
3469
|
Es = "es"
|
|
3478
3470
|
}
|
|
3479
|
-
/**
|
|
3480
|
-
* role of the user
|
|
3481
|
-
* @default "customer"
|
|
3482
|
-
*/
|
|
3471
|
+
/** role of the user */
|
|
3483
3472
|
export declare enum ApiV2EntitiesUserRole {
|
|
3484
3473
|
Admin = "admin",
|
|
3485
3474
|
Manager = "manager",
|
|
@@ -4760,6 +4749,7 @@ export interface PostApiV21Shipnotices {
|
|
|
4760
4749
|
* @format int32
|
|
4761
4750
|
*/
|
|
4762
4751
|
shipnotice_item_sku_count?: number;
|
|
4752
|
+
shipnotice_items?: string;
|
|
4763
4753
|
shipnotice_items_attributes?: {
|
|
4764
4754
|
/**
|
|
4765
4755
|
* the number of this shipnotice item in the shipnotice
|
|
@@ -6184,6 +6174,7 @@ export interface PostApiV2Shipnotices {
|
|
|
6184
6174
|
* @format int32
|
|
6185
6175
|
*/
|
|
6186
6176
|
shipnotice_item_sku_count?: number;
|
|
6177
|
+
shipnotice_items?: string;
|
|
6187
6178
|
shipnotice_items_attributes?: {
|
|
6188
6179
|
/**
|
|
6189
6180
|
* the number of this shipnotice item in the shipnotice
|
|
@@ -8307,6 +8298,7 @@ export interface PutApiV21Shipnotices {
|
|
|
8307
8298
|
* @format int32
|
|
8308
8299
|
*/
|
|
8309
8300
|
shipnotice_item_sku_count?: number;
|
|
8301
|
+
shipnotice_items?: string;
|
|
8310
8302
|
/** url of the shipping label */
|
|
8311
8303
|
shipping_label_url?: string;
|
|
8312
8304
|
/**
|
|
@@ -8432,6 +8424,7 @@ export interface PutApiV21ShipnoticesOriginator {
|
|
|
8432
8424
|
* @format int32
|
|
8433
8425
|
*/
|
|
8434
8426
|
shipnotice_item_sku_count?: number;
|
|
8427
|
+
shipnotice_items?: string;
|
|
8435
8428
|
/** url of the shipping label */
|
|
8436
8429
|
shipping_label_url?: string;
|
|
8437
8430
|
/**
|
|
@@ -10460,6 +10453,7 @@ export interface PutApiV2Shipnotices {
|
|
|
10460
10453
|
* @format int32
|
|
10461
10454
|
*/
|
|
10462
10455
|
shipnotice_item_sku_count?: number;
|
|
10456
|
+
shipnotice_items?: string;
|
|
10463
10457
|
/** url of the shipping label */
|
|
10464
10458
|
shipping_label_url?: string;
|
|
10465
10459
|
/**
|
|
@@ -10583,6 +10577,7 @@ export interface PutApiV2ShipnoticesOriginator {
|
|
|
10583
10577
|
* @format int32
|
|
10584
10578
|
*/
|
|
10585
10579
|
shipnotice_item_sku_count?: number;
|
|
10580
|
+
shipnotice_items?: string;
|
|
10586
10581
|
/** url of the shipping label */
|
|
10587
10582
|
shipping_label_url?: string;
|
|
10588
10583
|
/**
|
package/generated/Orders.ts
CHANGED
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* @description Create an order
|
|
58
58
|
*
|
|
59
59
|
* @tags orders
|
|
60
60
|
* @name PostApiV2Orders
|
|
@@ -72,7 +72,7 @@ export const postApiV2Orders = (client: HttpClient, ApiV2Orders: PostApiV2Orders
|
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* @description Retrieves a list of orders
|
|
76
76
|
*
|
|
77
77
|
* @tags orders
|
|
78
78
|
* @name GetApiV2Orders
|
|
@@ -89,7 +89,7 @@ export const getApiV2Orders = (client: HttpClient, query: GetApiV2OrdersParams,
|
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* @description Returns count of orders
|
|
93
93
|
*
|
|
94
94
|
* @tags orders
|
|
95
95
|
* @name GetApiV2OrdersCount
|
|
@@ -143,7 +143,7 @@ export const getApiV2OrdersActions = (client: HttpClient, params: RequestParams
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* @description Update an order
|
|
147
147
|
*
|
|
148
148
|
* @tags originators
|
|
149
149
|
* @name PutApiV2OrdersOriginatorOriginatorId
|
|
@@ -166,7 +166,7 @@ export const putApiV2OrdersOriginatorOriginatorId = (
|
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* @description Retrieve an order
|
|
170
170
|
*
|
|
171
171
|
* @tags originators
|
|
172
172
|
* @name GetApiV2OrdersOriginatorOriginatorId
|
|
@@ -186,7 +186,7 @@ export const getApiV2OrdersOriginatorOriginatorId = (
|
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
189
|
+
* @description Returns count of order's events
|
|
190
190
|
*
|
|
191
191
|
* @tags orders
|
|
192
192
|
* @name GetApiV2OrdersIdEventsCount
|
|
@@ -207,7 +207,7 @@ export const getApiV2OrdersIdEventsCount = (
|
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
/**
|
|
210
|
-
*
|
|
210
|
+
* @description Get the order history
|
|
211
211
|
*
|
|
212
212
|
* @tags orders
|
|
213
213
|
* @name GetApiV2OrdersIdEvents
|
|
@@ -228,7 +228,7 @@ export const getApiV2OrdersIdEvents = (
|
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
230
|
/**
|
|
231
|
-
*
|
|
231
|
+
* @description Update an order
|
|
232
232
|
*
|
|
233
233
|
* @tags orders
|
|
234
234
|
* @name PutApiV2OrdersId
|
|
@@ -251,7 +251,7 @@ export const putApiV2OrdersId = (
|
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
253
|
/**
|
|
254
|
-
*
|
|
254
|
+
* @description Retrieve an order
|
|
255
255
|
*
|
|
256
256
|
* @tags orders
|
|
257
257
|
* @name GetApiV2OrdersId
|
|
@@ -459,7 +459,7 @@ export const getApiV2OrdersIdSerialNumbers = (client: HttpClient, id: number, pa
|
|
|
459
459
|
});
|
|
460
460
|
};
|
|
461
461
|
/**
|
|
462
|
-
*
|
|
462
|
+
* @description Create an order
|
|
463
463
|
*
|
|
464
464
|
* @tags orders
|
|
465
465
|
* @name PostApiV21Orders
|
|
@@ -477,7 +477,7 @@ export const postApiV21Orders = (client: HttpClient, ApiV21Orders: PostApiV21Ord
|
|
|
477
477
|
});
|
|
478
478
|
};
|
|
479
479
|
/**
|
|
480
|
-
*
|
|
480
|
+
* @description Retrieves a list of orders
|
|
481
481
|
*
|
|
482
482
|
* @tags orders
|
|
483
483
|
* @name GetApiV21Orders
|
|
@@ -494,7 +494,7 @@ export const getApiV21Orders = (client: HttpClient, query: GetApiV21OrdersParams
|
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
496
|
/**
|
|
497
|
-
*
|
|
497
|
+
* @description Returns count of orders
|
|
498
498
|
*
|
|
499
499
|
* @tags orders
|
|
500
500
|
* @name GetApiV21OrdersCount
|
|
@@ -548,7 +548,7 @@ export const getApiV21OrdersActions = (client: HttpClient, params: RequestParams
|
|
|
548
548
|
});
|
|
549
549
|
};
|
|
550
550
|
/**
|
|
551
|
-
*
|
|
551
|
+
* @description Update an order
|
|
552
552
|
*
|
|
553
553
|
* @tags originators
|
|
554
554
|
* @name PutApiV21OrdersOriginatorOriginatorId
|
|
@@ -570,7 +570,7 @@ export const putApiV21OrdersOriginatorOriginatorId = (
|
|
|
570
570
|
});
|
|
571
571
|
};
|
|
572
572
|
/**
|
|
573
|
-
*
|
|
573
|
+
* @description Retrieve an order
|
|
574
574
|
*
|
|
575
575
|
* @tags originators
|
|
576
576
|
* @name GetApiV21OrdersOriginatorOriginatorId
|
|
@@ -590,7 +590,7 @@ export const getApiV21OrdersOriginatorOriginatorId = (
|
|
|
590
590
|
});
|
|
591
591
|
};
|
|
592
592
|
/**
|
|
593
|
-
*
|
|
593
|
+
* @description Returns count of order's events
|
|
594
594
|
*
|
|
595
595
|
* @tags orders
|
|
596
596
|
* @name GetApiV21OrdersIdEventsCount
|
|
@@ -611,7 +611,7 @@ export const getApiV21OrdersIdEventsCount = (
|
|
|
611
611
|
});
|
|
612
612
|
};
|
|
613
613
|
/**
|
|
614
|
-
*
|
|
614
|
+
* @description Get the order history
|
|
615
615
|
*
|
|
616
616
|
* @tags orders
|
|
617
617
|
* @name GetApiV21OrdersIdEvents
|
|
@@ -632,7 +632,7 @@ export const getApiV21OrdersIdEvents = (
|
|
|
632
632
|
});
|
|
633
633
|
};
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
635
|
+
* @description Update an order
|
|
636
636
|
*
|
|
637
637
|
* @tags orders
|
|
638
638
|
* @name PutApiV21OrdersId
|
|
@@ -654,7 +654,7 @@ export const putApiV21OrdersId = (
|
|
|
654
654
|
});
|
|
655
655
|
};
|
|
656
656
|
/**
|
|
657
|
-
*
|
|
657
|
+
* @description Retrieve an order
|
|
658
658
|
*
|
|
659
659
|
* @tags orders
|
|
660
660
|
* @name GetApiV21OrdersId
|
|
@@ -1264,6 +1264,7 @@ export interface APIV2EntitiesOrderDocument {
|
|
|
1264
1264
|
url?: string;
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
|
+
/** Get the order history */
|
|
1267
1268
|
export interface APIV2EntitiesOrderEvent {
|
|
1268
1269
|
/**
|
|
1269
1270
|
* the event date and time
|
|
@@ -1791,7 +1792,7 @@ export interface APIV2EntitiesShipnotice {
|
|
|
1791
1792
|
* @format int32
|
|
1792
1793
|
*/
|
|
1793
1794
|
shipnotice_item_sku_count?: number;
|
|
1794
|
-
shipnotice_items?: APIV2EntitiesShipnoticeItem;
|
|
1795
|
+
shipnotice_items?: APIV2EntitiesShipnoticeItem[];
|
|
1795
1796
|
/** url of the shipping label */
|
|
1796
1797
|
shipping_label_url?: string;
|
|
1797
1798
|
shipping_method?: APIV2EntitiesShippingMethod;
|
|
@@ -2100,20 +2101,14 @@ export interface APIV2EntitiesUser {
|
|
|
2100
2101
|
id?: number;
|
|
2101
2102
|
/** last name of the user */
|
|
2102
2103
|
last_name?: string;
|
|
2103
|
-
/**
|
|
2104
|
-
* locale for language settings
|
|
2105
|
-
* @default "en"
|
|
2106
|
-
*/
|
|
2104
|
+
/** locale for language settings */
|
|
2107
2105
|
locale?: ApiV2EntitiesUserLocale;
|
|
2108
2106
|
/**
|
|
2109
2107
|
* partner_id of the user
|
|
2110
2108
|
* @format int32
|
|
2111
2109
|
*/
|
|
2112
2110
|
partner_id?: number;
|
|
2113
|
-
/**
|
|
2114
|
-
* role of the user
|
|
2115
|
-
* @default "customer"
|
|
2116
|
-
*/
|
|
2111
|
+
/** role of the user */
|
|
2117
2112
|
role?: ApiV2EntitiesUserRole;
|
|
2118
2113
|
/**
|
|
2119
2114
|
* the user sign in count
|
|
@@ -3590,19 +3585,13 @@ export enum ApiV2EntitiesOrderIncoterm {
|
|
|
3590
3585
|
DDU = "DDU",
|
|
3591
3586
|
}
|
|
3592
3587
|
|
|
3593
|
-
/**
|
|
3594
|
-
* locale for language settings
|
|
3595
|
-
* @default "en"
|
|
3596
|
-
*/
|
|
3588
|
+
/** locale for language settings */
|
|
3597
3589
|
export enum ApiV2EntitiesUserLocale {
|
|
3598
3590
|
En = "en",
|
|
3599
3591
|
Es = "es",
|
|
3600
3592
|
}
|
|
3601
3593
|
|
|
3602
|
-
/**
|
|
3603
|
-
* role of the user
|
|
3604
|
-
* @default "customer"
|
|
3605
|
-
*/
|
|
3594
|
+
/** role of the user */
|
|
3606
3595
|
export enum ApiV2EntitiesUserRole {
|
|
3607
3596
|
Admin = "admin",
|
|
3608
3597
|
Manager = "manager",
|
|
@@ -4898,6 +4887,7 @@ export interface PostApiV21Shipnotices {
|
|
|
4898
4887
|
* @format int32
|
|
4899
4888
|
*/
|
|
4900
4889
|
shipnotice_item_sku_count?: number;
|
|
4890
|
+
shipnotice_items?: string;
|
|
4901
4891
|
shipnotice_items_attributes?: {
|
|
4902
4892
|
/**
|
|
4903
4893
|
* the number of this shipnotice item in the shipnotice
|
|
@@ -6342,6 +6332,7 @@ export interface PostApiV2Shipnotices {
|
|
|
6342
6332
|
* @format int32
|
|
6343
6333
|
*/
|
|
6344
6334
|
shipnotice_item_sku_count?: number;
|
|
6335
|
+
shipnotice_items?: string;
|
|
6345
6336
|
shipnotice_items_attributes?: {
|
|
6346
6337
|
/**
|
|
6347
6338
|
* the number of this shipnotice item in the shipnotice
|
|
@@ -8498,6 +8489,7 @@ export interface PutApiV21Shipnotices {
|
|
|
8498
8489
|
* @format int32
|
|
8499
8490
|
*/
|
|
8500
8491
|
shipnotice_item_sku_count?: number;
|
|
8492
|
+
shipnotice_items?: string;
|
|
8501
8493
|
/** url of the shipping label */
|
|
8502
8494
|
shipping_label_url?: string;
|
|
8503
8495
|
/**
|
|
@@ -8625,6 +8617,7 @@ export interface PutApiV21ShipnoticesOriginator {
|
|
|
8625
8617
|
* @format int32
|
|
8626
8618
|
*/
|
|
8627
8619
|
shipnotice_item_sku_count?: number;
|
|
8620
|
+
shipnotice_items?: string;
|
|
8628
8621
|
/** url of the shipping label */
|
|
8629
8622
|
shipping_label_url?: string;
|
|
8630
8623
|
/**
|
|
@@ -10686,6 +10679,7 @@ export interface PutApiV2Shipnotices {
|
|
|
10686
10679
|
* @format int32
|
|
10687
10680
|
*/
|
|
10688
10681
|
shipnotice_item_sku_count?: number;
|
|
10682
|
+
shipnotice_items?: string;
|
|
10689
10683
|
/** url of the shipping label */
|
|
10690
10684
|
shipping_label_url?: string;
|
|
10691
10685
|
/**
|
|
@@ -10811,6 +10805,7 @@ export interface PutApiV2ShipnoticesOriginator {
|
|
|
10811
10805
|
* @format int32
|
|
10812
10806
|
*/
|
|
10813
10807
|
shipnotice_item_sku_count?: number;
|
|
10808
|
+
shipnotice_items?: string;
|
|
10814
10809
|
/** url of the shipping label */
|
|
10815
10810
|
shipping_label_url?: string;
|
|
10816
10811
|
/**
|