@munchi_oy/core 1.9.47 → 1.9.55

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/generated/api.ts CHANGED
@@ -464,6 +464,50 @@ export const AutonomousVehicleType = {
464
464
  export type AutonomousVehicleType = typeof AutonomousVehicleType[keyof typeof AutonomousVehicleType];
465
465
 
466
466
 
467
+ /**
468
+ *
469
+ * @export
470
+ * @interface AvailablePaymentMethodDto
471
+ */
472
+ export interface AvailablePaymentMethodDto {
473
+ /**
474
+ * Catalog method code to attach.
475
+ * @type {string}
476
+ * @memberof AvailablePaymentMethodDto
477
+ */
478
+ 'code': string;
479
+ /**
480
+ * Catalog type that drives the method\'s policy.
481
+ * @type {string}
482
+ * @memberof AvailablePaymentMethodDto
483
+ */
484
+ 'typeCode': string;
485
+ /**
486
+ * Resolved display name for the catalog entry.
487
+ * @type {string}
488
+ * @memberof AvailablePaymentMethodDto
489
+ */
490
+ 'label': string;
491
+ /**
492
+ * True for a 3rd-party gift card that needs username/password/posDeviceId.
493
+ * @type {boolean}
494
+ * @memberof AvailablePaymentMethodDto
495
+ */
496
+ 'requiresCredentials': boolean;
497
+ }
498
+ /**
499
+ *
500
+ * @export
501
+ * @interface BulkRankDto
502
+ */
503
+ export interface BulkRankDto {
504
+ /**
505
+ * Only the items whose position changed (zero-based ranks).
506
+ * @type {Array<RankItemDto>}
507
+ * @memberof BulkRankDto
508
+ */
509
+ 'items': Array<RankItemDto>;
510
+ }
467
511
  /**
468
512
  *
469
513
  * @export
@@ -2393,6 +2437,112 @@ export interface CashSessionTotalsDto {
2393
2437
  */
2394
2438
  'cashOut': number;
2395
2439
  }
2440
+ /**
2441
+ *
2442
+ * @export
2443
+ * @interface CatalogMethodDto
2444
+ */
2445
+ export interface CatalogMethodDto {
2446
+ /**
2447
+ * Stable, immutable method code (catalog identity).
2448
+ * @type {string}
2449
+ * @memberof CatalogMethodDto
2450
+ */
2451
+ 'code': string;
2452
+ /**
2453
+ * Catalog type that drives this method\'s behavior.
2454
+ * @type {string}
2455
+ * @memberof CatalogMethodDto
2456
+ */
2457
+ 'typeCode': string;
2458
+ /**
2459
+ * Resolved display label for this code.
2460
+ * @type {string}
2461
+ * @memberof CatalogMethodDto
2462
+ */
2463
+ 'label': string;
2464
+ /**
2465
+ *
2466
+ * @type {CatalogMethodDtoCapabilities}
2467
+ * @memberof CatalogMethodDto
2468
+ */
2469
+ 'capabilities': CatalogMethodDtoCapabilities;
2470
+ }
2471
+ /**
2472
+ * Behavior resolved from the catalog type + per-method overrides.
2473
+ * @export
2474
+ * @interface CatalogMethodDtoCapabilities
2475
+ */
2476
+ export interface CatalogMethodDtoCapabilities {
2477
+ /**
2478
+ * Whether this method can be refunded at all.
2479
+ * @type {boolean}
2480
+ * @memberof CatalogMethodDtoCapabilities
2481
+ */
2482
+ 'refundable': boolean;
2483
+ /**
2484
+ * Whether a refund can be split across this method and others.
2485
+ * @type {boolean}
2486
+ * @memberof CatalogMethodDtoCapabilities
2487
+ */
2488
+ 'refundSplittable': boolean;
2489
+ /**
2490
+ * Whether the customer may choose this method as a refund target.
2491
+ * @type {boolean}
2492
+ * @memberof CatalogMethodDtoCapabilities
2493
+ */
2494
+ 'refundChoiceEligible': boolean;
2495
+ /**
2496
+ * Refund allocation order (lower = refunded first); null when not refundable.
2497
+ * @type {number}
2498
+ * @memberof CatalogMethodDtoCapabilities
2499
+ */
2500
+ 'refundPriorityTier': number | null;
2501
+ /**
2502
+ *
2503
+ * @type {PaymentCheckoutFlow}
2504
+ * @memberof CatalogMethodDtoCapabilities
2505
+ */
2506
+ 'checkoutFlow': PaymentCheckoutFlow;
2507
+ /**
2508
+ * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
2509
+ * @type {string}
2510
+ * @memberof CatalogMethodDtoCapabilities
2511
+ */
2512
+ 'tone': string;
2513
+ /**
2514
+ * Whether a refund is sent back to the original card via the terminal SDK.
2515
+ * @type {boolean}
2516
+ * @memberof CatalogMethodDtoCapabilities
2517
+ */
2518
+ 'refundToCard': boolean;
2519
+ /**
2520
+ * Whether refunding this method needs an active card provider (Viva/Nets).
2521
+ * @type {boolean}
2522
+ * @memberof CatalogMethodDtoCapabilities
2523
+ */
2524
+ 'requiresProvider': boolean;
2525
+ /**
2526
+ * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
2527
+ * @type {boolean}
2528
+ * @memberof CatalogMethodDtoCapabilities
2529
+ */
2530
+ 'requiresManualResolution': boolean;
2531
+ /**
2532
+ * Whether receipts/print should show a forfeited (leftover) amount line.
2533
+ * @type {boolean}
2534
+ * @memberof CatalogMethodDtoCapabilities
2535
+ */
2536
+ 'shouldDisplayForfeitedAmount': boolean;
2537
+ /**
2538
+ * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
2539
+ * @type {string}
2540
+ * @memberof CatalogMethodDtoCapabilities
2541
+ */
2542
+ 'notificationIssuer': string | null;
2543
+ }
2544
+
2545
+
2396
2546
  /**
2397
2547
  *
2398
2548
  * @export
@@ -3964,6 +4114,104 @@ export interface CreateNetsTerminalPaymentDto {
3964
4114
  }
3965
4115
 
3966
4116
 
4117
+ /**
4118
+ *
4119
+ * @export
4120
+ * @interface CreatePaymentMethodDto
4121
+ */
4122
+ export interface CreatePaymentMethodDto {
4123
+ /**
4124
+ * Attach an existing catalog method by its code (mutually exclusive with name+type).
4125
+ * @type {string}
4126
+ * @memberof CreatePaymentMethodDto
4127
+ */
4128
+ 'code'?: string;
4129
+ /**
4130
+ * Display name for a new custom method; required with type when code is absent.
4131
+ * @type {string}
4132
+ * @memberof CreatePaymentMethodDto
4133
+ */
4134
+ 'name'?: string;
4135
+ /**
4136
+ * Catalog type code for a new custom method (any seeded PaymentMethodType, e.g. CARD, VOUCHER, GIFT_CARD, MANUAL); required with name when code is absent.
4137
+ * @type {string}
4138
+ * @memberof CreatePaymentMethodDto
4139
+ */
4140
+ 'type'?: string;
4141
+ /**
4142
+ * Per-business name override.
4143
+ * @type {string}
4144
+ * @memberof CreatePaymentMethodDto
4145
+ */
4146
+ 'customName'?: string;
4147
+ /**
4148
+ * Per-business logo URL.
4149
+ * @type {string}
4150
+ * @memberof CreatePaymentMethodDto
4151
+ */
4152
+ 'logo'?: string;
4153
+ /**
4154
+ * Per-business description.
4155
+ * @type {string}
4156
+ * @memberof CreatePaymentMethodDto
4157
+ */
4158
+ 'description'?: string;
4159
+ /**
4160
+ * Parent method code for grouped vouchers.
4161
+ * @type {string}
4162
+ * @memberof CreatePaymentMethodDto
4163
+ */
4164
+ 'parentCode'?: string;
4165
+ /**
4166
+ * Preset amounts/denominations (vouchers).
4167
+ * @type {Array<number>}
4168
+ * @memberof CreatePaymentMethodDto
4169
+ */
4170
+ 'amounts'?: Array<number>;
4171
+ /**
4172
+ * Minimum order amount required to use this method.
4173
+ * @type {number}
4174
+ * @memberof CreatePaymentMethodDto
4175
+ */
4176
+ 'minimumCheckoutAmount'?: number;
4177
+ /**
4178
+ * Whether the method is enabled (defaults to true).
4179
+ * @type {boolean}
4180
+ * @memberof CreatePaymentMethodDto
4181
+ */
4182
+ 'enable'?: boolean;
4183
+ /**
4184
+ *
4185
+ * @type {CreatePaymentMethodDtoGiftCardCredentials}
4186
+ * @memberof CreatePaymentMethodDto
4187
+ */
4188
+ 'giftCardCredentials'?: CreatePaymentMethodDtoGiftCardCredentials;
4189
+ }
4190
+ /**
4191
+ * Only for a 3rd-party gift card: username/password (URLs come from constants).
4192
+ * @export
4193
+ * @interface CreatePaymentMethodDtoGiftCardCredentials
4194
+ */
4195
+ export interface CreatePaymentMethodDtoGiftCardCredentials {
4196
+ /**
4197
+ * 3rd-party gift card account username.
4198
+ * @type {string}
4199
+ * @memberof CreatePaymentMethodDtoGiftCardCredentials
4200
+ */
4201
+ 'username'?: string;
4202
+ /**
4203
+ * 3rd-party gift card account password.
4204
+ * @type {string}
4205
+ * @memberof CreatePaymentMethodDtoGiftCardCredentials
4206
+ */
4207
+ 'password'?: string;
4208
+ /**
4209
+ * Unique POS device id for the 3rd-party gift card provider.
4210
+ * @type {string}
4211
+ * @memberof CreatePaymentMethodDtoGiftCardCredentials
4212
+ */
4213
+ 'uniquePosDeviceId'?: string;
4214
+ }
3967
4215
  /**
3968
4216
  *
3969
4217
  * @export
@@ -6229,6 +6477,56 @@ export interface GiftCardCredentialsDto {
6229
6477
  */
6230
6478
  'password'?: string;
6231
6479
  }
6480
+ /**
6481
+ *
6482
+ * @export
6483
+ * @interface GiftCardCredentialsInputDto
6484
+ */
6485
+ export interface GiftCardCredentialsInputDto {
6486
+ /**
6487
+ * 3rd-party gift card account username.
6488
+ * @type {string}
6489
+ * @memberof GiftCardCredentialsInputDto
6490
+ */
6491
+ 'username'?: string;
6492
+ /**
6493
+ * 3rd-party gift card account password.
6494
+ * @type {string}
6495
+ * @memberof GiftCardCredentialsInputDto
6496
+ */
6497
+ 'password'?: string;
6498
+ /**
6499
+ * Unique POS device id for the 3rd-party gift card provider.
6500
+ * @type {string}
6501
+ * @memberof GiftCardCredentialsInputDto
6502
+ */
6503
+ 'uniquePosDeviceId'?: string;
6504
+ }
6505
+ /**
6506
+ *
6507
+ * @export
6508
+ * @interface GiftCardCredentialsViewDto
6509
+ */
6510
+ export interface GiftCardCredentialsViewDto {
6511
+ /**
6512
+ * Saved 3rd-party gift card username.
6513
+ * @type {string}
6514
+ * @memberof GiftCardCredentialsViewDto
6515
+ */
6516
+ 'username': string | null;
6517
+ /**
6518
+ * Saved 3rd-party gift card password.
6519
+ * @type {string}
6520
+ * @memberof GiftCardCredentialsViewDto
6521
+ */
6522
+ 'password': string | null;
6523
+ /**
6524
+ * Saved unique POS device id for the 3rd-party gift card provider.
6525
+ * @type {string}
6526
+ * @memberof GiftCardCredentialsViewDto
6527
+ */
6528
+ 'uniquePosDeviceId': string | null;
6529
+ }
6232
6530
  /**
6233
6531
  *
6234
6532
  * @export
@@ -9628,6 +9926,49 @@ export interface NetsCancelTransactionDto {
9628
9926
  */
9629
9927
  'businessId': number;
9630
9928
  }
9929
+ /**
9930
+ *
9931
+ * @export
9932
+ * @interface NetsConfigResponseDto
9933
+ */
9934
+ export interface NetsConfigResponseDto {
9935
+ /**
9936
+ * Whether the Nets integration is active.
9937
+ * @type {boolean}
9938
+ * @memberof NetsConfigResponseDto
9939
+ */
9940
+ 'isActive': boolean;
9941
+ /**
9942
+ * Display name.
9943
+ * @type {string}
9944
+ * @memberof NetsConfigResponseDto
9945
+ */
9946
+ 'name': string | null;
9947
+ /**
9948
+ * Nets secret key.
9949
+ * @type {string}
9950
+ * @memberof NetsConfigResponseDto
9951
+ */
9952
+ 'secretKey': string | null;
9953
+ /**
9954
+ * Nets public key.
9955
+ * @type {string}
9956
+ * @memberof NetsConfigResponseDto
9957
+ */
9958
+ 'publicKey': string | null;
9959
+ /**
9960
+ * Nets OAuth client id.
9961
+ * @type {string}
9962
+ * @memberof NetsConfigResponseDto
9963
+ */
9964
+ 'clientId': string | null;
9965
+ /**
9966
+ * Nets OAuth client secret.
9967
+ * @type {string}
9968
+ * @memberof NetsConfigResponseDto
9969
+ */
9970
+ 'clientSecret': string | null;
9971
+ }
9631
9972
  /**
9632
9973
  *
9633
9974
  * @export
@@ -11803,6 +12144,24 @@ export interface PaginationDto {
11803
12144
  */
11804
12145
  'totalPages': number;
11805
12146
  }
12147
+ /**
12148
+ *
12149
+ * @export
12150
+ * @enum {string}
12151
+ */
12152
+
12153
+ export const PaymentCheckoutFlow = {
12154
+ TerminalCard: 'terminal_card',
12155
+ CardManual: 'card_manual',
12156
+ Cash: 'cash',
12157
+ GroupedVoucher: 'grouped_voucher',
12158
+ GiftCard: 'gift_card',
12159
+ Static: 'static'
12160
+ } as const;
12161
+
12162
+ export type PaymentCheckoutFlow = typeof PaymentCheckoutFlow[keyof typeof PaymentCheckoutFlow];
12163
+
12164
+
11806
12165
  /**
11807
12166
  *
11808
12167
  * @export
@@ -12038,6 +12397,81 @@ export const PaymentMethod = {
12038
12397
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
12039
12398
 
12040
12399
 
12400
+ /**
12401
+ *
12402
+ * @export
12403
+ * @interface PaymentMethodCapabilitiesDto
12404
+ */
12405
+ export interface PaymentMethodCapabilitiesDto {
12406
+ /**
12407
+ * Whether this method can be refunded at all.
12408
+ * @type {boolean}
12409
+ * @memberof PaymentMethodCapabilitiesDto
12410
+ */
12411
+ 'refundable': boolean;
12412
+ /**
12413
+ * Whether a refund can be split across this method and others.
12414
+ * @type {boolean}
12415
+ * @memberof PaymentMethodCapabilitiesDto
12416
+ */
12417
+ 'refundSplittable': boolean;
12418
+ /**
12419
+ * Whether the customer may choose this method as a refund target.
12420
+ * @type {boolean}
12421
+ * @memberof PaymentMethodCapabilitiesDto
12422
+ */
12423
+ 'refundChoiceEligible': boolean;
12424
+ /**
12425
+ * Refund allocation order (lower = refunded first); null when not refundable.
12426
+ * @type {number}
12427
+ * @memberof PaymentMethodCapabilitiesDto
12428
+ */
12429
+ 'refundPriorityTier': number | null;
12430
+ /**
12431
+ *
12432
+ * @type {PaymentCheckoutFlow}
12433
+ * @memberof PaymentMethodCapabilitiesDto
12434
+ */
12435
+ 'checkoutFlow': PaymentCheckoutFlow;
12436
+ /**
12437
+ * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
12438
+ * @type {string}
12439
+ * @memberof PaymentMethodCapabilitiesDto
12440
+ */
12441
+ 'tone': string;
12442
+ /**
12443
+ * Whether a refund is sent back to the original card via the terminal SDK.
12444
+ * @type {boolean}
12445
+ * @memberof PaymentMethodCapabilitiesDto
12446
+ */
12447
+ 'refundToCard': boolean;
12448
+ /**
12449
+ * Whether refunding this method needs an active card provider (Viva/Nets).
12450
+ * @type {boolean}
12451
+ * @memberof PaymentMethodCapabilitiesDto
12452
+ */
12453
+ 'requiresProvider': boolean;
12454
+ /**
12455
+ * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
12456
+ * @type {boolean}
12457
+ * @memberof PaymentMethodCapabilitiesDto
12458
+ */
12459
+ 'requiresManualResolution': boolean;
12460
+ /**
12461
+ * Whether receipts/print should show a forfeited (leftover) amount line.
12462
+ * @type {boolean}
12463
+ * @memberof PaymentMethodCapabilitiesDto
12464
+ */
12465
+ 'shouldDisplayForfeitedAmount': boolean;
12466
+ /**
12467
+ * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
12468
+ * @type {string}
12469
+ * @memberof PaymentMethodCapabilitiesDto
12470
+ */
12471
+ 'notificationIssuer': string | null;
12472
+ }
12473
+
12474
+
12041
12475
  /**
12042
12476
  *
12043
12477
  * @export
@@ -12355,6 +12789,240 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
12355
12789
  */
12356
12790
  'transactionId'?: string | null;
12357
12791
  }
12792
+ /**
12793
+ *
12794
+ * @export
12795
+ * @interface PaymentMethodDto
12796
+ */
12797
+ export interface PaymentMethodDto {
12798
+ /**
12799
+ * PaymentMethodOption id; use it for update/delete/reorder.
12800
+ * @type {string}
12801
+ * @memberof PaymentMethodDto
12802
+ */
12803
+ 'id': string;
12804
+ /**
12805
+ * Stable, immutable method code (catalog identity).
12806
+ * @type {string}
12807
+ * @memberof PaymentMethodDto
12808
+ */
12809
+ 'code': string;
12810
+ /**
12811
+ * Catalog type that drives this method\'s policy/behavior.
12812
+ * @type {string}
12813
+ * @memberof PaymentMethodDto
12814
+ */
12815
+ 'typeCode': string;
12816
+ /**
12817
+ * Display name: per-business customName, else catalog translation, else code.
12818
+ * @type {string}
12819
+ * @memberof PaymentMethodDto
12820
+ */
12821
+ 'label': string;
12822
+ /**
12823
+ * Per-business name override; null means inherit the catalog label.
12824
+ * @type {string}
12825
+ * @memberof PaymentMethodDto
12826
+ */
12827
+ 'customName': string | null;
12828
+ /**
12829
+ * Per-business logo URL.
12830
+ * @type {string}
12831
+ * @memberof PaymentMethodDto
12832
+ */
12833
+ 'logo': string | null;
12834
+ /**
12835
+ * Per-business description.
12836
+ * @type {string}
12837
+ * @memberof PaymentMethodDto
12838
+ */
12839
+ 'description': string | null;
12840
+ /**
12841
+ * Parent method code for grouped vouchers; null when standalone.
12842
+ * @type {string}
12843
+ * @memberof PaymentMethodDto
12844
+ */
12845
+ 'parentCode': string | null;
12846
+ /**
12847
+ * Sort order within the business (ascending).
12848
+ * @type {number}
12849
+ * @memberof PaymentMethodDto
12850
+ */
12851
+ 'position': number;
12852
+ /**
12853
+ * Whether the method is shown/usable (off = hidden, not deleted).
12854
+ * @type {boolean}
12855
+ * @memberof PaymentMethodDto
12856
+ */
12857
+ 'enable': boolean;
12858
+ /**
12859
+ * Preset amounts/denominations (vouchers).
12860
+ * @type {Array<number>}
12861
+ * @memberof PaymentMethodDto
12862
+ */
12863
+ 'amounts': Array<number>;
12864
+ /**
12865
+ * Minimum order amount required to use this method (decimal as string).
12866
+ * @type {string}
12867
+ * @memberof PaymentMethodDto
12868
+ */
12869
+ 'minimumCheckoutAmount': string | null;
12870
+ /**
12871
+ *
12872
+ * @type {PaymentMethodDtoCapabilities}
12873
+ * @memberof PaymentMethodDto
12874
+ */
12875
+ 'capabilities': PaymentMethodDtoCapabilities;
12876
+ /**
12877
+ * True for a 3rd-party gift card whose credentials the merchant can edit.
12878
+ * @type {boolean}
12879
+ * @memberof PaymentMethodDto
12880
+ */
12881
+ 'requiresCredentials': boolean;
12882
+ /**
12883
+ *
12884
+ * @type {PaymentMethodDtoGiftCardCredentials}
12885
+ * @memberof PaymentMethodDto
12886
+ */
12887
+ 'giftCardCredentials': PaymentMethodDtoGiftCardCredentials | null;
12888
+ /**
12889
+ * Auto-managed grouped children (e.g. Card→Debit/Credit, LunchVoucher→its vouchers). Empty for standalone methods.
12890
+ * @type {Array<PaymentMethodDto>}
12891
+ * @memberof PaymentMethodDto
12892
+ */
12893
+ 'children': Array<PaymentMethodDto>;
12894
+ }
12895
+ /**
12896
+ * Refund behavior resolved from the catalog type + per-method overrides.
12897
+ * @export
12898
+ * @interface PaymentMethodDtoCapabilities
12899
+ */
12900
+ export interface PaymentMethodDtoCapabilities {
12901
+ /**
12902
+ * Whether this method can be refunded at all.
12903
+ * @type {boolean}
12904
+ * @memberof PaymentMethodDtoCapabilities
12905
+ */
12906
+ 'refundable': boolean;
12907
+ /**
12908
+ * Whether a refund can be split across this method and others.
12909
+ * @type {boolean}
12910
+ * @memberof PaymentMethodDtoCapabilities
12911
+ */
12912
+ 'refundSplittable': boolean;
12913
+ /**
12914
+ * Whether the customer may choose this method as a refund target.
12915
+ * @type {boolean}
12916
+ * @memberof PaymentMethodDtoCapabilities
12917
+ */
12918
+ 'refundChoiceEligible': boolean;
12919
+ /**
12920
+ * Refund allocation order (lower = refunded first); null when not refundable.
12921
+ * @type {number}
12922
+ * @memberof PaymentMethodDtoCapabilities
12923
+ */
12924
+ 'refundPriorityTier': number | null;
12925
+ /**
12926
+ *
12927
+ * @type {PaymentCheckoutFlow}
12928
+ * @memberof PaymentMethodDtoCapabilities
12929
+ */
12930
+ 'checkoutFlow': PaymentCheckoutFlow;
12931
+ /**
12932
+ * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
12933
+ * @type {string}
12934
+ * @memberof PaymentMethodDtoCapabilities
12935
+ */
12936
+ 'tone': string;
12937
+ /**
12938
+ * Whether a refund is sent back to the original card via the terminal SDK.
12939
+ * @type {boolean}
12940
+ * @memberof PaymentMethodDtoCapabilities
12941
+ */
12942
+ 'refundToCard': boolean;
12943
+ /**
12944
+ * Whether refunding this method needs an active card provider (Viva/Nets).
12945
+ * @type {boolean}
12946
+ * @memberof PaymentMethodDtoCapabilities
12947
+ */
12948
+ 'requiresProvider': boolean;
12949
+ /**
12950
+ * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
12951
+ * @type {boolean}
12952
+ * @memberof PaymentMethodDtoCapabilities
12953
+ */
12954
+ 'requiresManualResolution': boolean;
12955
+ /**
12956
+ * Whether receipts/print should show a forfeited (leftover) amount line.
12957
+ * @type {boolean}
12958
+ * @memberof PaymentMethodDtoCapabilities
12959
+ */
12960
+ 'shouldDisplayForfeitedAmount': boolean;
12961
+ /**
12962
+ * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
12963
+ * @type {string}
12964
+ * @memberof PaymentMethodDtoCapabilities
12965
+ */
12966
+ 'notificationIssuer': string | null;
12967
+ }
12968
+
12969
+
12970
+ /**
12971
+ * Saved 3rd-party gift card credentials for pre-fill; null when not applicable.
12972
+ * @export
12973
+ * @interface PaymentMethodDtoGiftCardCredentials
12974
+ */
12975
+ export interface PaymentMethodDtoGiftCardCredentials {
12976
+ /**
12977
+ * Saved 3rd-party gift card username.
12978
+ * @type {string}
12979
+ * @memberof PaymentMethodDtoGiftCardCredentials
12980
+ */
12981
+ 'username': string | null;
12982
+ /**
12983
+ * Saved 3rd-party gift card password.
12984
+ * @type {string}
12985
+ * @memberof PaymentMethodDtoGiftCardCredentials
12986
+ */
12987
+ 'password': string | null;
12988
+ /**
12989
+ * Saved unique POS device id for the 3rd-party gift card provider.
12990
+ * @type {string}
12991
+ * @memberof PaymentMethodDtoGiftCardCredentials
12992
+ */
12993
+ 'uniquePosDeviceId': string | null;
12994
+ }
12995
+ /**
12996
+ *
12997
+ * @export
12998
+ * @interface PaymentMethodTypeDto
12999
+ */
13000
+ export interface PaymentMethodTypeDto {
13001
+ /**
13002
+ * Catalog type code (e.g. CARD, VOUCHER, GIFT_CARD).
13003
+ * @type {string}
13004
+ * @memberof PaymentMethodTypeDto
13005
+ */
13006
+ 'code': string;
13007
+ /**
13008
+ * Human-readable type label for display.
13009
+ * @type {string}
13010
+ * @memberof PaymentMethodTypeDto
13011
+ */
13012
+ 'label': string;
13013
+ /**
13014
+ * Short explanation of what this category means, to guide the user.
13015
+ * @type {string}
13016
+ * @memberof PaymentMethodTypeDto
13017
+ */
13018
+ 'description': string;
13019
+ /**
13020
+ * Whether methods of this type take preset amounts/denominations.
13021
+ * @type {boolean}
13022
+ * @memberof PaymentMethodTypeDto
13023
+ */
13024
+ 'supportsAmounts': boolean;
13025
+ }
12358
13026
  /**
12359
13027
  *
12360
13028
  * @export
@@ -16382,6 +17050,45 @@ export interface ProviderSupportedIntegrationsDto {
16382
17050
  }
16383
17051
 
16384
17052
 
17053
+ /**
17054
+ *
17055
+ * @export
17056
+ * @interface ProvidersConfigResponseDto
17057
+ */
17058
+ export interface ProvidersConfigResponseDto {
17059
+ /**
17060
+ *
17061
+ * @type {PaymentProvider}
17062
+ * @memberof ProvidersConfigResponseDto
17063
+ */
17064
+ 'selectedPaymentProvider': PaymentProvider | null;
17065
+ /**
17066
+ *
17067
+ * @type {VivaConfigResponseDto}
17068
+ * @memberof ProvidersConfigResponseDto
17069
+ */
17070
+ 'viva': VivaConfigResponseDto | null;
17071
+ /**
17072
+ *
17073
+ * @type {NetsConfigResponseDto}
17074
+ * @memberof ProvidersConfigResponseDto
17075
+ */
17076
+ 'nets': NetsConfigResponseDto | null;
17077
+ /**
17078
+ *
17079
+ * @type {StripeConfigResponseDto}
17080
+ * @memberof ProvidersConfigResponseDto
17081
+ */
17082
+ 'stripe': StripeConfigResponseDto | null;
17083
+ /**
17084
+ *
17085
+ * @type {WorldlineConfigResponseDto}
17086
+ * @memberof ProvidersConfigResponseDto
17087
+ */
17088
+ 'worldline': WorldlineConfigResponseDto | null;
17089
+ }
17090
+
17091
+
16385
17092
  /**
16386
17093
  *
16387
17094
  * @export
@@ -16409,6 +17116,25 @@ export const PubSubTarget = {
16409
17116
  export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
16410
17117
 
16411
17118
 
17119
+ /**
17120
+ *
17121
+ * @export
17122
+ * @interface RankItemDto
17123
+ */
17124
+ export interface RankItemDto {
17125
+ /**
17126
+ * PaymentMethodOption id to position.
17127
+ * @type {string}
17128
+ * @memberof RankItemDto
17129
+ */
17130
+ 'id': string;
17131
+ /**
17132
+ * New zero-based sort position.
17133
+ * @type {number}
17134
+ * @memberof RankItemDto
17135
+ */
17136
+ 'rank': number;
17137
+ }
16412
17138
  /**
16413
17139
  *
16414
17140
  * @export
@@ -18445,6 +19171,37 @@ export const Status = {
18445
19171
  export type Status = typeof Status[keyof typeof Status];
18446
19172
 
18447
19173
 
19174
+ /**
19175
+ *
19176
+ * @export
19177
+ * @interface StripeConfigResponseDto
19178
+ */
19179
+ export interface StripeConfigResponseDto {
19180
+ /**
19181
+ * Whether the Stripe integration is active.
19182
+ * @type {boolean}
19183
+ * @memberof StripeConfigResponseDto
19184
+ */
19185
+ 'isActive': boolean;
19186
+ /**
19187
+ * Display name.
19188
+ * @type {string}
19189
+ * @memberof StripeConfigResponseDto
19190
+ */
19191
+ 'name': string | null;
19192
+ /**
19193
+ * Stripe secret key.
19194
+ * @type {string}
19195
+ * @memberof StripeConfigResponseDto
19196
+ */
19197
+ 'secretKey': string | null;
19198
+ /**
19199
+ * Stripe location id.
19200
+ * @type {string}
19201
+ * @memberof StripeConfigResponseDto
19202
+ */
19203
+ 'locationId': string | null;
19204
+ }
18448
19205
  /**
18449
19206
  *
18450
19207
  * @export
@@ -20802,6 +21559,86 @@ export interface UpdateInvoiceCompanyDto {
20802
21559
  */
20803
21560
  'address'?: string;
20804
21561
  }
21562
+ /**
21563
+ *
21564
+ * @export
21565
+ * @interface UpdatePaymentMethodOptionDto
21566
+ */
21567
+ export interface UpdatePaymentMethodOptionDto {
21568
+ /**
21569
+ * Per-business name override.
21570
+ * @type {string}
21571
+ * @memberof UpdatePaymentMethodOptionDto
21572
+ */
21573
+ 'customName'?: string;
21574
+ /**
21575
+ * Per-business logo URL.
21576
+ * @type {string}
21577
+ * @memberof UpdatePaymentMethodOptionDto
21578
+ */
21579
+ 'logo'?: string;
21580
+ /**
21581
+ * Per-business description.
21582
+ * @type {string}
21583
+ * @memberof UpdatePaymentMethodOptionDto
21584
+ */
21585
+ 'description'?: string;
21586
+ /**
21587
+ * Parent method code for grouped vouchers.
21588
+ * @type {string}
21589
+ * @memberof UpdatePaymentMethodOptionDto
21590
+ */
21591
+ 'parentCode'?: string;
21592
+ /**
21593
+ * Preset amounts/denominations (vouchers).
21594
+ * @type {Array<number>}
21595
+ * @memberof UpdatePaymentMethodOptionDto
21596
+ */
21597
+ 'amounts'?: Array<number>;
21598
+ /**
21599
+ * Minimum order amount required to use this method.
21600
+ * @type {number}
21601
+ * @memberof UpdatePaymentMethodOptionDto
21602
+ */
21603
+ 'minimumCheckoutAmount'?: number;
21604
+ /**
21605
+ * Whether the method is enabled.
21606
+ * @type {boolean}
21607
+ * @memberof UpdatePaymentMethodOptionDto
21608
+ */
21609
+ 'enable'?: boolean;
21610
+ /**
21611
+ *
21612
+ * @type {UpdatePaymentMethodOptionDtoGiftCardCredentials}
21613
+ * @memberof UpdatePaymentMethodOptionDto
21614
+ */
21615
+ 'giftCardCredentials'?: UpdatePaymentMethodOptionDtoGiftCardCredentials;
21616
+ }
21617
+ /**
21618
+ * Only for a 3rd-party gift card: username/password/posDeviceId (URLs are constants).
21619
+ * @export
21620
+ * @interface UpdatePaymentMethodOptionDtoGiftCardCredentials
21621
+ */
21622
+ export interface UpdatePaymentMethodOptionDtoGiftCardCredentials {
21623
+ /**
21624
+ * 3rd-party gift card account username.
21625
+ * @type {string}
21626
+ * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
21627
+ */
21628
+ 'username'?: string;
21629
+ /**
21630
+ * 3rd-party gift card account password.
21631
+ * @type {string}
21632
+ * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
21633
+ */
21634
+ 'password'?: string;
21635
+ /**
21636
+ * Unique POS device id for the 3rd-party gift card provider.
21637
+ * @type {string}
21638
+ * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
21639
+ */
21640
+ 'uniquePosDeviceId'?: string;
21641
+ }
20805
21642
  /**
20806
21643
  *
20807
21644
  * @export
@@ -21261,7 +22098,7 @@ export interface UpsertNetsDto {
21261
22098
  * @type {string}
21262
22099
  * @memberof UpsertNetsDto
21263
22100
  */
21264
- 'name'?: string;
22101
+ 'name': string;
21265
22102
  /**
21266
22103
  *
21267
22104
  * @type {boolean}
@@ -21491,6 +22328,87 @@ export interface UpsertProductPrintPolicyDto {
21491
22328
  */
21492
22329
  'printerId': number;
21493
22330
  }
22331
+ /**
22332
+ *
22333
+ * @export
22334
+ * @interface UpsertProvidersDto
22335
+ */
22336
+ export interface UpsertProvidersDto {
22337
+ /**
22338
+ *
22339
+ * @type {PaymentProvider}
22340
+ * @memberof UpsertProvidersDto
22341
+ */
22342
+ 'provider': PaymentProvider;
22343
+ /**
22344
+ *
22345
+ * @type {string}
22346
+ * @memberof UpsertProvidersDto
22347
+ */
22348
+ 'name': string;
22349
+ /**
22350
+ *
22351
+ * @type {boolean}
22352
+ * @memberof UpsertProvidersDto
22353
+ */
22354
+ 'isActive'?: boolean;
22355
+ /**
22356
+ * Viva merchant id.
22357
+ * @type {string}
22358
+ * @memberof UpsertProvidersDto
22359
+ */
22360
+ 'merchantId'?: string;
22361
+ /**
22362
+ * Viva source code.
22363
+ * @type {string}
22364
+ * @memberof UpsertProvidersDto
22365
+ */
22366
+ 'sourceCode'?: string;
22367
+ /**
22368
+ * Viva commission/surcharge rate.
22369
+ * @type {number}
22370
+ * @memberof UpsertProvidersDto
22371
+ */
22372
+ 'rate'?: number;
22373
+ /**
22374
+ * Viva additional amount.
22375
+ * @type {number}
22376
+ * @memberof UpsertProvidersDto
22377
+ */
22378
+ 'additionalAmount'?: number;
22379
+ /**
22380
+ * Nets / Stripe / Worldline secret key.
22381
+ * @type {string}
22382
+ * @memberof UpsertProvidersDto
22383
+ */
22384
+ 'secretKey'?: string;
22385
+ /**
22386
+ * Nets / Worldline public key.
22387
+ * @type {string}
22388
+ * @memberof UpsertProvidersDto
22389
+ */
22390
+ 'publicKey'?: string;
22391
+ /**
22392
+ * Nets OAuth client id.
22393
+ * @type {string}
22394
+ * @memberof UpsertProvidersDto
22395
+ */
22396
+ 'clientId'?: string;
22397
+ /**
22398
+ * Nets OAuth client secret.
22399
+ * @type {string}
22400
+ * @memberof UpsertProvidersDto
22401
+ */
22402
+ 'clientSecret'?: string;
22403
+ /**
22404
+ * Stripe location id.
22405
+ * @type {string}
22406
+ * @memberof UpsertProvidersDto
22407
+ */
22408
+ 'locationId'?: string;
22409
+ }
22410
+
22411
+
21494
22412
  /**
21495
22413
  *
21496
22414
  * @export
@@ -21535,7 +22453,7 @@ export interface UpsertStripeDto {
21535
22453
  * @type {string}
21536
22454
  * @memberof UpsertStripeDto
21537
22455
  */
21538
- 'name'?: string;
22456
+ 'name': string;
21539
22457
  /**
21540
22458
  *
21541
22459
  * @type {boolean}
@@ -21566,7 +22484,7 @@ export interface UpsertVivaDto {
21566
22484
  * @type {string}
21567
22485
  * @memberof UpsertVivaDto
21568
22486
  */
21569
- 'name'?: string;
22487
+ 'name': string;
21570
22488
  /**
21571
22489
  *
21572
22490
  * @type {boolean}
@@ -21968,6 +22886,43 @@ export interface VivaConfigDto {
21968
22886
  */
21969
22887
  'additionalAmount'?: number;
21970
22888
  }
22889
+ /**
22890
+ *
22891
+ * @export
22892
+ * @interface VivaConfigResponseDto
22893
+ */
22894
+ export interface VivaConfigResponseDto {
22895
+ /**
22896
+ * Whether the Viva integration is active.
22897
+ * @type {boolean}
22898
+ * @memberof VivaConfigResponseDto
22899
+ */
22900
+ 'isActive': boolean;
22901
+ /**
22902
+ * Display name.
22903
+ * @type {string}
22904
+ * @memberof VivaConfigResponseDto
22905
+ */
22906
+ 'name': string | null;
22907
+ /**
22908
+ * Viva merchant id.
22909
+ * @type {string}
22910
+ * @memberof VivaConfigResponseDto
22911
+ */
22912
+ 'merchantId': string | null;
22913
+ /**
22914
+ * Viva source code.
22915
+ * @type {string}
22916
+ * @memberof VivaConfigResponseDto
22917
+ */
22918
+ 'sourceCode': string | null;
22919
+ /**
22920
+ * Commission/surcharge rate.
22921
+ * @type {number}
22922
+ * @memberof VivaConfigResponseDto
22923
+ */
22924
+ 'rate': number | null;
22925
+ }
21971
22926
  /**
21972
22927
  *
21973
22928
  * @export
@@ -23366,6 +24321,37 @@ export interface WorldlineAmountsRequestDto {
23366
24321
  */
23367
24322
  'tip'?: number;
23368
24323
  }
24324
+ /**
24325
+ *
24326
+ * @export
24327
+ * @interface WorldlineConfigResponseDto
24328
+ */
24329
+ export interface WorldlineConfigResponseDto {
24330
+ /**
24331
+ * Whether the Worldline integration is active.
24332
+ * @type {boolean}
24333
+ * @memberof WorldlineConfigResponseDto
24334
+ */
24335
+ 'isActive': boolean;
24336
+ /**
24337
+ * Display name.
24338
+ * @type {string}
24339
+ * @memberof WorldlineConfigResponseDto
24340
+ */
24341
+ 'name': string | null;
24342
+ /**
24343
+ * Worldline secret key.
24344
+ * @type {string}
24345
+ * @memberof WorldlineConfigResponseDto
24346
+ */
24347
+ 'secretKey': string | null;
24348
+ /**
24349
+ * Worldline public key.
24350
+ * @type {string}
24351
+ * @memberof WorldlineConfigResponseDto
24352
+ */
24353
+ 'publicKey': string | null;
24354
+ }
23369
24355
  /**
23370
24356
  *
23371
24357
  * @export
@@ -27508,6 +28494,51 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
27508
28494
  options: localVarRequestOptions,
27509
28495
  };
27510
28496
  },
28497
+ /**
28498
+ *
28499
+ * @summary Get payment providers config
28500
+ * @param {number} businessId
28501
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
28502
+ * @param {*} [options] Override http request option.
28503
+ * @throws {RequiredError}
28504
+ */
28505
+ configGetProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28506
+ // verify required parameter 'businessId' is not null or undefined
28507
+ assertParamExists('configGetProviders', 'businessId', businessId)
28508
+ // verify required parameter 'xAppX' is not null or undefined
28509
+ assertParamExists('configGetProviders', 'xAppX', xAppX)
28510
+ const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
28511
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
28512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28514
+ let baseOptions;
28515
+ if (configuration) {
28516
+ baseOptions = configuration.baseOptions;
28517
+ }
28518
+
28519
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28520
+ const localVarHeaderParameter = {} as any;
28521
+ const localVarQueryParameter = {} as any;
28522
+
28523
+ // authentication JWT-auth required
28524
+ // http bearer authentication required
28525
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28526
+
28527
+ if (xAppX != null) {
28528
+ localVarHeaderParameter['x-app-x'] = String(xAppX);
28529
+ }
28530
+
28531
+
28532
+
28533
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28535
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28536
+
28537
+ return {
28538
+ url: toPathString(localVarUrlObj),
28539
+ options: localVarRequestOptions,
28540
+ };
28541
+ },
27511
28542
  /**
27512
28543
  *
27513
28544
  * @summary Manual sync trigger
@@ -27895,21 +28926,72 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
27895
28926
  },
27896
28927
  /**
27897
28928
  *
27898
- * @summary Upsert Stripe payment config
28929
+ * @summary Set active provider and upsert its credentials
27899
28930
  * @param {number} businessId
27900
28931
  * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
27901
- * @param {UpsertStripeDto} upsertStripeDto
28932
+ * @param {UpsertProvidersDto} upsertProvidersDto
27902
28933
  * @param {*} [options] Override http request option.
27903
28934
  * @throws {RequiredError}
27904
28935
  */
27905
- configUpsertStripe: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertStripeDto: UpsertStripeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28936
+ configUpsertProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27906
28937
  // verify required parameter 'businessId' is not null or undefined
27907
- assertParamExists('configUpsertStripe', 'businessId', businessId)
28938
+ assertParamExists('configUpsertProviders', 'businessId', businessId)
27908
28939
  // verify required parameter 'xAppX' is not null or undefined
27909
- assertParamExists('configUpsertStripe', 'xAppX', xAppX)
27910
- // verify required parameter 'upsertStripeDto' is not null or undefined
27911
- assertParamExists('configUpsertStripe', 'upsertStripeDto', upsertStripeDto)
27912
- const localVarPath = `/api/v1/config-management/business/{businessId}/config/stripe`
28940
+ assertParamExists('configUpsertProviders', 'xAppX', xAppX)
28941
+ // verify required parameter 'upsertProvidersDto' is not null or undefined
28942
+ assertParamExists('configUpsertProviders', 'upsertProvidersDto', upsertProvidersDto)
28943
+ const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
28944
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
28945
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28946
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28947
+ let baseOptions;
28948
+ if (configuration) {
28949
+ baseOptions = configuration.baseOptions;
28950
+ }
28951
+
28952
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28953
+ const localVarHeaderParameter = {} as any;
28954
+ const localVarQueryParameter = {} as any;
28955
+
28956
+ // authentication JWT-auth required
28957
+ // http bearer authentication required
28958
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28959
+
28960
+ if (xAppX != null) {
28961
+ localVarHeaderParameter['x-app-x'] = String(xAppX);
28962
+ }
28963
+
28964
+
28965
+
28966
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28967
+
28968
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28969
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28970
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28971
+ localVarRequestOptions.data = serializeDataIfNeeded(upsertProvidersDto, localVarRequestOptions, configuration)
28972
+
28973
+ return {
28974
+ url: toPathString(localVarUrlObj),
28975
+ options: localVarRequestOptions,
28976
+ };
28977
+ },
28978
+ /**
28979
+ *
28980
+ * @summary Upsert Stripe payment config
28981
+ * @param {number} businessId
28982
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
28983
+ * @param {UpsertStripeDto} upsertStripeDto
28984
+ * @param {*} [options] Override http request option.
28985
+ * @throws {RequiredError}
28986
+ */
28987
+ configUpsertStripe: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertStripeDto: UpsertStripeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28988
+ // verify required parameter 'businessId' is not null or undefined
28989
+ assertParamExists('configUpsertStripe', 'businessId', businessId)
28990
+ // verify required parameter 'xAppX' is not null or undefined
28991
+ assertParamExists('configUpsertStripe', 'xAppX', xAppX)
28992
+ // verify required parameter 'upsertStripeDto' is not null or undefined
28993
+ assertParamExists('configUpsertStripe', 'upsertStripeDto', upsertStripeDto)
28994
+ const localVarPath = `/api/v1/config-management/business/{businessId}/config/stripe`
27913
28995
  .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
27914
28996
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27915
28997
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -28018,6 +29100,18 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
28018
29100
  const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
28019
29101
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28020
29102
  },
29103
+ /**
29104
+ *
29105
+ * @summary Get payment providers config
29106
+ * @param {number} businessId
29107
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29108
+ * @param {*} [options] Override http request option.
29109
+ * @throws {RequiredError}
29110
+ */
29111
+ async configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvidersConfigResponseDto>> {
29112
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configGetProviders(businessId, xAppX, options);
29113
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29114
+ },
28021
29115
  /**
28022
29116
  *
28023
29117
  * @summary Manual sync trigger
@@ -28119,6 +29213,19 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
28119
29213
  const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options);
28120
29214
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28121
29215
  },
29216
+ /**
29217
+ *
29218
+ * @summary Set active provider and upsert its credentials
29219
+ * @param {number} businessId
29220
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29221
+ * @param {UpsertProvidersDto} upsertProvidersDto
29222
+ * @param {*} [options] Override http request option.
29223
+ * @throws {RequiredError}
29224
+ */
29225
+ async configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvidersConfigResponseDto>> {
29226
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options);
29227
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29228
+ },
28122
29229
  /**
28123
29230
  *
28124
29231
  * @summary Upsert Stripe payment config
@@ -28167,6 +29274,17 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
28167
29274
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
28168
29275
  return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
28169
29276
  },
29277
+ /**
29278
+ *
29279
+ * @summary Get payment providers config
29280
+ * @param {number} businessId
29281
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29282
+ * @param {*} [options] Override http request option.
29283
+ * @throws {RequiredError}
29284
+ */
29285
+ configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: any): AxiosPromise<ProvidersConfigResponseDto> {
29286
+ return localVarFp.configGetProviders(businessId, xAppX, options).then((request) => request(axios, basePath));
29287
+ },
28170
29288
  /**
28171
29289
  *
28172
29290
  * @summary Manual sync trigger
@@ -28260,6 +29378,18 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
28260
29378
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
28261
29379
  return localVarFp.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(axios, basePath));
28262
29380
  },
29381
+ /**
29382
+ *
29383
+ * @summary Set active provider and upsert its credentials
29384
+ * @param {number} businessId
29385
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29386
+ * @param {UpsertProvidersDto} upsertProvidersDto
29387
+ * @param {*} [options] Override http request option.
29388
+ * @throws {RequiredError}
29389
+ */
29390
+ configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: any): AxiosPromise<ProvidersConfigResponseDto> {
29391
+ return localVarFp.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(axios, basePath));
29392
+ },
28263
29393
  /**
28264
29394
  *
28265
29395
  * @summary Upsert Stripe payment config
@@ -28305,6 +29435,17 @@ export interface ConfigManagementApiInterface {
28305
29435
  */
28306
29436
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
28307
29437
 
29438
+ /**
29439
+ *
29440
+ * @summary Get payment providers config
29441
+ * @param {number} businessId
29442
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29443
+ * @param {*} [options] Override http request option.
29444
+ * @throws {RequiredError}
29445
+ * @memberof ConfigManagementApiInterface
29446
+ */
29447
+ configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
29448
+
28308
29449
  /**
28309
29450
  *
28310
29451
  * @summary Manual sync trigger
@@ -28398,6 +29539,18 @@ export interface ConfigManagementApiInterface {
28398
29539
  */
28399
29540
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
28400
29541
 
29542
+ /**
29543
+ *
29544
+ * @summary Set active provider and upsert its credentials
29545
+ * @param {number} businessId
29546
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29547
+ * @param {UpsertProvidersDto} upsertProvidersDto
29548
+ * @param {*} [options] Override http request option.
29549
+ * @throws {RequiredError}
29550
+ * @memberof ConfigManagementApiInterface
29551
+ */
29552
+ configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
29553
+
28401
29554
  /**
28402
29555
  *
28403
29556
  * @summary Upsert Stripe payment config
@@ -28445,6 +29598,19 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
28445
29598
  return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
28446
29599
  }
28447
29600
 
29601
+ /**
29602
+ *
29603
+ * @summary Get payment providers config
29604
+ * @param {number} businessId
29605
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29606
+ * @param {*} [options] Override http request option.
29607
+ * @throws {RequiredError}
29608
+ * @memberof ConfigManagementApi
29609
+ */
29610
+ public configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig) {
29611
+ return ConfigManagementApiFp(this.configuration).configGetProviders(businessId, xAppX, options).then((request) => request(this.axios, this.basePath));
29612
+ }
29613
+
28448
29614
  /**
28449
29615
  *
28450
29616
  * @summary Manual sync trigger
@@ -28554,6 +29720,20 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
28554
29720
  return ConfigManagementApiFp(this.configuration).configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(this.axios, this.basePath));
28555
29721
  }
28556
29722
 
29723
+ /**
29724
+ *
29725
+ * @summary Set active provider and upsert its credentials
29726
+ * @param {number} businessId
29727
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29728
+ * @param {UpsertProvidersDto} upsertProvidersDto
29729
+ * @param {*} [options] Override http request option.
29730
+ * @throws {RequiredError}
29731
+ * @memberof ConfigManagementApi
29732
+ */
29733
+ public configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig) {
29734
+ return ConfigManagementApiFp(this.configuration).configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(this.axios, this.basePath));
29735
+ }
29736
+
28557
29737
  /**
28558
29738
  *
28559
29739
  * @summary Upsert Stripe payment config
@@ -37263,6 +38443,765 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
37263
38443
  }
37264
38444
 
37265
38445
 
38446
+ /**
38447
+ * PaymentMethodsApi - axios parameter creator
38448
+ * @export
38449
+ */
38450
+ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
38451
+ return {
38452
+ /**
38453
+ *
38454
+ * @param {number} businessId
38455
+ * @param {ProviderEnum} channel
38456
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
38457
+ * @param {*} [options] Override http request option.
38458
+ * @throws {RequiredError}
38459
+ */
38460
+ createPaymentMethod: async (businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38461
+ // verify required parameter 'businessId' is not null or undefined
38462
+ assertParamExists('createPaymentMethod', 'businessId', businessId)
38463
+ // verify required parameter 'channel' is not null or undefined
38464
+ assertParamExists('createPaymentMethod', 'channel', channel)
38465
+ // verify required parameter 'createPaymentMethodDto' is not null or undefined
38466
+ assertParamExists('createPaymentMethod', 'createPaymentMethodDto', createPaymentMethodDto)
38467
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
38468
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38469
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38472
+ let baseOptions;
38473
+ if (configuration) {
38474
+ baseOptions = configuration.baseOptions;
38475
+ }
38476
+
38477
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
38478
+ const localVarHeaderParameter = {} as any;
38479
+ const localVarQueryParameter = {} as any;
38480
+
38481
+
38482
+
38483
+ localVarHeaderParameter['Content-Type'] = 'application/json';
38484
+
38485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38487
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38488
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentMethodDto, localVarRequestOptions, configuration)
38489
+
38490
+ return {
38491
+ url: toPathString(localVarUrlObj),
38492
+ options: localVarRequestOptions,
38493
+ };
38494
+ },
38495
+ /**
38496
+ *
38497
+ * @param {number} businessId
38498
+ * @param {ProviderEnum} channel
38499
+ * @param {string} id
38500
+ * @param {*} [options] Override http request option.
38501
+ * @throws {RequiredError}
38502
+ */
38503
+ deletePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38504
+ // verify required parameter 'businessId' is not null or undefined
38505
+ assertParamExists('deletePaymentMethodOption', 'businessId', businessId)
38506
+ // verify required parameter 'channel' is not null or undefined
38507
+ assertParamExists('deletePaymentMethodOption', 'channel', channel)
38508
+ // verify required parameter 'id' is not null or undefined
38509
+ assertParamExists('deletePaymentMethodOption', 'id', id)
38510
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
38511
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38512
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38513
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
38514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38516
+ let baseOptions;
38517
+ if (configuration) {
38518
+ baseOptions = configuration.baseOptions;
38519
+ }
38520
+
38521
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
38522
+ const localVarHeaderParameter = {} as any;
38523
+ const localVarQueryParameter = {} as any;
38524
+
38525
+
38526
+
38527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38529
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38530
+
38531
+ return {
38532
+ url: toPathString(localVarUrlObj),
38533
+ options: localVarRequestOptions,
38534
+ };
38535
+ },
38536
+ /**
38537
+ *
38538
+ * @param {number} businessId
38539
+ * @param {ProviderEnum} channel
38540
+ * @param {any} [locale]
38541
+ * @param {*} [options] Override http request option.
38542
+ * @throws {RequiredError}
38543
+ */
38544
+ getCatalog: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38545
+ // verify required parameter 'businessId' is not null or undefined
38546
+ assertParamExists('getCatalog', 'businessId', businessId)
38547
+ // verify required parameter 'channel' is not null or undefined
38548
+ assertParamExists('getCatalog', 'channel', channel)
38549
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog`
38550
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38551
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38552
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38553
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38554
+ let baseOptions;
38555
+ if (configuration) {
38556
+ baseOptions = configuration.baseOptions;
38557
+ }
38558
+
38559
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38560
+ const localVarHeaderParameter = {} as any;
38561
+ const localVarQueryParameter = {} as any;
38562
+
38563
+ if (locale !== undefined) {
38564
+ localVarQueryParameter['locale'] = locale;
38565
+ }
38566
+
38567
+
38568
+
38569
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38571
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38572
+
38573
+ return {
38574
+ url: toPathString(localVarUrlObj),
38575
+ options: localVarRequestOptions,
38576
+ };
38577
+ },
38578
+ /**
38579
+ *
38580
+ * @param {ProviderEnum} channel
38581
+ * @param {number} businessId
38582
+ * @param {any} [locale]
38583
+ * @param {*} [options] Override http request option.
38584
+ * @throws {RequiredError}
38585
+ */
38586
+ getGlobalCatalog: async (channel: ProviderEnum, businessId: number, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38587
+ // verify required parameter 'channel' is not null or undefined
38588
+ assertParamExists('getGlobalCatalog', 'channel', channel)
38589
+ // verify required parameter 'businessId' is not null or undefined
38590
+ assertParamExists('getGlobalCatalog', 'businessId', businessId)
38591
+ const localVarPath = `/api/v1/payment-methods/catalog`
38592
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38593
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
38594
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38595
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38596
+ let baseOptions;
38597
+ if (configuration) {
38598
+ baseOptions = configuration.baseOptions;
38599
+ }
38600
+
38601
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38602
+ const localVarHeaderParameter = {} as any;
38603
+ const localVarQueryParameter = {} as any;
38604
+
38605
+ if (locale !== undefined) {
38606
+ localVarQueryParameter['locale'] = locale;
38607
+ }
38608
+
38609
+
38610
+
38611
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38613
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38614
+
38615
+ return {
38616
+ url: toPathString(localVarUrlObj),
38617
+ options: localVarRequestOptions,
38618
+ };
38619
+ },
38620
+ /**
38621
+ *
38622
+ * @param {number} businessId
38623
+ * @param {ProviderEnum} channel
38624
+ * @param {any} [locale]
38625
+ * @param {*} [options] Override http request option.
38626
+ * @throws {RequiredError}
38627
+ */
38628
+ getPaymentMethods: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38629
+ // verify required parameter 'businessId' is not null or undefined
38630
+ assertParamExists('getPaymentMethods', 'businessId', businessId)
38631
+ // verify required parameter 'channel' is not null or undefined
38632
+ assertParamExists('getPaymentMethods', 'channel', channel)
38633
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
38634
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38635
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38636
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38637
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38638
+ let baseOptions;
38639
+ if (configuration) {
38640
+ baseOptions = configuration.baseOptions;
38641
+ }
38642
+
38643
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38644
+ const localVarHeaderParameter = {} as any;
38645
+ const localVarQueryParameter = {} as any;
38646
+
38647
+ if (locale !== undefined) {
38648
+ localVarQueryParameter['locale'] = locale;
38649
+ }
38650
+
38651
+
38652
+
38653
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38654
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38655
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38656
+
38657
+ return {
38658
+ url: toPathString(localVarUrlObj),
38659
+ options: localVarRequestOptions,
38660
+ };
38661
+ },
38662
+ /**
38663
+ *
38664
+ * @param {ProviderEnum} channel
38665
+ * @param {number} businessId
38666
+ * @param {*} [options] Override http request option.
38667
+ * @throws {RequiredError}
38668
+ */
38669
+ getTypes: async (channel: ProviderEnum, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38670
+ // verify required parameter 'channel' is not null or undefined
38671
+ assertParamExists('getTypes', 'channel', channel)
38672
+ // verify required parameter 'businessId' is not null or undefined
38673
+ assertParamExists('getTypes', 'businessId', businessId)
38674
+ const localVarPath = `/api/v1/payment-methods/types`
38675
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38676
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
38677
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38678
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38679
+ let baseOptions;
38680
+ if (configuration) {
38681
+ baseOptions = configuration.baseOptions;
38682
+ }
38683
+
38684
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38685
+ const localVarHeaderParameter = {} as any;
38686
+ const localVarQueryParameter = {} as any;
38687
+
38688
+
38689
+
38690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38692
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38693
+
38694
+ return {
38695
+ url: toPathString(localVarUrlObj),
38696
+ options: localVarRequestOptions,
38697
+ };
38698
+ },
38699
+ /**
38700
+ *
38701
+ * @param {number} businessId
38702
+ * @param {ProviderEnum} channel
38703
+ * @param {BulkRankDto} bulkRankDto
38704
+ * @param {*} [options] Override http request option.
38705
+ * @throws {RequiredError}
38706
+ */
38707
+ reorder: async (businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38708
+ // verify required parameter 'businessId' is not null or undefined
38709
+ assertParamExists('reorder', 'businessId', businessId)
38710
+ // verify required parameter 'channel' is not null or undefined
38711
+ assertParamExists('reorder', 'channel', channel)
38712
+ // verify required parameter 'bulkRankDto' is not null or undefined
38713
+ assertParamExists('reorder', 'bulkRankDto', bulkRankDto)
38714
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank`
38715
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38716
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38717
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38718
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38719
+ let baseOptions;
38720
+ if (configuration) {
38721
+ baseOptions = configuration.baseOptions;
38722
+ }
38723
+
38724
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
38725
+ const localVarHeaderParameter = {} as any;
38726
+ const localVarQueryParameter = {} as any;
38727
+
38728
+
38729
+
38730
+ localVarHeaderParameter['Content-Type'] = 'application/json';
38731
+
38732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38734
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38735
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkRankDto, localVarRequestOptions, configuration)
38736
+
38737
+ return {
38738
+ url: toPathString(localVarUrlObj),
38739
+ options: localVarRequestOptions,
38740
+ };
38741
+ },
38742
+ /**
38743
+ *
38744
+ * @param {number} businessId
38745
+ * @param {ProviderEnum} channel
38746
+ * @param {string} id
38747
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
38748
+ * @param {*} [options] Override http request option.
38749
+ * @throws {RequiredError}
38750
+ */
38751
+ updatePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38752
+ // verify required parameter 'businessId' is not null or undefined
38753
+ assertParamExists('updatePaymentMethodOption', 'businessId', businessId)
38754
+ // verify required parameter 'channel' is not null or undefined
38755
+ assertParamExists('updatePaymentMethodOption', 'channel', channel)
38756
+ // verify required parameter 'id' is not null or undefined
38757
+ assertParamExists('updatePaymentMethodOption', 'id', id)
38758
+ // verify required parameter 'updatePaymentMethodOptionDto' is not null or undefined
38759
+ assertParamExists('updatePaymentMethodOption', 'updatePaymentMethodOptionDto', updatePaymentMethodOptionDto)
38760
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
38761
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38762
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38763
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
38764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38765
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38766
+ let baseOptions;
38767
+ if (configuration) {
38768
+ baseOptions = configuration.baseOptions;
38769
+ }
38770
+
38771
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
38772
+ const localVarHeaderParameter = {} as any;
38773
+ const localVarQueryParameter = {} as any;
38774
+
38775
+
38776
+
38777
+ localVarHeaderParameter['Content-Type'] = 'application/json';
38778
+
38779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38781
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38782
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePaymentMethodOptionDto, localVarRequestOptions, configuration)
38783
+
38784
+ return {
38785
+ url: toPathString(localVarUrlObj),
38786
+ options: localVarRequestOptions,
38787
+ };
38788
+ },
38789
+ }
38790
+ };
38791
+
38792
+ /**
38793
+ * PaymentMethodsApi - functional programming interface
38794
+ * @export
38795
+ */
38796
+ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
38797
+ const localVarAxiosParamCreator = PaymentMethodsApiAxiosParamCreator(configuration)
38798
+ return {
38799
+ /**
38800
+ *
38801
+ * @param {number} businessId
38802
+ * @param {ProviderEnum} channel
38803
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
38804
+ * @param {*} [options] Override http request option.
38805
+ * @throws {RequiredError}
38806
+ */
38807
+ async createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
38808
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(businessId, channel, createPaymentMethodDto, options);
38809
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38810
+ },
38811
+ /**
38812
+ *
38813
+ * @param {number} businessId
38814
+ * @param {ProviderEnum} channel
38815
+ * @param {string} id
38816
+ * @param {*} [options] Override http request option.
38817
+ * @throws {RequiredError}
38818
+ */
38819
+ async deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
38820
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethodOption(businessId, channel, id, options);
38821
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38822
+ },
38823
+ /**
38824
+ *
38825
+ * @param {number} businessId
38826
+ * @param {ProviderEnum} channel
38827
+ * @param {any} [locale]
38828
+ * @param {*} [options] Override http request option.
38829
+ * @throws {RequiredError}
38830
+ */
38831
+ async getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AvailablePaymentMethodDto>>> {
38832
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalog(businessId, channel, locale, options);
38833
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38834
+ },
38835
+ /**
38836
+ *
38837
+ * @param {ProviderEnum} channel
38838
+ * @param {number} businessId
38839
+ * @param {any} [locale]
38840
+ * @param {*} [options] Override http request option.
38841
+ * @throws {RequiredError}
38842
+ */
38843
+ async getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CatalogMethodDto>>> {
38844
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalCatalog(channel, businessId, locale, options);
38845
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38846
+ },
38847
+ /**
38848
+ *
38849
+ * @param {number} businessId
38850
+ * @param {ProviderEnum} channel
38851
+ * @param {any} [locale]
38852
+ * @param {*} [options] Override http request option.
38853
+ * @throws {RequiredError}
38854
+ */
38855
+ async getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodDto>>> {
38856
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(businessId, channel, locale, options);
38857
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38858
+ },
38859
+ /**
38860
+ *
38861
+ * @param {ProviderEnum} channel
38862
+ * @param {number} businessId
38863
+ * @param {*} [options] Override http request option.
38864
+ * @throws {RequiredError}
38865
+ */
38866
+ async getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodTypeDto>>> {
38867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTypes(channel, businessId, options);
38868
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38869
+ },
38870
+ /**
38871
+ *
38872
+ * @param {number} businessId
38873
+ * @param {ProviderEnum} channel
38874
+ * @param {BulkRankDto} bulkRankDto
38875
+ * @param {*} [options] Override http request option.
38876
+ * @throws {RequiredError}
38877
+ */
38878
+ async reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
38879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reorder(businessId, channel, bulkRankDto, options);
38880
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38881
+ },
38882
+ /**
38883
+ *
38884
+ * @param {number} businessId
38885
+ * @param {ProviderEnum} channel
38886
+ * @param {string} id
38887
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
38888
+ * @param {*} [options] Override http request option.
38889
+ * @throws {RequiredError}
38890
+ */
38891
+ async updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
38892
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options);
38893
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38894
+ },
38895
+ }
38896
+ };
38897
+
38898
+ /**
38899
+ * PaymentMethodsApi - factory interface
38900
+ * @export
38901
+ */
38902
+ export const PaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
38903
+ const localVarFp = PaymentMethodsApiFp(configuration)
38904
+ return {
38905
+ /**
38906
+ *
38907
+ * @param {number} businessId
38908
+ * @param {ProviderEnum} channel
38909
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
38910
+ * @param {*} [options] Override http request option.
38911
+ * @throws {RequiredError}
38912
+ */
38913
+ createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: any): AxiosPromise<PaymentMethodDto> {
38914
+ return localVarFp.createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(axios, basePath));
38915
+ },
38916
+ /**
38917
+ *
38918
+ * @param {number} businessId
38919
+ * @param {ProviderEnum} channel
38920
+ * @param {string} id
38921
+ * @param {*} [options] Override http request option.
38922
+ * @throws {RequiredError}
38923
+ */
38924
+ deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: any): AxiosPromise<void> {
38925
+ return localVarFp.deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(axios, basePath));
38926
+ },
38927
+ /**
38928
+ *
38929
+ * @param {number} businessId
38930
+ * @param {ProviderEnum} channel
38931
+ * @param {any} [locale]
38932
+ * @param {*} [options] Override http request option.
38933
+ * @throws {RequiredError}
38934
+ */
38935
+ getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<AvailablePaymentMethodDto>> {
38936
+ return localVarFp.getCatalog(businessId, channel, locale, options).then((request) => request(axios, basePath));
38937
+ },
38938
+ /**
38939
+ *
38940
+ * @param {ProviderEnum} channel
38941
+ * @param {number} businessId
38942
+ * @param {any} [locale]
38943
+ * @param {*} [options] Override http request option.
38944
+ * @throws {RequiredError}
38945
+ */
38946
+ getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: any): AxiosPromise<Array<CatalogMethodDto>> {
38947
+ return localVarFp.getGlobalCatalog(channel, businessId, locale, options).then((request) => request(axios, basePath));
38948
+ },
38949
+ /**
38950
+ *
38951
+ * @param {number} businessId
38952
+ * @param {ProviderEnum} channel
38953
+ * @param {any} [locale]
38954
+ * @param {*} [options] Override http request option.
38955
+ * @throws {RequiredError}
38956
+ */
38957
+ getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<PaymentMethodDto>> {
38958
+ return localVarFp.getPaymentMethods(businessId, channel, locale, options).then((request) => request(axios, basePath));
38959
+ },
38960
+ /**
38961
+ *
38962
+ * @param {ProviderEnum} channel
38963
+ * @param {number} businessId
38964
+ * @param {*} [options] Override http request option.
38965
+ * @throws {RequiredError}
38966
+ */
38967
+ getTypes(channel: ProviderEnum, businessId: number, options?: any): AxiosPromise<Array<PaymentMethodTypeDto>> {
38968
+ return localVarFp.getTypes(channel, businessId, options).then((request) => request(axios, basePath));
38969
+ },
38970
+ /**
38971
+ *
38972
+ * @param {number} businessId
38973
+ * @param {ProviderEnum} channel
38974
+ * @param {BulkRankDto} bulkRankDto
38975
+ * @param {*} [options] Override http request option.
38976
+ * @throws {RequiredError}
38977
+ */
38978
+ reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: any): AxiosPromise<void> {
38979
+ return localVarFp.reorder(businessId, channel, bulkRankDto, options).then((request) => request(axios, basePath));
38980
+ },
38981
+ /**
38982
+ *
38983
+ * @param {number} businessId
38984
+ * @param {ProviderEnum} channel
38985
+ * @param {string} id
38986
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
38987
+ * @param {*} [options] Override http request option.
38988
+ * @throws {RequiredError}
38989
+ */
38990
+ updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: any): AxiosPromise<PaymentMethodDto> {
38991
+ return localVarFp.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(axios, basePath));
38992
+ },
38993
+ };
38994
+ };
38995
+
38996
+ /**
38997
+ * PaymentMethodsApi - interface
38998
+ * @export
38999
+ * @interface PaymentMethodsApi
39000
+ */
39001
+ export interface PaymentMethodsApiInterface {
39002
+ /**
39003
+ *
39004
+ * @param {number} businessId
39005
+ * @param {ProviderEnum} channel
39006
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
39007
+ * @param {*} [options] Override http request option.
39008
+ * @throws {RequiredError}
39009
+ * @memberof PaymentMethodsApiInterface
39010
+ */
39011
+ createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
39012
+
39013
+ /**
39014
+ *
39015
+ * @param {number} businessId
39016
+ * @param {ProviderEnum} channel
39017
+ * @param {string} id
39018
+ * @param {*} [options] Override http request option.
39019
+ * @throws {RequiredError}
39020
+ * @memberof PaymentMethodsApiInterface
39021
+ */
39022
+ deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): AxiosPromise<void>;
39023
+
39024
+ /**
39025
+ *
39026
+ * @param {number} businessId
39027
+ * @param {ProviderEnum} channel
39028
+ * @param {any} [locale]
39029
+ * @param {*} [options] Override http request option.
39030
+ * @throws {RequiredError}
39031
+ * @memberof PaymentMethodsApiInterface
39032
+ */
39033
+ getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<AvailablePaymentMethodDto>>;
39034
+
39035
+ /**
39036
+ *
39037
+ * @param {ProviderEnum} channel
39038
+ * @param {number} businessId
39039
+ * @param {any} [locale]
39040
+ * @param {*} [options] Override http request option.
39041
+ * @throws {RequiredError}
39042
+ * @memberof PaymentMethodsApiInterface
39043
+ */
39044
+ getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<CatalogMethodDto>>;
39045
+
39046
+ /**
39047
+ *
39048
+ * @param {number} businessId
39049
+ * @param {ProviderEnum} channel
39050
+ * @param {any} [locale]
39051
+ * @param {*} [options] Override http request option.
39052
+ * @throws {RequiredError}
39053
+ * @memberof PaymentMethodsApiInterface
39054
+ */
39055
+ getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodDto>>;
39056
+
39057
+ /**
39058
+ *
39059
+ * @param {ProviderEnum} channel
39060
+ * @param {number} businessId
39061
+ * @param {*} [options] Override http request option.
39062
+ * @throws {RequiredError}
39063
+ * @memberof PaymentMethodsApiInterface
39064
+ */
39065
+ getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodTypeDto>>;
39066
+
39067
+ /**
39068
+ *
39069
+ * @param {number} businessId
39070
+ * @param {ProviderEnum} channel
39071
+ * @param {BulkRankDto} bulkRankDto
39072
+ * @param {*} [options] Override http request option.
39073
+ * @throws {RequiredError}
39074
+ * @memberof PaymentMethodsApiInterface
39075
+ */
39076
+ reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): AxiosPromise<void>;
39077
+
39078
+ /**
39079
+ *
39080
+ * @param {number} businessId
39081
+ * @param {ProviderEnum} channel
39082
+ * @param {string} id
39083
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
39084
+ * @param {*} [options] Override http request option.
39085
+ * @throws {RequiredError}
39086
+ * @memberof PaymentMethodsApiInterface
39087
+ */
39088
+ updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
39089
+
39090
+ }
39091
+
39092
+ /**
39093
+ * PaymentMethodsApi - object-oriented interface
39094
+ * @export
39095
+ * @class PaymentMethodsApi
39096
+ * @extends {BaseAPI}
39097
+ */
39098
+ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInterface {
39099
+ /**
39100
+ *
39101
+ * @param {number} businessId
39102
+ * @param {ProviderEnum} channel
39103
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
39104
+ * @param {*} [options] Override http request option.
39105
+ * @throws {RequiredError}
39106
+ * @memberof PaymentMethodsApi
39107
+ */
39108
+ public createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig) {
39109
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(this.axios, this.basePath));
39110
+ }
39111
+
39112
+ /**
39113
+ *
39114
+ * @param {number} businessId
39115
+ * @param {ProviderEnum} channel
39116
+ * @param {string} id
39117
+ * @param {*} [options] Override http request option.
39118
+ * @throws {RequiredError}
39119
+ * @memberof PaymentMethodsApi
39120
+ */
39121
+ public deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig) {
39122
+ return PaymentMethodsApiFp(this.configuration).deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(this.axios, this.basePath));
39123
+ }
39124
+
39125
+ /**
39126
+ *
39127
+ * @param {number} businessId
39128
+ * @param {ProviderEnum} channel
39129
+ * @param {any} [locale]
39130
+ * @param {*} [options] Override http request option.
39131
+ * @throws {RequiredError}
39132
+ * @memberof PaymentMethodsApi
39133
+ */
39134
+ public getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
39135
+ return PaymentMethodsApiFp(this.configuration).getCatalog(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
39136
+ }
39137
+
39138
+ /**
39139
+ *
39140
+ * @param {ProviderEnum} channel
39141
+ * @param {number} businessId
39142
+ * @param {any} [locale]
39143
+ * @param {*} [options] Override http request option.
39144
+ * @throws {RequiredError}
39145
+ * @memberof PaymentMethodsApi
39146
+ */
39147
+ public getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig) {
39148
+ return PaymentMethodsApiFp(this.configuration).getGlobalCatalog(channel, businessId, locale, options).then((request) => request(this.axios, this.basePath));
39149
+ }
39150
+
39151
+ /**
39152
+ *
39153
+ * @param {number} businessId
39154
+ * @param {ProviderEnum} channel
39155
+ * @param {any} [locale]
39156
+ * @param {*} [options] Override http request option.
39157
+ * @throws {RequiredError}
39158
+ * @memberof PaymentMethodsApi
39159
+ */
39160
+ public getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
39161
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethods(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
39162
+ }
39163
+
39164
+ /**
39165
+ *
39166
+ * @param {ProviderEnum} channel
39167
+ * @param {number} businessId
39168
+ * @param {*} [options] Override http request option.
39169
+ * @throws {RequiredError}
39170
+ * @memberof PaymentMethodsApi
39171
+ */
39172
+ public getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig) {
39173
+ return PaymentMethodsApiFp(this.configuration).getTypes(channel, businessId, options).then((request) => request(this.axios, this.basePath));
39174
+ }
39175
+
39176
+ /**
39177
+ *
39178
+ * @param {number} businessId
39179
+ * @param {ProviderEnum} channel
39180
+ * @param {BulkRankDto} bulkRankDto
39181
+ * @param {*} [options] Override http request option.
39182
+ * @throws {RequiredError}
39183
+ * @memberof PaymentMethodsApi
39184
+ */
39185
+ public reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig) {
39186
+ return PaymentMethodsApiFp(this.configuration).reorder(businessId, channel, bulkRankDto, options).then((request) => request(this.axios, this.basePath));
39187
+ }
39188
+
39189
+ /**
39190
+ *
39191
+ * @param {number} businessId
39192
+ * @param {ProviderEnum} channel
39193
+ * @param {string} id
39194
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
39195
+ * @param {*} [options] Override http request option.
39196
+ * @throws {RequiredError}
39197
+ * @memberof PaymentMethodsApi
39198
+ */
39199
+ public updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig) {
39200
+ return PaymentMethodsApiFp(this.configuration).updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(this.axios, this.basePath));
39201
+ }
39202
+ }
39203
+
39204
+
37266
39205
  /**
37267
39206
  * PaymentSessionApi - axios parameter creator
37268
39207
  * @export