@munchi_oy/core 1.9.68 → 1.9.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +398 -3
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +705 -5
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -2498,6 +2498,12 @@ export interface CatalogMethodDtoCapabilities {
|
|
|
2498
2498
|
* @memberof CatalogMethodDtoCapabilities
|
|
2499
2499
|
*/
|
|
2500
2500
|
'refundPriorityTier': number | null;
|
|
2501
|
+
/**
|
|
2502
|
+
* Within-tier refund order (seed-only; lower = earlier). null → sorted last in tier.
|
|
2503
|
+
* @type {number}
|
|
2504
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2505
|
+
*/
|
|
2506
|
+
'refundPriorityRank': number | null;
|
|
2501
2507
|
/**
|
|
2502
2508
|
*
|
|
2503
2509
|
* @type {PaymentCheckoutFlow}
|
|
@@ -2931,11 +2937,11 @@ export interface CompletedStepDto {
|
|
|
2931
2937
|
*/
|
|
2932
2938
|
'sourceTransactionId': string | null;
|
|
2933
2939
|
/**
|
|
2934
|
-
*
|
|
2935
|
-
* @type {
|
|
2940
|
+
* Payment method code (dynamic, per-business catalog)
|
|
2941
|
+
* @type {string}
|
|
2936
2942
|
* @memberof CompletedStepDto
|
|
2937
2943
|
*/
|
|
2938
|
-
'type'?:
|
|
2944
|
+
'type'?: string | null;
|
|
2939
2945
|
/**
|
|
2940
2946
|
* Refund ID from the payment provider
|
|
2941
2947
|
* @type {string}
|
|
@@ -12428,7 +12434,8 @@ export const PaymentMethod = {
|
|
|
12428
12434
|
Trade: 'Trade',
|
|
12429
12435
|
Exchange: 'Exchange',
|
|
12430
12436
|
Tilisiirto: 'Tilisiirto',
|
|
12431
|
-
LoyaltyPoints: 'LoyaltyPoints'
|
|
12437
|
+
LoyaltyPoints: 'LoyaltyPoints',
|
|
12438
|
+
DiningByAmex: 'DiningByAmex'
|
|
12432
12439
|
} as const;
|
|
12433
12440
|
|
|
12434
12441
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
@@ -12464,6 +12471,12 @@ export interface PaymentMethodCapabilitiesDto {
|
|
|
12464
12471
|
* @memberof PaymentMethodCapabilitiesDto
|
|
12465
12472
|
*/
|
|
12466
12473
|
'refundPriorityTier': number | null;
|
|
12474
|
+
/**
|
|
12475
|
+
* Within-tier refund order (seed-only; lower = earlier). null → sorted last in tier.
|
|
12476
|
+
* @type {number}
|
|
12477
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12478
|
+
*/
|
|
12479
|
+
'refundPriorityRank': number | null;
|
|
12467
12480
|
/**
|
|
12468
12481
|
*
|
|
12469
12482
|
* @type {PaymentCheckoutFlow}
|
|
@@ -12971,6 +12984,12 @@ export interface PaymentMethodDtoCapabilities {
|
|
|
12971
12984
|
* @memberof PaymentMethodDtoCapabilities
|
|
12972
12985
|
*/
|
|
12973
12986
|
'refundPriorityTier': number | null;
|
|
12987
|
+
/**
|
|
12988
|
+
* Within-tier refund order (seed-only; lower = earlier). null → sorted last in tier.
|
|
12989
|
+
* @type {number}
|
|
12990
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12991
|
+
*/
|
|
12992
|
+
'refundPriorityRank': number | null;
|
|
12974
12993
|
/**
|
|
12975
12994
|
*
|
|
12976
12995
|
* @type {PaymentCheckoutFlow}
|
|
@@ -13473,6 +13492,7 @@ export const PaymentSessionStatus = {
|
|
|
13473
13492
|
Failed: 'FAILED',
|
|
13474
13493
|
Cancelled: 'CANCELLED',
|
|
13475
13494
|
Closed: 'CLOSED',
|
|
13495
|
+
VoidPending: 'VOID_PENDING',
|
|
13476
13496
|
Voiding: 'VOIDING',
|
|
13477
13497
|
Voided: 'VOIDED',
|
|
13478
13498
|
VoidFailed: 'VOID_FAILED',
|
|
@@ -22626,7 +22646,8 @@ export const NameEnum = {
|
|
|
22626
22646
|
Trade: 'Trade',
|
|
22627
22647
|
Exchange: 'Exchange',
|
|
22628
22648
|
Tilisiirto: 'Tilisiirto',
|
|
22629
|
-
LoyaltyPoints: 'LoyaltyPoints'
|
|
22649
|
+
LoyaltyPoints: 'LoyaltyPoints',
|
|
22650
|
+
DiningByAmex: 'DiningByAmex'
|
|
22630
22651
|
} as const;
|
|
22631
22652
|
|
|
22632
22653
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
@@ -42632,6 +42653,48 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42632
42653
|
|
|
42633
42654
|
|
|
42634
42655
|
|
|
42656
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42658
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42659
|
+
|
|
42660
|
+
return {
|
|
42661
|
+
url: toPathString(localVarUrlObj),
|
|
42662
|
+
options: localVarRequestOptions,
|
|
42663
|
+
};
|
|
42664
|
+
},
|
|
42665
|
+
/**
|
|
42666
|
+
*
|
|
42667
|
+
* @summary
|
|
42668
|
+
* @param {string} businessId
|
|
42669
|
+
* @param {string} orderId
|
|
42670
|
+
* @param {string} refundId
|
|
42671
|
+
* @param {*} [options] Override http request option.
|
|
42672
|
+
* @throws {RequiredError}
|
|
42673
|
+
*/
|
|
42674
|
+
cancelPlanV2: async (businessId: string, orderId: string, refundId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42675
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
42676
|
+
assertParamExists('cancelPlanV2', 'businessId', businessId)
|
|
42677
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
42678
|
+
assertParamExists('cancelPlanV2', 'orderId', orderId)
|
|
42679
|
+
// verify required parameter 'refundId' is not null or undefined
|
|
42680
|
+
assertParamExists('cancelPlanV2', 'refundId', refundId)
|
|
42681
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel`
|
|
42682
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
42683
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
42684
|
+
.replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
|
|
42685
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42686
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42687
|
+
let baseOptions;
|
|
42688
|
+
if (configuration) {
|
|
42689
|
+
baseOptions = configuration.baseOptions;
|
|
42690
|
+
}
|
|
42691
|
+
|
|
42692
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
42693
|
+
const localVarHeaderParameter = {} as any;
|
|
42694
|
+
const localVarQueryParameter = {} as any;
|
|
42695
|
+
|
|
42696
|
+
|
|
42697
|
+
|
|
42635
42698
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42636
42699
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42637
42700
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -42672,6 +42735,50 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42672
42735
|
|
|
42673
42736
|
|
|
42674
42737
|
|
|
42738
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42739
|
+
|
|
42740
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42741
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42742
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42743
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRefundPlanDto, localVarRequestOptions, configuration)
|
|
42744
|
+
|
|
42745
|
+
return {
|
|
42746
|
+
url: toPathString(localVarUrlObj),
|
|
42747
|
+
options: localVarRequestOptions,
|
|
42748
|
+
};
|
|
42749
|
+
},
|
|
42750
|
+
/**
|
|
42751
|
+
*
|
|
42752
|
+
* @summary
|
|
42753
|
+
* @param {string} businessId
|
|
42754
|
+
* @param {string} orderId
|
|
42755
|
+
* @param {CreateRefundPlanDto} createRefundPlanDto
|
|
42756
|
+
* @param {*} [options] Override http request option.
|
|
42757
|
+
* @throws {RequiredError}
|
|
42758
|
+
*/
|
|
42759
|
+
createRefundPlanV2: async (businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42760
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
42761
|
+
assertParamExists('createRefundPlanV2', 'businessId', businessId)
|
|
42762
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
42763
|
+
assertParamExists('createRefundPlanV2', 'orderId', orderId)
|
|
42764
|
+
// verify required parameter 'createRefundPlanDto' is not null or undefined
|
|
42765
|
+
assertParamExists('createRefundPlanV2', 'createRefundPlanDto', createRefundPlanDto)
|
|
42766
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan`
|
|
42767
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
42768
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
42769
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42770
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42771
|
+
let baseOptions;
|
|
42772
|
+
if (configuration) {
|
|
42773
|
+
baseOptions = configuration.baseOptions;
|
|
42774
|
+
}
|
|
42775
|
+
|
|
42776
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42777
|
+
const localVarHeaderParameter = {} as any;
|
|
42778
|
+
const localVarQueryParameter = {} as any;
|
|
42779
|
+
|
|
42780
|
+
|
|
42781
|
+
|
|
42675
42782
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42676
42783
|
|
|
42677
42784
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -42719,6 +42826,51 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42719
42826
|
|
|
42720
42827
|
|
|
42721
42828
|
|
|
42829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42831
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42832
|
+
|
|
42833
|
+
return {
|
|
42834
|
+
url: toPathString(localVarUrlObj),
|
|
42835
|
+
options: localVarRequestOptions,
|
|
42836
|
+
};
|
|
42837
|
+
},
|
|
42838
|
+
/**
|
|
42839
|
+
*
|
|
42840
|
+
* @summary
|
|
42841
|
+
* @param {string} businessId
|
|
42842
|
+
* @param {string} orderId
|
|
42843
|
+
* @param {any} status
|
|
42844
|
+
* @param {*} [options] Override http request option.
|
|
42845
|
+
* @throws {RequiredError}
|
|
42846
|
+
*/
|
|
42847
|
+
getRefundPlanV2: async (businessId: string, orderId: string, status: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42848
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
42849
|
+
assertParamExists('getRefundPlanV2', 'businessId', businessId)
|
|
42850
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
42851
|
+
assertParamExists('getRefundPlanV2', 'orderId', orderId)
|
|
42852
|
+
// verify required parameter 'status' is not null or undefined
|
|
42853
|
+
assertParamExists('getRefundPlanV2', 'status', status)
|
|
42854
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds`
|
|
42855
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
42856
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
42857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42858
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42859
|
+
let baseOptions;
|
|
42860
|
+
if (configuration) {
|
|
42861
|
+
baseOptions = configuration.baseOptions;
|
|
42862
|
+
}
|
|
42863
|
+
|
|
42864
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
42865
|
+
const localVarHeaderParameter = {} as any;
|
|
42866
|
+
const localVarQueryParameter = {} as any;
|
|
42867
|
+
|
|
42868
|
+
if (status !== undefined) {
|
|
42869
|
+
localVarQueryParameter['status'] = status;
|
|
42870
|
+
}
|
|
42871
|
+
|
|
42872
|
+
|
|
42873
|
+
|
|
42722
42874
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42723
42875
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42724
42876
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -42763,6 +42915,54 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42763
42915
|
|
|
42764
42916
|
|
|
42765
42917
|
|
|
42918
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42919
|
+
|
|
42920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42922
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
42923
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completedStepDto, localVarRequestOptions, configuration)
|
|
42924
|
+
|
|
42925
|
+
return {
|
|
42926
|
+
url: toPathString(localVarUrlObj),
|
|
42927
|
+
options: localVarRequestOptions,
|
|
42928
|
+
};
|
|
42929
|
+
},
|
|
42930
|
+
/**
|
|
42931
|
+
*
|
|
42932
|
+
* @summary
|
|
42933
|
+
* @param {string} businessId
|
|
42934
|
+
* @param {string} orderId
|
|
42935
|
+
* @param {string} refundId
|
|
42936
|
+
* @param {CompletedStepDto} completedStepDto
|
|
42937
|
+
* @param {*} [options] Override http request option.
|
|
42938
|
+
* @throws {RequiredError}
|
|
42939
|
+
*/
|
|
42940
|
+
recordRefundPlanV2: async (businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42941
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
42942
|
+
assertParamExists('recordRefundPlanV2', 'businessId', businessId)
|
|
42943
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
42944
|
+
assertParamExists('recordRefundPlanV2', 'orderId', orderId)
|
|
42945
|
+
// verify required parameter 'refundId' is not null or undefined
|
|
42946
|
+
assertParamExists('recordRefundPlanV2', 'refundId', refundId)
|
|
42947
|
+
// verify required parameter 'completedStepDto' is not null or undefined
|
|
42948
|
+
assertParamExists('recordRefundPlanV2', 'completedStepDto', completedStepDto)
|
|
42949
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record`
|
|
42950
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
42951
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
42952
|
+
.replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
|
|
42953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42954
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42955
|
+
let baseOptions;
|
|
42956
|
+
if (configuration) {
|
|
42957
|
+
baseOptions = configuration.baseOptions;
|
|
42958
|
+
}
|
|
42959
|
+
|
|
42960
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
42961
|
+
const localVarHeaderParameter = {} as any;
|
|
42962
|
+
const localVarQueryParameter = {} as any;
|
|
42963
|
+
|
|
42964
|
+
|
|
42965
|
+
|
|
42766
42966
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42767
42967
|
|
|
42768
42968
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -42810,6 +43010,51 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42810
43010
|
|
|
42811
43011
|
|
|
42812
43012
|
|
|
43013
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43014
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43015
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43016
|
+
|
|
43017
|
+
return {
|
|
43018
|
+
url: toPathString(localVarUrlObj),
|
|
43019
|
+
options: localVarRequestOptions,
|
|
43020
|
+
};
|
|
43021
|
+
},
|
|
43022
|
+
/**
|
|
43023
|
+
*
|
|
43024
|
+
* @summary
|
|
43025
|
+
* @param {string} businessId
|
|
43026
|
+
* @param {string} orderId
|
|
43027
|
+
* @param {any} provider
|
|
43028
|
+
* @param {*} [options] Override http request option.
|
|
43029
|
+
* @throws {RequiredError}
|
|
43030
|
+
*/
|
|
43031
|
+
refundOnlineOrderV2: async (businessId: string, orderId: string, provider: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43032
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
43033
|
+
assertParamExists('refundOnlineOrderV2', 'businessId', businessId)
|
|
43034
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
43035
|
+
assertParamExists('refundOnlineOrderV2', 'orderId', orderId)
|
|
43036
|
+
// verify required parameter 'provider' is not null or undefined
|
|
43037
|
+
assertParamExists('refundOnlineOrderV2', 'provider', provider)
|
|
43038
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online`
|
|
43039
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
43040
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
43041
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43042
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43043
|
+
let baseOptions;
|
|
43044
|
+
if (configuration) {
|
|
43045
|
+
baseOptions = configuration.baseOptions;
|
|
43046
|
+
}
|
|
43047
|
+
|
|
43048
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43049
|
+
const localVarHeaderParameter = {} as any;
|
|
43050
|
+
const localVarQueryParameter = {} as any;
|
|
43051
|
+
|
|
43052
|
+
if (provider !== undefined) {
|
|
43053
|
+
localVarQueryParameter['provider'] = provider;
|
|
43054
|
+
}
|
|
43055
|
+
|
|
43056
|
+
|
|
43057
|
+
|
|
42813
43058
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42814
43059
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42815
43060
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -42854,6 +43099,54 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42854
43099
|
|
|
42855
43100
|
|
|
42856
43101
|
|
|
43102
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
43103
|
+
|
|
43104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43106
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43107
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resolveChoiceDto, localVarRequestOptions, configuration)
|
|
43108
|
+
|
|
43109
|
+
return {
|
|
43110
|
+
url: toPathString(localVarUrlObj),
|
|
43111
|
+
options: localVarRequestOptions,
|
|
43112
|
+
};
|
|
43113
|
+
},
|
|
43114
|
+
/**
|
|
43115
|
+
*
|
|
43116
|
+
* @summary
|
|
43117
|
+
* @param {string} businessId
|
|
43118
|
+
* @param {string} orderId
|
|
43119
|
+
* @param {string} refundId
|
|
43120
|
+
* @param {ResolveChoiceDto} resolveChoiceDto
|
|
43121
|
+
* @param {*} [options] Override http request option.
|
|
43122
|
+
* @throws {RequiredError}
|
|
43123
|
+
*/
|
|
43124
|
+
resolveRefundChoiceV2: async (businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43125
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
43126
|
+
assertParamExists('resolveRefundChoiceV2', 'businessId', businessId)
|
|
43127
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
43128
|
+
assertParamExists('resolveRefundChoiceV2', 'orderId', orderId)
|
|
43129
|
+
// verify required parameter 'refundId' is not null or undefined
|
|
43130
|
+
assertParamExists('resolveRefundChoiceV2', 'refundId', refundId)
|
|
43131
|
+
// verify required parameter 'resolveChoiceDto' is not null or undefined
|
|
43132
|
+
assertParamExists('resolveRefundChoiceV2', 'resolveChoiceDto', resolveChoiceDto)
|
|
43133
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice`
|
|
43134
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
43135
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
43136
|
+
.replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
|
|
43137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43139
|
+
let baseOptions;
|
|
43140
|
+
if (configuration) {
|
|
43141
|
+
baseOptions = configuration.baseOptions;
|
|
43142
|
+
}
|
|
43143
|
+
|
|
43144
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43145
|
+
const localVarHeaderParameter = {} as any;
|
|
43146
|
+
const localVarQueryParameter = {} as any;
|
|
43147
|
+
|
|
43148
|
+
|
|
43149
|
+
|
|
42857
43150
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
42858
43151
|
|
|
42859
43152
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -42898,6 +43191,48 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
42898
43191
|
|
|
42899
43192
|
|
|
42900
43193
|
|
|
43194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43197
|
+
|
|
43198
|
+
return {
|
|
43199
|
+
url: toPathString(localVarUrlObj),
|
|
43200
|
+
options: localVarRequestOptions,
|
|
43201
|
+
};
|
|
43202
|
+
},
|
|
43203
|
+
/**
|
|
43204
|
+
*
|
|
43205
|
+
* @summary
|
|
43206
|
+
* @param {string} businessId
|
|
43207
|
+
* @param {string} orderId
|
|
43208
|
+
* @param {string} refundId
|
|
43209
|
+
* @param {*} [options] Override http request option.
|
|
43210
|
+
* @throws {RequiredError}
|
|
43211
|
+
*/
|
|
43212
|
+
startProcessPlanV2: async (businessId: string, orderId: string, refundId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43213
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
43214
|
+
assertParamExists('startProcessPlanV2', 'businessId', businessId)
|
|
43215
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
43216
|
+
assertParamExists('startProcessPlanV2', 'orderId', orderId)
|
|
43217
|
+
// verify required parameter 'refundId' is not null or undefined
|
|
43218
|
+
assertParamExists('startProcessPlanV2', 'refundId', refundId)
|
|
43219
|
+
const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start`
|
|
43220
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
43221
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
43222
|
+
.replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
|
|
43223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43224
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43225
|
+
let baseOptions;
|
|
43226
|
+
if (configuration) {
|
|
43227
|
+
baseOptions = configuration.baseOptions;
|
|
43228
|
+
}
|
|
43229
|
+
|
|
43230
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
43231
|
+
const localVarHeaderParameter = {} as any;
|
|
43232
|
+
const localVarQueryParameter = {} as any;
|
|
43233
|
+
|
|
43234
|
+
|
|
43235
|
+
|
|
42901
43236
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42902
43237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42903
43238
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -42929,6 +43264,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
42929
43264
|
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPlan(businessId, orderId, refundId, options);
|
|
42930
43265
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42931
43266
|
},
|
|
43267
|
+
/**
|
|
43268
|
+
*
|
|
43269
|
+
* @summary
|
|
43270
|
+
* @param {string} businessId
|
|
43271
|
+
* @param {string} orderId
|
|
43272
|
+
* @param {string} refundId
|
|
43273
|
+
* @param {*} [options] Override http request option.
|
|
43274
|
+
* @throws {RequiredError}
|
|
43275
|
+
*/
|
|
43276
|
+
async cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPlanV2(businessId, orderId, refundId, options);
|
|
43278
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43279
|
+
},
|
|
42932
43280
|
/**
|
|
42933
43281
|
*
|
|
42934
43282
|
* @param {string} businessId
|
|
@@ -42941,6 +43289,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
42941
43289
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRefundPlan(businessId, orderId, createRefundPlanDto, options);
|
|
42942
43290
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42943
43291
|
},
|
|
43292
|
+
/**
|
|
43293
|
+
*
|
|
43294
|
+
* @summary
|
|
43295
|
+
* @param {string} businessId
|
|
43296
|
+
* @param {string} orderId
|
|
43297
|
+
* @param {CreateRefundPlanDto} createRefundPlanDto
|
|
43298
|
+
* @param {*} [options] Override http request option.
|
|
43299
|
+
* @throws {RequiredError}
|
|
43300
|
+
*/
|
|
43301
|
+
async createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
|
|
43302
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRefundPlanV2(businessId, orderId, createRefundPlanDto, options);
|
|
43303
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43304
|
+
},
|
|
42944
43305
|
/**
|
|
42945
43306
|
*
|
|
42946
43307
|
* @param {string} businessId
|
|
@@ -42953,6 +43314,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
42953
43314
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefundPlan(businessId, orderId, status, options);
|
|
42954
43315
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42955
43316
|
},
|
|
43317
|
+
/**
|
|
43318
|
+
*
|
|
43319
|
+
* @summary
|
|
43320
|
+
* @param {string} businessId
|
|
43321
|
+
* @param {string} orderId
|
|
43322
|
+
* @param {any} status
|
|
43323
|
+
* @param {*} [options] Override http request option.
|
|
43324
|
+
* @throws {RequiredError}
|
|
43325
|
+
*/
|
|
43326
|
+
async getRefundPlanV2(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RefundPlanDto>>> {
|
|
43327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRefundPlanV2(businessId, orderId, status, options);
|
|
43328
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43329
|
+
},
|
|
42956
43330
|
/**
|
|
42957
43331
|
*
|
|
42958
43332
|
* @param {string} businessId
|
|
@@ -42966,6 +43340,20 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
42966
43340
|
const localVarAxiosArgs = await localVarAxiosParamCreator.recordRefundPlan(businessId, orderId, refundId, completedStepDto, options);
|
|
42967
43341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42968
43342
|
},
|
|
43343
|
+
/**
|
|
43344
|
+
*
|
|
43345
|
+
* @summary
|
|
43346
|
+
* @param {string} businessId
|
|
43347
|
+
* @param {string} orderId
|
|
43348
|
+
* @param {string} refundId
|
|
43349
|
+
* @param {CompletedStepDto} completedStepDto
|
|
43350
|
+
* @param {*} [options] Override http request option.
|
|
43351
|
+
* @throws {RequiredError}
|
|
43352
|
+
*/
|
|
43353
|
+
async recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
|
|
43354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recordRefundPlanV2(businessId, orderId, refundId, completedStepDto, options);
|
|
43355
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43356
|
+
},
|
|
42969
43357
|
/**
|
|
42970
43358
|
*
|
|
42971
43359
|
* @param {string} businessId
|
|
@@ -42978,6 +43366,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
42978
43366
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refundOnlineOrder(businessId, orderId, provider, options);
|
|
42979
43367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42980
43368
|
},
|
|
43369
|
+
/**
|
|
43370
|
+
*
|
|
43371
|
+
* @summary
|
|
43372
|
+
* @param {string} businessId
|
|
43373
|
+
* @param {string} orderId
|
|
43374
|
+
* @param {any} provider
|
|
43375
|
+
* @param {*} [options] Override http request option.
|
|
43376
|
+
* @throws {RequiredError}
|
|
43377
|
+
*/
|
|
43378
|
+
async refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
43379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refundOnlineOrderV2(businessId, orderId, provider, options);
|
|
43380
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43381
|
+
},
|
|
42981
43382
|
/**
|
|
42982
43383
|
*
|
|
42983
43384
|
* @param {string} businessId
|
|
@@ -42991,6 +43392,20 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
42991
43392
|
const localVarAxiosArgs = await localVarAxiosParamCreator.resolveRefundChoice(businessId, orderId, refundId, resolveChoiceDto, options);
|
|
42992
43393
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
42993
43394
|
},
|
|
43395
|
+
/**
|
|
43396
|
+
*
|
|
43397
|
+
* @summary
|
|
43398
|
+
* @param {string} businessId
|
|
43399
|
+
* @param {string} orderId
|
|
43400
|
+
* @param {string} refundId
|
|
43401
|
+
* @param {ResolveChoiceDto} resolveChoiceDto
|
|
43402
|
+
* @param {*} [options] Override http request option.
|
|
43403
|
+
* @throws {RequiredError}
|
|
43404
|
+
*/
|
|
43405
|
+
async resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
|
|
43406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resolveRefundChoiceV2(businessId, orderId, refundId, resolveChoiceDto, options);
|
|
43407
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43408
|
+
},
|
|
42994
43409
|
/**
|
|
42995
43410
|
*
|
|
42996
43411
|
* @param {string} businessId
|
|
@@ -43003,6 +43418,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
|
|
|
43003
43418
|
const localVarAxiosArgs = await localVarAxiosParamCreator.startProcessPlan(businessId, orderId, refundId, options);
|
|
43004
43419
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43005
43420
|
},
|
|
43421
|
+
/**
|
|
43422
|
+
*
|
|
43423
|
+
* @summary
|
|
43424
|
+
* @param {string} businessId
|
|
43425
|
+
* @param {string} orderId
|
|
43426
|
+
* @param {string} refundId
|
|
43427
|
+
* @param {*} [options] Override http request option.
|
|
43428
|
+
* @throws {RequiredError}
|
|
43429
|
+
*/
|
|
43430
|
+
async startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
|
|
43431
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startProcessPlanV2(businessId, orderId, refundId, options);
|
|
43432
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43433
|
+
},
|
|
43006
43434
|
}
|
|
43007
43435
|
};
|
|
43008
43436
|
|
|
@@ -43024,6 +43452,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43024
43452
|
cancelPlan(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<void> {
|
|
43025
43453
|
return localVarFp.cancelPlan(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
|
|
43026
43454
|
},
|
|
43455
|
+
/**
|
|
43456
|
+
*
|
|
43457
|
+
* @summary
|
|
43458
|
+
* @param {string} businessId
|
|
43459
|
+
* @param {string} orderId
|
|
43460
|
+
* @param {string} refundId
|
|
43461
|
+
* @param {*} [options] Override http request option.
|
|
43462
|
+
* @throws {RequiredError}
|
|
43463
|
+
*/
|
|
43464
|
+
cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<void> {
|
|
43465
|
+
return localVarFp.cancelPlanV2(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
|
|
43466
|
+
},
|
|
43027
43467
|
/**
|
|
43028
43468
|
*
|
|
43029
43469
|
* @param {string} businessId
|
|
@@ -43035,6 +43475,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43035
43475
|
createRefundPlan(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43036
43476
|
return localVarFp.createRefundPlan(businessId, orderId, createRefundPlanDto, options).then((request) => request(axios, basePath));
|
|
43037
43477
|
},
|
|
43478
|
+
/**
|
|
43479
|
+
*
|
|
43480
|
+
* @summary
|
|
43481
|
+
* @param {string} businessId
|
|
43482
|
+
* @param {string} orderId
|
|
43483
|
+
* @param {CreateRefundPlanDto} createRefundPlanDto
|
|
43484
|
+
* @param {*} [options] Override http request option.
|
|
43485
|
+
* @throws {RequiredError}
|
|
43486
|
+
*/
|
|
43487
|
+
createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43488
|
+
return localVarFp.createRefundPlanV2(businessId, orderId, createRefundPlanDto, options).then((request) => request(axios, basePath));
|
|
43489
|
+
},
|
|
43038
43490
|
/**
|
|
43039
43491
|
*
|
|
43040
43492
|
* @param {string} businessId
|
|
@@ -43046,6 +43498,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43046
43498
|
getRefundPlan(businessId: string, orderId: string, status: any, options?: any): AxiosPromise<Array<RefundPlanDto>> {
|
|
43047
43499
|
return localVarFp.getRefundPlan(businessId, orderId, status, options).then((request) => request(axios, basePath));
|
|
43048
43500
|
},
|
|
43501
|
+
/**
|
|
43502
|
+
*
|
|
43503
|
+
* @summary
|
|
43504
|
+
* @param {string} businessId
|
|
43505
|
+
* @param {string} orderId
|
|
43506
|
+
* @param {any} status
|
|
43507
|
+
* @param {*} [options] Override http request option.
|
|
43508
|
+
* @throws {RequiredError}
|
|
43509
|
+
*/
|
|
43510
|
+
getRefundPlanV2(businessId: string, orderId: string, status: any, options?: any): AxiosPromise<Array<RefundPlanDto>> {
|
|
43511
|
+
return localVarFp.getRefundPlanV2(businessId, orderId, status, options).then((request) => request(axios, basePath));
|
|
43512
|
+
},
|
|
43049
43513
|
/**
|
|
43050
43514
|
*
|
|
43051
43515
|
* @param {string} businessId
|
|
@@ -43058,6 +43522,19 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43058
43522
|
recordRefundPlan(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43059
43523
|
return localVarFp.recordRefundPlan(businessId, orderId, refundId, completedStepDto, options).then((request) => request(axios, basePath));
|
|
43060
43524
|
},
|
|
43525
|
+
/**
|
|
43526
|
+
*
|
|
43527
|
+
* @summary
|
|
43528
|
+
* @param {string} businessId
|
|
43529
|
+
* @param {string} orderId
|
|
43530
|
+
* @param {string} refundId
|
|
43531
|
+
* @param {CompletedStepDto} completedStepDto
|
|
43532
|
+
* @param {*} [options] Override http request option.
|
|
43533
|
+
* @throws {RequiredError}
|
|
43534
|
+
*/
|
|
43535
|
+
recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43536
|
+
return localVarFp.recordRefundPlanV2(businessId, orderId, refundId, completedStepDto, options).then((request) => request(axios, basePath));
|
|
43537
|
+
},
|
|
43061
43538
|
/**
|
|
43062
43539
|
*
|
|
43063
43540
|
* @param {string} businessId
|
|
@@ -43069,6 +43546,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43069
43546
|
refundOnlineOrder(businessId: string, orderId: string, provider: any, options?: any): AxiosPromise<void> {
|
|
43070
43547
|
return localVarFp.refundOnlineOrder(businessId, orderId, provider, options).then((request) => request(axios, basePath));
|
|
43071
43548
|
},
|
|
43549
|
+
/**
|
|
43550
|
+
*
|
|
43551
|
+
* @summary
|
|
43552
|
+
* @param {string} businessId
|
|
43553
|
+
* @param {string} orderId
|
|
43554
|
+
* @param {any} provider
|
|
43555
|
+
* @param {*} [options] Override http request option.
|
|
43556
|
+
* @throws {RequiredError}
|
|
43557
|
+
*/
|
|
43558
|
+
refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: any): AxiosPromise<void> {
|
|
43559
|
+
return localVarFp.refundOnlineOrderV2(businessId, orderId, provider, options).then((request) => request(axios, basePath));
|
|
43560
|
+
},
|
|
43072
43561
|
/**
|
|
43073
43562
|
*
|
|
43074
43563
|
* @param {string} businessId
|
|
@@ -43081,6 +43570,19 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43081
43570
|
resolveRefundChoice(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43082
43571
|
return localVarFp.resolveRefundChoice(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(axios, basePath));
|
|
43083
43572
|
},
|
|
43573
|
+
/**
|
|
43574
|
+
*
|
|
43575
|
+
* @summary
|
|
43576
|
+
* @param {string} businessId
|
|
43577
|
+
* @param {string} orderId
|
|
43578
|
+
* @param {string} refundId
|
|
43579
|
+
* @param {ResolveChoiceDto} resolveChoiceDto
|
|
43580
|
+
* @param {*} [options] Override http request option.
|
|
43581
|
+
* @throws {RequiredError}
|
|
43582
|
+
*/
|
|
43583
|
+
resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43584
|
+
return localVarFp.resolveRefundChoiceV2(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(axios, basePath));
|
|
43585
|
+
},
|
|
43084
43586
|
/**
|
|
43085
43587
|
*
|
|
43086
43588
|
* @param {string} businessId
|
|
@@ -43092,6 +43594,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
|
|
|
43092
43594
|
startProcessPlan(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43093
43595
|
return localVarFp.startProcessPlan(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
|
|
43094
43596
|
},
|
|
43597
|
+
/**
|
|
43598
|
+
*
|
|
43599
|
+
* @summary
|
|
43600
|
+
* @param {string} businessId
|
|
43601
|
+
* @param {string} orderId
|
|
43602
|
+
* @param {string} refundId
|
|
43603
|
+
* @param {*} [options] Override http request option.
|
|
43604
|
+
* @throws {RequiredError}
|
|
43605
|
+
*/
|
|
43606
|
+
startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<RefundPlanDto> {
|
|
43607
|
+
return localVarFp.startProcessPlanV2(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
|
|
43608
|
+
},
|
|
43095
43609
|
};
|
|
43096
43610
|
};
|
|
43097
43611
|
|
|
@@ -43112,6 +43626,18 @@ export interface RefundsApiInterface {
|
|
|
43112
43626
|
*/
|
|
43113
43627
|
cancelPlan(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
43114
43628
|
|
|
43629
|
+
/**
|
|
43630
|
+
*
|
|
43631
|
+
* @summary
|
|
43632
|
+
* @param {string} businessId
|
|
43633
|
+
* @param {string} orderId
|
|
43634
|
+
* @param {string} refundId
|
|
43635
|
+
* @param {*} [options] Override http request option.
|
|
43636
|
+
* @throws {RequiredError}
|
|
43637
|
+
* @memberof RefundsApiInterface
|
|
43638
|
+
*/
|
|
43639
|
+
cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
43640
|
+
|
|
43115
43641
|
/**
|
|
43116
43642
|
*
|
|
43117
43643
|
* @param {string} businessId
|
|
@@ -43123,6 +43649,18 @@ export interface RefundsApiInterface {
|
|
|
43123
43649
|
*/
|
|
43124
43650
|
createRefundPlan(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43125
43651
|
|
|
43652
|
+
/**
|
|
43653
|
+
*
|
|
43654
|
+
* @summary
|
|
43655
|
+
* @param {string} businessId
|
|
43656
|
+
* @param {string} orderId
|
|
43657
|
+
* @param {CreateRefundPlanDto} createRefundPlanDto
|
|
43658
|
+
* @param {*} [options] Override http request option.
|
|
43659
|
+
* @throws {RequiredError}
|
|
43660
|
+
* @memberof RefundsApiInterface
|
|
43661
|
+
*/
|
|
43662
|
+
createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43663
|
+
|
|
43126
43664
|
/**
|
|
43127
43665
|
*
|
|
43128
43666
|
* @param {string} businessId
|
|
@@ -43134,6 +43672,18 @@ export interface RefundsApiInterface {
|
|
|
43134
43672
|
*/
|
|
43135
43673
|
getRefundPlan(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig): AxiosPromise<Array<RefundPlanDto>>;
|
|
43136
43674
|
|
|
43675
|
+
/**
|
|
43676
|
+
*
|
|
43677
|
+
* @summary
|
|
43678
|
+
* @param {string} businessId
|
|
43679
|
+
* @param {string} orderId
|
|
43680
|
+
* @param {any} status
|
|
43681
|
+
* @param {*} [options] Override http request option.
|
|
43682
|
+
* @throws {RequiredError}
|
|
43683
|
+
* @memberof RefundsApiInterface
|
|
43684
|
+
*/
|
|
43685
|
+
getRefundPlanV2(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig): AxiosPromise<Array<RefundPlanDto>>;
|
|
43686
|
+
|
|
43137
43687
|
/**
|
|
43138
43688
|
*
|
|
43139
43689
|
* @param {string} businessId
|
|
@@ -43146,6 +43696,19 @@ export interface RefundsApiInterface {
|
|
|
43146
43696
|
*/
|
|
43147
43697
|
recordRefundPlan(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43148
43698
|
|
|
43699
|
+
/**
|
|
43700
|
+
*
|
|
43701
|
+
* @summary
|
|
43702
|
+
* @param {string} businessId
|
|
43703
|
+
* @param {string} orderId
|
|
43704
|
+
* @param {string} refundId
|
|
43705
|
+
* @param {CompletedStepDto} completedStepDto
|
|
43706
|
+
* @param {*} [options] Override http request option.
|
|
43707
|
+
* @throws {RequiredError}
|
|
43708
|
+
* @memberof RefundsApiInterface
|
|
43709
|
+
*/
|
|
43710
|
+
recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43711
|
+
|
|
43149
43712
|
/**
|
|
43150
43713
|
*
|
|
43151
43714
|
* @param {string} businessId
|
|
@@ -43157,6 +43720,18 @@ export interface RefundsApiInterface {
|
|
|
43157
43720
|
*/
|
|
43158
43721
|
refundOnlineOrder(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
43159
43722
|
|
|
43723
|
+
/**
|
|
43724
|
+
*
|
|
43725
|
+
* @summary
|
|
43726
|
+
* @param {string} businessId
|
|
43727
|
+
* @param {string} orderId
|
|
43728
|
+
* @param {any} provider
|
|
43729
|
+
* @param {*} [options] Override http request option.
|
|
43730
|
+
* @throws {RequiredError}
|
|
43731
|
+
* @memberof RefundsApiInterface
|
|
43732
|
+
*/
|
|
43733
|
+
refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
43734
|
+
|
|
43160
43735
|
/**
|
|
43161
43736
|
*
|
|
43162
43737
|
* @param {string} businessId
|
|
@@ -43169,6 +43744,19 @@ export interface RefundsApiInterface {
|
|
|
43169
43744
|
*/
|
|
43170
43745
|
resolveRefundChoice(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43171
43746
|
|
|
43747
|
+
/**
|
|
43748
|
+
*
|
|
43749
|
+
* @summary
|
|
43750
|
+
* @param {string} businessId
|
|
43751
|
+
* @param {string} orderId
|
|
43752
|
+
* @param {string} refundId
|
|
43753
|
+
* @param {ResolveChoiceDto} resolveChoiceDto
|
|
43754
|
+
* @param {*} [options] Override http request option.
|
|
43755
|
+
* @throws {RequiredError}
|
|
43756
|
+
* @memberof RefundsApiInterface
|
|
43757
|
+
*/
|
|
43758
|
+
resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43759
|
+
|
|
43172
43760
|
/**
|
|
43173
43761
|
*
|
|
43174
43762
|
* @param {string} businessId
|
|
@@ -43180,6 +43768,18 @@ export interface RefundsApiInterface {
|
|
|
43180
43768
|
*/
|
|
43181
43769
|
startProcessPlan(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43182
43770
|
|
|
43771
|
+
/**
|
|
43772
|
+
*
|
|
43773
|
+
* @summary
|
|
43774
|
+
* @param {string} businessId
|
|
43775
|
+
* @param {string} orderId
|
|
43776
|
+
* @param {string} refundId
|
|
43777
|
+
* @param {*} [options] Override http request option.
|
|
43778
|
+
* @throws {RequiredError}
|
|
43779
|
+
* @memberof RefundsApiInterface
|
|
43780
|
+
*/
|
|
43781
|
+
startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
|
|
43782
|
+
|
|
43183
43783
|
}
|
|
43184
43784
|
|
|
43185
43785
|
/**
|
|
@@ -43202,6 +43802,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43202
43802
|
return RefundsApiFp(this.configuration).cancelPlan(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
|
|
43203
43803
|
}
|
|
43204
43804
|
|
|
43805
|
+
/**
|
|
43806
|
+
*
|
|
43807
|
+
* @summary
|
|
43808
|
+
* @param {string} businessId
|
|
43809
|
+
* @param {string} orderId
|
|
43810
|
+
* @param {string} refundId
|
|
43811
|
+
* @param {*} [options] Override http request option.
|
|
43812
|
+
* @throws {RequiredError}
|
|
43813
|
+
* @memberof RefundsApi
|
|
43814
|
+
*/
|
|
43815
|
+
public cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig) {
|
|
43816
|
+
return RefundsApiFp(this.configuration).cancelPlanV2(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
|
|
43817
|
+
}
|
|
43818
|
+
|
|
43205
43819
|
/**
|
|
43206
43820
|
*
|
|
43207
43821
|
* @param {string} businessId
|
|
@@ -43215,6 +43829,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43215
43829
|
return RefundsApiFp(this.configuration).createRefundPlan(businessId, orderId, createRefundPlanDto, options).then((request) => request(this.axios, this.basePath));
|
|
43216
43830
|
}
|
|
43217
43831
|
|
|
43832
|
+
/**
|
|
43833
|
+
*
|
|
43834
|
+
* @summary
|
|
43835
|
+
* @param {string} businessId
|
|
43836
|
+
* @param {string} orderId
|
|
43837
|
+
* @param {CreateRefundPlanDto} createRefundPlanDto
|
|
43838
|
+
* @param {*} [options] Override http request option.
|
|
43839
|
+
* @throws {RequiredError}
|
|
43840
|
+
* @memberof RefundsApi
|
|
43841
|
+
*/
|
|
43842
|
+
public createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig) {
|
|
43843
|
+
return RefundsApiFp(this.configuration).createRefundPlanV2(businessId, orderId, createRefundPlanDto, options).then((request) => request(this.axios, this.basePath));
|
|
43844
|
+
}
|
|
43845
|
+
|
|
43218
43846
|
/**
|
|
43219
43847
|
*
|
|
43220
43848
|
* @param {string} businessId
|
|
@@ -43228,6 +43856,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43228
43856
|
return RefundsApiFp(this.configuration).getRefundPlan(businessId, orderId, status, options).then((request) => request(this.axios, this.basePath));
|
|
43229
43857
|
}
|
|
43230
43858
|
|
|
43859
|
+
/**
|
|
43860
|
+
*
|
|
43861
|
+
* @summary
|
|
43862
|
+
* @param {string} businessId
|
|
43863
|
+
* @param {string} orderId
|
|
43864
|
+
* @param {any} status
|
|
43865
|
+
* @param {*} [options] Override http request option.
|
|
43866
|
+
* @throws {RequiredError}
|
|
43867
|
+
* @memberof RefundsApi
|
|
43868
|
+
*/
|
|
43869
|
+
public getRefundPlanV2(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig) {
|
|
43870
|
+
return RefundsApiFp(this.configuration).getRefundPlanV2(businessId, orderId, status, options).then((request) => request(this.axios, this.basePath));
|
|
43871
|
+
}
|
|
43872
|
+
|
|
43231
43873
|
/**
|
|
43232
43874
|
*
|
|
43233
43875
|
* @param {string} businessId
|
|
@@ -43242,6 +43884,21 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43242
43884
|
return RefundsApiFp(this.configuration).recordRefundPlan(businessId, orderId, refundId, completedStepDto, options).then((request) => request(this.axios, this.basePath));
|
|
43243
43885
|
}
|
|
43244
43886
|
|
|
43887
|
+
/**
|
|
43888
|
+
*
|
|
43889
|
+
* @summary
|
|
43890
|
+
* @param {string} businessId
|
|
43891
|
+
* @param {string} orderId
|
|
43892
|
+
* @param {string} refundId
|
|
43893
|
+
* @param {CompletedStepDto} completedStepDto
|
|
43894
|
+
* @param {*} [options] Override http request option.
|
|
43895
|
+
* @throws {RequiredError}
|
|
43896
|
+
* @memberof RefundsApi
|
|
43897
|
+
*/
|
|
43898
|
+
public recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig) {
|
|
43899
|
+
return RefundsApiFp(this.configuration).recordRefundPlanV2(businessId, orderId, refundId, completedStepDto, options).then((request) => request(this.axios, this.basePath));
|
|
43900
|
+
}
|
|
43901
|
+
|
|
43245
43902
|
/**
|
|
43246
43903
|
*
|
|
43247
43904
|
* @param {string} businessId
|
|
@@ -43255,6 +43912,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43255
43912
|
return RefundsApiFp(this.configuration).refundOnlineOrder(businessId, orderId, provider, options).then((request) => request(this.axios, this.basePath));
|
|
43256
43913
|
}
|
|
43257
43914
|
|
|
43915
|
+
/**
|
|
43916
|
+
*
|
|
43917
|
+
* @summary
|
|
43918
|
+
* @param {string} businessId
|
|
43919
|
+
* @param {string} orderId
|
|
43920
|
+
* @param {any} provider
|
|
43921
|
+
* @param {*} [options] Override http request option.
|
|
43922
|
+
* @throws {RequiredError}
|
|
43923
|
+
* @memberof RefundsApi
|
|
43924
|
+
*/
|
|
43925
|
+
public refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig) {
|
|
43926
|
+
return RefundsApiFp(this.configuration).refundOnlineOrderV2(businessId, orderId, provider, options).then((request) => request(this.axios, this.basePath));
|
|
43927
|
+
}
|
|
43928
|
+
|
|
43258
43929
|
/**
|
|
43259
43930
|
*
|
|
43260
43931
|
* @param {string} businessId
|
|
@@ -43269,6 +43940,21 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43269
43940
|
return RefundsApiFp(this.configuration).resolveRefundChoice(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(this.axios, this.basePath));
|
|
43270
43941
|
}
|
|
43271
43942
|
|
|
43943
|
+
/**
|
|
43944
|
+
*
|
|
43945
|
+
* @summary
|
|
43946
|
+
* @param {string} businessId
|
|
43947
|
+
* @param {string} orderId
|
|
43948
|
+
* @param {string} refundId
|
|
43949
|
+
* @param {ResolveChoiceDto} resolveChoiceDto
|
|
43950
|
+
* @param {*} [options] Override http request option.
|
|
43951
|
+
* @throws {RequiredError}
|
|
43952
|
+
* @memberof RefundsApi
|
|
43953
|
+
*/
|
|
43954
|
+
public resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig) {
|
|
43955
|
+
return RefundsApiFp(this.configuration).resolveRefundChoiceV2(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(this.axios, this.basePath));
|
|
43956
|
+
}
|
|
43957
|
+
|
|
43272
43958
|
/**
|
|
43273
43959
|
*
|
|
43274
43960
|
* @param {string} businessId
|
|
@@ -43281,6 +43967,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
|
|
|
43281
43967
|
public startProcessPlan(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig) {
|
|
43282
43968
|
return RefundsApiFp(this.configuration).startProcessPlan(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
|
|
43283
43969
|
}
|
|
43970
|
+
|
|
43971
|
+
/**
|
|
43972
|
+
*
|
|
43973
|
+
* @summary
|
|
43974
|
+
* @param {string} businessId
|
|
43975
|
+
* @param {string} orderId
|
|
43976
|
+
* @param {string} refundId
|
|
43977
|
+
* @param {*} [options] Override http request option.
|
|
43978
|
+
* @throws {RequiredError}
|
|
43979
|
+
* @memberof RefundsApi
|
|
43980
|
+
*/
|
|
43981
|
+
public startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig) {
|
|
43982
|
+
return RefundsApiFp(this.configuration).startProcessPlanV2(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
|
|
43983
|
+
}
|
|
43284
43984
|
}
|
|
43285
43985
|
|
|
43286
43986
|
|