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