@munchi_oy/core 1.9.46 → 1.9.48
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 +640 -0
- 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 +913 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -464,6 +464,19 @@ export const AutonomousVehicleType = {
|
|
|
464
464
|
export type AutonomousVehicleType = typeof AutonomousVehicleType[keyof typeof AutonomousVehicleType];
|
|
465
465
|
|
|
466
466
|
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @export
|
|
470
|
+
* @interface BulkRankDto
|
|
471
|
+
*/
|
|
472
|
+
export interface BulkRankDto {
|
|
473
|
+
/**
|
|
474
|
+
* Only the items whose position changed (zero-based ranks).
|
|
475
|
+
* @type {Array<RankItemDto>}
|
|
476
|
+
* @memberof BulkRankDto
|
|
477
|
+
*/
|
|
478
|
+
'items': Array<RankItemDto>;
|
|
479
|
+
}
|
|
467
480
|
/**
|
|
468
481
|
*
|
|
469
482
|
* @export
|
|
@@ -3108,6 +3121,19 @@ export interface CoordinateDto {
|
|
|
3108
3121
|
*/
|
|
3109
3122
|
'lon': number;
|
|
3110
3123
|
}
|
|
3124
|
+
/**
|
|
3125
|
+
*
|
|
3126
|
+
* @export
|
|
3127
|
+
* @interface CourseConfigDto
|
|
3128
|
+
*/
|
|
3129
|
+
export interface CourseConfigDto {
|
|
3130
|
+
/**
|
|
3131
|
+
* Rank assigned to uncoursed items
|
|
3132
|
+
* @type {number}
|
|
3133
|
+
* @memberof CourseConfigDto
|
|
3134
|
+
*/
|
|
3135
|
+
'uncoursedRank': number;
|
|
3136
|
+
}
|
|
3111
3137
|
/**
|
|
3112
3138
|
*
|
|
3113
3139
|
* @export
|
|
@@ -3126,6 +3152,12 @@ export interface CourseDto {
|
|
|
3126
3152
|
* @memberof CourseDto
|
|
3127
3153
|
*/
|
|
3128
3154
|
'name': string;
|
|
3155
|
+
/**
|
|
3156
|
+
* Course rank used for ordering
|
|
3157
|
+
* @type {number}
|
|
3158
|
+
* @memberof CourseDto
|
|
3159
|
+
*/
|
|
3160
|
+
'rank': number;
|
|
3129
3161
|
/**
|
|
3130
3162
|
* Whether the course fires automatically to the kitchen
|
|
3131
3163
|
* @type {boolean}
|
|
@@ -3133,6 +3165,20 @@ export interface CourseDto {
|
|
|
3133
3165
|
*/
|
|
3134
3166
|
'autoFire'?: boolean;
|
|
3135
3167
|
}
|
|
3168
|
+
/**
|
|
3169
|
+
*
|
|
3170
|
+
* @export
|
|
3171
|
+
* @enum {string}
|
|
3172
|
+
*/
|
|
3173
|
+
|
|
3174
|
+
export const CreatablePaymentType = {
|
|
3175
|
+
Manual: 'MANUAL',
|
|
3176
|
+
Voucher: 'VOUCHER'
|
|
3177
|
+
} as const;
|
|
3178
|
+
|
|
3179
|
+
export type CreatablePaymentType = typeof CreatablePaymentType[keyof typeof CreatablePaymentType];
|
|
3180
|
+
|
|
3181
|
+
|
|
3136
3182
|
/**
|
|
3137
3183
|
*
|
|
3138
3184
|
* @export
|
|
@@ -3945,6 +3991,75 @@ export interface CreateNetsTerminalPaymentDto {
|
|
|
3945
3991
|
}
|
|
3946
3992
|
|
|
3947
3993
|
|
|
3994
|
+
/**
|
|
3995
|
+
*
|
|
3996
|
+
* @export
|
|
3997
|
+
* @interface CreatePaymentMethodDto
|
|
3998
|
+
*/
|
|
3999
|
+
export interface CreatePaymentMethodDto {
|
|
4000
|
+
/**
|
|
4001
|
+
* Attach an existing catalog method by its code (mutually exclusive with name+type).
|
|
4002
|
+
* @type {string}
|
|
4003
|
+
* @memberof CreatePaymentMethodDto
|
|
4004
|
+
*/
|
|
4005
|
+
'code'?: string;
|
|
4006
|
+
/**
|
|
4007
|
+
* Display name for a new custom method; required with type when code is absent.
|
|
4008
|
+
* @type {string}
|
|
4009
|
+
* @memberof CreatePaymentMethodDto
|
|
4010
|
+
*/
|
|
4011
|
+
'name'?: string;
|
|
4012
|
+
/**
|
|
4013
|
+
*
|
|
4014
|
+
* @type {CreatablePaymentType}
|
|
4015
|
+
* @memberof CreatePaymentMethodDto
|
|
4016
|
+
*/
|
|
4017
|
+
'type'?: CreatablePaymentType;
|
|
4018
|
+
/**
|
|
4019
|
+
* Per-business name override.
|
|
4020
|
+
* @type {string}
|
|
4021
|
+
* @memberof CreatePaymentMethodDto
|
|
4022
|
+
*/
|
|
4023
|
+
'customName'?: string;
|
|
4024
|
+
/**
|
|
4025
|
+
* Per-business logo URL.
|
|
4026
|
+
* @type {string}
|
|
4027
|
+
* @memberof CreatePaymentMethodDto
|
|
4028
|
+
*/
|
|
4029
|
+
'logo'?: string;
|
|
4030
|
+
/**
|
|
4031
|
+
* Per-business description.
|
|
4032
|
+
* @type {string}
|
|
4033
|
+
* @memberof CreatePaymentMethodDto
|
|
4034
|
+
*/
|
|
4035
|
+
'description'?: string;
|
|
4036
|
+
/**
|
|
4037
|
+
* Parent method code for grouped vouchers.
|
|
4038
|
+
* @type {string}
|
|
4039
|
+
* @memberof CreatePaymentMethodDto
|
|
4040
|
+
*/
|
|
4041
|
+
'parentCode'?: string;
|
|
4042
|
+
/**
|
|
4043
|
+
* Preset amounts/denominations (vouchers).
|
|
4044
|
+
* @type {Array<number>}
|
|
4045
|
+
* @memberof CreatePaymentMethodDto
|
|
4046
|
+
*/
|
|
4047
|
+
'amounts'?: Array<number>;
|
|
4048
|
+
/**
|
|
4049
|
+
* Minimum order amount required to use this method.
|
|
4050
|
+
* @type {number}
|
|
4051
|
+
* @memberof CreatePaymentMethodDto
|
|
4052
|
+
*/
|
|
4053
|
+
'minimumCheckoutAmount'?: number;
|
|
4054
|
+
/**
|
|
4055
|
+
* Whether the method is enabled (defaults to true).
|
|
4056
|
+
* @type {boolean}
|
|
4057
|
+
* @memberof CreatePaymentMethodDto
|
|
4058
|
+
*/
|
|
4059
|
+
'enable'?: boolean;
|
|
4060
|
+
}
|
|
4061
|
+
|
|
4062
|
+
|
|
3948
4063
|
/**
|
|
3949
4064
|
*
|
|
3950
4065
|
* @export
|
|
@@ -12019,6 +12134,37 @@ export const PaymentMethod = {
|
|
|
12019
12134
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
12020
12135
|
|
|
12021
12136
|
|
|
12137
|
+
/**
|
|
12138
|
+
*
|
|
12139
|
+
* @export
|
|
12140
|
+
* @interface PaymentMethodCapabilitiesDto
|
|
12141
|
+
*/
|
|
12142
|
+
export interface PaymentMethodCapabilitiesDto {
|
|
12143
|
+
/**
|
|
12144
|
+
* Whether this method can be refunded at all.
|
|
12145
|
+
* @type {boolean}
|
|
12146
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12147
|
+
*/
|
|
12148
|
+
'refundable': boolean;
|
|
12149
|
+
/**
|
|
12150
|
+
* Whether a refund can be split across this method and others.
|
|
12151
|
+
* @type {boolean}
|
|
12152
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12153
|
+
*/
|
|
12154
|
+
'refundSplittable': boolean;
|
|
12155
|
+
/**
|
|
12156
|
+
* Whether the customer may choose this method as a refund target.
|
|
12157
|
+
* @type {boolean}
|
|
12158
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12159
|
+
*/
|
|
12160
|
+
'refundChoiceEligible': boolean;
|
|
12161
|
+
/**
|
|
12162
|
+
* Refund allocation order (lower = refunded first); null when not refundable.
|
|
12163
|
+
* @type {number}
|
|
12164
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12165
|
+
*/
|
|
12166
|
+
'refundPriorityTier': number | null;
|
|
12167
|
+
}
|
|
12022
12168
|
/**
|
|
12023
12169
|
*
|
|
12024
12170
|
* @export
|
|
@@ -12336,6 +12482,122 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
|
|
|
12336
12482
|
*/
|
|
12337
12483
|
'transactionId'?: string | null;
|
|
12338
12484
|
}
|
|
12485
|
+
/**
|
|
12486
|
+
*
|
|
12487
|
+
* @export
|
|
12488
|
+
* @interface PaymentMethodDto
|
|
12489
|
+
*/
|
|
12490
|
+
export interface PaymentMethodDto {
|
|
12491
|
+
/**
|
|
12492
|
+
* PaymentMethodOption id; use it for update/delete/reorder.
|
|
12493
|
+
* @type {string}
|
|
12494
|
+
* @memberof PaymentMethodDto
|
|
12495
|
+
*/
|
|
12496
|
+
'id': string;
|
|
12497
|
+
/**
|
|
12498
|
+
* Stable, immutable method code (catalog identity).
|
|
12499
|
+
* @type {string}
|
|
12500
|
+
* @memberof PaymentMethodDto
|
|
12501
|
+
*/
|
|
12502
|
+
'code': string;
|
|
12503
|
+
/**
|
|
12504
|
+
* Catalog type that drives this method\'s policy/behavior.
|
|
12505
|
+
* @type {string}
|
|
12506
|
+
* @memberof PaymentMethodDto
|
|
12507
|
+
*/
|
|
12508
|
+
'typeCode': string;
|
|
12509
|
+
/**
|
|
12510
|
+
* Display name: per-business customName, else catalog translation, else code.
|
|
12511
|
+
* @type {string}
|
|
12512
|
+
* @memberof PaymentMethodDto
|
|
12513
|
+
*/
|
|
12514
|
+
'label': string;
|
|
12515
|
+
/**
|
|
12516
|
+
* Per-business name override; null means inherit the catalog label.
|
|
12517
|
+
* @type {string}
|
|
12518
|
+
* @memberof PaymentMethodDto
|
|
12519
|
+
*/
|
|
12520
|
+
'customName': string | null;
|
|
12521
|
+
/**
|
|
12522
|
+
* Per-business logo URL.
|
|
12523
|
+
* @type {string}
|
|
12524
|
+
* @memberof PaymentMethodDto
|
|
12525
|
+
*/
|
|
12526
|
+
'logo': string | null;
|
|
12527
|
+
/**
|
|
12528
|
+
* Per-business description.
|
|
12529
|
+
* @type {string}
|
|
12530
|
+
* @memberof PaymentMethodDto
|
|
12531
|
+
*/
|
|
12532
|
+
'description': string | null;
|
|
12533
|
+
/**
|
|
12534
|
+
* Parent method code for grouped vouchers; null when standalone.
|
|
12535
|
+
* @type {string}
|
|
12536
|
+
* @memberof PaymentMethodDto
|
|
12537
|
+
*/
|
|
12538
|
+
'parentCode': string | null;
|
|
12539
|
+
/**
|
|
12540
|
+
* Sort order within the business (ascending).
|
|
12541
|
+
* @type {number}
|
|
12542
|
+
* @memberof PaymentMethodDto
|
|
12543
|
+
*/
|
|
12544
|
+
'position': number;
|
|
12545
|
+
/**
|
|
12546
|
+
* Whether the method is shown/usable (off = hidden, not deleted).
|
|
12547
|
+
* @type {boolean}
|
|
12548
|
+
* @memberof PaymentMethodDto
|
|
12549
|
+
*/
|
|
12550
|
+
'enable': boolean;
|
|
12551
|
+
/**
|
|
12552
|
+
* Preset amounts/denominations (vouchers).
|
|
12553
|
+
* @type {Array<number>}
|
|
12554
|
+
* @memberof PaymentMethodDto
|
|
12555
|
+
*/
|
|
12556
|
+
'amounts': Array<number>;
|
|
12557
|
+
/**
|
|
12558
|
+
* Minimum order amount required to use this method (decimal as string).
|
|
12559
|
+
* @type {string}
|
|
12560
|
+
* @memberof PaymentMethodDto
|
|
12561
|
+
*/
|
|
12562
|
+
'minimumCheckoutAmount': string | null;
|
|
12563
|
+
/**
|
|
12564
|
+
*
|
|
12565
|
+
* @type {PaymentMethodDtoCapabilities}
|
|
12566
|
+
* @memberof PaymentMethodDto
|
|
12567
|
+
*/
|
|
12568
|
+
'capabilities': PaymentMethodDtoCapabilities;
|
|
12569
|
+
}
|
|
12570
|
+
/**
|
|
12571
|
+
* Refund behavior resolved from the catalog type + per-method overrides.
|
|
12572
|
+
* @export
|
|
12573
|
+
* @interface PaymentMethodDtoCapabilities
|
|
12574
|
+
*/
|
|
12575
|
+
export interface PaymentMethodDtoCapabilities {
|
|
12576
|
+
/**
|
|
12577
|
+
* Whether this method can be refunded at all.
|
|
12578
|
+
* @type {boolean}
|
|
12579
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12580
|
+
*/
|
|
12581
|
+
'refundable': boolean;
|
|
12582
|
+
/**
|
|
12583
|
+
* Whether a refund can be split across this method and others.
|
|
12584
|
+
* @type {boolean}
|
|
12585
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12586
|
+
*/
|
|
12587
|
+
'refundSplittable': boolean;
|
|
12588
|
+
/**
|
|
12589
|
+
* Whether the customer may choose this method as a refund target.
|
|
12590
|
+
* @type {boolean}
|
|
12591
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12592
|
+
*/
|
|
12593
|
+
'refundChoiceEligible': boolean;
|
|
12594
|
+
/**
|
|
12595
|
+
* Refund allocation order (lower = refunded first); null when not refundable.
|
|
12596
|
+
* @type {number}
|
|
12597
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12598
|
+
*/
|
|
12599
|
+
'refundPriorityTier': number | null;
|
|
12600
|
+
}
|
|
12339
12601
|
/**
|
|
12340
12602
|
*
|
|
12341
12603
|
* @export
|
|
@@ -12703,6 +12965,7 @@ export interface PaymentRefundLineAllocationDto {
|
|
|
12703
12965
|
|
|
12704
12966
|
export const PaymentSessionStatus = {
|
|
12705
12967
|
Initiated: 'INITIATED',
|
|
12968
|
+
Dispatched: 'DISPATCHED',
|
|
12706
12969
|
Processing: 'PROCESSING',
|
|
12707
12970
|
Success: 'SUCCESS',
|
|
12708
12971
|
Failed: 'FAILED',
|
|
@@ -16389,6 +16652,25 @@ export const PubSubTarget = {
|
|
|
16389
16652
|
export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
|
|
16390
16653
|
|
|
16391
16654
|
|
|
16655
|
+
/**
|
|
16656
|
+
*
|
|
16657
|
+
* @export
|
|
16658
|
+
* @interface RankItemDto
|
|
16659
|
+
*/
|
|
16660
|
+
export interface RankItemDto {
|
|
16661
|
+
/**
|
|
16662
|
+
* PaymentMethodOption id to position.
|
|
16663
|
+
* @type {string}
|
|
16664
|
+
* @memberof RankItemDto
|
|
16665
|
+
*/
|
|
16666
|
+
'id': string;
|
|
16667
|
+
/**
|
|
16668
|
+
* New zero-based sort position.
|
|
16669
|
+
* @type {number}
|
|
16670
|
+
* @memberof RankItemDto
|
|
16671
|
+
*/
|
|
16672
|
+
'rank': number;
|
|
16673
|
+
}
|
|
16392
16674
|
/**
|
|
16393
16675
|
*
|
|
16394
16676
|
* @export
|
|
@@ -20782,6 +21064,55 @@ export interface UpdateInvoiceCompanyDto {
|
|
|
20782
21064
|
*/
|
|
20783
21065
|
'address'?: string;
|
|
20784
21066
|
}
|
|
21067
|
+
/**
|
|
21068
|
+
*
|
|
21069
|
+
* @export
|
|
21070
|
+
* @interface UpdatePaymentMethodOptionDto
|
|
21071
|
+
*/
|
|
21072
|
+
export interface UpdatePaymentMethodOptionDto {
|
|
21073
|
+
/**
|
|
21074
|
+
* Per-business name override.
|
|
21075
|
+
* @type {string}
|
|
21076
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21077
|
+
*/
|
|
21078
|
+
'customName'?: string;
|
|
21079
|
+
/**
|
|
21080
|
+
* Per-business logo URL.
|
|
21081
|
+
* @type {string}
|
|
21082
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21083
|
+
*/
|
|
21084
|
+
'logo'?: string;
|
|
21085
|
+
/**
|
|
21086
|
+
* Per-business description.
|
|
21087
|
+
* @type {string}
|
|
21088
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21089
|
+
*/
|
|
21090
|
+
'description'?: string;
|
|
21091
|
+
/**
|
|
21092
|
+
* Parent method code for grouped vouchers.
|
|
21093
|
+
* @type {string}
|
|
21094
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21095
|
+
*/
|
|
21096
|
+
'parentCode'?: string;
|
|
21097
|
+
/**
|
|
21098
|
+
* Preset amounts/denominations (vouchers).
|
|
21099
|
+
* @type {Array<number>}
|
|
21100
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21101
|
+
*/
|
|
21102
|
+
'amounts'?: Array<number>;
|
|
21103
|
+
/**
|
|
21104
|
+
* Minimum order amount required to use this method.
|
|
21105
|
+
* @type {number}
|
|
21106
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21107
|
+
*/
|
|
21108
|
+
'minimumCheckoutAmount'?: number;
|
|
21109
|
+
/**
|
|
21110
|
+
* Whether the method is enabled.
|
|
21111
|
+
* @type {boolean}
|
|
21112
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21113
|
+
*/
|
|
21114
|
+
'enable'?: boolean;
|
|
21115
|
+
}
|
|
20785
21116
|
/**
|
|
20786
21117
|
*
|
|
20787
21118
|
* @export
|
|
@@ -28570,6 +28901,44 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
|
|
|
28570
28901
|
*/
|
|
28571
28902
|
export const CoursesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28572
28903
|
return {
|
|
28904
|
+
/**
|
|
28905
|
+
*
|
|
28906
|
+
* @summary Get course config for a business
|
|
28907
|
+
* @param {number} businessId Business ID
|
|
28908
|
+
* @param {*} [options] Override http request option.
|
|
28909
|
+
* @throws {RequiredError}
|
|
28910
|
+
*/
|
|
28911
|
+
getCourseConfig: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28912
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28913
|
+
assertParamExists('getCourseConfig', 'businessId', businessId)
|
|
28914
|
+
const localVarPath = `/api/v1/courses/{businessId}/config`
|
|
28915
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28918
|
+
let baseOptions;
|
|
28919
|
+
if (configuration) {
|
|
28920
|
+
baseOptions = configuration.baseOptions;
|
|
28921
|
+
}
|
|
28922
|
+
|
|
28923
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28924
|
+
const localVarHeaderParameter = {} as any;
|
|
28925
|
+
const localVarQueryParameter = {} as any;
|
|
28926
|
+
|
|
28927
|
+
// authentication JWT-auth required
|
|
28928
|
+
// http bearer authentication required
|
|
28929
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28930
|
+
|
|
28931
|
+
|
|
28932
|
+
|
|
28933
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28935
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28936
|
+
|
|
28937
|
+
return {
|
|
28938
|
+
url: toPathString(localVarUrlObj),
|
|
28939
|
+
options: localVarRequestOptions,
|
|
28940
|
+
};
|
|
28941
|
+
},
|
|
28573
28942
|
/**
|
|
28574
28943
|
*
|
|
28575
28944
|
* @summary Get courses for a business
|
|
@@ -28618,6 +28987,17 @@ export const CoursesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
28618
28987
|
export const CoursesApiFp = function(configuration?: Configuration) {
|
|
28619
28988
|
const localVarAxiosParamCreator = CoursesApiAxiosParamCreator(configuration)
|
|
28620
28989
|
return {
|
|
28990
|
+
/**
|
|
28991
|
+
*
|
|
28992
|
+
* @summary Get course config for a business
|
|
28993
|
+
* @param {number} businessId Business ID
|
|
28994
|
+
* @param {*} [options] Override http request option.
|
|
28995
|
+
* @throws {RequiredError}
|
|
28996
|
+
*/
|
|
28997
|
+
async getCourseConfig(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourseConfigDto>> {
|
|
28998
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCourseConfig(businessId, options);
|
|
28999
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29000
|
+
},
|
|
28621
29001
|
/**
|
|
28622
29002
|
*
|
|
28623
29003
|
* @summary Get courses for a business
|
|
@@ -28639,6 +29019,16 @@ export const CoursesApiFp = function(configuration?: Configuration) {
|
|
|
28639
29019
|
export const CoursesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
28640
29020
|
const localVarFp = CoursesApiFp(configuration)
|
|
28641
29021
|
return {
|
|
29022
|
+
/**
|
|
29023
|
+
*
|
|
29024
|
+
* @summary Get course config for a business
|
|
29025
|
+
* @param {number} businessId Business ID
|
|
29026
|
+
* @param {*} [options] Override http request option.
|
|
29027
|
+
* @throws {RequiredError}
|
|
29028
|
+
*/
|
|
29029
|
+
getCourseConfig(businessId: number, options?: any): AxiosPromise<CourseConfigDto> {
|
|
29030
|
+
return localVarFp.getCourseConfig(businessId, options).then((request) => request(axios, basePath));
|
|
29031
|
+
},
|
|
28642
29032
|
/**
|
|
28643
29033
|
*
|
|
28644
29034
|
* @summary Get courses for a business
|
|
@@ -28658,6 +29048,16 @@ export const CoursesApiFactory = function (configuration?: Configuration, basePa
|
|
|
28658
29048
|
* @interface CoursesApi
|
|
28659
29049
|
*/
|
|
28660
29050
|
export interface CoursesApiInterface {
|
|
29051
|
+
/**
|
|
29052
|
+
*
|
|
29053
|
+
* @summary Get course config for a business
|
|
29054
|
+
* @param {number} businessId Business ID
|
|
29055
|
+
* @param {*} [options] Override http request option.
|
|
29056
|
+
* @throws {RequiredError}
|
|
29057
|
+
* @memberof CoursesApiInterface
|
|
29058
|
+
*/
|
|
29059
|
+
getCourseConfig(businessId: number, options?: AxiosRequestConfig): AxiosPromise<CourseConfigDto>;
|
|
29060
|
+
|
|
28661
29061
|
/**
|
|
28662
29062
|
*
|
|
28663
29063
|
* @summary Get courses for a business
|
|
@@ -28677,6 +29077,18 @@ export interface CoursesApiInterface {
|
|
|
28677
29077
|
* @extends {BaseAPI}
|
|
28678
29078
|
*/
|
|
28679
29079
|
export class CoursesApi extends BaseAPI implements CoursesApiInterface {
|
|
29080
|
+
/**
|
|
29081
|
+
*
|
|
29082
|
+
* @summary Get course config for a business
|
|
29083
|
+
* @param {number} businessId Business ID
|
|
29084
|
+
* @param {*} [options] Override http request option.
|
|
29085
|
+
* @throws {RequiredError}
|
|
29086
|
+
* @memberof CoursesApi
|
|
29087
|
+
*/
|
|
29088
|
+
public getCourseConfig(businessId: number, options?: AxiosRequestConfig) {
|
|
29089
|
+
return CoursesApiFp(this.configuration).getCourseConfig(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
29090
|
+
}
|
|
29091
|
+
|
|
28680
29092
|
/**
|
|
28681
29093
|
*
|
|
28682
29094
|
* @summary Get courses for a business
|
|
@@ -37162,6 +37574,507 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
37162
37574
|
}
|
|
37163
37575
|
|
|
37164
37576
|
|
|
37577
|
+
/**
|
|
37578
|
+
* PaymentMethodsApi - axios parameter creator
|
|
37579
|
+
* @export
|
|
37580
|
+
*/
|
|
37581
|
+
export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
37582
|
+
return {
|
|
37583
|
+
/**
|
|
37584
|
+
*
|
|
37585
|
+
* @param {number} businessId
|
|
37586
|
+
* @param {ProviderEnum} channel
|
|
37587
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
37588
|
+
* @param {*} [options] Override http request option.
|
|
37589
|
+
* @throws {RequiredError}
|
|
37590
|
+
*/
|
|
37591
|
+
createPaymentMethod: async (businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37592
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
37593
|
+
assertParamExists('createPaymentMethod', 'businessId', businessId)
|
|
37594
|
+
// verify required parameter 'channel' is not null or undefined
|
|
37595
|
+
assertParamExists('createPaymentMethod', 'channel', channel)
|
|
37596
|
+
// verify required parameter 'createPaymentMethodDto' is not null or undefined
|
|
37597
|
+
assertParamExists('createPaymentMethod', 'createPaymentMethodDto', createPaymentMethodDto)
|
|
37598
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
|
|
37599
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
37600
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
37601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37603
|
+
let baseOptions;
|
|
37604
|
+
if (configuration) {
|
|
37605
|
+
baseOptions = configuration.baseOptions;
|
|
37606
|
+
}
|
|
37607
|
+
|
|
37608
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37609
|
+
const localVarHeaderParameter = {} as any;
|
|
37610
|
+
const localVarQueryParameter = {} as any;
|
|
37611
|
+
|
|
37612
|
+
|
|
37613
|
+
|
|
37614
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37615
|
+
|
|
37616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37618
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37619
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentMethodDto, localVarRequestOptions, configuration)
|
|
37620
|
+
|
|
37621
|
+
return {
|
|
37622
|
+
url: toPathString(localVarUrlObj),
|
|
37623
|
+
options: localVarRequestOptions,
|
|
37624
|
+
};
|
|
37625
|
+
},
|
|
37626
|
+
/**
|
|
37627
|
+
*
|
|
37628
|
+
* @param {number} businessId
|
|
37629
|
+
* @param {ProviderEnum} channel
|
|
37630
|
+
* @param {string} id
|
|
37631
|
+
* @param {*} [options] Override http request option.
|
|
37632
|
+
* @throws {RequiredError}
|
|
37633
|
+
*/
|
|
37634
|
+
deletePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37635
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
37636
|
+
assertParamExists('deletePaymentMethodOption', 'businessId', businessId)
|
|
37637
|
+
// verify required parameter 'channel' is not null or undefined
|
|
37638
|
+
assertParamExists('deletePaymentMethodOption', 'channel', channel)
|
|
37639
|
+
// verify required parameter 'id' is not null or undefined
|
|
37640
|
+
assertParamExists('deletePaymentMethodOption', 'id', id)
|
|
37641
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
|
|
37642
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
37643
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
37644
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
37645
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37646
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37647
|
+
let baseOptions;
|
|
37648
|
+
if (configuration) {
|
|
37649
|
+
baseOptions = configuration.baseOptions;
|
|
37650
|
+
}
|
|
37651
|
+
|
|
37652
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
37653
|
+
const localVarHeaderParameter = {} as any;
|
|
37654
|
+
const localVarQueryParameter = {} as any;
|
|
37655
|
+
|
|
37656
|
+
|
|
37657
|
+
|
|
37658
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37659
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37660
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37661
|
+
|
|
37662
|
+
return {
|
|
37663
|
+
url: toPathString(localVarUrlObj),
|
|
37664
|
+
options: localVarRequestOptions,
|
|
37665
|
+
};
|
|
37666
|
+
},
|
|
37667
|
+
/**
|
|
37668
|
+
*
|
|
37669
|
+
* @param {number} businessId
|
|
37670
|
+
* @param {ProviderEnum} channel
|
|
37671
|
+
* @param {any} [locale]
|
|
37672
|
+
* @param {*} [options] Override http request option.
|
|
37673
|
+
* @throws {RequiredError}
|
|
37674
|
+
*/
|
|
37675
|
+
getPaymentMethods: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37676
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
37677
|
+
assertParamExists('getPaymentMethods', 'businessId', businessId)
|
|
37678
|
+
// verify required parameter 'channel' is not null or undefined
|
|
37679
|
+
assertParamExists('getPaymentMethods', 'channel', channel)
|
|
37680
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
|
|
37681
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
37682
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
37683
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37684
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37685
|
+
let baseOptions;
|
|
37686
|
+
if (configuration) {
|
|
37687
|
+
baseOptions = configuration.baseOptions;
|
|
37688
|
+
}
|
|
37689
|
+
|
|
37690
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
37691
|
+
const localVarHeaderParameter = {} as any;
|
|
37692
|
+
const localVarQueryParameter = {} as any;
|
|
37693
|
+
|
|
37694
|
+
if (locale !== undefined) {
|
|
37695
|
+
localVarQueryParameter['locale'] = locale;
|
|
37696
|
+
}
|
|
37697
|
+
|
|
37698
|
+
|
|
37699
|
+
|
|
37700
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37701
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37702
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37703
|
+
|
|
37704
|
+
return {
|
|
37705
|
+
url: toPathString(localVarUrlObj),
|
|
37706
|
+
options: localVarRequestOptions,
|
|
37707
|
+
};
|
|
37708
|
+
},
|
|
37709
|
+
/**
|
|
37710
|
+
*
|
|
37711
|
+
* @param {number} businessId
|
|
37712
|
+
* @param {ProviderEnum} channel
|
|
37713
|
+
* @param {BulkRankDto} bulkRankDto
|
|
37714
|
+
* @param {*} [options] Override http request option.
|
|
37715
|
+
* @throws {RequiredError}
|
|
37716
|
+
*/
|
|
37717
|
+
reorder: async (businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37718
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
37719
|
+
assertParamExists('reorder', 'businessId', businessId)
|
|
37720
|
+
// verify required parameter 'channel' is not null or undefined
|
|
37721
|
+
assertParamExists('reorder', 'channel', channel)
|
|
37722
|
+
// verify required parameter 'bulkRankDto' is not null or undefined
|
|
37723
|
+
assertParamExists('reorder', 'bulkRankDto', bulkRankDto)
|
|
37724
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank`
|
|
37725
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
37726
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
37727
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37728
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37729
|
+
let baseOptions;
|
|
37730
|
+
if (configuration) {
|
|
37731
|
+
baseOptions = configuration.baseOptions;
|
|
37732
|
+
}
|
|
37733
|
+
|
|
37734
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
37735
|
+
const localVarHeaderParameter = {} as any;
|
|
37736
|
+
const localVarQueryParameter = {} as any;
|
|
37737
|
+
|
|
37738
|
+
|
|
37739
|
+
|
|
37740
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37741
|
+
|
|
37742
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37743
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37744
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37745
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkRankDto, localVarRequestOptions, configuration)
|
|
37746
|
+
|
|
37747
|
+
return {
|
|
37748
|
+
url: toPathString(localVarUrlObj),
|
|
37749
|
+
options: localVarRequestOptions,
|
|
37750
|
+
};
|
|
37751
|
+
},
|
|
37752
|
+
/**
|
|
37753
|
+
*
|
|
37754
|
+
* @param {number} businessId
|
|
37755
|
+
* @param {ProviderEnum} channel
|
|
37756
|
+
* @param {string} id
|
|
37757
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
37758
|
+
* @param {*} [options] Override http request option.
|
|
37759
|
+
* @throws {RequiredError}
|
|
37760
|
+
*/
|
|
37761
|
+
updatePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37762
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
37763
|
+
assertParamExists('updatePaymentMethodOption', 'businessId', businessId)
|
|
37764
|
+
// verify required parameter 'channel' is not null or undefined
|
|
37765
|
+
assertParamExists('updatePaymentMethodOption', 'channel', channel)
|
|
37766
|
+
// verify required parameter 'id' is not null or undefined
|
|
37767
|
+
assertParamExists('updatePaymentMethodOption', 'id', id)
|
|
37768
|
+
// verify required parameter 'updatePaymentMethodOptionDto' is not null or undefined
|
|
37769
|
+
assertParamExists('updatePaymentMethodOption', 'updatePaymentMethodOptionDto', updatePaymentMethodOptionDto)
|
|
37770
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
|
|
37771
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
37772
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
37773
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
37774
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37775
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37776
|
+
let baseOptions;
|
|
37777
|
+
if (configuration) {
|
|
37778
|
+
baseOptions = configuration.baseOptions;
|
|
37779
|
+
}
|
|
37780
|
+
|
|
37781
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
37782
|
+
const localVarHeaderParameter = {} as any;
|
|
37783
|
+
const localVarQueryParameter = {} as any;
|
|
37784
|
+
|
|
37785
|
+
|
|
37786
|
+
|
|
37787
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37788
|
+
|
|
37789
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37790
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37791
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37792
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePaymentMethodOptionDto, localVarRequestOptions, configuration)
|
|
37793
|
+
|
|
37794
|
+
return {
|
|
37795
|
+
url: toPathString(localVarUrlObj),
|
|
37796
|
+
options: localVarRequestOptions,
|
|
37797
|
+
};
|
|
37798
|
+
},
|
|
37799
|
+
}
|
|
37800
|
+
};
|
|
37801
|
+
|
|
37802
|
+
/**
|
|
37803
|
+
* PaymentMethodsApi - functional programming interface
|
|
37804
|
+
* @export
|
|
37805
|
+
*/
|
|
37806
|
+
export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
37807
|
+
const localVarAxiosParamCreator = PaymentMethodsApiAxiosParamCreator(configuration)
|
|
37808
|
+
return {
|
|
37809
|
+
/**
|
|
37810
|
+
*
|
|
37811
|
+
* @param {number} businessId
|
|
37812
|
+
* @param {ProviderEnum} channel
|
|
37813
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
37814
|
+
* @param {*} [options] Override http request option.
|
|
37815
|
+
* @throws {RequiredError}
|
|
37816
|
+
*/
|
|
37817
|
+
async createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
|
|
37818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(businessId, channel, createPaymentMethodDto, options);
|
|
37819
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37820
|
+
},
|
|
37821
|
+
/**
|
|
37822
|
+
*
|
|
37823
|
+
* @param {number} businessId
|
|
37824
|
+
* @param {ProviderEnum} channel
|
|
37825
|
+
* @param {string} id
|
|
37826
|
+
* @param {*} [options] Override http request option.
|
|
37827
|
+
* @throws {RequiredError}
|
|
37828
|
+
*/
|
|
37829
|
+
async deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
37830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethodOption(businessId, channel, id, options);
|
|
37831
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37832
|
+
},
|
|
37833
|
+
/**
|
|
37834
|
+
*
|
|
37835
|
+
* @param {number} businessId
|
|
37836
|
+
* @param {ProviderEnum} channel
|
|
37837
|
+
* @param {any} [locale]
|
|
37838
|
+
* @param {*} [options] Override http request option.
|
|
37839
|
+
* @throws {RequiredError}
|
|
37840
|
+
*/
|
|
37841
|
+
async getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodDto>>> {
|
|
37842
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(businessId, channel, locale, options);
|
|
37843
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37844
|
+
},
|
|
37845
|
+
/**
|
|
37846
|
+
*
|
|
37847
|
+
* @param {number} businessId
|
|
37848
|
+
* @param {ProviderEnum} channel
|
|
37849
|
+
* @param {BulkRankDto} bulkRankDto
|
|
37850
|
+
* @param {*} [options] Override http request option.
|
|
37851
|
+
* @throws {RequiredError}
|
|
37852
|
+
*/
|
|
37853
|
+
async reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
37854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reorder(businessId, channel, bulkRankDto, options);
|
|
37855
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37856
|
+
},
|
|
37857
|
+
/**
|
|
37858
|
+
*
|
|
37859
|
+
* @param {number} businessId
|
|
37860
|
+
* @param {ProviderEnum} channel
|
|
37861
|
+
* @param {string} id
|
|
37862
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
37863
|
+
* @param {*} [options] Override http request option.
|
|
37864
|
+
* @throws {RequiredError}
|
|
37865
|
+
*/
|
|
37866
|
+
async updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
|
|
37867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options);
|
|
37868
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37869
|
+
},
|
|
37870
|
+
}
|
|
37871
|
+
};
|
|
37872
|
+
|
|
37873
|
+
/**
|
|
37874
|
+
* PaymentMethodsApi - factory interface
|
|
37875
|
+
* @export
|
|
37876
|
+
*/
|
|
37877
|
+
export const PaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
37878
|
+
const localVarFp = PaymentMethodsApiFp(configuration)
|
|
37879
|
+
return {
|
|
37880
|
+
/**
|
|
37881
|
+
*
|
|
37882
|
+
* @param {number} businessId
|
|
37883
|
+
* @param {ProviderEnum} channel
|
|
37884
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
37885
|
+
* @param {*} [options] Override http request option.
|
|
37886
|
+
* @throws {RequiredError}
|
|
37887
|
+
*/
|
|
37888
|
+
createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: any): AxiosPromise<PaymentMethodDto> {
|
|
37889
|
+
return localVarFp.createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(axios, basePath));
|
|
37890
|
+
},
|
|
37891
|
+
/**
|
|
37892
|
+
*
|
|
37893
|
+
* @param {number} businessId
|
|
37894
|
+
* @param {ProviderEnum} channel
|
|
37895
|
+
* @param {string} id
|
|
37896
|
+
* @param {*} [options] Override http request option.
|
|
37897
|
+
* @throws {RequiredError}
|
|
37898
|
+
*/
|
|
37899
|
+
deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: any): AxiosPromise<void> {
|
|
37900
|
+
return localVarFp.deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(axios, basePath));
|
|
37901
|
+
},
|
|
37902
|
+
/**
|
|
37903
|
+
*
|
|
37904
|
+
* @param {number} businessId
|
|
37905
|
+
* @param {ProviderEnum} channel
|
|
37906
|
+
* @param {any} [locale]
|
|
37907
|
+
* @param {*} [options] Override http request option.
|
|
37908
|
+
* @throws {RequiredError}
|
|
37909
|
+
*/
|
|
37910
|
+
getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<PaymentMethodDto>> {
|
|
37911
|
+
return localVarFp.getPaymentMethods(businessId, channel, locale, options).then((request) => request(axios, basePath));
|
|
37912
|
+
},
|
|
37913
|
+
/**
|
|
37914
|
+
*
|
|
37915
|
+
* @param {number} businessId
|
|
37916
|
+
* @param {ProviderEnum} channel
|
|
37917
|
+
* @param {BulkRankDto} bulkRankDto
|
|
37918
|
+
* @param {*} [options] Override http request option.
|
|
37919
|
+
* @throws {RequiredError}
|
|
37920
|
+
*/
|
|
37921
|
+
reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: any): AxiosPromise<void> {
|
|
37922
|
+
return localVarFp.reorder(businessId, channel, bulkRankDto, options).then((request) => request(axios, basePath));
|
|
37923
|
+
},
|
|
37924
|
+
/**
|
|
37925
|
+
*
|
|
37926
|
+
* @param {number} businessId
|
|
37927
|
+
* @param {ProviderEnum} channel
|
|
37928
|
+
* @param {string} id
|
|
37929
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
37930
|
+
* @param {*} [options] Override http request option.
|
|
37931
|
+
* @throws {RequiredError}
|
|
37932
|
+
*/
|
|
37933
|
+
updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: any): AxiosPromise<PaymentMethodDto> {
|
|
37934
|
+
return localVarFp.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(axios, basePath));
|
|
37935
|
+
},
|
|
37936
|
+
};
|
|
37937
|
+
};
|
|
37938
|
+
|
|
37939
|
+
/**
|
|
37940
|
+
* PaymentMethodsApi - interface
|
|
37941
|
+
* @export
|
|
37942
|
+
* @interface PaymentMethodsApi
|
|
37943
|
+
*/
|
|
37944
|
+
export interface PaymentMethodsApiInterface {
|
|
37945
|
+
/**
|
|
37946
|
+
*
|
|
37947
|
+
* @param {number} businessId
|
|
37948
|
+
* @param {ProviderEnum} channel
|
|
37949
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
37950
|
+
* @param {*} [options] Override http request option.
|
|
37951
|
+
* @throws {RequiredError}
|
|
37952
|
+
* @memberof PaymentMethodsApiInterface
|
|
37953
|
+
*/
|
|
37954
|
+
createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
|
|
37955
|
+
|
|
37956
|
+
/**
|
|
37957
|
+
*
|
|
37958
|
+
* @param {number} businessId
|
|
37959
|
+
* @param {ProviderEnum} channel
|
|
37960
|
+
* @param {string} id
|
|
37961
|
+
* @param {*} [options] Override http request option.
|
|
37962
|
+
* @throws {RequiredError}
|
|
37963
|
+
* @memberof PaymentMethodsApiInterface
|
|
37964
|
+
*/
|
|
37965
|
+
deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
37966
|
+
|
|
37967
|
+
/**
|
|
37968
|
+
*
|
|
37969
|
+
* @param {number} businessId
|
|
37970
|
+
* @param {ProviderEnum} channel
|
|
37971
|
+
* @param {any} [locale]
|
|
37972
|
+
* @param {*} [options] Override http request option.
|
|
37973
|
+
* @throws {RequiredError}
|
|
37974
|
+
* @memberof PaymentMethodsApiInterface
|
|
37975
|
+
*/
|
|
37976
|
+
getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodDto>>;
|
|
37977
|
+
|
|
37978
|
+
/**
|
|
37979
|
+
*
|
|
37980
|
+
* @param {number} businessId
|
|
37981
|
+
* @param {ProviderEnum} channel
|
|
37982
|
+
* @param {BulkRankDto} bulkRankDto
|
|
37983
|
+
* @param {*} [options] Override http request option.
|
|
37984
|
+
* @throws {RequiredError}
|
|
37985
|
+
* @memberof PaymentMethodsApiInterface
|
|
37986
|
+
*/
|
|
37987
|
+
reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
37988
|
+
|
|
37989
|
+
/**
|
|
37990
|
+
*
|
|
37991
|
+
* @param {number} businessId
|
|
37992
|
+
* @param {ProviderEnum} channel
|
|
37993
|
+
* @param {string} id
|
|
37994
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
37995
|
+
* @param {*} [options] Override http request option.
|
|
37996
|
+
* @throws {RequiredError}
|
|
37997
|
+
* @memberof PaymentMethodsApiInterface
|
|
37998
|
+
*/
|
|
37999
|
+
updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
|
|
38000
|
+
|
|
38001
|
+
}
|
|
38002
|
+
|
|
38003
|
+
/**
|
|
38004
|
+
* PaymentMethodsApi - object-oriented interface
|
|
38005
|
+
* @export
|
|
38006
|
+
* @class PaymentMethodsApi
|
|
38007
|
+
* @extends {BaseAPI}
|
|
38008
|
+
*/
|
|
38009
|
+
export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInterface {
|
|
38010
|
+
/**
|
|
38011
|
+
*
|
|
38012
|
+
* @param {number} businessId
|
|
38013
|
+
* @param {ProviderEnum} channel
|
|
38014
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
38015
|
+
* @param {*} [options] Override http request option.
|
|
38016
|
+
* @throws {RequiredError}
|
|
38017
|
+
* @memberof PaymentMethodsApi
|
|
38018
|
+
*/
|
|
38019
|
+
public createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig) {
|
|
38020
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(this.axios, this.basePath));
|
|
38021
|
+
}
|
|
38022
|
+
|
|
38023
|
+
/**
|
|
38024
|
+
*
|
|
38025
|
+
* @param {number} businessId
|
|
38026
|
+
* @param {ProviderEnum} channel
|
|
38027
|
+
* @param {string} id
|
|
38028
|
+
* @param {*} [options] Override http request option.
|
|
38029
|
+
* @throws {RequiredError}
|
|
38030
|
+
* @memberof PaymentMethodsApi
|
|
38031
|
+
*/
|
|
38032
|
+
public deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig) {
|
|
38033
|
+
return PaymentMethodsApiFp(this.configuration).deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(this.axios, this.basePath));
|
|
38034
|
+
}
|
|
38035
|
+
|
|
38036
|
+
/**
|
|
38037
|
+
*
|
|
38038
|
+
* @param {number} businessId
|
|
38039
|
+
* @param {ProviderEnum} channel
|
|
38040
|
+
* @param {any} [locale]
|
|
38041
|
+
* @param {*} [options] Override http request option.
|
|
38042
|
+
* @throws {RequiredError}
|
|
38043
|
+
* @memberof PaymentMethodsApi
|
|
38044
|
+
*/
|
|
38045
|
+
public getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
|
|
38046
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethods(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
|
|
38047
|
+
}
|
|
38048
|
+
|
|
38049
|
+
/**
|
|
38050
|
+
*
|
|
38051
|
+
* @param {number} businessId
|
|
38052
|
+
* @param {ProviderEnum} channel
|
|
38053
|
+
* @param {BulkRankDto} bulkRankDto
|
|
38054
|
+
* @param {*} [options] Override http request option.
|
|
38055
|
+
* @throws {RequiredError}
|
|
38056
|
+
* @memberof PaymentMethodsApi
|
|
38057
|
+
*/
|
|
38058
|
+
public reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig) {
|
|
38059
|
+
return PaymentMethodsApiFp(this.configuration).reorder(businessId, channel, bulkRankDto, options).then((request) => request(this.axios, this.basePath));
|
|
38060
|
+
}
|
|
38061
|
+
|
|
38062
|
+
/**
|
|
38063
|
+
*
|
|
38064
|
+
* @param {number} businessId
|
|
38065
|
+
* @param {ProviderEnum} channel
|
|
38066
|
+
* @param {string} id
|
|
38067
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
38068
|
+
* @param {*} [options] Override http request option.
|
|
38069
|
+
* @throws {RequiredError}
|
|
38070
|
+
* @memberof PaymentMethodsApi
|
|
38071
|
+
*/
|
|
38072
|
+
public updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig) {
|
|
38073
|
+
return PaymentMethodsApiFp(this.configuration).updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(this.axios, this.basePath));
|
|
38074
|
+
}
|
|
38075
|
+
}
|
|
38076
|
+
|
|
38077
|
+
|
|
37165
38078
|
/**
|
|
37166
38079
|
* PaymentSessionApi - axios parameter creator
|
|
37167
38080
|
* @export
|