@munchi_oy/core 1.9.48 → 1.9.56
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 +22 -580
- 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 +22 -814
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -464,19 +464,6 @@ 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
|
-
}
|
|
480
467
|
/**
|
|
481
468
|
*
|
|
482
469
|
* @export
|
|
@@ -3165,20 +3152,6 @@ export interface CourseDto {
|
|
|
3165
3152
|
*/
|
|
3166
3153
|
'autoFire'?: boolean;
|
|
3167
3154
|
}
|
|
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
|
-
|
|
3182
3155
|
/**
|
|
3183
3156
|
*
|
|
3184
3157
|
* @export
|
|
@@ -3991,75 +3964,6 @@ export interface CreateNetsTerminalPaymentDto {
|
|
|
3991
3964
|
}
|
|
3992
3965
|
|
|
3993
3966
|
|
|
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
|
-
|
|
4063
3967
|
/**
|
|
4064
3968
|
*
|
|
4065
3969
|
* @export
|
|
@@ -12134,37 +12038,6 @@ export const PaymentMethod = {
|
|
|
12134
12038
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
12135
12039
|
|
|
12136
12040
|
|
|
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
|
-
}
|
|
12168
12041
|
/**
|
|
12169
12042
|
*
|
|
12170
12043
|
* @export
|
|
@@ -12482,122 +12355,6 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
|
|
|
12482
12355
|
*/
|
|
12483
12356
|
'transactionId'?: string | null;
|
|
12484
12357
|
}
|
|
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
|
-
}
|
|
12601
12358
|
/**
|
|
12602
12359
|
*
|
|
12603
12360
|
* @export
|
|
@@ -15266,20 +15023,40 @@ export const PosPermission = {
|
|
|
15266
15023
|
PageProducts: 'Page::Products',
|
|
15267
15024
|
PageReports: 'Page::Reports',
|
|
15268
15025
|
PageSettings: 'Page::Settings',
|
|
15026
|
+
PageFloorPlan: 'Page::FloorPlan',
|
|
15269
15027
|
Cart: 'Cart::*',
|
|
15270
15028
|
CartAddItem: 'Cart::AddItem',
|
|
15271
15029
|
CartRemoveItem: 'Cart::RemoveItem',
|
|
15272
15030
|
CartApplyDiscount: 'Cart::ApplyDiscount',
|
|
15273
15031
|
CartVoidItem: 'Cart::VoidItem',
|
|
15274
15032
|
CartClear: 'Cart::Clear',
|
|
15033
|
+
CartRemoveDiscount: 'Cart::RemoveDiscount',
|
|
15034
|
+
CartVoidPayment: 'Cart::VoidPayment',
|
|
15035
|
+
Cash: 'Cash::*',
|
|
15036
|
+
CashOpenDay: 'Cash::OpenDay',
|
|
15037
|
+
CashCloseDay: 'Cash::CloseDay',
|
|
15038
|
+
CashCashIn: 'Cash::CashIn',
|
|
15039
|
+
CashCashOut: 'Cash::CashOut',
|
|
15040
|
+
CashOpenDrawer: 'Cash::OpenDrawer',
|
|
15041
|
+
CashPrintReport: 'Cash::PrintReport',
|
|
15042
|
+
CashSendReport: 'Cash::SendReport',
|
|
15275
15043
|
Transaction: 'Transaction::*',
|
|
15276
|
-
TransactionView: 'Transaction::View',
|
|
15277
15044
|
TransactionRefund: 'Transaction::Refund',
|
|
15045
|
+
Order: 'Order::*',
|
|
15046
|
+
OrderSendReceipt: 'Order::SendReceipt',
|
|
15047
|
+
OpenOrdersDelete: 'OpenOrders::Delete',
|
|
15048
|
+
OpenOrdersSendToKitchen: 'OpenOrders::SendToKitchen',
|
|
15049
|
+
OpenOrdersFireCourse: 'OpenOrders::FireCourse',
|
|
15278
15050
|
Shift: 'Shift::*',
|
|
15279
15051
|
ShiftForceClockOut: 'Shift::ForceClockOut',
|
|
15052
|
+
FloorPlan: 'FloorPlan::*',
|
|
15053
|
+
FloorPlanEditLayout: 'FloorPlan::EditLayout',
|
|
15054
|
+
FloorPlanChangeTableStatus: 'FloorPlan::ChangeTableStatus',
|
|
15055
|
+
FloorPlanManageSections: 'FloorPlan::ManageSections',
|
|
15280
15056
|
Settings: 'Settings::*',
|
|
15281
15057
|
SettingsEditProfile: 'Settings::EditProfile',
|
|
15282
|
-
|
|
15058
|
+
Report: 'Report::*',
|
|
15059
|
+
ReportSendEmail: 'Report::SendEmail'
|
|
15283
15060
|
} as const;
|
|
15284
15061
|
|
|
15285
15062
|
export type PosPermission = typeof PosPermission[keyof typeof PosPermission];
|
|
@@ -16652,25 +16429,6 @@ export const PubSubTarget = {
|
|
|
16652
16429
|
export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
|
|
16653
16430
|
|
|
16654
16431
|
|
|
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
|
-
}
|
|
16674
16432
|
/**
|
|
16675
16433
|
*
|
|
16676
16434
|
* @export
|
|
@@ -21064,55 +20822,6 @@ export interface UpdateInvoiceCompanyDto {
|
|
|
21064
20822
|
*/
|
|
21065
20823
|
'address'?: string;
|
|
21066
20824
|
}
|
|
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
|
-
}
|
|
21116
20825
|
/**
|
|
21117
20826
|
*
|
|
21118
20827
|
* @export
|
|
@@ -37574,507 +37283,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
37574
37283
|
}
|
|
37575
37284
|
|
|
37576
37285
|
|
|
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
|
-
|
|
38078
37286
|
/**
|
|
38079
37287
|
* PaymentSessionApi - axios parameter creator
|
|
38080
37288
|
* @export
|