@teemill/platform 0.29.2 → 0.30.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 +7 -2
- package/api.ts +328 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +203 -1
- package/dist/api.js +184 -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 +203 -1
- package/dist/esm/api.js +183 -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/AmendOrderRequest.md +20 -0
- package/docs/AmendOrderRequestAmendmentsInner.md +26 -0
- package/docs/OrdersApi.md +132 -0
- package/docs/ReturnOrderRequest.md +20 -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.30.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -68,6 +68,55 @@ export interface Address {
|
|
|
68
68
|
*/
|
|
69
69
|
'state'?: string;
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @export
|
|
74
|
+
* @interface AmendOrderRequest
|
|
75
|
+
*/
|
|
76
|
+
export interface AmendOrderRequest {
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<AmendOrderRequestAmendmentsInner>}
|
|
80
|
+
* @memberof AmendOrderRequest
|
|
81
|
+
*/
|
|
82
|
+
'amendments': Array<AmendOrderRequestAmendmentsInner>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @export
|
|
87
|
+
* @interface AmendOrderRequestAmendmentsInner
|
|
88
|
+
*/
|
|
89
|
+
export interface AmendOrderRequestAmendmentsInner {
|
|
90
|
+
/**
|
|
91
|
+
* Unique order item identifier
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof AmendOrderRequestAmendmentsInner
|
|
94
|
+
*/
|
|
95
|
+
'id': string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof AmendOrderRequestAmendmentsInner
|
|
100
|
+
*/
|
|
101
|
+
'action': AmendOrderRequestAmendmentsInnerActionEnum;
|
|
102
|
+
/**
|
|
103
|
+
* The quantity of the item to refund or exchange. This must be less than or equal to the quantity of the item in the order.
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof AmendOrderRequestAmendmentsInner
|
|
106
|
+
*/
|
|
107
|
+
'quantity': number;
|
|
108
|
+
/**
|
|
109
|
+
* A reference to the variant being ordered
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AmendOrderRequestAmendmentsInner
|
|
112
|
+
*/
|
|
113
|
+
'newVariantRef'?: string;
|
|
114
|
+
}
|
|
115
|
+
export declare const AmendOrderRequestAmendmentsInnerActionEnum: {
|
|
116
|
+
readonly Refund: "refund";
|
|
117
|
+
readonly Exchange: "exchange";
|
|
118
|
+
};
|
|
119
|
+
export type AmendOrderRequestAmendmentsInnerActionEnum = typeof AmendOrderRequestAmendmentsInnerActionEnum[keyof typeof AmendOrderRequestAmendmentsInnerActionEnum];
|
|
71
120
|
/**
|
|
72
121
|
*
|
|
73
122
|
* @export
|
|
@@ -1448,6 +1497,19 @@ export interface Project {
|
|
|
1448
1497
|
*/
|
|
1449
1498
|
'name': string;
|
|
1450
1499
|
}
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @export
|
|
1503
|
+
* @interface ReturnOrderRequest
|
|
1504
|
+
*/
|
|
1505
|
+
export interface ReturnOrderRequest {
|
|
1506
|
+
/**
|
|
1507
|
+
*
|
|
1508
|
+
* @type {Array<AmendOrderRequestAmendmentsInner>}
|
|
1509
|
+
* @memberof ReturnOrderRequest
|
|
1510
|
+
*/
|
|
1511
|
+
'returns': Array<AmendOrderRequestAmendmentsInner>;
|
|
1512
|
+
}
|
|
1451
1513
|
/**
|
|
1452
1514
|
*
|
|
1453
1515
|
* @export
|
|
@@ -2812,6 +2874,17 @@ export declare class EnquiriesApi extends BaseAPI {
|
|
|
2812
2874
|
* @export
|
|
2813
2875
|
*/
|
|
2814
2876
|
export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2877
|
+
/**
|
|
2878
|
+
*
|
|
2879
|
+
* @summary Amend the contents of an order
|
|
2880
|
+
* @param {string} project Project unique identifier
|
|
2881
|
+
* @param {string} platformId The platform identifier
|
|
2882
|
+
* @param {string} orderId The order identifier
|
|
2883
|
+
* @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
|
|
2884
|
+
* @param {*} [options] Override http request option.
|
|
2885
|
+
* @throws {RequiredError}
|
|
2886
|
+
*/
|
|
2887
|
+
amendOrder: (project: string, platformId: string, orderId: string, amendOrderRequest: AmendOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2815
2888
|
/**
|
|
2816
2889
|
*
|
|
2817
2890
|
* @summary Confirm order
|
|
@@ -2912,6 +2985,17 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2912
2985
|
* @throws {RequiredError}
|
|
2913
2986
|
*/
|
|
2914
2987
|
retryPlatformPayment: (project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2988
|
+
/**
|
|
2989
|
+
*
|
|
2990
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
2991
|
+
* @param {string} project Project unique identifier
|
|
2992
|
+
* @param {string} platformId The platform identifier
|
|
2993
|
+
* @param {string} orderId The order identifier
|
|
2994
|
+
* @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
|
|
2995
|
+
* @param {*} [options] Override http request option.
|
|
2996
|
+
* @throws {RequiredError}
|
|
2997
|
+
*/
|
|
2998
|
+
returnOrder: (project: string, platformId: string, orderId: string, returnOrderRequest: ReturnOrderRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2915
2999
|
/**
|
|
2916
3000
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
2917
3001
|
* @summary Send order receipt
|
|
@@ -2939,6 +3023,17 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2939
3023
|
* @export
|
|
2940
3024
|
*/
|
|
2941
3025
|
export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
3026
|
+
/**
|
|
3027
|
+
*
|
|
3028
|
+
* @summary Amend the contents of an order
|
|
3029
|
+
* @param {string} project Project unique identifier
|
|
3030
|
+
* @param {string} platformId The platform identifier
|
|
3031
|
+
* @param {string} orderId The order identifier
|
|
3032
|
+
* @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
|
|
3033
|
+
* @param {*} [options] Override http request option.
|
|
3034
|
+
* @throws {RequiredError}
|
|
3035
|
+
*/
|
|
3036
|
+
amendOrder(project: string, platformId: string, orderId: string, amendOrderRequest: AmendOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
2942
3037
|
/**
|
|
2943
3038
|
*
|
|
2944
3039
|
* @summary Confirm order
|
|
@@ -3039,6 +3134,17 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
3039
3134
|
* @throws {RequiredError}
|
|
3040
3135
|
*/
|
|
3041
3136
|
retryPlatformPayment(project: string, platformId: string, orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
3137
|
+
/**
|
|
3138
|
+
*
|
|
3139
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
3140
|
+
* @param {string} project Project unique identifier
|
|
3141
|
+
* @param {string} platformId The platform identifier
|
|
3142
|
+
* @param {string} orderId The order identifier
|
|
3143
|
+
* @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
|
|
3144
|
+
* @param {*} [options] Override http request option.
|
|
3145
|
+
* @throws {RequiredError}
|
|
3146
|
+
*/
|
|
3147
|
+
returnOrder(project: string, platformId: string, orderId: string, returnOrderRequest: ReturnOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
|
3042
3148
|
/**
|
|
3043
3149
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
3044
3150
|
* @summary Send order receipt
|
|
@@ -3066,6 +3172,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
3066
3172
|
* @export
|
|
3067
3173
|
*/
|
|
3068
3174
|
export declare const OrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3175
|
+
/**
|
|
3176
|
+
*
|
|
3177
|
+
* @summary Amend the contents of an order
|
|
3178
|
+
* @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
*/
|
|
3182
|
+
amendOrder(requestParameters: OrdersApiAmendOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
3069
3183
|
/**
|
|
3070
3184
|
*
|
|
3071
3185
|
* @summary Confirm order
|
|
@@ -3138,6 +3252,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
3138
3252
|
* @throws {RequiredError}
|
|
3139
3253
|
*/
|
|
3140
3254
|
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
3258
|
+
* @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
|
|
3259
|
+
* @param {*} [options] Override http request option.
|
|
3260
|
+
* @throws {RequiredError}
|
|
3261
|
+
*/
|
|
3262
|
+
returnOrder(requestParameters: OrdersApiReturnOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Order>;
|
|
3141
3263
|
/**
|
|
3142
3264
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
3143
3265
|
* @summary Send order receipt
|
|
@@ -3155,6 +3277,37 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
3155
3277
|
*/
|
|
3156
3278
|
updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment>;
|
|
3157
3279
|
};
|
|
3280
|
+
/**
|
|
3281
|
+
* Request parameters for amendOrder operation in OrdersApi.
|
|
3282
|
+
* @export
|
|
3283
|
+
* @interface OrdersApiAmendOrderRequest
|
|
3284
|
+
*/
|
|
3285
|
+
export interface OrdersApiAmendOrderRequest {
|
|
3286
|
+
/**
|
|
3287
|
+
* Project unique identifier
|
|
3288
|
+
* @type {string}
|
|
3289
|
+
* @memberof OrdersApiAmendOrder
|
|
3290
|
+
*/
|
|
3291
|
+
readonly project: string;
|
|
3292
|
+
/**
|
|
3293
|
+
* The platform identifier
|
|
3294
|
+
* @type {string}
|
|
3295
|
+
* @memberof OrdersApiAmendOrder
|
|
3296
|
+
*/
|
|
3297
|
+
readonly platformId: string;
|
|
3298
|
+
/**
|
|
3299
|
+
* The order identifier
|
|
3300
|
+
* @type {string}
|
|
3301
|
+
* @memberof OrdersApiAmendOrder
|
|
3302
|
+
*/
|
|
3303
|
+
readonly orderId: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* AmendOrder schema
|
|
3306
|
+
* @type {AmendOrderRequest}
|
|
3307
|
+
* @memberof OrdersApiAmendOrder
|
|
3308
|
+
*/
|
|
3309
|
+
readonly amendOrderRequest: AmendOrderRequest;
|
|
3310
|
+
}
|
|
3158
3311
|
/**
|
|
3159
3312
|
* Request parameters for confirmOrder operation in OrdersApi.
|
|
3160
3313
|
* @export
|
|
@@ -3440,6 +3593,37 @@ export interface OrdersApiRetryPlatformPaymentRequest {
|
|
|
3440
3593
|
*/
|
|
3441
3594
|
readonly orderId: string;
|
|
3442
3595
|
}
|
|
3596
|
+
/**
|
|
3597
|
+
* Request parameters for returnOrder operation in OrdersApi.
|
|
3598
|
+
* @export
|
|
3599
|
+
* @interface OrdersApiReturnOrderRequest
|
|
3600
|
+
*/
|
|
3601
|
+
export interface OrdersApiReturnOrderRequest {
|
|
3602
|
+
/**
|
|
3603
|
+
* Project unique identifier
|
|
3604
|
+
* @type {string}
|
|
3605
|
+
* @memberof OrdersApiReturnOrder
|
|
3606
|
+
*/
|
|
3607
|
+
readonly project: string;
|
|
3608
|
+
/**
|
|
3609
|
+
* The platform identifier
|
|
3610
|
+
* @type {string}
|
|
3611
|
+
* @memberof OrdersApiReturnOrder
|
|
3612
|
+
*/
|
|
3613
|
+
readonly platformId: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* The order identifier
|
|
3616
|
+
* @type {string}
|
|
3617
|
+
* @memberof OrdersApiReturnOrder
|
|
3618
|
+
*/
|
|
3619
|
+
readonly orderId: string;
|
|
3620
|
+
/**
|
|
3621
|
+
* ReturnOrder schema
|
|
3622
|
+
* @type {ReturnOrderRequest}
|
|
3623
|
+
* @memberof OrdersApiReturnOrder
|
|
3624
|
+
*/
|
|
3625
|
+
readonly returnOrderRequest: ReturnOrderRequest;
|
|
3626
|
+
}
|
|
3443
3627
|
/**
|
|
3444
3628
|
* Request parameters for sendOrderReceipt operation in OrdersApi.
|
|
3445
3629
|
* @export
|
|
@@ -3503,6 +3687,15 @@ export interface OrdersApiUpdateFulfillmentRequest {
|
|
|
3503
3687
|
* @extends {BaseAPI}
|
|
3504
3688
|
*/
|
|
3505
3689
|
export declare class OrdersApi extends BaseAPI {
|
|
3690
|
+
/**
|
|
3691
|
+
*
|
|
3692
|
+
* @summary Amend the contents of an order
|
|
3693
|
+
* @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
|
|
3694
|
+
* @param {*} [options] Override http request option.
|
|
3695
|
+
* @throws {RequiredError}
|
|
3696
|
+
* @memberof OrdersApi
|
|
3697
|
+
*/
|
|
3698
|
+
amendOrder(requestParameters: OrdersApiAmendOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3506
3699
|
/**
|
|
3507
3700
|
*
|
|
3508
3701
|
* @summary Confirm order
|
|
@@ -3584,6 +3777,15 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
3584
3777
|
* @memberof OrdersApi
|
|
3585
3778
|
*/
|
|
3586
3779
|
retryPlatformPayment(requestParameters: OrdersApiRetryPlatformPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3780
|
+
/**
|
|
3781
|
+
*
|
|
3782
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
3783
|
+
* @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
|
|
3784
|
+
* @param {*} [options] Override http request option.
|
|
3785
|
+
* @throws {RequiredError}
|
|
3786
|
+
* @memberof OrdersApi
|
|
3787
|
+
*/
|
|
3788
|
+
returnOrder(requestParameters: OrdersApiReturnOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
|
3587
3789
|
/**
|
|
3588
3790
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
3589
3791
|
* @summary Send order receipt
|
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.30.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,17 @@ 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.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = 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.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = 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.AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
33
|
+
Refund: 'refund',
|
|
34
|
+
Exchange: 'exchange'
|
|
35
|
+
};
|
|
32
36
|
exports.CustomsInformationPreRegistrationTypeEnum = {
|
|
33
37
|
Ioss: 'IOSS'
|
|
34
38
|
};
|
|
@@ -1032,6 +1036,55 @@ exports.EnquiriesApi = EnquiriesApi;
|
|
|
1032
1036
|
*/
|
|
1033
1037
|
const OrdersApiAxiosParamCreator = function (configuration) {
|
|
1034
1038
|
return {
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @summary Amend the contents of an order
|
|
1042
|
+
* @param {string} project Project unique identifier
|
|
1043
|
+
* @param {string} platformId The platform identifier
|
|
1044
|
+
* @param {string} orderId The order identifier
|
|
1045
|
+
* @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
|
|
1046
|
+
* @param {*} [options] Override http request option.
|
|
1047
|
+
* @throws {RequiredError}
|
|
1048
|
+
*/
|
|
1049
|
+
amendOrder: (project_1, platformId_1, orderId_1, amendOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, amendOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, amendOrderRequest, options = {}) {
|
|
1050
|
+
// verify required parameter 'project' is not null or undefined
|
|
1051
|
+
(0, common_1.assertParamExists)('amendOrder', 'project', project);
|
|
1052
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1053
|
+
(0, common_1.assertParamExists)('amendOrder', 'platformId', platformId);
|
|
1054
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1055
|
+
(0, common_1.assertParamExists)('amendOrder', 'orderId', orderId);
|
|
1056
|
+
// verify required parameter 'amendOrderRequest' is not null or undefined
|
|
1057
|
+
(0, common_1.assertParamExists)('amendOrder', 'amendOrderRequest', amendOrderRequest);
|
|
1058
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/amend`
|
|
1059
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1060
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1061
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1062
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1063
|
+
let baseOptions;
|
|
1064
|
+
if (configuration) {
|
|
1065
|
+
baseOptions = configuration.baseOptions;
|
|
1066
|
+
}
|
|
1067
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1068
|
+
const localVarHeaderParameter = {};
|
|
1069
|
+
const localVarQueryParameter = {};
|
|
1070
|
+
// authentication session-oauth required
|
|
1071
|
+
// oauth required
|
|
1072
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1073
|
+
// authentication api-key required
|
|
1074
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1075
|
+
if (project !== undefined) {
|
|
1076
|
+
localVarQueryParameter['project'] = project;
|
|
1077
|
+
}
|
|
1078
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1079
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1081
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1082
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(amendOrderRequest, localVarRequestOptions, configuration);
|
|
1083
|
+
return {
|
|
1084
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1085
|
+
options: localVarRequestOptions,
|
|
1086
|
+
};
|
|
1087
|
+
}),
|
|
1035
1088
|
/**
|
|
1036
1089
|
*
|
|
1037
1090
|
* @summary Confirm order
|
|
@@ -1480,6 +1533,55 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1480
1533
|
options: localVarRequestOptions,
|
|
1481
1534
|
};
|
|
1482
1535
|
}),
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
1539
|
+
* @param {string} project Project unique identifier
|
|
1540
|
+
* @param {string} platformId The platform identifier
|
|
1541
|
+
* @param {string} orderId The order identifier
|
|
1542
|
+
* @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
|
|
1543
|
+
* @param {*} [options] Override http request option.
|
|
1544
|
+
* @throws {RequiredError}
|
|
1545
|
+
*/
|
|
1546
|
+
returnOrder: (project_1, platformId_1, orderId_1, returnOrderRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, returnOrderRequest_1, ...args_1], void 0, function* (project, platformId, orderId, returnOrderRequest, options = {}) {
|
|
1547
|
+
// verify required parameter 'project' is not null or undefined
|
|
1548
|
+
(0, common_1.assertParamExists)('returnOrder', 'project', project);
|
|
1549
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1550
|
+
(0, common_1.assertParamExists)('returnOrder', 'platformId', platformId);
|
|
1551
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
1552
|
+
(0, common_1.assertParamExists)('returnOrder', 'orderId', orderId);
|
|
1553
|
+
// verify required parameter 'returnOrderRequest' is not null or undefined
|
|
1554
|
+
(0, common_1.assertParamExists)('returnOrder', 'returnOrderRequest', returnOrderRequest);
|
|
1555
|
+
const localVarPath = `/v1/platform/{platformId}/orders/{orderId}/return`
|
|
1556
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1557
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
1558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1560
|
+
let baseOptions;
|
|
1561
|
+
if (configuration) {
|
|
1562
|
+
baseOptions = configuration.baseOptions;
|
|
1563
|
+
}
|
|
1564
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1565
|
+
const localVarHeaderParameter = {};
|
|
1566
|
+
const localVarQueryParameter = {};
|
|
1567
|
+
// authentication session-oauth required
|
|
1568
|
+
// oauth required
|
|
1569
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1570
|
+
// authentication api-key required
|
|
1571
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1572
|
+
if (project !== undefined) {
|
|
1573
|
+
localVarQueryParameter['project'] = project;
|
|
1574
|
+
}
|
|
1575
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1576
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1577
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1578
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1579
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(returnOrderRequest, localVarRequestOptions, configuration);
|
|
1580
|
+
return {
|
|
1581
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1582
|
+
options: localVarRequestOptions,
|
|
1583
|
+
};
|
|
1584
|
+
}),
|
|
1483
1585
|
/**
|
|
1484
1586
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
1485
1587
|
* @summary Send order receipt
|
|
@@ -1583,6 +1685,25 @@ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
|
1583
1685
|
const OrdersApiFp = function (configuration) {
|
|
1584
1686
|
const localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
|
|
1585
1687
|
return {
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @summary Amend the contents of an order
|
|
1691
|
+
* @param {string} project Project unique identifier
|
|
1692
|
+
* @param {string} platformId The platform identifier
|
|
1693
|
+
* @param {string} orderId The order identifier
|
|
1694
|
+
* @param {AmendOrderRequest} amendOrderRequest AmendOrder schema
|
|
1695
|
+
* @param {*} [options] Override http request option.
|
|
1696
|
+
* @throws {RequiredError}
|
|
1697
|
+
*/
|
|
1698
|
+
amendOrder(project, platformId, orderId, amendOrderRequest, options) {
|
|
1699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1700
|
+
var _a, _b, _c;
|
|
1701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.amendOrder(project, platformId, orderId, amendOrderRequest, options);
|
|
1702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1703
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.amendOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1705
|
+
});
|
|
1706
|
+
},
|
|
1586
1707
|
/**
|
|
1587
1708
|
*
|
|
1588
1709
|
* @summary Confirm order
|
|
@@ -1755,6 +1876,25 @@ const OrdersApiFp = function (configuration) {
|
|
|
1755
1876
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1756
1877
|
});
|
|
1757
1878
|
},
|
|
1879
|
+
/**
|
|
1880
|
+
*
|
|
1881
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
1882
|
+
* @param {string} project Project unique identifier
|
|
1883
|
+
* @param {string} platformId The platform identifier
|
|
1884
|
+
* @param {string} orderId The order identifier
|
|
1885
|
+
* @param {ReturnOrderRequest} returnOrderRequest ReturnOrder schema
|
|
1886
|
+
* @param {*} [options] Override http request option.
|
|
1887
|
+
* @throws {RequiredError}
|
|
1888
|
+
*/
|
|
1889
|
+
returnOrder(project, platformId, orderId, returnOrderRequest, options) {
|
|
1890
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1891
|
+
var _a, _b, _c;
|
|
1892
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.returnOrder(project, platformId, orderId, returnOrderRequest, options);
|
|
1893
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1894
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.returnOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1895
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1896
|
+
});
|
|
1897
|
+
},
|
|
1758
1898
|
/**
|
|
1759
1899
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
1760
1900
|
* @summary Send order receipt
|
|
@@ -1802,6 +1942,16 @@ exports.OrdersApiFp = OrdersApiFp;
|
|
|
1802
1942
|
const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
1803
1943
|
const localVarFp = (0, exports.OrdersApiFp)(configuration);
|
|
1804
1944
|
return {
|
|
1945
|
+
/**
|
|
1946
|
+
*
|
|
1947
|
+
* @summary Amend the contents of an order
|
|
1948
|
+
* @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
|
|
1949
|
+
* @param {*} [options] Override http request option.
|
|
1950
|
+
* @throws {RequiredError}
|
|
1951
|
+
*/
|
|
1952
|
+
amendOrder(requestParameters, options) {
|
|
1953
|
+
return localVarFp.amendOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.amendOrderRequest, options).then((request) => request(axios, basePath));
|
|
1954
|
+
},
|
|
1805
1955
|
/**
|
|
1806
1956
|
*
|
|
1807
1957
|
* @summary Confirm order
|
|
@@ -1892,6 +2042,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
1892
2042
|
retryPlatformPayment(requestParameters, options) {
|
|
1893
2043
|
return localVarFp.retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(axios, basePath));
|
|
1894
2044
|
},
|
|
2045
|
+
/**
|
|
2046
|
+
*
|
|
2047
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
2048
|
+
* @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
|
|
2049
|
+
* @param {*} [options] Override http request option.
|
|
2050
|
+
* @throws {RequiredError}
|
|
2051
|
+
*/
|
|
2052
|
+
returnOrder(requestParameters, options) {
|
|
2053
|
+
return localVarFp.returnOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.returnOrderRequest, options).then((request) => request(axios, basePath));
|
|
2054
|
+
},
|
|
1895
2055
|
/**
|
|
1896
2056
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
1897
2057
|
* @summary Send order receipt
|
|
@@ -1922,6 +2082,17 @@ exports.OrdersApiFactory = OrdersApiFactory;
|
|
|
1922
2082
|
* @extends {BaseAPI}
|
|
1923
2083
|
*/
|
|
1924
2084
|
class OrdersApi extends base_1.BaseAPI {
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @summary Amend the contents of an order
|
|
2088
|
+
* @param {OrdersApiAmendOrderRequest} requestParameters Request parameters.
|
|
2089
|
+
* @param {*} [options] Override http request option.
|
|
2090
|
+
* @throws {RequiredError}
|
|
2091
|
+
* @memberof OrdersApi
|
|
2092
|
+
*/
|
|
2093
|
+
amendOrder(requestParameters, options) {
|
|
2094
|
+
return (0, exports.OrdersApiFp)(this.configuration).amendOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.amendOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2095
|
+
}
|
|
1925
2096
|
/**
|
|
1926
2097
|
*
|
|
1927
2098
|
* @summary Confirm order
|
|
@@ -2021,6 +2192,17 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
2021
2192
|
retryPlatformPayment(requestParameters, options) {
|
|
2022
2193
|
return (0, exports.OrdersApiFp)(this.configuration).retryPlatformPayment(requestParameters.project, requestParameters.platformId, requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
|
|
2023
2194
|
}
|
|
2195
|
+
/**
|
|
2196
|
+
*
|
|
2197
|
+
* @summary Return the contents of an order for a refund or exchange
|
|
2198
|
+
* @param {OrdersApiReturnOrderRequest} requestParameters Request parameters.
|
|
2199
|
+
* @param {*} [options] Override http request option.
|
|
2200
|
+
* @throws {RequiredError}
|
|
2201
|
+
* @memberof OrdersApi
|
|
2202
|
+
*/
|
|
2203
|
+
returnOrder(requestParameters, options) {
|
|
2204
|
+
return (0, exports.OrdersApiFp)(this.configuration).returnOrder(requestParameters.project, requestParameters.platformId, requestParameters.orderId, requestParameters.returnOrderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2205
|
+
}
|
|
2024
2206
|
/**
|
|
2025
2207
|
* Send an order receipt to the customer. A receipt is automatically sent when an order is paid for, so this would be to resend that receipt. Note that this is only available for website orders.
|
|
2026
2208
|
* @summary Send order receipt
|
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