@teemill/platform 0.27.0 → 0.28.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/README.md +12 -2
- package/api.ts +452 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +331 -1
- package/dist/api.js +178 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +331 -1
- package/dist/esm/api.js +177 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ConfirmOrderFulfillment.md +24 -0
- package/docs/ConfirmOrderFulfillmentShipment.md +21 -0
- package/docs/ConfirmOrderRequest.md +20 -0
- package/docs/CreateOrder.md +33 -0
- package/docs/CreateOrderContactInformation.md +23 -0
- package/docs/CustomsInformation.md +27 -0
- package/docs/OrderItem1.md +24 -0
- package/docs/OrderItem1RecipientCost.md +22 -0
- package/docs/OrdersApi.md +128 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.28.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -112,6 +112,57 @@ export interface Client {
|
|
|
112
112
|
*/
|
|
113
113
|
'name'?: string;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @export
|
|
118
|
+
* @interface ConfirmOrderFulfillment
|
|
119
|
+
*/
|
|
120
|
+
export interface ConfirmOrderFulfillment {
|
|
121
|
+
/**
|
|
122
|
+
* Unique object identifier
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof ConfirmOrderFulfillment
|
|
125
|
+
*/
|
|
126
|
+
'fulfillmentId': string;
|
|
127
|
+
/**
|
|
128
|
+
* Unique object identifier
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof ConfirmOrderFulfillment
|
|
131
|
+
*/
|
|
132
|
+
'shippingMethodId'?: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {ConfirmOrderFulfillmentShipment}
|
|
136
|
+
* @memberof ConfirmOrderFulfillment
|
|
137
|
+
*/
|
|
138
|
+
'shipment'?: ConfirmOrderFulfillmentShipment;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* This field is only required if you are using your own shipping label.
|
|
142
|
+
* @export
|
|
143
|
+
* @interface ConfirmOrderFulfillmentShipment
|
|
144
|
+
*/
|
|
145
|
+
export interface ConfirmOrderFulfillmentShipment {
|
|
146
|
+
/**
|
|
147
|
+
* Only required if you are generating shipping labels outside of PodOS
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof ConfirmOrderFulfillmentShipment
|
|
150
|
+
*/
|
|
151
|
+
'image': string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @export
|
|
156
|
+
* @interface ConfirmOrderRequest
|
|
157
|
+
*/
|
|
158
|
+
export interface ConfirmOrderRequest {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {Array<ConfirmOrderFulfillment>}
|
|
162
|
+
* @memberof ConfirmOrderRequest
|
|
163
|
+
*/
|
|
164
|
+
'fulfillments': Array<ConfirmOrderFulfillment>;
|
|
165
|
+
}
|
|
115
166
|
/**
|
|
116
167
|
* Order recipient contact information, used only for courier tracking/updates.
|
|
117
168
|
* @export
|
|
@@ -176,6 +227,74 @@ export interface CreateDomainRequest {
|
|
|
176
227
|
*/
|
|
177
228
|
'domain'?: string;
|
|
178
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Create an order
|
|
232
|
+
* @export
|
|
233
|
+
* @interface CreateOrder
|
|
234
|
+
*/
|
|
235
|
+
export interface CreateOrder {
|
|
236
|
+
/**
|
|
237
|
+
* A custom reference to the merchant\'s order.
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof CreateOrder
|
|
240
|
+
*/
|
|
241
|
+
'merchantReference'?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {CreateOrderContactInformation}
|
|
245
|
+
* @memberof CreateOrder
|
|
246
|
+
*/
|
|
247
|
+
'contactInformation': CreateOrderContactInformation;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {Address}
|
|
251
|
+
* @memberof CreateOrder
|
|
252
|
+
*/
|
|
253
|
+
'shippingAddress': Address;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @type {CustomsInformation}
|
|
257
|
+
* @memberof CreateOrder
|
|
258
|
+
*/
|
|
259
|
+
'customsInformation'?: CustomsInformation;
|
|
260
|
+
/**
|
|
261
|
+
* Items to be ordered
|
|
262
|
+
* @type {Array<OrderItem1>}
|
|
263
|
+
* @memberof CreateOrder
|
|
264
|
+
*/
|
|
265
|
+
'items': Array<OrderItem1>;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @type {Array<string>}
|
|
269
|
+
* @memberof CreateOrder
|
|
270
|
+
*/
|
|
271
|
+
'preferredFulfillers'?: Array<string>;
|
|
272
|
+
/**
|
|
273
|
+
* A reference to the resource location
|
|
274
|
+
* @type {string}
|
|
275
|
+
* @memberof CreateOrder
|
|
276
|
+
*/
|
|
277
|
+
'originalOrderRef'?: string;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Contact information for the order
|
|
281
|
+
* @export
|
|
282
|
+
* @interface CreateOrderContactInformation
|
|
283
|
+
*/
|
|
284
|
+
export interface CreateOrderContactInformation {
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @type {string}
|
|
288
|
+
* @memberof CreateOrderContactInformation
|
|
289
|
+
*/
|
|
290
|
+
'email': string;
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof CreateOrderContactInformation
|
|
295
|
+
*/
|
|
296
|
+
'phone'?: string | null;
|
|
297
|
+
}
|
|
179
298
|
/**
|
|
180
299
|
* The customer that has placed an order on your platform
|
|
181
300
|
* @export
|
|
@@ -244,6 +363,41 @@ export interface CustomersResponse {
|
|
|
244
363
|
*/
|
|
245
364
|
'nextPageToken'?: number | null;
|
|
246
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Customs information for the order. **Note:** Adding customs information to an order is only compatible with Shipmate at this time
|
|
368
|
+
* @export
|
|
369
|
+
* @interface CustomsInformation
|
|
370
|
+
*/
|
|
371
|
+
export interface CustomsInformation {
|
|
372
|
+
/**
|
|
373
|
+
* Pre-registration type
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof CustomsInformation
|
|
376
|
+
*/
|
|
377
|
+
'preRegistrationType'?: CustomsInformationPreRegistrationTypeEnum;
|
|
378
|
+
/**
|
|
379
|
+
* Pre-registration number
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof CustomsInformation
|
|
382
|
+
*/
|
|
383
|
+
'preRegistrationNumber'?: string;
|
|
384
|
+
/**
|
|
385
|
+
* VAT number
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof CustomsInformation
|
|
388
|
+
*/
|
|
389
|
+
'vatNumber'?: string;
|
|
390
|
+
/**
|
|
391
|
+
* EORI number
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof CustomsInformation
|
|
394
|
+
*/
|
|
395
|
+
'eoriNumber'?: string;
|
|
396
|
+
}
|
|
397
|
+
export declare const CustomsInformationPreRegistrationTypeEnum: {
|
|
398
|
+
readonly Ioss: "IOSS";
|
|
399
|
+
};
|
|
400
|
+
export type CustomsInformationPreRegistrationTypeEnum = typeof CustomsInformationPreRegistrationTypeEnum[keyof typeof CustomsInformationPreRegistrationTypeEnum];
|
|
247
401
|
/**
|
|
248
402
|
*
|
|
249
403
|
* @export
|
|
@@ -967,6 +1121,50 @@ export interface OrderItem {
|
|
|
967
1121
|
*/
|
|
968
1122
|
'recipientCost'?: Price;
|
|
969
1123
|
}
|
|
1124
|
+
/**
|
|
1125
|
+
*
|
|
1126
|
+
* @export
|
|
1127
|
+
* @interface OrderItem1
|
|
1128
|
+
*/
|
|
1129
|
+
export interface OrderItem1 {
|
|
1130
|
+
/**
|
|
1131
|
+
* A reference to the variant being ordered
|
|
1132
|
+
* @type {string}
|
|
1133
|
+
* @memberof OrderItem1
|
|
1134
|
+
*/
|
|
1135
|
+
'variantRef': string;
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @type {number}
|
|
1139
|
+
* @memberof OrderItem1
|
|
1140
|
+
*/
|
|
1141
|
+
'quantity': number;
|
|
1142
|
+
/**
|
|
1143
|
+
*
|
|
1144
|
+
* @type {OrderItem1RecipientCost}
|
|
1145
|
+
* @memberof OrderItem1
|
|
1146
|
+
*/
|
|
1147
|
+
'recipientCost'?: OrderItem1RecipientCost;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
*
|
|
1151
|
+
* @export
|
|
1152
|
+
* @interface OrderItem1RecipientCost
|
|
1153
|
+
*/
|
|
1154
|
+
export interface OrderItem1RecipientCost {
|
|
1155
|
+
/**
|
|
1156
|
+
*
|
|
1157
|
+
* @type {string}
|
|
1158
|
+
* @memberof OrderItem1RecipientCost
|
|
1159
|
+
*/
|
|
1160
|
+
'amount': string;
|
|
1161
|
+
/**
|
|
1162
|
+
*
|
|
1163
|
+
* @type {string}
|
|
1164
|
+
* @memberof OrderItem1RecipientCost
|
|
1165
|
+
*/
|
|
1166
|
+
'currencyCode': string;
|
|
1167
|
+
}
|
|
970
1168
|
/**
|
|
971
1169
|
*
|
|
972
1170
|
* @export
|
|
@@ -2508,6 +2706,27 @@ export declare class EnquiriesApi extends BaseAPI {
|
|
|
2508
2706
|
* @export
|
|
2509
2707
|
*/
|
|
2510
2708
|
export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2709
|
+
/**
|
|
2710
|
+
*
|
|
2711
|
+
* @summary Confirm order
|
|
2712
|
+
* @param {string} project Project unique identifier
|
|
2713
|
+
* @param {string} platformId The platform identifier
|
|
2714
|
+
* @param {string} orderId The order identifier
|
|
2715
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
2716
|
+
* @param {*} [options] Override http request option.
|
|
2717
|
+
* @throws {RequiredError}
|
|
2718
|
+
*/
|
|
2719
|
+
confirmOrder: (project: string, platformId: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2720
|
+
/**
|
|
2721
|
+
*
|
|
2722
|
+
* @summary Create order
|
|
2723
|
+
* @param {string} project Project unique identifier
|
|
2724
|
+
* @param {string} platformId The platform identifier
|
|
2725
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
2726
|
+
* @param {*} [options] Override http request option.
|
|
2727
|
+
* @throws {RequiredError}
|
|
2728
|
+
*/
|
|
2729
|
+
createOrder: (project: string, platformId: string, createOrder: CreateOrder, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2511
2730
|
/**
|
|
2512
2731
|
* Export orders as a CSV file
|
|
2513
2732
|
* @summary Export orders
|
|
@@ -2614,6 +2833,27 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2614
2833
|
* @export
|
|
2615
2834
|
*/
|
|
2616
2835
|
export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
2836
|
+
/**
|
|
2837
|
+
*
|
|
2838
|
+
* @summary Confirm order
|
|
2839
|
+
* @param {string} project Project unique identifier
|
|
2840
|
+
* @param {string} platformId The platform identifier
|
|
2841
|
+
* @param {string} orderId The order identifier
|
|
2842
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
2843
|
+
* @param {*} [options] Override http request option.
|
|
2844
|
+
* @throws {RequiredError}
|
|
2845
|
+
*/
|
|
2846
|
+
confirmOrder(project: string, platformId: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
2847
|
+
/**
|
|
2848
|
+
*
|
|
2849
|
+
* @summary Create order
|
|
2850
|
+
* @param {string} project Project unique identifier
|
|
2851
|
+
* @param {string} platformId The platform identifier
|
|
2852
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
2853
|
+
* @param {*} [options] Override http request option.
|
|
2854
|
+
* @throws {RequiredError}
|
|
2855
|
+
*/
|
|
2856
|
+
createOrder(project: string, platformId: string, createOrder: CreateOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
2617
2857
|
/**
|
|
2618
2858
|
* Export orders as a CSV file
|
|
2619
2859
|
* @summary Export orders
|
|
@@ -2720,6 +2960,22 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
2720
2960
|
* @export
|
|
2721
2961
|
*/
|
|
2722
2962
|
export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2963
|
+
/**
|
|
2964
|
+
*
|
|
2965
|
+
* @summary Confirm order
|
|
2966
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
2967
|
+
* @param {*} [options] Override http request option.
|
|
2968
|
+
* @throws {RequiredError}
|
|
2969
|
+
*/
|
|
2970
|
+
confirmOrder(requestParameters: OrdersApiConfirmOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
2971
|
+
/**
|
|
2972
|
+
*
|
|
2973
|
+
* @summary Create order
|
|
2974
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
2975
|
+
* @param {*} [options] Override http request option.
|
|
2976
|
+
* @throws {RequiredError}
|
|
2977
|
+
*/
|
|
2978
|
+
createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
2723
2979
|
/**
|
|
2724
2980
|
* Export orders as a CSV file
|
|
2725
2981
|
* @summary Export orders
|
|
@@ -2793,6 +3049,62 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
2793
3049
|
*/
|
|
2794
3050
|
updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment>;
|
|
2795
3051
|
};
|
|
3052
|
+
/**
|
|
3053
|
+
* Request parameters for confirmOrder operation in OrdersApi.
|
|
3054
|
+
* @export
|
|
3055
|
+
* @interface OrdersApiConfirmOrderRequest
|
|
3056
|
+
*/
|
|
3057
|
+
export interface OrdersApiConfirmOrderRequest {
|
|
3058
|
+
/**
|
|
3059
|
+
* Project unique identifier
|
|
3060
|
+
* @type {string}
|
|
3061
|
+
* @memberof OrdersApiConfirmOrder
|
|
3062
|
+
*/
|
|
3063
|
+
readonly project: string;
|
|
3064
|
+
/**
|
|
3065
|
+
* The platform identifier
|
|
3066
|
+
* @type {string}
|
|
3067
|
+
* @memberof OrdersApiConfirmOrder
|
|
3068
|
+
*/
|
|
3069
|
+
readonly platformId: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* The order identifier
|
|
3072
|
+
* @type {string}
|
|
3073
|
+
* @memberof OrdersApiConfirmOrder
|
|
3074
|
+
*/
|
|
3075
|
+
readonly orderId: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* ConfirmFulfillment schema
|
|
3078
|
+
* @type {ConfirmOrderRequest}
|
|
3079
|
+
* @memberof OrdersApiConfirmOrder
|
|
3080
|
+
*/
|
|
3081
|
+
readonly confirmOrderRequest: ConfirmOrderRequest;
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Request parameters for createOrder operation in OrdersApi.
|
|
3085
|
+
* @export
|
|
3086
|
+
* @interface OrdersApiCreateOrderRequest
|
|
3087
|
+
*/
|
|
3088
|
+
export interface OrdersApiCreateOrderRequest {
|
|
3089
|
+
/**
|
|
3090
|
+
* Project unique identifier
|
|
3091
|
+
* @type {string}
|
|
3092
|
+
* @memberof OrdersApiCreateOrder
|
|
3093
|
+
*/
|
|
3094
|
+
readonly project: string;
|
|
3095
|
+
/**
|
|
3096
|
+
* The platform identifier
|
|
3097
|
+
* @type {string}
|
|
3098
|
+
* @memberof OrdersApiCreateOrder
|
|
3099
|
+
*/
|
|
3100
|
+
readonly platformId: string;
|
|
3101
|
+
/**
|
|
3102
|
+
* Create Order schema
|
|
3103
|
+
* @type {CreateOrder}
|
|
3104
|
+
* @memberof OrdersApiCreateOrder
|
|
3105
|
+
*/
|
|
3106
|
+
readonly createOrder: CreateOrder;
|
|
3107
|
+
}
|
|
2796
3108
|
/**
|
|
2797
3109
|
* Request parameters for exportOrders operation in OrdersApi.
|
|
2798
3110
|
* @export
|
|
@@ -3085,6 +3397,24 @@ export interface OrdersApiUpdateFulfillmentRequest {
|
|
|
3085
3397
|
* @extends {BaseAPI}
|
|
3086
3398
|
*/
|
|
3087
3399
|
export declare class OrdersApi extends BaseAPI {
|
|
3400
|
+
/**
|
|
3401
|
+
*
|
|
3402
|
+
* @summary Confirm order
|
|
3403
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
3404
|
+
* @param {*} [options] Override http request option.
|
|
3405
|
+
* @throws {RequiredError}
|
|
3406
|
+
* @memberof OrdersApi
|
|
3407
|
+
*/
|
|
3408
|
+
confirmOrder(requestParameters: OrdersApiConfirmOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3409
|
+
/**
|
|
3410
|
+
*
|
|
3411
|
+
* @summary Create order
|
|
3412
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
3413
|
+
* @param {*} [options] Override http request option.
|
|
3414
|
+
* @throws {RequiredError}
|
|
3415
|
+
* @memberof OrdersApi
|
|
3416
|
+
*/
|
|
3417
|
+
createOrder(requestParameters: OrdersApiCreateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3088
3418
|
/**
|
|
3089
3419
|
* Export orders as a CSV file
|
|
3090
3420
|
* @summary Export orders
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.28.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = void 0;
|
|
25
|
+
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.CustomsInformationPreRegistrationTypeEnum = {
|
|
33
|
+
Ioss: 'IOSS'
|
|
34
|
+
};
|
|
32
35
|
exports.EnquiryStatusEnum = {
|
|
33
36
|
New: 'New',
|
|
34
37
|
Archived: 'Archived',
|
|
@@ -965,6 +968,100 @@ exports.EnquiriesApi = EnquiriesApi;
|
|
|
965
968
|
*/
|
|
966
969
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
967
970
|
return {
|
|
971
|
+
/**
|
|
972
|
+
*
|
|
973
|
+
* @summary Confirm order
|
|
974
|
+
* @param {string} project Project unique identifier
|
|
975
|
+
* @param {string} platformId The platform identifier
|
|
976
|
+
* @param {string} orderId The order identifier
|
|
977
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
981
|
+
confirmOrder: (project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, confirmOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, confirmOrderRequest, options = {}) {
|
|
982
|
+
// verify required parameter 'project' is not null or undefined
|
|
983
|
+
(0, common_1.assertParamExists)('confirmOrder', 'project', project);
|
|
984
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
985
|
+
(0, common_1.assertParamExists)('confirmOrder', 'platformId', platformId);
|
|
986
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
987
|
+
(0, common_1.assertParamExists)('confirmOrder', 'orderId', orderId);
|
|
988
|
+
// verify required parameter 'confirmOrderRequest' is not null or undefined
|
|
989
|
+
(0, common_1.assertParamExists)('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
|
|
990
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/confirm`
|
|
991
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
992
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
993
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
994
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
995
|
+
let baseOptions;
|
|
996
|
+
if (configuration) {
|
|
997
|
+
baseOptions = configuration.baseOptions;
|
|
998
|
+
}
|
|
999
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1000
|
+
const localVarHeaderParameter = {};
|
|
1001
|
+
const localVarQueryParameter = {};
|
|
1002
|
+
// authentication session-oauth required
|
|
1003
|
+
// oauth required
|
|
1004
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1005
|
+
// authentication api-key required
|
|
1006
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1007
|
+
if (project !== undefined) {
|
|
1008
|
+
localVarQueryParameter['project'] = project;
|
|
1009
|
+
}
|
|
1010
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1011
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1013
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1014
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmOrderRequest, localVarRequestOptions, configuration);
|
|
1015
|
+
return {
|
|
1016
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1017
|
+
options: localVarRequestOptions,
|
|
1018
|
+
};
|
|
1019
|
+
}),
|
|
1020
|
+
/**
|
|
1021
|
+
*
|
|
1022
|
+
* @summary Create order
|
|
1023
|
+
* @param {string} project Project unique identifier
|
|
1024
|
+
* @param {string} platformId The platform identifier
|
|
1025
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
createOrder: (project_1, platformId_1, createOrder_1, ...args_1) => __awaiter(this, [project_1, platformId_1, createOrder_1, ...args_1], void 0, function* (project, platformId, createOrder, options = {}) {
|
|
1030
|
+
// verify required parameter 'project' is not null or undefined
|
|
1031
|
+
(0, common_1.assertParamExists)('createOrder', 'project', project);
|
|
1032
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1033
|
+
(0, common_1.assertParamExists)('createOrder', 'platformId', platformId);
|
|
1034
|
+
// verify required parameter 'createOrder' is not null or undefined
|
|
1035
|
+
(0, common_1.assertParamExists)('createOrder', 'createOrder', createOrder);
|
|
1036
|
+
const localVarPath = `/v1/platform/{platformId}/orders`
|
|
1037
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1039
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1040
|
+
let baseOptions;
|
|
1041
|
+
if (configuration) {
|
|
1042
|
+
baseOptions = configuration.baseOptions;
|
|
1043
|
+
}
|
|
1044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1045
|
+
const localVarHeaderParameter = {};
|
|
1046
|
+
const localVarQueryParameter = {};
|
|
1047
|
+
// authentication session-oauth required
|
|
1048
|
+
// oauth required
|
|
1049
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1050
|
+
// authentication api-key required
|
|
1051
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1052
|
+
if (project !== undefined) {
|
|
1053
|
+
localVarQueryParameter['project'] = project;
|
|
1054
|
+
}
|
|
1055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1056
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1058
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1059
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrder, localVarRequestOptions, configuration);
|
|
1060
|
+
return {
|
|
1061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1062
|
+
options: localVarRequestOptions,
|
|
1063
|
+
};
|
|
1064
|
+
}),
|
|
968
1065
|
/**
|
|
969
1066
|
* Export orders as a CSV file
|
|
970
1067
|
* @summary Export orders
|
|
@@ -1422,6 +1519,43 @@ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
|
1422
1519
|
const OrdersApiFp = function (configuration) {
|
|
1423
1520
|
const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
1424
1521
|
return {
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @summary Confirm order
|
|
1525
|
+
* @param {string} project Project unique identifier
|
|
1526
|
+
* @param {string} platformId The platform identifier
|
|
1527
|
+
* @param {string} orderId The order identifier
|
|
1528
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
1529
|
+
* @param {*} [options] Override http request option.
|
|
1530
|
+
* @throws {RequiredError}
|
|
1531
|
+
*/
|
|
1532
|
+
confirmOrder(project, platformId, orderId, confirmOrderRequest, options) {
|
|
1533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1534
|
+
var _a, _b, _c;
|
|
1535
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmOrder(project, platformId, orderId, confirmOrderRequest, options);
|
|
1536
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1537
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.confirmOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1538
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1539
|
+
});
|
|
1540
|
+
},
|
|
1541
|
+
/**
|
|
1542
|
+
*
|
|
1543
|
+
* @summary Create order
|
|
1544
|
+
* @param {string} project Project unique identifier
|
|
1545
|
+
* @param {string} platformId The platform identifier
|
|
1546
|
+
* @param {CreateOrder} createOrder Create Order schema
|
|
1547
|
+
* @param {*} [options] Override http request option.
|
|
1548
|
+
* @throws {RequiredError}
|
|
1549
|
+
*/
|
|
1550
|
+
createOrder(project, platformId, createOrder, options) {
|
|
1551
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1552
|
+
var _a, _b, _c;
|
|
1553
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(project, platformId, createOrder, options);
|
|
1554
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1555
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1556
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1557
|
+
});
|
|
1558
|
+
},
|
|
1425
1559
|
/**
|
|
1426
1560
|
* Export orders as a CSV file
|
|
1427
1561
|
* @summary Export orders
|
|
@@ -1604,6 +1738,26 @@ exports.OrdersApiFp = OrdersApiFp;
|
|
|
1604
1738
|
const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
1605
1739
|
const localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
1606
1740
|
return {
|
|
1741
|
+
/**
|
|
1742
|
+
*
|
|
1743
|
+
* @summary Confirm order
|
|
1744
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
1745
|
+
* @param {*} [options] Override http request option.
|
|
1746
|
+
* @throws {RequiredError}
|
|
1747
|
+
*/
|
|
1748
|
+
confirmOrder(requestParameters, options) {
|
|
1749
|
+
return localVarFp.confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(axios, basePath));
|
|
1750
|
+
},
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @summary Create order
|
|
1754
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
*/
|
|
1758
|
+
createOrder(requestParameters, options) {
|
|
1759
|
+
return localVarFp.createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(axios, basePath));
|
|
1760
|
+
},
|
|
1607
1761
|
/**
|
|
1608
1762
|
* Export orders as a CSV file
|
|
1609
1763
|
* @summary Export orders
|
|
@@ -1704,6 +1858,28 @@ exports.OrdersApiFactory = OrdersApiFactory;
|
|
|
1704
1858
|
* @extends {BaseAPI}
|
|
1705
1859
|
*/
|
|
1706
1860
|
class OrdersApi extends base_1.BaseAPI {
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Confirm order
|
|
1864
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
* @memberof OrdersApi
|
|
1868
|
+
*/
|
|
1869
|
+
confirmOrder(requestParameters, options) {
|
|
1870
|
+
return (0, exports.OrdersApiFp)(this.configuration).confirmOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.confirmOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
*
|
|
1874
|
+
* @summary Create order
|
|
1875
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
1876
|
+
* @param {*} [options] Override http request option.
|
|
1877
|
+
* @throws {RequiredError}
|
|
1878
|
+
* @memberof OrdersApi
|
|
1879
|
+
*/
|
|
1880
|
+
createOrder(requestParameters, options) {
|
|
1881
|
+
return (0, exports.OrdersApiFp)(this.configuration).createOrder(requestParameters.project, requestParameters.platformId, requestParameters.createOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1882
|
+
}
|
|
1707
1883
|
/**
|
|
1708
1884
|
* Export orders as a CSV file
|
|
1709
1885
|
* @summary Export orders
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED