ultracart_rest_api_v2_typescript 3.10.40 → 3.10.41
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 +3 -2
- package/api.ts +65 -8
- package/dist/api.d.ts +58 -5
- package/dist/api.js +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.41
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@3.10.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.41 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,7 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
|
|
57
58
|
| 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
|
|
58
59
|
| 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
|
|
59
60
|
| 3.10.38 | 08/12/2022 | internal code to allow merchant login as customer |
|
package/api.ts
CHANGED
|
@@ -13157,6 +13157,18 @@ export interface EmailCommseqResponse {
|
|
|
13157
13157
|
* @interface EmailCommseqSequenceTestRequest
|
|
13158
13158
|
*/
|
|
13159
13159
|
export interface EmailCommseqSequenceTestRequest {
|
|
13160
|
+
/**
|
|
13161
|
+
*
|
|
13162
|
+
* @type {string}
|
|
13163
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13164
|
+
*/
|
|
13165
|
+
address_1?: string;
|
|
13166
|
+
/**
|
|
13167
|
+
*
|
|
13168
|
+
* @type {string}
|
|
13169
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13170
|
+
*/
|
|
13171
|
+
address_2?: string;
|
|
13160
13172
|
/**
|
|
13161
13173
|
*
|
|
13162
13174
|
* @type {string}
|
|
@@ -13169,12 +13181,24 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
13169
13181
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13170
13182
|
*/
|
|
13171
13183
|
cart_item_ids?: Array<string>;
|
|
13184
|
+
/**
|
|
13185
|
+
*
|
|
13186
|
+
* @type {string}
|
|
13187
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13188
|
+
*/
|
|
13189
|
+
city?: string;
|
|
13172
13190
|
/**
|
|
13173
13191
|
*
|
|
13174
13192
|
* @type {string}
|
|
13175
13193
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13176
13194
|
*/
|
|
13177
13195
|
esp_commseq_uuid?: string;
|
|
13196
|
+
/**
|
|
13197
|
+
*
|
|
13198
|
+
* @type {boolean}
|
|
13199
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13200
|
+
*/
|
|
13201
|
+
mail_card?: boolean;
|
|
13178
13202
|
/**
|
|
13179
13203
|
*
|
|
13180
13204
|
* @type {string}
|
|
@@ -13193,6 +13217,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
13193
13217
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13194
13218
|
*/
|
|
13195
13219
|
please_review?: boolean;
|
|
13220
|
+
/**
|
|
13221
|
+
*
|
|
13222
|
+
* @type {string}
|
|
13223
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13224
|
+
*/
|
|
13225
|
+
postal_code?: string;
|
|
13196
13226
|
/**
|
|
13197
13227
|
*
|
|
13198
13228
|
* @type {string}
|
|
@@ -13205,6 +13235,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
13205
13235
|
* @memberof EmailCommseqSequenceTestRequest
|
|
13206
13236
|
*/
|
|
13207
13237
|
send_to_logged_in_user?: boolean;
|
|
13238
|
+
/**
|
|
13239
|
+
*
|
|
13240
|
+
* @type {string}
|
|
13241
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
13242
|
+
*/
|
|
13243
|
+
state?: string;
|
|
13208
13244
|
}
|
|
13209
13245
|
|
|
13210
13246
|
/**
|
|
@@ -17824,6 +17860,12 @@ export interface ExperimentVariation {
|
|
|
17824
17860
|
* @memberof ExperimentVariation
|
|
17825
17861
|
*/
|
|
17826
17862
|
session_count?: number;
|
|
17863
|
+
/**
|
|
17864
|
+
* SMS Opt Ins for this variation
|
|
17865
|
+
* @type {number}
|
|
17866
|
+
* @memberof ExperimentVariation
|
|
17867
|
+
*/
|
|
17868
|
+
sms_opt_ins?: number;
|
|
17827
17869
|
/**
|
|
17828
17870
|
* Percentage of the traffic this variation is currently receiving
|
|
17829
17871
|
* @type {number}
|
|
@@ -17922,6 +17964,12 @@ export interface ExperimentVariationStat {
|
|
|
17922
17964
|
* @memberof ExperimentVariationStat
|
|
17923
17965
|
*/
|
|
17924
17966
|
session_count?: number;
|
|
17967
|
+
/**
|
|
17968
|
+
* Total SMS opt in count for this variation
|
|
17969
|
+
* @type {number}
|
|
17970
|
+
* @memberof ExperimentVariationStat
|
|
17971
|
+
*/
|
|
17972
|
+
sms_opt_in_count?: number;
|
|
17925
17973
|
/**
|
|
17926
17974
|
* Date/time that the statistic was created
|
|
17927
17975
|
* @type {string}
|
|
@@ -50499,11 +50547,12 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
|
|
|
50499
50547
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
50500
50548
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
50501
50549
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
50550
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
50502
50551
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
50503
50552
|
* @param {*} [options] Override http request option.
|
|
50504
50553
|
* @throws {RequiredError}
|
|
50505
50554
|
*/
|
|
50506
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options: any = {}): FetchArgs {
|
|
50555
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options: any = {}): FetchArgs {
|
|
50507
50556
|
// verify required parameter 'order' is not null or undefined
|
|
50508
50557
|
if (order === null || order === undefined) {
|
|
50509
50558
|
throw new RequiredError('order','Required parameter order was null or undefined when calling refundOrder.');
|
|
@@ -50562,6 +50611,10 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
|
|
|
50562
50611
|
localVarQueryParameter['reverse_affiliate_transactions'] = reverse_affiliate_transactions;
|
|
50563
50612
|
}
|
|
50564
50613
|
|
|
50614
|
+
if (issue_store_credit !== undefined) {
|
|
50615
|
+
localVarQueryParameter['issue_store_credit'] = issue_store_credit;
|
|
50616
|
+
}
|
|
50617
|
+
|
|
50565
50618
|
if (_expand !== undefined) {
|
|
50566
50619
|
localVarQueryParameter['_expand'] = _expand;
|
|
50567
50620
|
}
|
|
@@ -51285,12 +51338,13 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
51285
51338
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
51286
51339
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
51287
51340
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
51341
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
51288
51342
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
51289
51343
|
* @param {*} [options] Override http request option.
|
|
51290
51344
|
* @throws {RequiredError}
|
|
51291
51345
|
*/
|
|
51292
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse> {
|
|
51293
|
-
const localVarFetchArgs = OrderApiFetchParamCreator(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options);
|
|
51346
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse> {
|
|
51347
|
+
const localVarFetchArgs = OrderApiFetchParamCreator(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options);
|
|
51294
51348
|
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
51295
51349
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
51296
51350
|
|
|
@@ -51643,12 +51697,13 @@ export const OrderApiFactory = function (configuration?: Configuration, fetch?:
|
|
|
51643
51697
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
51644
51698
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
51645
51699
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
51700
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
51646
51701
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
51647
51702
|
* @param {*} [options] Override http request option.
|
|
51648
51703
|
* @throws {RequiredError}
|
|
51649
51704
|
*/
|
|
51650
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any) {
|
|
51651
|
-
return OrderApiFp(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(fetch, basePath);
|
|
51705
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any) {
|
|
51706
|
+
return OrderApiFp(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(fetch, basePath);
|
|
51652
51707
|
},
|
|
51653
51708
|
/**
|
|
51654
51709
|
* Create a replacement order based upon a previous order
|
|
@@ -51935,12 +51990,13 @@ export interface OrderApiInterface {
|
|
|
51935
51990
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
51936
51991
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
51937
51992
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
51993
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
51938
51994
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
51939
51995
|
* @param {*} [options] Override http request option.
|
|
51940
51996
|
* @throws {RequiredError}
|
|
51941
51997
|
* @memberof OrderApiInterface
|
|
51942
51998
|
*/
|
|
51943
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
51999
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
51944
52000
|
|
|
51945
52001
|
/**
|
|
51946
52002
|
* Create a replacement order based upon a previous order
|
|
@@ -52261,13 +52317,14 @@ export class OrderApi extends BaseAPI implements OrderApiInterface {
|
|
|
52261
52317
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
52262
52318
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
52263
52319
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
52320
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
52264
52321
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
52265
52322
|
* @param {*} [options] Override http request option.
|
|
52266
52323
|
* @throws {RequiredError}
|
|
52267
52324
|
* @memberof OrderApi
|
|
52268
52325
|
*/
|
|
52269
|
-
public refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any) {
|
|
52270
|
-
return OrderApiFp(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(this.fetch, this.basePath);
|
|
52326
|
+
public refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any) {
|
|
52327
|
+
return OrderApiFp(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(this.fetch, this.basePath);
|
|
52271
52328
|
}
|
|
52272
52329
|
|
|
52273
52330
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -12855,6 +12855,18 @@ export interface EmailCommseqResponse {
|
|
|
12855
12855
|
* @interface EmailCommseqSequenceTestRequest
|
|
12856
12856
|
*/
|
|
12857
12857
|
export interface EmailCommseqSequenceTestRequest {
|
|
12858
|
+
/**
|
|
12859
|
+
*
|
|
12860
|
+
* @type {string}
|
|
12861
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12862
|
+
*/
|
|
12863
|
+
address_1?: string;
|
|
12864
|
+
/**
|
|
12865
|
+
*
|
|
12866
|
+
* @type {string}
|
|
12867
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12868
|
+
*/
|
|
12869
|
+
address_2?: string;
|
|
12858
12870
|
/**
|
|
12859
12871
|
*
|
|
12860
12872
|
* @type {string}
|
|
@@ -12867,12 +12879,24 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
12867
12879
|
* @memberof EmailCommseqSequenceTestRequest
|
|
12868
12880
|
*/
|
|
12869
12881
|
cart_item_ids?: Array<string>;
|
|
12882
|
+
/**
|
|
12883
|
+
*
|
|
12884
|
+
* @type {string}
|
|
12885
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12886
|
+
*/
|
|
12887
|
+
city?: string;
|
|
12870
12888
|
/**
|
|
12871
12889
|
*
|
|
12872
12890
|
* @type {string}
|
|
12873
12891
|
* @memberof EmailCommseqSequenceTestRequest
|
|
12874
12892
|
*/
|
|
12875
12893
|
esp_commseq_uuid?: string;
|
|
12894
|
+
/**
|
|
12895
|
+
*
|
|
12896
|
+
* @type {boolean}
|
|
12897
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12898
|
+
*/
|
|
12899
|
+
mail_card?: boolean;
|
|
12876
12900
|
/**
|
|
12877
12901
|
*
|
|
12878
12902
|
* @type {string}
|
|
@@ -12891,6 +12915,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
12891
12915
|
* @memberof EmailCommseqSequenceTestRequest
|
|
12892
12916
|
*/
|
|
12893
12917
|
please_review?: boolean;
|
|
12918
|
+
/**
|
|
12919
|
+
*
|
|
12920
|
+
* @type {string}
|
|
12921
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12922
|
+
*/
|
|
12923
|
+
postal_code?: string;
|
|
12894
12924
|
/**
|
|
12895
12925
|
*
|
|
12896
12926
|
* @type {string}
|
|
@@ -12903,6 +12933,12 @@ export interface EmailCommseqSequenceTestRequest {
|
|
|
12903
12933
|
* @memberof EmailCommseqSequenceTestRequest
|
|
12904
12934
|
*/
|
|
12905
12935
|
send_to_logged_in_user?: boolean;
|
|
12936
|
+
/**
|
|
12937
|
+
*
|
|
12938
|
+
* @type {string}
|
|
12939
|
+
* @memberof EmailCommseqSequenceTestRequest
|
|
12940
|
+
*/
|
|
12941
|
+
state?: string;
|
|
12906
12942
|
}
|
|
12907
12943
|
/**
|
|
12908
12944
|
*
|
|
@@ -17428,6 +17464,12 @@ export interface ExperimentVariation {
|
|
|
17428
17464
|
* @memberof ExperimentVariation
|
|
17429
17465
|
*/
|
|
17430
17466
|
session_count?: number;
|
|
17467
|
+
/**
|
|
17468
|
+
* SMS Opt Ins for this variation
|
|
17469
|
+
* @type {number}
|
|
17470
|
+
* @memberof ExperimentVariation
|
|
17471
|
+
*/
|
|
17472
|
+
sms_opt_ins?: number;
|
|
17431
17473
|
/**
|
|
17432
17474
|
* Percentage of the traffic this variation is currently receiving
|
|
17433
17475
|
* @type {number}
|
|
@@ -17525,6 +17567,12 @@ export interface ExperimentVariationStat {
|
|
|
17525
17567
|
* @memberof ExperimentVariationStat
|
|
17526
17568
|
*/
|
|
17527
17569
|
session_count?: number;
|
|
17570
|
+
/**
|
|
17571
|
+
* Total SMS opt in count for this variation
|
|
17572
|
+
* @type {number}
|
|
17573
|
+
* @memberof ExperimentVariationStat
|
|
17574
|
+
*/
|
|
17575
|
+
sms_opt_in_count?: number;
|
|
17528
17576
|
/**
|
|
17529
17577
|
* Date/time that the statistic was created
|
|
17530
17578
|
* @type {string}
|
|
@@ -40269,11 +40317,12 @@ export declare const OrderApiFetchParamCreator: (configuration?: Configuration)
|
|
|
40269
40317
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
40270
40318
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
40271
40319
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
40320
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
40272
40321
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40273
40322
|
* @param {*} [options] Override http request option.
|
|
40274
40323
|
* @throws {RequiredError}
|
|
40275
40324
|
*/
|
|
40276
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): FetchArgs;
|
|
40325
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): FetchArgs;
|
|
40277
40326
|
/**
|
|
40278
40327
|
* Create a replacement order based upon a previous order
|
|
40279
40328
|
* @summary Replacement order
|
|
@@ -40512,11 +40561,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
40512
40561
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
40513
40562
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
40514
40563
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
40564
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
40515
40565
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40516
40566
|
* @param {*} [options] Override http request option.
|
|
40517
40567
|
* @throws {RequiredError}
|
|
40518
40568
|
*/
|
|
40519
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse>;
|
|
40569
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<OrderResponse>;
|
|
40520
40570
|
/**
|
|
40521
40571
|
* Create a replacement order based upon a previous order
|
|
40522
40572
|
* @summary Replacement order
|
|
@@ -40755,11 +40805,12 @@ export declare const OrderApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
40755
40805
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
40756
40806
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
40757
40807
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
40808
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
40758
40809
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40759
40810
|
* @param {*} [options] Override http request option.
|
|
40760
40811
|
* @throws {RequiredError}
|
|
40761
40812
|
*/
|
|
40762
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
40813
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
40763
40814
|
/**
|
|
40764
40815
|
* Create a replacement order based upon a previous order
|
|
40765
40816
|
* @summary Replacement order
|
|
@@ -41016,12 +41067,13 @@ export interface OrderApiInterface {
|
|
|
41016
41067
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
41017
41068
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
41018
41069
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
41070
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
41019
41071
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41020
41072
|
* @param {*} [options] Override http request option.
|
|
41021
41073
|
* @throws {RequiredError}
|
|
41022
41074
|
* @memberof OrderApiInterface
|
|
41023
41075
|
*/
|
|
41024
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
41076
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
41025
41077
|
/**
|
|
41026
41078
|
* Create a replacement order based upon a previous order
|
|
41027
41079
|
* @summary Replacement order
|
|
@@ -41284,12 +41336,13 @@ export declare class OrderApi extends BaseAPI implements OrderApiInterface {
|
|
|
41284
41336
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
41285
41337
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
41286
41338
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
41339
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
41287
41340
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41288
41341
|
* @param {*} [options] Override http request option.
|
|
41289
41342
|
* @throws {RequiredError}
|
|
41290
41343
|
* @memberof OrderApi
|
|
41291
41344
|
*/
|
|
41292
|
-
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
41345
|
+
refundOrder(order: Order, order_id: string, reject_after_refund?: boolean, skip_customer_notification?: boolean, auto_order_cancel?: boolean, manual_refund?: boolean, reverse_affiliate_transactions?: boolean, issue_store_credit?: boolean, _expand?: string, options?: any): Promise<OrderResponse>;
|
|
41293
41346
|
/**
|
|
41294
41347
|
* Create a replacement order based upon a previous order
|
|
41295
41348
|
* @summary Replacement order
|
package/dist/api.js
CHANGED
|
@@ -14540,11 +14540,12 @@ var OrderApiFetchParamCreator = function (configuration) {
|
|
|
14540
14540
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
14541
14541
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
14542
14542
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
14543
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
14543
14544
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
14544
14545
|
* @param {*} [options] Override http request option.
|
|
14545
14546
|
* @throws {RequiredError}
|
|
14546
14547
|
*/
|
|
14547
|
-
refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
|
|
14548
|
+
refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
|
|
14548
14549
|
if (options === void 0) { options = {}; }
|
|
14549
14550
|
// verify required parameter 'order' is not null or undefined
|
|
14550
14551
|
if (order === null || order === undefined) {
|
|
@@ -14593,6 +14594,9 @@ var OrderApiFetchParamCreator = function (configuration) {
|
|
|
14593
14594
|
if (reverse_affiliate_transactions !== undefined) {
|
|
14594
14595
|
localVarQueryParameter['reverse_affiliate_transactions'] = reverse_affiliate_transactions;
|
|
14595
14596
|
}
|
|
14597
|
+
if (issue_store_credit !== undefined) {
|
|
14598
|
+
localVarQueryParameter['issue_store_credit'] = issue_store_credit;
|
|
14599
|
+
}
|
|
14596
14600
|
if (_expand !== undefined) {
|
|
14597
14601
|
localVarQueryParameter['_expand'] = _expand;
|
|
14598
14602
|
}
|
|
@@ -15296,12 +15300,13 @@ var OrderApiFp = function (configuration) {
|
|
|
15296
15300
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
15297
15301
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
15298
15302
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
15303
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
15299
15304
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
15300
15305
|
* @param {*} [options] Override http request option.
|
|
15301
15306
|
* @throws {RequiredError}
|
|
15302
15307
|
*/
|
|
15303
|
-
refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
|
|
15304
|
-
var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options);
|
|
15308
|
+
refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
|
|
15309
|
+
var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options);
|
|
15305
15310
|
return function (fetch, basePath) {
|
|
15306
15311
|
if (fetch === void 0) { fetch = portableFetch; }
|
|
15307
15312
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -15660,12 +15665,13 @@ var OrderApiFactory = function (configuration, fetch, basePath) {
|
|
|
15660
15665
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
15661
15666
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
15662
15667
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
15668
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
15663
15669
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
15664
15670
|
* @param {*} [options] Override http request option.
|
|
15665
15671
|
* @throws {RequiredError}
|
|
15666
15672
|
*/
|
|
15667
|
-
refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
|
|
15668
|
-
return (0, exports.OrderApiFp)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(fetch, basePath);
|
|
15673
|
+
refundOrder: function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
|
|
15674
|
+
return (0, exports.OrderApiFp)(configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(fetch, basePath);
|
|
15669
15675
|
},
|
|
15670
15676
|
/**
|
|
15671
15677
|
* Create a replacement order based upon a previous order
|
|
@@ -15974,13 +15980,14 @@ var OrderApi = /** @class */ (function (_super) {
|
|
|
15974
15980
|
* @param {boolean} [auto_order_cancel] Cancel associated auto orders
|
|
15975
15981
|
* @param {boolean} [manual_refund] Consider a manual refund done externally
|
|
15976
15982
|
* @param {boolean} [reverse_affiliate_transactions] Reverse affiliate transactions
|
|
15983
|
+
* @param {boolean} [issue_store_credit] Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
|
|
15977
15984
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
15978
15985
|
* @param {*} [options] Override http request option.
|
|
15979
15986
|
* @throws {RequiredError}
|
|
15980
15987
|
* @memberof OrderApi
|
|
15981
15988
|
*/
|
|
15982
|
-
OrderApi.prototype.refundOrder = function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options) {
|
|
15983
|
-
return (0, exports.OrderApiFp)(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, _expand, options)(this.fetch, this.basePath);
|
|
15989
|
+
OrderApi.prototype.refundOrder = function (order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options) {
|
|
15990
|
+
return (0, exports.OrderApiFp)(this.configuration).refundOrder(order, order_id, reject_after_refund, skip_customer_notification, auto_order_cancel, manual_refund, reverse_affiliate_transactions, issue_store_credit, _expand, options)(this.fetch, this.basePath);
|
|
15984
15991
|
};
|
|
15985
15992
|
/**
|
|
15986
15993
|
* Create a replacement order based upon a previous order
|