@munchi_oy/core 1.9.55 → 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/generated/api.ts CHANGED
@@ -464,50 +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 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
- }
511
467
  /**
512
468
  *
513
469
  * @export
@@ -2437,112 +2393,6 @@ export interface CashSessionTotalsDto {
2437
2393
  */
2438
2394
  'cashOut': number;
2439
2395
  }
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
-
2546
2396
  /**
2547
2397
  *
2548
2398
  * @export
@@ -4114,104 +3964,6 @@ export interface CreateNetsTerminalPaymentDto {
4114
3964
  }
4115
3965
 
4116
3966
 
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
- }
4215
3967
  /**
4216
3968
  *
4217
3969
  * @export
@@ -6477,56 +6229,6 @@ export interface GiftCardCredentialsDto {
6477
6229
  */
6478
6230
  'password'?: string;
6479
6231
  }
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
- }
6530
6232
  /**
6531
6233
  *
6532
6234
  * @export
@@ -9926,49 +9628,6 @@ export interface NetsCancelTransactionDto {
9926
9628
  */
9927
9629
  'businessId': number;
9928
9630
  }
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
- }
9972
9631
  /**
9973
9632
  *
9974
9633
  * @export
@@ -12144,24 +11803,6 @@ export interface PaginationDto {
12144
11803
  */
12145
11804
  'totalPages': number;
12146
11805
  }
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
-
12165
11806
  /**
12166
11807
  *
12167
11808
  * @export
@@ -12397,81 +12038,6 @@ export const PaymentMethod = {
12397
12038
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
12398
12039
 
12399
12040
 
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
-
12475
12041
  /**
12476
12042
  *
12477
12043
  * @export
@@ -12789,240 +12355,6 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
12789
12355
  */
12790
12356
  'transactionId'?: string | null;
12791
12357
  }
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
- }
13026
12358
  /**
13027
12359
  *
13028
12360
  * @export
@@ -15691,20 +15023,40 @@ export const PosPermission = {
15691
15023
  PageProducts: 'Page::Products',
15692
15024
  PageReports: 'Page::Reports',
15693
15025
  PageSettings: 'Page::Settings',
15026
+ PageFloorPlan: 'Page::FloorPlan',
15694
15027
  Cart: 'Cart::*',
15695
15028
  CartAddItem: 'Cart::AddItem',
15696
15029
  CartRemoveItem: 'Cart::RemoveItem',
15697
15030
  CartApplyDiscount: 'Cart::ApplyDiscount',
15698
15031
  CartVoidItem: 'Cart::VoidItem',
15699
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',
15700
15043
  Transaction: 'Transaction::*',
15701
- TransactionView: 'Transaction::View',
15702
15044
  TransactionRefund: 'Transaction::Refund',
15045
+ Order: 'Order::*',
15046
+ OrderSendReceipt: 'Order::SendReceipt',
15047
+ OpenOrdersDelete: 'OpenOrders::Delete',
15048
+ OpenOrdersSendToKitchen: 'OpenOrders::SendToKitchen',
15049
+ OpenOrdersFireCourse: 'OpenOrders::FireCourse',
15703
15050
  Shift: 'Shift::*',
15704
15051
  ShiftForceClockOut: 'Shift::ForceClockOut',
15052
+ FloorPlan: 'FloorPlan::*',
15053
+ FloorPlanEditLayout: 'FloorPlan::EditLayout',
15054
+ FloorPlanChangeTableStatus: 'FloorPlan::ChangeTableStatus',
15055
+ FloorPlanManageSections: 'FloorPlan::ManageSections',
15705
15056
  Settings: 'Settings::*',
15706
15057
  SettingsEditProfile: 'Settings::EditProfile',
15707
- OpenOrdersDelete: 'OpenOrders::Delete'
15058
+ Report: 'Report::*',
15059
+ ReportSendEmail: 'Report::SendEmail'
15708
15060
  } as const;
15709
15061
 
15710
15062
  export type PosPermission = typeof PosPermission[keyof typeof PosPermission];
@@ -17050,45 +16402,6 @@ export interface ProviderSupportedIntegrationsDto {
17050
16402
  }
17051
16403
 
17052
16404
 
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
-
17092
16405
  /**
17093
16406
  *
17094
16407
  * @export
@@ -17116,25 +16429,6 @@ export const PubSubTarget = {
17116
16429
  export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
17117
16430
 
17118
16431
 
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
- }
17138
16432
  /**
17139
16433
  *
17140
16434
  * @export
@@ -19171,37 +18465,6 @@ export const Status = {
19171
18465
  export type Status = typeof Status[keyof typeof Status];
19172
18466
 
19173
18467
 
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
- }
19205
18468
  /**
19206
18469
  *
19207
18470
  * @export
@@ -21559,86 +20822,6 @@ export interface UpdateInvoiceCompanyDto {
21559
20822
  */
21560
20823
  'address'?: string;
21561
20824
  }
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
- }
21642
20825
  /**
21643
20826
  *
21644
20827
  * @export
@@ -22098,7 +21281,7 @@ export interface UpsertNetsDto {
22098
21281
  * @type {string}
22099
21282
  * @memberof UpsertNetsDto
22100
21283
  */
22101
- 'name': string;
21284
+ 'name'?: string;
22102
21285
  /**
22103
21286
  *
22104
21287
  * @type {boolean}
@@ -22328,87 +21511,6 @@ export interface UpsertProductPrintPolicyDto {
22328
21511
  */
22329
21512
  'printerId': number;
22330
21513
  }
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
-
22412
21514
  /**
22413
21515
  *
22414
21516
  * @export
@@ -22453,7 +21555,7 @@ export interface UpsertStripeDto {
22453
21555
  * @type {string}
22454
21556
  * @memberof UpsertStripeDto
22455
21557
  */
22456
- 'name': string;
21558
+ 'name'?: string;
22457
21559
  /**
22458
21560
  *
22459
21561
  * @type {boolean}
@@ -22484,7 +21586,7 @@ export interface UpsertVivaDto {
22484
21586
  * @type {string}
22485
21587
  * @memberof UpsertVivaDto
22486
21588
  */
22487
- 'name': string;
21589
+ 'name'?: string;
22488
21590
  /**
22489
21591
  *
22490
21592
  * @type {boolean}
@@ -22886,43 +21988,6 @@ export interface VivaConfigDto {
22886
21988
  */
22887
21989
  'additionalAmount'?: number;
22888
21990
  }
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
- }
22926
21991
  /**
22927
21992
  *
22928
21993
  * @export
@@ -24321,37 +23386,6 @@ export interface WorldlineAmountsRequestDto {
24321
23386
  */
24322
23387
  'tip'?: number;
24323
23388
  }
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
- }
24355
23389
  /**
24356
23390
  *
24357
23391
  * @export
@@ -28494,51 +27528,6 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
28494
27528
  options: localVarRequestOptions,
28495
27529
  };
28496
27530
  },
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
- },
28542
27531
  /**
28543
27532
  *
28544
27533
  * @summary Manual sync trigger
@@ -28926,72 +27915,21 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
28926
27915
  },
28927
27916
  /**
28928
27917
  *
28929
- * @summary Set active provider and upsert its credentials
27918
+ * @summary Upsert Stripe payment config
28930
27919
  * @param {number} businessId
28931
27920
  * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
28932
- * @param {UpsertProvidersDto} upsertProvidersDto
27921
+ * @param {UpsertStripeDto} upsertStripeDto
28933
27922
  * @param {*} [options] Override http request option.
28934
27923
  * @throws {RequiredError}
28935
27924
  */
28936
- configUpsertProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27925
+ configUpsertStripe: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertStripeDto: UpsertStripeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28937
27926
  // verify required parameter 'businessId' is not null or undefined
28938
- assertParamExists('configUpsertProviders', 'businessId', businessId)
27927
+ assertParamExists('configUpsertStripe', 'businessId', businessId)
28939
27928
  // verify required parameter 'xAppX' is not null or undefined
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`
27929
+ assertParamExists('configUpsertStripe', 'xAppX', xAppX)
27930
+ // verify required parameter 'upsertStripeDto' is not null or undefined
27931
+ assertParamExists('configUpsertStripe', 'upsertStripeDto', upsertStripeDto)
27932
+ const localVarPath = `/api/v1/config-management/business/{businessId}/config/stripe`
28995
27933
  .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
28996
27934
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28997
27935
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29100,18 +28038,6 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
29100
28038
  const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
29101
28039
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29102
28040
  },
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
- },
29115
28041
  /**
29116
28042
  *
29117
28043
  * @summary Manual sync trigger
@@ -29213,19 +28139,6 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
29213
28139
  const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options);
29214
28140
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29215
28141
  },
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
- },
29229
28142
  /**
29230
28143
  *
29231
28144
  * @summary Upsert Stripe payment config
@@ -29274,17 +28187,6 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
29274
28187
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
29275
28188
  return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
29276
28189
  },
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
- },
29288
28190
  /**
29289
28191
  *
29290
28192
  * @summary Manual sync trigger
@@ -29378,18 +28280,6 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
29378
28280
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
29379
28281
  return localVarFp.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(axios, basePath));
29380
28282
  },
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
- },
29393
28283
  /**
29394
28284
  *
29395
28285
  * @summary Upsert Stripe payment config
@@ -29435,17 +28325,6 @@ export interface ConfigManagementApiInterface {
29435
28325
  */
29436
28326
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
29437
28327
 
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
-
29449
28328
  /**
29450
28329
  *
29451
28330
  * @summary Manual sync trigger
@@ -29539,18 +28418,6 @@ export interface ConfigManagementApiInterface {
29539
28418
  */
29540
28419
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
29541
28420
 
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
-
29554
28421
  /**
29555
28422
  *
29556
28423
  * @summary Upsert Stripe payment config
@@ -29598,19 +28465,6 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
29598
28465
  return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
29599
28466
  }
29600
28467
 
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
-
29614
28468
  /**
29615
28469
  *
29616
28470
  * @summary Manual sync trigger
@@ -29720,20 +28574,6 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
29720
28574
  return ConfigManagementApiFp(this.configuration).configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(this.axios, this.basePath));
29721
28575
  }
29722
28576
 
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
-
29737
28577
  /**
29738
28578
  *
29739
28579
  * @summary Upsert Stripe payment config
@@ -38443,765 +37283,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
38443
37283
  }
38444
37284
 
38445
37285
 
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
-
39205
37286
  /**
39206
37287
  * PaymentSessionApi - axios parameter creator
39207
37288
  * @export