@munchi_oy/core 1.9.67 → 1.9.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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,130 @@ 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
+ * Within-tier refund order (seed-only; lower = earlier). null → sorted last in tier.
2503
+ * @type {number}
2504
+ * @memberof CatalogMethodDtoCapabilities
2505
+ */
2506
+ 'refundPriorityRank': number | null;
2507
+ /**
2508
+ *
2509
+ * @type {PaymentCheckoutFlow}
2510
+ * @memberof CatalogMethodDtoCapabilities
2511
+ */
2512
+ 'checkoutFlow': PaymentCheckoutFlow;
2513
+ /**
2514
+ *
2515
+ * @type {PaymentReportingBucket}
2516
+ * @memberof CatalogMethodDtoCapabilities
2517
+ */
2518
+ 'reportingBucket': PaymentReportingBucket;
2519
+ /**
2520
+ * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
2521
+ * @type {string}
2522
+ * @memberof CatalogMethodDtoCapabilities
2523
+ */
2524
+ 'tone': string;
2525
+ /**
2526
+ * Whether a refund is sent back to the original card via the terminal SDK.
2527
+ * @type {boolean}
2528
+ * @memberof CatalogMethodDtoCapabilities
2529
+ */
2530
+ 'refundToCard': boolean;
2531
+ /**
2532
+ * Whether refunding this method needs an active card provider (Viva/Nets).
2533
+ * @type {boolean}
2534
+ * @memberof CatalogMethodDtoCapabilities
2535
+ */
2536
+ 'requiresProvider': boolean;
2537
+ /**
2538
+ * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
2539
+ * @type {boolean}
2540
+ * @memberof CatalogMethodDtoCapabilities
2541
+ */
2542
+ 'requiresManualResolution': boolean;
2543
+ /**
2544
+ * Whether receipts/print should show a forfeited (leftover) amount line.
2545
+ * @type {boolean}
2546
+ * @memberof CatalogMethodDtoCapabilities
2547
+ */
2548
+ 'shouldDisplayForfeitedAmount': boolean;
2549
+ /**
2550
+ * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
2551
+ * @type {string}
2552
+ * @memberof CatalogMethodDtoCapabilities
2553
+ */
2554
+ 'notificationIssuer': string | null;
2555
+ /**
2556
+ * Whether this method is checkout-only (cannot be a manual refund target).
2557
+ * @type {boolean}
2558
+ * @memberof CatalogMethodDtoCapabilities
2559
+ */
2560
+ 'checkoutOnly': boolean;
2561
+ }
2562
+
2563
+
2396
2564
  /**
2397
2565
  *
2398
2566
  * @export
@@ -2769,11 +2937,11 @@ export interface CompletedStepDto {
2769
2937
  */
2770
2938
  'sourceTransactionId': string | null;
2771
2939
  /**
2772
- *
2773
- * @type {PaymentMethod}
2940
+ * Payment method code (dynamic, per-business catalog)
2941
+ * @type {string}
2774
2942
  * @memberof CompletedStepDto
2775
2943
  */
2776
- 'type'?: PaymentMethod;
2944
+ 'type'?: string | null;
2777
2945
  /**
2778
2946
  * Refund ID from the payment provider
2779
2947
  * @type {string}
@@ -3970,6 +4138,104 @@ export interface CreateNetsTerminalPaymentDto {
3970
4138
  }
3971
4139
 
3972
4140
 
4141
+ /**
4142
+ *
4143
+ * @export
4144
+ * @interface CreatePaymentMethodDto
4145
+ */
4146
+ export interface CreatePaymentMethodDto {
4147
+ /**
4148
+ * Attach an existing catalog method by its code (mutually exclusive with name+type).
4149
+ * @type {string}
4150
+ * @memberof CreatePaymentMethodDto
4151
+ */
4152
+ 'code'?: string;
4153
+ /**
4154
+ * Display name for a new custom method; required with type when code is absent.
4155
+ * @type {string}
4156
+ * @memberof CreatePaymentMethodDto
4157
+ */
4158
+ 'name'?: string;
4159
+ /**
4160
+ * 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.
4161
+ * @type {string}
4162
+ * @memberof CreatePaymentMethodDto
4163
+ */
4164
+ 'type'?: string;
4165
+ /**
4166
+ * Per-business name override.
4167
+ * @type {string}
4168
+ * @memberof CreatePaymentMethodDto
4169
+ */
4170
+ 'customName'?: string;
4171
+ /**
4172
+ * Per-business logo URL.
4173
+ * @type {string}
4174
+ * @memberof CreatePaymentMethodDto
4175
+ */
4176
+ 'logo'?: string;
4177
+ /**
4178
+ * Per-business description.
4179
+ * @type {string}
4180
+ * @memberof CreatePaymentMethodDto
4181
+ */
4182
+ 'description'?: string;
4183
+ /**
4184
+ * Parent method code for grouped vouchers.
4185
+ * @type {string}
4186
+ * @memberof CreatePaymentMethodDto
4187
+ */
4188
+ 'parentCode'?: string;
4189
+ /**
4190
+ * Preset amounts/denominations (vouchers).
4191
+ * @type {Array<number>}
4192
+ * @memberof CreatePaymentMethodDto
4193
+ */
4194
+ 'amounts'?: Array<number>;
4195
+ /**
4196
+ * Minimum order amount required to use this method.
4197
+ * @type {number}
4198
+ * @memberof CreatePaymentMethodDto
4199
+ */
4200
+ 'minimumCheckoutAmount'?: number;
4201
+ /**
4202
+ * Whether the method is enabled (defaults to true).
4203
+ * @type {boolean}
4204
+ * @memberof CreatePaymentMethodDto
4205
+ */
4206
+ 'enable'?: boolean;
4207
+ /**
4208
+ *
4209
+ * @type {CreatePaymentMethodDtoGiftCardCredentials}
4210
+ * @memberof CreatePaymentMethodDto
4211
+ */
4212
+ 'giftCardCredentials'?: CreatePaymentMethodDtoGiftCardCredentials;
4213
+ }
4214
+ /**
4215
+ * Only for a 3rd-party gift card: username/password (URLs come from constants).
4216
+ * @export
4217
+ * @interface CreatePaymentMethodDtoGiftCardCredentials
4218
+ */
4219
+ export interface CreatePaymentMethodDtoGiftCardCredentials {
4220
+ /**
4221
+ * 3rd-party gift card account username.
4222
+ * @type {string}
4223
+ * @memberof CreatePaymentMethodDtoGiftCardCredentials
4224
+ */
4225
+ 'username'?: string;
4226
+ /**
4227
+ * 3rd-party gift card account password.
4228
+ * @type {string}
4229
+ * @memberof CreatePaymentMethodDtoGiftCardCredentials
4230
+ */
4231
+ 'password'?: string;
4232
+ /**
4233
+ * Unique POS device id for the 3rd-party gift card provider.
4234
+ * @type {string}
4235
+ * @memberof CreatePaymentMethodDtoGiftCardCredentials
4236
+ */
4237
+ 'uniquePosDeviceId'?: string;
4238
+ }
3973
4239
  /**
3974
4240
  *
3975
4241
  * @export
@@ -6241,6 +6507,56 @@ export interface GiftCardCredentialsDto {
6241
6507
  */
6242
6508
  'password'?: string;
6243
6509
  }
6510
+ /**
6511
+ *
6512
+ * @export
6513
+ * @interface GiftCardCredentialsInputDto
6514
+ */
6515
+ export interface GiftCardCredentialsInputDto {
6516
+ /**
6517
+ * 3rd-party gift card account username.
6518
+ * @type {string}
6519
+ * @memberof GiftCardCredentialsInputDto
6520
+ */
6521
+ 'username'?: string;
6522
+ /**
6523
+ * 3rd-party gift card account password.
6524
+ * @type {string}
6525
+ * @memberof GiftCardCredentialsInputDto
6526
+ */
6527
+ 'password'?: string;
6528
+ /**
6529
+ * Unique POS device id for the 3rd-party gift card provider.
6530
+ * @type {string}
6531
+ * @memberof GiftCardCredentialsInputDto
6532
+ */
6533
+ 'uniquePosDeviceId'?: string;
6534
+ }
6535
+ /**
6536
+ *
6537
+ * @export
6538
+ * @interface GiftCardCredentialsViewDto
6539
+ */
6540
+ export interface GiftCardCredentialsViewDto {
6541
+ /**
6542
+ * Saved 3rd-party gift card username.
6543
+ * @type {string}
6544
+ * @memberof GiftCardCredentialsViewDto
6545
+ */
6546
+ 'username': string | null;
6547
+ /**
6548
+ * Saved 3rd-party gift card password.
6549
+ * @type {string}
6550
+ * @memberof GiftCardCredentialsViewDto
6551
+ */
6552
+ 'password': string | null;
6553
+ /**
6554
+ * Saved unique POS device id for the 3rd-party gift card provider.
6555
+ * @type {string}
6556
+ * @memberof GiftCardCredentialsViewDto
6557
+ */
6558
+ 'uniquePosDeviceId': string | null;
6559
+ }
6244
6560
  /**
6245
6561
  *
6246
6562
  * @export
@@ -9653,6 +9969,49 @@ export interface NetsCancelTransactionDto {
9653
9969
  */
9654
9970
  'businessId': number;
9655
9971
  }
9972
+ /**
9973
+ *
9974
+ * @export
9975
+ * @interface NetsConfigResponseDto
9976
+ */
9977
+ export interface NetsConfigResponseDto {
9978
+ /**
9979
+ * Whether the Nets integration is active.
9980
+ * @type {boolean}
9981
+ * @memberof NetsConfigResponseDto
9982
+ */
9983
+ 'isActive': boolean;
9984
+ /**
9985
+ * Display name.
9986
+ * @type {string}
9987
+ * @memberof NetsConfigResponseDto
9988
+ */
9989
+ 'name': string | null;
9990
+ /**
9991
+ * Nets secret key.
9992
+ * @type {string}
9993
+ * @memberof NetsConfigResponseDto
9994
+ */
9995
+ 'secretKey': string | null;
9996
+ /**
9997
+ * Nets public key.
9998
+ * @type {string}
9999
+ * @memberof NetsConfigResponseDto
10000
+ */
10001
+ 'publicKey': string | null;
10002
+ /**
10003
+ * Nets OAuth client id.
10004
+ * @type {string}
10005
+ * @memberof NetsConfigResponseDto
10006
+ */
10007
+ 'clientId': string | null;
10008
+ /**
10009
+ * Nets OAuth client secret.
10010
+ * @type {string}
10011
+ * @memberof NetsConfigResponseDto
10012
+ */
10013
+ 'clientSecret': string | null;
10014
+ }
9656
10015
  /**
9657
10016
  *
9658
10017
  * @export
@@ -11828,6 +12187,24 @@ export interface PaginationDto {
11828
12187
  */
11829
12188
  'totalPages': number;
11830
12189
  }
12190
+ /**
12191
+ *
12192
+ * @export
12193
+ * @enum {string}
12194
+ */
12195
+
12196
+ export const PaymentCheckoutFlow = {
12197
+ TerminalCard: 'terminal_card',
12198
+ CardManual: 'card_manual',
12199
+ Cash: 'cash',
12200
+ GroupedVoucher: 'grouped_voucher',
12201
+ GiftCard: 'gift_card',
12202
+ Static: 'static'
12203
+ } as const;
12204
+
12205
+ export type PaymentCheckoutFlow = typeof PaymentCheckoutFlow[keyof typeof PaymentCheckoutFlow];
12206
+
12207
+
11831
12208
  /**
11832
12209
  *
11833
12210
  * @export
@@ -12057,12 +12434,106 @@ export const PaymentMethod = {
12057
12434
  Trade: 'Trade',
12058
12435
  Exchange: 'Exchange',
12059
12436
  Tilisiirto: 'Tilisiirto',
12060
- LoyaltyPoints: 'LoyaltyPoints'
12437
+ LoyaltyPoints: 'LoyaltyPoints',
12438
+ DiningByAmex: 'DiningByAmex'
12061
12439
  } as const;
12062
12440
 
12063
12441
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
12064
12442
 
12065
12443
 
12444
+ /**
12445
+ *
12446
+ * @export
12447
+ * @interface PaymentMethodCapabilitiesDto
12448
+ */
12449
+ export interface PaymentMethodCapabilitiesDto {
12450
+ /**
12451
+ * Whether this method can be refunded at all.
12452
+ * @type {boolean}
12453
+ * @memberof PaymentMethodCapabilitiesDto
12454
+ */
12455
+ 'refundable': boolean;
12456
+ /**
12457
+ * Whether a refund can be split across this method and others.
12458
+ * @type {boolean}
12459
+ * @memberof PaymentMethodCapabilitiesDto
12460
+ */
12461
+ 'refundSplittable': boolean;
12462
+ /**
12463
+ * Whether the customer may choose this method as a refund target.
12464
+ * @type {boolean}
12465
+ * @memberof PaymentMethodCapabilitiesDto
12466
+ */
12467
+ 'refundChoiceEligible': boolean;
12468
+ /**
12469
+ * Refund allocation order (lower = refunded first); null when not refundable.
12470
+ * @type {number}
12471
+ * @memberof PaymentMethodCapabilitiesDto
12472
+ */
12473
+ 'refundPriorityTier': number | null;
12474
+ /**
12475
+ * Within-tier refund order (seed-only; lower = earlier). null → sorted last in tier.
12476
+ * @type {number}
12477
+ * @memberof PaymentMethodCapabilitiesDto
12478
+ */
12479
+ 'refundPriorityRank': number | null;
12480
+ /**
12481
+ *
12482
+ * @type {PaymentCheckoutFlow}
12483
+ * @memberof PaymentMethodCapabilitiesDto
12484
+ */
12485
+ 'checkoutFlow': PaymentCheckoutFlow;
12486
+ /**
12487
+ *
12488
+ * @type {PaymentReportingBucket}
12489
+ * @memberof PaymentMethodCapabilitiesDto
12490
+ */
12491
+ 'reportingBucket': PaymentReportingBucket;
12492
+ /**
12493
+ * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
12494
+ * @type {string}
12495
+ * @memberof PaymentMethodCapabilitiesDto
12496
+ */
12497
+ 'tone': string;
12498
+ /**
12499
+ * Whether a refund is sent back to the original card via the terminal SDK.
12500
+ * @type {boolean}
12501
+ * @memberof PaymentMethodCapabilitiesDto
12502
+ */
12503
+ 'refundToCard': boolean;
12504
+ /**
12505
+ * Whether refunding this method needs an active card provider (Viva/Nets).
12506
+ * @type {boolean}
12507
+ * @memberof PaymentMethodCapabilitiesDto
12508
+ */
12509
+ 'requiresProvider': boolean;
12510
+ /**
12511
+ * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
12512
+ * @type {boolean}
12513
+ * @memberof PaymentMethodCapabilitiesDto
12514
+ */
12515
+ 'requiresManualResolution': boolean;
12516
+ /**
12517
+ * Whether receipts/print should show a forfeited (leftover) amount line.
12518
+ * @type {boolean}
12519
+ * @memberof PaymentMethodCapabilitiesDto
12520
+ */
12521
+ 'shouldDisplayForfeitedAmount': boolean;
12522
+ /**
12523
+ * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
12524
+ * @type {string}
12525
+ * @memberof PaymentMethodCapabilitiesDto
12526
+ */
12527
+ 'notificationIssuer': string | null;
12528
+ /**
12529
+ * Whether this method is checkout-only (cannot be a manual refund target).
12530
+ * @type {boolean}
12531
+ * @memberof PaymentMethodCapabilitiesDto
12532
+ */
12533
+ 'checkoutOnly': boolean;
12534
+ }
12535
+
12536
+
12066
12537
  /**
12067
12538
  *
12068
12539
  * @export
@@ -12380,6 +12851,258 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
12380
12851
  */
12381
12852
  'transactionId'?: string | null;
12382
12853
  }
12854
+ /**
12855
+ *
12856
+ * @export
12857
+ * @interface PaymentMethodDto
12858
+ */
12859
+ export interface PaymentMethodDto {
12860
+ /**
12861
+ * PaymentMethodOption id; use it for update/delete/reorder.
12862
+ * @type {string}
12863
+ * @memberof PaymentMethodDto
12864
+ */
12865
+ 'id': string;
12866
+ /**
12867
+ * Stable, immutable method code (catalog identity).
12868
+ * @type {string}
12869
+ * @memberof PaymentMethodDto
12870
+ */
12871
+ 'code': string;
12872
+ /**
12873
+ * Catalog type that drives this method\'s policy/behavior.
12874
+ * @type {string}
12875
+ * @memberof PaymentMethodDto
12876
+ */
12877
+ 'typeCode': string;
12878
+ /**
12879
+ * Display name: per-business customName, else catalog translation, else code.
12880
+ * @type {string}
12881
+ * @memberof PaymentMethodDto
12882
+ */
12883
+ 'label': string;
12884
+ /**
12885
+ * Per-business name override; null means inherit the catalog label.
12886
+ * @type {string}
12887
+ * @memberof PaymentMethodDto
12888
+ */
12889
+ 'customName': string | null;
12890
+ /**
12891
+ * Per-business logo URL.
12892
+ * @type {string}
12893
+ * @memberof PaymentMethodDto
12894
+ */
12895
+ 'logo': string | null;
12896
+ /**
12897
+ * Per-business description.
12898
+ * @type {string}
12899
+ * @memberof PaymentMethodDto
12900
+ */
12901
+ 'description': string | null;
12902
+ /**
12903
+ * Parent method code for grouped vouchers; null when standalone.
12904
+ * @type {string}
12905
+ * @memberof PaymentMethodDto
12906
+ */
12907
+ 'parentCode': string | null;
12908
+ /**
12909
+ * Sort order within the business (ascending).
12910
+ * @type {number}
12911
+ * @memberof PaymentMethodDto
12912
+ */
12913
+ 'position': number;
12914
+ /**
12915
+ * Whether the method is shown/usable (off = hidden, not deleted).
12916
+ * @type {boolean}
12917
+ * @memberof PaymentMethodDto
12918
+ */
12919
+ 'enable': boolean;
12920
+ /**
12921
+ * Preset amounts/denominations (vouchers).
12922
+ * @type {Array<number>}
12923
+ * @memberof PaymentMethodDto
12924
+ */
12925
+ 'amounts': Array<number>;
12926
+ /**
12927
+ * Minimum order amount required to use this method (decimal as string).
12928
+ * @type {string}
12929
+ * @memberof PaymentMethodDto
12930
+ */
12931
+ 'minimumCheckoutAmount': string | null;
12932
+ /**
12933
+ *
12934
+ * @type {PaymentMethodDtoCapabilities}
12935
+ * @memberof PaymentMethodDto
12936
+ */
12937
+ 'capabilities': PaymentMethodDtoCapabilities;
12938
+ /**
12939
+ * True for a 3rd-party gift card whose credentials the merchant can edit.
12940
+ * @type {boolean}
12941
+ * @memberof PaymentMethodDto
12942
+ */
12943
+ 'requiresCredentials': boolean;
12944
+ /**
12945
+ *
12946
+ * @type {PaymentMethodDtoGiftCardCredentials}
12947
+ * @memberof PaymentMethodDto
12948
+ */
12949
+ 'giftCardCredentials': PaymentMethodDtoGiftCardCredentials | null;
12950
+ /**
12951
+ * Auto-managed grouped children (e.g. Card→Debit/Credit, LunchVoucher→its vouchers). Empty for standalone methods.
12952
+ * @type {Array<PaymentMethodDto>}
12953
+ * @memberof PaymentMethodDto
12954
+ */
12955
+ 'children': Array<PaymentMethodDto>;
12956
+ }
12957
+ /**
12958
+ * Refund behavior resolved from the catalog type + per-method overrides.
12959
+ * @export
12960
+ * @interface PaymentMethodDtoCapabilities
12961
+ */
12962
+ export interface PaymentMethodDtoCapabilities {
12963
+ /**
12964
+ * Whether this method can be refunded at all.
12965
+ * @type {boolean}
12966
+ * @memberof PaymentMethodDtoCapabilities
12967
+ */
12968
+ 'refundable': boolean;
12969
+ /**
12970
+ * Whether a refund can be split across this method and others.
12971
+ * @type {boolean}
12972
+ * @memberof PaymentMethodDtoCapabilities
12973
+ */
12974
+ 'refundSplittable': boolean;
12975
+ /**
12976
+ * Whether the customer may choose this method as a refund target.
12977
+ * @type {boolean}
12978
+ * @memberof PaymentMethodDtoCapabilities
12979
+ */
12980
+ 'refundChoiceEligible': boolean;
12981
+ /**
12982
+ * Refund allocation order (lower = refunded first); null when not refundable.
12983
+ * @type {number}
12984
+ * @memberof PaymentMethodDtoCapabilities
12985
+ */
12986
+ 'refundPriorityTier': number | null;
12987
+ /**
12988
+ * Within-tier refund order (seed-only; lower = earlier). null → sorted last in tier.
12989
+ * @type {number}
12990
+ * @memberof PaymentMethodDtoCapabilities
12991
+ */
12992
+ 'refundPriorityRank': number | null;
12993
+ /**
12994
+ *
12995
+ * @type {PaymentCheckoutFlow}
12996
+ * @memberof PaymentMethodDtoCapabilities
12997
+ */
12998
+ 'checkoutFlow': PaymentCheckoutFlow;
12999
+ /**
13000
+ *
13001
+ * @type {PaymentReportingBucket}
13002
+ * @memberof PaymentMethodDtoCapabilities
13003
+ */
13004
+ 'reportingBucket': PaymentReportingBucket;
13005
+ /**
13006
+ * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
13007
+ * @type {string}
13008
+ * @memberof PaymentMethodDtoCapabilities
13009
+ */
13010
+ 'tone': string;
13011
+ /**
13012
+ * Whether a refund is sent back to the original card via the terminal SDK.
13013
+ * @type {boolean}
13014
+ * @memberof PaymentMethodDtoCapabilities
13015
+ */
13016
+ 'refundToCard': boolean;
13017
+ /**
13018
+ * Whether refunding this method needs an active card provider (Viva/Nets).
13019
+ * @type {boolean}
13020
+ * @memberof PaymentMethodDtoCapabilities
13021
+ */
13022
+ 'requiresProvider': boolean;
13023
+ /**
13024
+ * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
13025
+ * @type {boolean}
13026
+ * @memberof PaymentMethodDtoCapabilities
13027
+ */
13028
+ 'requiresManualResolution': boolean;
13029
+ /**
13030
+ * Whether receipts/print should show a forfeited (leftover) amount line.
13031
+ * @type {boolean}
13032
+ * @memberof PaymentMethodDtoCapabilities
13033
+ */
13034
+ 'shouldDisplayForfeitedAmount': boolean;
13035
+ /**
13036
+ * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
13037
+ * @type {string}
13038
+ * @memberof PaymentMethodDtoCapabilities
13039
+ */
13040
+ 'notificationIssuer': string | null;
13041
+ /**
13042
+ * Whether this method is checkout-only (cannot be a manual refund target).
13043
+ * @type {boolean}
13044
+ * @memberof PaymentMethodDtoCapabilities
13045
+ */
13046
+ 'checkoutOnly': boolean;
13047
+ }
13048
+
13049
+
13050
+ /**
13051
+ * Saved 3rd-party gift card credentials for pre-fill; null when not applicable.
13052
+ * @export
13053
+ * @interface PaymentMethodDtoGiftCardCredentials
13054
+ */
13055
+ export interface PaymentMethodDtoGiftCardCredentials {
13056
+ /**
13057
+ * Saved 3rd-party gift card username.
13058
+ * @type {string}
13059
+ * @memberof PaymentMethodDtoGiftCardCredentials
13060
+ */
13061
+ 'username': string | null;
13062
+ /**
13063
+ * Saved 3rd-party gift card password.
13064
+ * @type {string}
13065
+ * @memberof PaymentMethodDtoGiftCardCredentials
13066
+ */
13067
+ 'password': string | null;
13068
+ /**
13069
+ * Saved unique POS device id for the 3rd-party gift card provider.
13070
+ * @type {string}
13071
+ * @memberof PaymentMethodDtoGiftCardCredentials
13072
+ */
13073
+ 'uniquePosDeviceId': string | null;
13074
+ }
13075
+ /**
13076
+ *
13077
+ * @export
13078
+ * @interface PaymentMethodTypeDto
13079
+ */
13080
+ export interface PaymentMethodTypeDto {
13081
+ /**
13082
+ * Catalog type code (e.g. CARD, VOUCHER, GIFT_CARD).
13083
+ * @type {string}
13084
+ * @memberof PaymentMethodTypeDto
13085
+ */
13086
+ 'code': string;
13087
+ /**
13088
+ * Human-readable type label for display.
13089
+ * @type {string}
13090
+ * @memberof PaymentMethodTypeDto
13091
+ */
13092
+ 'label': string;
13093
+ /**
13094
+ * Short explanation of what this category means, to guide the user.
13095
+ * @type {string}
13096
+ * @memberof PaymentMethodTypeDto
13097
+ */
13098
+ 'description': string;
13099
+ /**
13100
+ * Whether methods of this type take preset amounts/denominations.
13101
+ * @type {boolean}
13102
+ * @memberof PaymentMethodTypeDto
13103
+ */
13104
+ 'supportsAmounts': boolean;
13105
+ }
12383
13106
  /**
12384
13107
  *
12385
13108
  * @export
@@ -12739,6 +13462,22 @@ export interface PaymentRefundLineAllocationDto {
12739
13462
  */
12740
13463
  'quantity': number;
12741
13464
  }
13465
+ /**
13466
+ *
13467
+ * @export
13468
+ * @enum {string}
13469
+ */
13470
+
13471
+ export const PaymentReportingBucket = {
13472
+ Cards: 'cards',
13473
+ EdenredVoucher: 'edenred_voucher',
13474
+ SmartumVoucher: 'smartum_voucher',
13475
+ Other: 'other'
13476
+ } as const;
13477
+
13478
+ export type PaymentReportingBucket = typeof PaymentReportingBucket[keyof typeof PaymentReportingBucket];
13479
+
13480
+
12742
13481
  /**
12743
13482
  *
12744
13483
  * @export
@@ -16651,6 +17390,45 @@ export interface ProviderSupportedIntegrationsDto {
16651
17390
  }
16652
17391
 
16653
17392
 
17393
+ /**
17394
+ *
17395
+ * @export
17396
+ * @interface ProvidersConfigResponseDto
17397
+ */
17398
+ export interface ProvidersConfigResponseDto {
17399
+ /**
17400
+ *
17401
+ * @type {PaymentProvider}
17402
+ * @memberof ProvidersConfigResponseDto
17403
+ */
17404
+ 'selectedPaymentProvider': PaymentProvider | null;
17405
+ /**
17406
+ *
17407
+ * @type {VivaConfigResponseDto}
17408
+ * @memberof ProvidersConfigResponseDto
17409
+ */
17410
+ 'viva': VivaConfigResponseDto | null;
17411
+ /**
17412
+ *
17413
+ * @type {NetsConfigResponseDto}
17414
+ * @memberof ProvidersConfigResponseDto
17415
+ */
17416
+ 'nets': NetsConfigResponseDto | null;
17417
+ /**
17418
+ *
17419
+ * @type {StripeConfigResponseDto}
17420
+ * @memberof ProvidersConfigResponseDto
17421
+ */
17422
+ 'stripe': StripeConfigResponseDto | null;
17423
+ /**
17424
+ *
17425
+ * @type {WorldlineConfigResponseDto}
17426
+ * @memberof ProvidersConfigResponseDto
17427
+ */
17428
+ 'worldline': WorldlineConfigResponseDto | null;
17429
+ }
17430
+
17431
+
16654
17432
  /**
16655
17433
  *
16656
17434
  * @export
@@ -16678,6 +17456,25 @@ export const PubSubTarget = {
16678
17456
  export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
16679
17457
 
16680
17458
 
17459
+ /**
17460
+ *
17461
+ * @export
17462
+ * @interface RankItemDto
17463
+ */
17464
+ export interface RankItemDto {
17465
+ /**
17466
+ * PaymentMethodOption id to position.
17467
+ * @type {string}
17468
+ * @memberof RankItemDto
17469
+ */
17470
+ 'id': string;
17471
+ /**
17472
+ * New zero-based sort position.
17473
+ * @type {number}
17474
+ * @memberof RankItemDto
17475
+ */
17476
+ 'rank': number;
17477
+ }
16681
17478
  /**
16682
17479
  *
16683
17480
  * @export
@@ -18720,6 +19517,37 @@ export const Status = {
18720
19517
  export type Status = typeof Status[keyof typeof Status];
18721
19518
 
18722
19519
 
19520
+ /**
19521
+ *
19522
+ * @export
19523
+ * @interface StripeConfigResponseDto
19524
+ */
19525
+ export interface StripeConfigResponseDto {
19526
+ /**
19527
+ * Whether the Stripe integration is active.
19528
+ * @type {boolean}
19529
+ * @memberof StripeConfigResponseDto
19530
+ */
19531
+ 'isActive': boolean;
19532
+ /**
19533
+ * Display name.
19534
+ * @type {string}
19535
+ * @memberof StripeConfigResponseDto
19536
+ */
19537
+ 'name': string | null;
19538
+ /**
19539
+ * Stripe secret key.
19540
+ * @type {string}
19541
+ * @memberof StripeConfigResponseDto
19542
+ */
19543
+ 'secretKey': string | null;
19544
+ /**
19545
+ * Stripe location id.
19546
+ * @type {string}
19547
+ * @memberof StripeConfigResponseDto
19548
+ */
19549
+ 'locationId': string | null;
19550
+ }
18723
19551
  /**
18724
19552
  *
18725
19553
  * @export
@@ -21130,6 +21958,86 @@ export interface UpdateInvoiceCompanyDto {
21130
21958
  */
21131
21959
  'address'?: string;
21132
21960
  }
21961
+ /**
21962
+ *
21963
+ * @export
21964
+ * @interface UpdatePaymentMethodOptionDto
21965
+ */
21966
+ export interface UpdatePaymentMethodOptionDto {
21967
+ /**
21968
+ * Per-business name override.
21969
+ * @type {string}
21970
+ * @memberof UpdatePaymentMethodOptionDto
21971
+ */
21972
+ 'customName'?: string;
21973
+ /**
21974
+ * Per-business logo URL.
21975
+ * @type {string}
21976
+ * @memberof UpdatePaymentMethodOptionDto
21977
+ */
21978
+ 'logo'?: string;
21979
+ /**
21980
+ * Per-business description.
21981
+ * @type {string}
21982
+ * @memberof UpdatePaymentMethodOptionDto
21983
+ */
21984
+ 'description'?: string;
21985
+ /**
21986
+ * Parent method code for grouped vouchers.
21987
+ * @type {string}
21988
+ * @memberof UpdatePaymentMethodOptionDto
21989
+ */
21990
+ 'parentCode'?: string;
21991
+ /**
21992
+ * Preset amounts/denominations (vouchers).
21993
+ * @type {Array<number>}
21994
+ * @memberof UpdatePaymentMethodOptionDto
21995
+ */
21996
+ 'amounts'?: Array<number>;
21997
+ /**
21998
+ * Minimum order amount required to use this method.
21999
+ * @type {number}
22000
+ * @memberof UpdatePaymentMethodOptionDto
22001
+ */
22002
+ 'minimumCheckoutAmount'?: number;
22003
+ /**
22004
+ * Whether the method is enabled.
22005
+ * @type {boolean}
22006
+ * @memberof UpdatePaymentMethodOptionDto
22007
+ */
22008
+ 'enable'?: boolean;
22009
+ /**
22010
+ *
22011
+ * @type {UpdatePaymentMethodOptionDtoGiftCardCredentials}
22012
+ * @memberof UpdatePaymentMethodOptionDto
22013
+ */
22014
+ 'giftCardCredentials'?: UpdatePaymentMethodOptionDtoGiftCardCredentials;
22015
+ }
22016
+ /**
22017
+ * Only for a 3rd-party gift card: username/password/posDeviceId (URLs are constants).
22018
+ * @export
22019
+ * @interface UpdatePaymentMethodOptionDtoGiftCardCredentials
22020
+ */
22021
+ export interface UpdatePaymentMethodOptionDtoGiftCardCredentials {
22022
+ /**
22023
+ * 3rd-party gift card account username.
22024
+ * @type {string}
22025
+ * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
22026
+ */
22027
+ 'username'?: string;
22028
+ /**
22029
+ * 3rd-party gift card account password.
22030
+ * @type {string}
22031
+ * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
22032
+ */
22033
+ 'password'?: string;
22034
+ /**
22035
+ * Unique POS device id for the 3rd-party gift card provider.
22036
+ * @type {string}
22037
+ * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
22038
+ */
22039
+ 'uniquePosDeviceId'?: string;
22040
+ }
21133
22041
  /**
21134
22042
  *
21135
22043
  * @export
@@ -21589,7 +22497,7 @@ export interface UpsertNetsDto {
21589
22497
  * @type {string}
21590
22498
  * @memberof UpsertNetsDto
21591
22499
  */
21592
- 'name'?: string;
22500
+ 'name': string;
21593
22501
  /**
21594
22502
  *
21595
22503
  * @type {boolean}
@@ -21737,7 +22645,8 @@ export const NameEnum = {
21737
22645
  Trade: 'Trade',
21738
22646
  Exchange: 'Exchange',
21739
22647
  Tilisiirto: 'Tilisiirto',
21740
- LoyaltyPoints: 'LoyaltyPoints'
22648
+ LoyaltyPoints: 'LoyaltyPoints',
22649
+ DiningByAmex: 'DiningByAmex'
21741
22650
  } as const;
21742
22651
 
21743
22652
  export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
@@ -21819,6 +22728,87 @@ export interface UpsertProductPrintPolicyDto {
21819
22728
  */
21820
22729
  'printerIds': Array<number>;
21821
22730
  }
22731
+ /**
22732
+ *
22733
+ * @export
22734
+ * @interface UpsertProvidersDto
22735
+ */
22736
+ export interface UpsertProvidersDto {
22737
+ /**
22738
+ *
22739
+ * @type {PaymentProvider}
22740
+ * @memberof UpsertProvidersDto
22741
+ */
22742
+ 'provider': PaymentProvider;
22743
+ /**
22744
+ *
22745
+ * @type {string}
22746
+ * @memberof UpsertProvidersDto
22747
+ */
22748
+ 'name': string;
22749
+ /**
22750
+ *
22751
+ * @type {boolean}
22752
+ * @memberof UpsertProvidersDto
22753
+ */
22754
+ 'isActive'?: boolean;
22755
+ /**
22756
+ * Viva merchant id.
22757
+ * @type {string}
22758
+ * @memberof UpsertProvidersDto
22759
+ */
22760
+ 'merchantId'?: string;
22761
+ /**
22762
+ * Viva source code.
22763
+ * @type {string}
22764
+ * @memberof UpsertProvidersDto
22765
+ */
22766
+ 'sourceCode'?: string;
22767
+ /**
22768
+ * Viva commission/surcharge rate.
22769
+ * @type {number}
22770
+ * @memberof UpsertProvidersDto
22771
+ */
22772
+ 'rate'?: number;
22773
+ /**
22774
+ * Viva additional amount.
22775
+ * @type {number}
22776
+ * @memberof UpsertProvidersDto
22777
+ */
22778
+ 'additionalAmount'?: number;
22779
+ /**
22780
+ * Nets / Stripe / Worldline secret key.
22781
+ * @type {string}
22782
+ * @memberof UpsertProvidersDto
22783
+ */
22784
+ 'secretKey'?: string;
22785
+ /**
22786
+ * Nets / Worldline public key.
22787
+ * @type {string}
22788
+ * @memberof UpsertProvidersDto
22789
+ */
22790
+ 'publicKey'?: string;
22791
+ /**
22792
+ * Nets OAuth client id.
22793
+ * @type {string}
22794
+ * @memberof UpsertProvidersDto
22795
+ */
22796
+ 'clientId'?: string;
22797
+ /**
22798
+ * Nets OAuth client secret.
22799
+ * @type {string}
22800
+ * @memberof UpsertProvidersDto
22801
+ */
22802
+ 'clientSecret'?: string;
22803
+ /**
22804
+ * Stripe location id.
22805
+ * @type {string}
22806
+ * @memberof UpsertProvidersDto
22807
+ */
22808
+ 'locationId'?: string;
22809
+ }
22810
+
22811
+
21822
22812
  /**
21823
22813
  *
21824
22814
  * @export
@@ -21863,7 +22853,7 @@ export interface UpsertStripeDto {
21863
22853
  * @type {string}
21864
22854
  * @memberof UpsertStripeDto
21865
22855
  */
21866
- 'name'?: string;
22856
+ 'name': string;
21867
22857
  /**
21868
22858
  *
21869
22859
  * @type {boolean}
@@ -21894,7 +22884,7 @@ export interface UpsertVivaDto {
21894
22884
  * @type {string}
21895
22885
  * @memberof UpsertVivaDto
21896
22886
  */
21897
- 'name'?: string;
22887
+ 'name': string;
21898
22888
  /**
21899
22889
  *
21900
22890
  * @type {boolean}
@@ -22296,6 +23286,43 @@ export interface VivaConfigDto {
22296
23286
  */
22297
23287
  'additionalAmount'?: number;
22298
23288
  }
23289
+ /**
23290
+ *
23291
+ * @export
23292
+ * @interface VivaConfigResponseDto
23293
+ */
23294
+ export interface VivaConfigResponseDto {
23295
+ /**
23296
+ * Whether the Viva integration is active.
23297
+ * @type {boolean}
23298
+ * @memberof VivaConfigResponseDto
23299
+ */
23300
+ 'isActive': boolean;
23301
+ /**
23302
+ * Display name.
23303
+ * @type {string}
23304
+ * @memberof VivaConfigResponseDto
23305
+ */
23306
+ 'name': string | null;
23307
+ /**
23308
+ * Viva merchant id.
23309
+ * @type {string}
23310
+ * @memberof VivaConfigResponseDto
23311
+ */
23312
+ 'merchantId': string | null;
23313
+ /**
23314
+ * Viva source code.
23315
+ * @type {string}
23316
+ * @memberof VivaConfigResponseDto
23317
+ */
23318
+ 'sourceCode': string | null;
23319
+ /**
23320
+ * Commission/surcharge rate.
23321
+ * @type {number}
23322
+ * @memberof VivaConfigResponseDto
23323
+ */
23324
+ 'rate': number | null;
23325
+ }
22299
23326
  /**
22300
23327
  *
22301
23328
  * @export
@@ -23779,6 +24806,37 @@ export interface WorldlineAmountsRequestDto {
23779
24806
  */
23780
24807
  'tip'?: number;
23781
24808
  }
24809
+ /**
24810
+ *
24811
+ * @export
24812
+ * @interface WorldlineConfigResponseDto
24813
+ */
24814
+ export interface WorldlineConfigResponseDto {
24815
+ /**
24816
+ * Whether the Worldline integration is active.
24817
+ * @type {boolean}
24818
+ * @memberof WorldlineConfigResponseDto
24819
+ */
24820
+ 'isActive': boolean;
24821
+ /**
24822
+ * Display name.
24823
+ * @type {string}
24824
+ * @memberof WorldlineConfigResponseDto
24825
+ */
24826
+ 'name': string | null;
24827
+ /**
24828
+ * Worldline secret key.
24829
+ * @type {string}
24830
+ * @memberof WorldlineConfigResponseDto
24831
+ */
24832
+ 'secretKey': string | null;
24833
+ /**
24834
+ * Worldline public key.
24835
+ * @type {string}
24836
+ * @memberof WorldlineConfigResponseDto
24837
+ */
24838
+ 'publicKey': string | null;
24839
+ }
23782
24840
  /**
23783
24841
  *
23784
24842
  * @export
@@ -28152,6 +29210,51 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
28152
29210
  options: localVarRequestOptions,
28153
29211
  };
28154
29212
  },
29213
+ /**
29214
+ *
29215
+ * @summary Get payment providers config
29216
+ * @param {number} businessId
29217
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29218
+ * @param {*} [options] Override http request option.
29219
+ * @throws {RequiredError}
29220
+ */
29221
+ configGetProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29222
+ // verify required parameter 'businessId' is not null or undefined
29223
+ assertParamExists('configGetProviders', 'businessId', businessId)
29224
+ // verify required parameter 'xAppX' is not null or undefined
29225
+ assertParamExists('configGetProviders', 'xAppX', xAppX)
29226
+ const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
29227
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
29228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29230
+ let baseOptions;
29231
+ if (configuration) {
29232
+ baseOptions = configuration.baseOptions;
29233
+ }
29234
+
29235
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29236
+ const localVarHeaderParameter = {} as any;
29237
+ const localVarQueryParameter = {} as any;
29238
+
29239
+ // authentication JWT-auth required
29240
+ // http bearer authentication required
29241
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29242
+
29243
+ if (xAppX != null) {
29244
+ localVarHeaderParameter['x-app-x'] = String(xAppX);
29245
+ }
29246
+
29247
+
29248
+
29249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29251
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29252
+
29253
+ return {
29254
+ url: toPathString(localVarUrlObj),
29255
+ options: localVarRequestOptions,
29256
+ };
29257
+ },
28155
29258
  /**
28156
29259
  *
28157
29260
  * @summary Manual sync trigger
@@ -28537,6 +29640,57 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
28537
29640
  options: localVarRequestOptions,
28538
29641
  };
28539
29642
  },
29643
+ /**
29644
+ *
29645
+ * @summary Set active provider and upsert its credentials
29646
+ * @param {number} businessId
29647
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29648
+ * @param {UpsertProvidersDto} upsertProvidersDto
29649
+ * @param {*} [options] Override http request option.
29650
+ * @throws {RequiredError}
29651
+ */
29652
+ configUpsertProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29653
+ // verify required parameter 'businessId' is not null or undefined
29654
+ assertParamExists('configUpsertProviders', 'businessId', businessId)
29655
+ // verify required parameter 'xAppX' is not null or undefined
29656
+ assertParamExists('configUpsertProviders', 'xAppX', xAppX)
29657
+ // verify required parameter 'upsertProvidersDto' is not null or undefined
29658
+ assertParamExists('configUpsertProviders', 'upsertProvidersDto', upsertProvidersDto)
29659
+ const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
29660
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
29661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29662
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29663
+ let baseOptions;
29664
+ if (configuration) {
29665
+ baseOptions = configuration.baseOptions;
29666
+ }
29667
+
29668
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29669
+ const localVarHeaderParameter = {} as any;
29670
+ const localVarQueryParameter = {} as any;
29671
+
29672
+ // authentication JWT-auth required
29673
+ // http bearer authentication required
29674
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29675
+
29676
+ if (xAppX != null) {
29677
+ localVarHeaderParameter['x-app-x'] = String(xAppX);
29678
+ }
29679
+
29680
+
29681
+
29682
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29683
+
29684
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29685
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29686
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29687
+ localVarRequestOptions.data = serializeDataIfNeeded(upsertProvidersDto, localVarRequestOptions, configuration)
29688
+
29689
+ return {
29690
+ url: toPathString(localVarUrlObj),
29691
+ options: localVarRequestOptions,
29692
+ };
29693
+ },
28540
29694
  /**
28541
29695
  *
28542
29696
  * @summary Upsert Stripe payment config
@@ -28662,6 +29816,18 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
28662
29816
  const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
28663
29817
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28664
29818
  },
29819
+ /**
29820
+ *
29821
+ * @summary Get payment providers config
29822
+ * @param {number} businessId
29823
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29824
+ * @param {*} [options] Override http request option.
29825
+ * @throws {RequiredError}
29826
+ */
29827
+ 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>> {
29828
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configGetProviders(businessId, xAppX, options);
29829
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29830
+ },
28665
29831
  /**
28666
29832
  *
28667
29833
  * @summary Manual sync trigger
@@ -28763,6 +29929,19 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
28763
29929
  const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options);
28764
29930
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28765
29931
  },
29932
+ /**
29933
+ *
29934
+ * @summary Set active provider and upsert its credentials
29935
+ * @param {number} businessId
29936
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29937
+ * @param {UpsertProvidersDto} upsertProvidersDto
29938
+ * @param {*} [options] Override http request option.
29939
+ * @throws {RequiredError}
29940
+ */
29941
+ 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>> {
29942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options);
29943
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29944
+ },
28766
29945
  /**
28767
29946
  *
28768
29947
  * @summary Upsert Stripe payment config
@@ -28811,6 +29990,17 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
28811
29990
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
28812
29991
  return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
28813
29992
  },
29993
+ /**
29994
+ *
29995
+ * @summary Get payment providers config
29996
+ * @param {number} businessId
29997
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29998
+ * @param {*} [options] Override http request option.
29999
+ * @throws {RequiredError}
30000
+ */
30001
+ configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: any): AxiosPromise<ProvidersConfigResponseDto> {
30002
+ return localVarFp.configGetProviders(businessId, xAppX, options).then((request) => request(axios, basePath));
30003
+ },
28814
30004
  /**
28815
30005
  *
28816
30006
  * @summary Manual sync trigger
@@ -28904,6 +30094,18 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
28904
30094
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
28905
30095
  return localVarFp.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(axios, basePath));
28906
30096
  },
30097
+ /**
30098
+ *
30099
+ * @summary Set active provider and upsert its credentials
30100
+ * @param {number} businessId
30101
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
30102
+ * @param {UpsertProvidersDto} upsertProvidersDto
30103
+ * @param {*} [options] Override http request option.
30104
+ * @throws {RequiredError}
30105
+ */
30106
+ configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: any): AxiosPromise<ProvidersConfigResponseDto> {
30107
+ return localVarFp.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(axios, basePath));
30108
+ },
28907
30109
  /**
28908
30110
  *
28909
30111
  * @summary Upsert Stripe payment config
@@ -28949,6 +30151,17 @@ export interface ConfigManagementApiInterface {
28949
30151
  */
28950
30152
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
28951
30153
 
30154
+ /**
30155
+ *
30156
+ * @summary Get payment providers config
30157
+ * @param {number} businessId
30158
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
30159
+ * @param {*} [options] Override http request option.
30160
+ * @throws {RequiredError}
30161
+ * @memberof ConfigManagementApiInterface
30162
+ */
30163
+ configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
30164
+
28952
30165
  /**
28953
30166
  *
28954
30167
  * @summary Manual sync trigger
@@ -29042,6 +30255,18 @@ export interface ConfigManagementApiInterface {
29042
30255
  */
29043
30256
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
29044
30257
 
30258
+ /**
30259
+ *
30260
+ * @summary Set active provider and upsert its credentials
30261
+ * @param {number} businessId
30262
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
30263
+ * @param {UpsertProvidersDto} upsertProvidersDto
30264
+ * @param {*} [options] Override http request option.
30265
+ * @throws {RequiredError}
30266
+ * @memberof ConfigManagementApiInterface
30267
+ */
30268
+ configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
30269
+
29045
30270
  /**
29046
30271
  *
29047
30272
  * @summary Upsert Stripe payment config
@@ -29089,6 +30314,19 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
29089
30314
  return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
29090
30315
  }
29091
30316
 
30317
+ /**
30318
+ *
30319
+ * @summary Get payment providers config
30320
+ * @param {number} businessId
30321
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
30322
+ * @param {*} [options] Override http request option.
30323
+ * @throws {RequiredError}
30324
+ * @memberof ConfigManagementApi
30325
+ */
30326
+ public configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig) {
30327
+ return ConfigManagementApiFp(this.configuration).configGetProviders(businessId, xAppX, options).then((request) => request(this.axios, this.basePath));
30328
+ }
30329
+
29092
30330
  /**
29093
30331
  *
29094
30332
  * @summary Manual sync trigger
@@ -29198,6 +30436,20 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
29198
30436
  return ConfigManagementApiFp(this.configuration).configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(this.axios, this.basePath));
29199
30437
  }
29200
30438
 
30439
+ /**
30440
+ *
30441
+ * @summary Set active provider and upsert its credentials
30442
+ * @param {number} businessId
30443
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
30444
+ * @param {UpsertProvidersDto} upsertProvidersDto
30445
+ * @param {*} [options] Override http request option.
30446
+ * @throws {RequiredError}
30447
+ * @memberof ConfigManagementApi
30448
+ */
30449
+ public configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig) {
30450
+ return ConfigManagementApiFp(this.configuration).configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(this.axios, this.basePath));
30451
+ }
30452
+
29201
30453
  /**
29202
30454
  *
29203
30455
  * @summary Upsert Stripe payment config
@@ -38377,6 +39629,765 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
38377
39629
  }
38378
39630
 
38379
39631
 
39632
+ /**
39633
+ * PaymentMethodsApi - axios parameter creator
39634
+ * @export
39635
+ */
39636
+ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
39637
+ return {
39638
+ /**
39639
+ *
39640
+ * @param {number} businessId
39641
+ * @param {ProviderEnum} channel
39642
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
39643
+ * @param {*} [options] Override http request option.
39644
+ * @throws {RequiredError}
39645
+ */
39646
+ createPaymentMethod: async (businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39647
+ // verify required parameter 'businessId' is not null or undefined
39648
+ assertParamExists('createPaymentMethod', 'businessId', businessId)
39649
+ // verify required parameter 'channel' is not null or undefined
39650
+ assertParamExists('createPaymentMethod', 'channel', channel)
39651
+ // verify required parameter 'createPaymentMethodDto' is not null or undefined
39652
+ assertParamExists('createPaymentMethod', 'createPaymentMethodDto', createPaymentMethodDto)
39653
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
39654
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39655
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
39656
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39657
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39658
+ let baseOptions;
39659
+ if (configuration) {
39660
+ baseOptions = configuration.baseOptions;
39661
+ }
39662
+
39663
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
39664
+ const localVarHeaderParameter = {} as any;
39665
+ const localVarQueryParameter = {} as any;
39666
+
39667
+
39668
+
39669
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39670
+
39671
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39672
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39673
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39674
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentMethodDto, localVarRequestOptions, configuration)
39675
+
39676
+ return {
39677
+ url: toPathString(localVarUrlObj),
39678
+ options: localVarRequestOptions,
39679
+ };
39680
+ },
39681
+ /**
39682
+ *
39683
+ * @param {number} businessId
39684
+ * @param {ProviderEnum} channel
39685
+ * @param {string} id
39686
+ * @param {*} [options] Override http request option.
39687
+ * @throws {RequiredError}
39688
+ */
39689
+ deletePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39690
+ // verify required parameter 'businessId' is not null or undefined
39691
+ assertParamExists('deletePaymentMethodOption', 'businessId', businessId)
39692
+ // verify required parameter 'channel' is not null or undefined
39693
+ assertParamExists('deletePaymentMethodOption', 'channel', channel)
39694
+ // verify required parameter 'id' is not null or undefined
39695
+ assertParamExists('deletePaymentMethodOption', 'id', id)
39696
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
39697
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39698
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
39699
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
39700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39702
+ let baseOptions;
39703
+ if (configuration) {
39704
+ baseOptions = configuration.baseOptions;
39705
+ }
39706
+
39707
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
39708
+ const localVarHeaderParameter = {} as any;
39709
+ const localVarQueryParameter = {} as any;
39710
+
39711
+
39712
+
39713
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39715
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39716
+
39717
+ return {
39718
+ url: toPathString(localVarUrlObj),
39719
+ options: localVarRequestOptions,
39720
+ };
39721
+ },
39722
+ /**
39723
+ *
39724
+ * @param {number} businessId
39725
+ * @param {ProviderEnum} channel
39726
+ * @param {any} [locale]
39727
+ * @param {*} [options] Override http request option.
39728
+ * @throws {RequiredError}
39729
+ */
39730
+ getCatalog: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39731
+ // verify required parameter 'businessId' is not null or undefined
39732
+ assertParamExists('getCatalog', 'businessId', businessId)
39733
+ // verify required parameter 'channel' is not null or undefined
39734
+ assertParamExists('getCatalog', 'channel', channel)
39735
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog`
39736
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39737
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
39738
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39739
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39740
+ let baseOptions;
39741
+ if (configuration) {
39742
+ baseOptions = configuration.baseOptions;
39743
+ }
39744
+
39745
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39746
+ const localVarHeaderParameter = {} as any;
39747
+ const localVarQueryParameter = {} as any;
39748
+
39749
+ if (locale !== undefined) {
39750
+ localVarQueryParameter['locale'] = locale;
39751
+ }
39752
+
39753
+
39754
+
39755
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39756
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39757
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39758
+
39759
+ return {
39760
+ url: toPathString(localVarUrlObj),
39761
+ options: localVarRequestOptions,
39762
+ };
39763
+ },
39764
+ /**
39765
+ *
39766
+ * @param {ProviderEnum} channel
39767
+ * @param {number} businessId
39768
+ * @param {any} [locale]
39769
+ * @param {*} [options] Override http request option.
39770
+ * @throws {RequiredError}
39771
+ */
39772
+ getGlobalCatalog: async (channel: ProviderEnum, businessId: number, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39773
+ // verify required parameter 'channel' is not null or undefined
39774
+ assertParamExists('getGlobalCatalog', 'channel', channel)
39775
+ // verify required parameter 'businessId' is not null or undefined
39776
+ assertParamExists('getGlobalCatalog', 'businessId', businessId)
39777
+ const localVarPath = `/api/v1/payment-methods/catalog`
39778
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
39779
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
39780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39781
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39782
+ let baseOptions;
39783
+ if (configuration) {
39784
+ baseOptions = configuration.baseOptions;
39785
+ }
39786
+
39787
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39788
+ const localVarHeaderParameter = {} as any;
39789
+ const localVarQueryParameter = {} as any;
39790
+
39791
+ if (locale !== undefined) {
39792
+ localVarQueryParameter['locale'] = locale;
39793
+ }
39794
+
39795
+
39796
+
39797
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39798
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39799
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39800
+
39801
+ return {
39802
+ url: toPathString(localVarUrlObj),
39803
+ options: localVarRequestOptions,
39804
+ };
39805
+ },
39806
+ /**
39807
+ *
39808
+ * @param {number} businessId
39809
+ * @param {ProviderEnum} channel
39810
+ * @param {any} [locale]
39811
+ * @param {*} [options] Override http request option.
39812
+ * @throws {RequiredError}
39813
+ */
39814
+ getPaymentMethods: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39815
+ // verify required parameter 'businessId' is not null or undefined
39816
+ assertParamExists('getPaymentMethods', 'businessId', businessId)
39817
+ // verify required parameter 'channel' is not null or undefined
39818
+ assertParamExists('getPaymentMethods', 'channel', channel)
39819
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
39820
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39821
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
39822
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39823
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39824
+ let baseOptions;
39825
+ if (configuration) {
39826
+ baseOptions = configuration.baseOptions;
39827
+ }
39828
+
39829
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39830
+ const localVarHeaderParameter = {} as any;
39831
+ const localVarQueryParameter = {} as any;
39832
+
39833
+ if (locale !== undefined) {
39834
+ localVarQueryParameter['locale'] = locale;
39835
+ }
39836
+
39837
+
39838
+
39839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39841
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39842
+
39843
+ return {
39844
+ url: toPathString(localVarUrlObj),
39845
+ options: localVarRequestOptions,
39846
+ };
39847
+ },
39848
+ /**
39849
+ *
39850
+ * @param {ProviderEnum} channel
39851
+ * @param {number} businessId
39852
+ * @param {*} [options] Override http request option.
39853
+ * @throws {RequiredError}
39854
+ */
39855
+ getTypes: async (channel: ProviderEnum, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39856
+ // verify required parameter 'channel' is not null or undefined
39857
+ assertParamExists('getTypes', 'channel', channel)
39858
+ // verify required parameter 'businessId' is not null or undefined
39859
+ assertParamExists('getTypes', 'businessId', businessId)
39860
+ const localVarPath = `/api/v1/payment-methods/types`
39861
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
39862
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
39863
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39864
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39865
+ let baseOptions;
39866
+ if (configuration) {
39867
+ baseOptions = configuration.baseOptions;
39868
+ }
39869
+
39870
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39871
+ const localVarHeaderParameter = {} as any;
39872
+ const localVarQueryParameter = {} as any;
39873
+
39874
+
39875
+
39876
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39877
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39878
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39879
+
39880
+ return {
39881
+ url: toPathString(localVarUrlObj),
39882
+ options: localVarRequestOptions,
39883
+ };
39884
+ },
39885
+ /**
39886
+ *
39887
+ * @param {number} businessId
39888
+ * @param {ProviderEnum} channel
39889
+ * @param {BulkRankDto} bulkRankDto
39890
+ * @param {*} [options] Override http request option.
39891
+ * @throws {RequiredError}
39892
+ */
39893
+ reorder: async (businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39894
+ // verify required parameter 'businessId' is not null or undefined
39895
+ assertParamExists('reorder', 'businessId', businessId)
39896
+ // verify required parameter 'channel' is not null or undefined
39897
+ assertParamExists('reorder', 'channel', channel)
39898
+ // verify required parameter 'bulkRankDto' is not null or undefined
39899
+ assertParamExists('reorder', 'bulkRankDto', bulkRankDto)
39900
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank`
39901
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39902
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
39903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39904
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39905
+ let baseOptions;
39906
+ if (configuration) {
39907
+ baseOptions = configuration.baseOptions;
39908
+ }
39909
+
39910
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
39911
+ const localVarHeaderParameter = {} as any;
39912
+ const localVarQueryParameter = {} as any;
39913
+
39914
+
39915
+
39916
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39917
+
39918
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39919
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39920
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39921
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkRankDto, localVarRequestOptions, configuration)
39922
+
39923
+ return {
39924
+ url: toPathString(localVarUrlObj),
39925
+ options: localVarRequestOptions,
39926
+ };
39927
+ },
39928
+ /**
39929
+ *
39930
+ * @param {number} businessId
39931
+ * @param {ProviderEnum} channel
39932
+ * @param {string} id
39933
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
39934
+ * @param {*} [options] Override http request option.
39935
+ * @throws {RequiredError}
39936
+ */
39937
+ updatePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39938
+ // verify required parameter 'businessId' is not null or undefined
39939
+ assertParamExists('updatePaymentMethodOption', 'businessId', businessId)
39940
+ // verify required parameter 'channel' is not null or undefined
39941
+ assertParamExists('updatePaymentMethodOption', 'channel', channel)
39942
+ // verify required parameter 'id' is not null or undefined
39943
+ assertParamExists('updatePaymentMethodOption', 'id', id)
39944
+ // verify required parameter 'updatePaymentMethodOptionDto' is not null or undefined
39945
+ assertParamExists('updatePaymentMethodOption', 'updatePaymentMethodOptionDto', updatePaymentMethodOptionDto)
39946
+ const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
39947
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39948
+ .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
39949
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
39950
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39951
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39952
+ let baseOptions;
39953
+ if (configuration) {
39954
+ baseOptions = configuration.baseOptions;
39955
+ }
39956
+
39957
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
39958
+ const localVarHeaderParameter = {} as any;
39959
+ const localVarQueryParameter = {} as any;
39960
+
39961
+
39962
+
39963
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39964
+
39965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39967
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39968
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePaymentMethodOptionDto, localVarRequestOptions, configuration)
39969
+
39970
+ return {
39971
+ url: toPathString(localVarUrlObj),
39972
+ options: localVarRequestOptions,
39973
+ };
39974
+ },
39975
+ }
39976
+ };
39977
+
39978
+ /**
39979
+ * PaymentMethodsApi - functional programming interface
39980
+ * @export
39981
+ */
39982
+ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
39983
+ const localVarAxiosParamCreator = PaymentMethodsApiAxiosParamCreator(configuration)
39984
+ return {
39985
+ /**
39986
+ *
39987
+ * @param {number} businessId
39988
+ * @param {ProviderEnum} channel
39989
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
39990
+ * @param {*} [options] Override http request option.
39991
+ * @throws {RequiredError}
39992
+ */
39993
+ async createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
39994
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(businessId, channel, createPaymentMethodDto, options);
39995
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39996
+ },
39997
+ /**
39998
+ *
39999
+ * @param {number} businessId
40000
+ * @param {ProviderEnum} channel
40001
+ * @param {string} id
40002
+ * @param {*} [options] Override http request option.
40003
+ * @throws {RequiredError}
40004
+ */
40005
+ async deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
40006
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethodOption(businessId, channel, id, options);
40007
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40008
+ },
40009
+ /**
40010
+ *
40011
+ * @param {number} businessId
40012
+ * @param {ProviderEnum} channel
40013
+ * @param {any} [locale]
40014
+ * @param {*} [options] Override http request option.
40015
+ * @throws {RequiredError}
40016
+ */
40017
+ async getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AvailablePaymentMethodDto>>> {
40018
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalog(businessId, channel, locale, options);
40019
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40020
+ },
40021
+ /**
40022
+ *
40023
+ * @param {ProviderEnum} channel
40024
+ * @param {number} businessId
40025
+ * @param {any} [locale]
40026
+ * @param {*} [options] Override http request option.
40027
+ * @throws {RequiredError}
40028
+ */
40029
+ async getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CatalogMethodDto>>> {
40030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalCatalog(channel, businessId, locale, options);
40031
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40032
+ },
40033
+ /**
40034
+ *
40035
+ * @param {number} businessId
40036
+ * @param {ProviderEnum} channel
40037
+ * @param {any} [locale]
40038
+ * @param {*} [options] Override http request option.
40039
+ * @throws {RequiredError}
40040
+ */
40041
+ async getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodDto>>> {
40042
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(businessId, channel, locale, options);
40043
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40044
+ },
40045
+ /**
40046
+ *
40047
+ * @param {ProviderEnum} channel
40048
+ * @param {number} businessId
40049
+ * @param {*} [options] Override http request option.
40050
+ * @throws {RequiredError}
40051
+ */
40052
+ async getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodTypeDto>>> {
40053
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTypes(channel, businessId, options);
40054
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40055
+ },
40056
+ /**
40057
+ *
40058
+ * @param {number} businessId
40059
+ * @param {ProviderEnum} channel
40060
+ * @param {BulkRankDto} bulkRankDto
40061
+ * @param {*} [options] Override http request option.
40062
+ * @throws {RequiredError}
40063
+ */
40064
+ async reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
40065
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reorder(businessId, channel, bulkRankDto, options);
40066
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40067
+ },
40068
+ /**
40069
+ *
40070
+ * @param {number} businessId
40071
+ * @param {ProviderEnum} channel
40072
+ * @param {string} id
40073
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
40074
+ * @param {*} [options] Override http request option.
40075
+ * @throws {RequiredError}
40076
+ */
40077
+ async updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
40078
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options);
40079
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40080
+ },
40081
+ }
40082
+ };
40083
+
40084
+ /**
40085
+ * PaymentMethodsApi - factory interface
40086
+ * @export
40087
+ */
40088
+ export const PaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
40089
+ const localVarFp = PaymentMethodsApiFp(configuration)
40090
+ return {
40091
+ /**
40092
+ *
40093
+ * @param {number} businessId
40094
+ * @param {ProviderEnum} channel
40095
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
40096
+ * @param {*} [options] Override http request option.
40097
+ * @throws {RequiredError}
40098
+ */
40099
+ createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: any): AxiosPromise<PaymentMethodDto> {
40100
+ return localVarFp.createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(axios, basePath));
40101
+ },
40102
+ /**
40103
+ *
40104
+ * @param {number} businessId
40105
+ * @param {ProviderEnum} channel
40106
+ * @param {string} id
40107
+ * @param {*} [options] Override http request option.
40108
+ * @throws {RequiredError}
40109
+ */
40110
+ deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: any): AxiosPromise<void> {
40111
+ return localVarFp.deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(axios, basePath));
40112
+ },
40113
+ /**
40114
+ *
40115
+ * @param {number} businessId
40116
+ * @param {ProviderEnum} channel
40117
+ * @param {any} [locale]
40118
+ * @param {*} [options] Override http request option.
40119
+ * @throws {RequiredError}
40120
+ */
40121
+ getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<AvailablePaymentMethodDto>> {
40122
+ return localVarFp.getCatalog(businessId, channel, locale, options).then((request) => request(axios, basePath));
40123
+ },
40124
+ /**
40125
+ *
40126
+ * @param {ProviderEnum} channel
40127
+ * @param {number} businessId
40128
+ * @param {any} [locale]
40129
+ * @param {*} [options] Override http request option.
40130
+ * @throws {RequiredError}
40131
+ */
40132
+ getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: any): AxiosPromise<Array<CatalogMethodDto>> {
40133
+ return localVarFp.getGlobalCatalog(channel, businessId, locale, options).then((request) => request(axios, basePath));
40134
+ },
40135
+ /**
40136
+ *
40137
+ * @param {number} businessId
40138
+ * @param {ProviderEnum} channel
40139
+ * @param {any} [locale]
40140
+ * @param {*} [options] Override http request option.
40141
+ * @throws {RequiredError}
40142
+ */
40143
+ getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<PaymentMethodDto>> {
40144
+ return localVarFp.getPaymentMethods(businessId, channel, locale, options).then((request) => request(axios, basePath));
40145
+ },
40146
+ /**
40147
+ *
40148
+ * @param {ProviderEnum} channel
40149
+ * @param {number} businessId
40150
+ * @param {*} [options] Override http request option.
40151
+ * @throws {RequiredError}
40152
+ */
40153
+ getTypes(channel: ProviderEnum, businessId: number, options?: any): AxiosPromise<Array<PaymentMethodTypeDto>> {
40154
+ return localVarFp.getTypes(channel, businessId, options).then((request) => request(axios, basePath));
40155
+ },
40156
+ /**
40157
+ *
40158
+ * @param {number} businessId
40159
+ * @param {ProviderEnum} channel
40160
+ * @param {BulkRankDto} bulkRankDto
40161
+ * @param {*} [options] Override http request option.
40162
+ * @throws {RequiredError}
40163
+ */
40164
+ reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: any): AxiosPromise<void> {
40165
+ return localVarFp.reorder(businessId, channel, bulkRankDto, options).then((request) => request(axios, basePath));
40166
+ },
40167
+ /**
40168
+ *
40169
+ * @param {number} businessId
40170
+ * @param {ProviderEnum} channel
40171
+ * @param {string} id
40172
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
40173
+ * @param {*} [options] Override http request option.
40174
+ * @throws {RequiredError}
40175
+ */
40176
+ updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: any): AxiosPromise<PaymentMethodDto> {
40177
+ return localVarFp.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(axios, basePath));
40178
+ },
40179
+ };
40180
+ };
40181
+
40182
+ /**
40183
+ * PaymentMethodsApi - interface
40184
+ * @export
40185
+ * @interface PaymentMethodsApi
40186
+ */
40187
+ export interface PaymentMethodsApiInterface {
40188
+ /**
40189
+ *
40190
+ * @param {number} businessId
40191
+ * @param {ProviderEnum} channel
40192
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
40193
+ * @param {*} [options] Override http request option.
40194
+ * @throws {RequiredError}
40195
+ * @memberof PaymentMethodsApiInterface
40196
+ */
40197
+ createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
40198
+
40199
+ /**
40200
+ *
40201
+ * @param {number} businessId
40202
+ * @param {ProviderEnum} channel
40203
+ * @param {string} id
40204
+ * @param {*} [options] Override http request option.
40205
+ * @throws {RequiredError}
40206
+ * @memberof PaymentMethodsApiInterface
40207
+ */
40208
+ deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): AxiosPromise<void>;
40209
+
40210
+ /**
40211
+ *
40212
+ * @param {number} businessId
40213
+ * @param {ProviderEnum} channel
40214
+ * @param {any} [locale]
40215
+ * @param {*} [options] Override http request option.
40216
+ * @throws {RequiredError}
40217
+ * @memberof PaymentMethodsApiInterface
40218
+ */
40219
+ getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<AvailablePaymentMethodDto>>;
40220
+
40221
+ /**
40222
+ *
40223
+ * @param {ProviderEnum} channel
40224
+ * @param {number} businessId
40225
+ * @param {any} [locale]
40226
+ * @param {*} [options] Override http request option.
40227
+ * @throws {RequiredError}
40228
+ * @memberof PaymentMethodsApiInterface
40229
+ */
40230
+ getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<CatalogMethodDto>>;
40231
+
40232
+ /**
40233
+ *
40234
+ * @param {number} businessId
40235
+ * @param {ProviderEnum} channel
40236
+ * @param {any} [locale]
40237
+ * @param {*} [options] Override http request option.
40238
+ * @throws {RequiredError}
40239
+ * @memberof PaymentMethodsApiInterface
40240
+ */
40241
+ getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodDto>>;
40242
+
40243
+ /**
40244
+ *
40245
+ * @param {ProviderEnum} channel
40246
+ * @param {number} businessId
40247
+ * @param {*} [options] Override http request option.
40248
+ * @throws {RequiredError}
40249
+ * @memberof PaymentMethodsApiInterface
40250
+ */
40251
+ getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodTypeDto>>;
40252
+
40253
+ /**
40254
+ *
40255
+ * @param {number} businessId
40256
+ * @param {ProviderEnum} channel
40257
+ * @param {BulkRankDto} bulkRankDto
40258
+ * @param {*} [options] Override http request option.
40259
+ * @throws {RequiredError}
40260
+ * @memberof PaymentMethodsApiInterface
40261
+ */
40262
+ reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): AxiosPromise<void>;
40263
+
40264
+ /**
40265
+ *
40266
+ * @param {number} businessId
40267
+ * @param {ProviderEnum} channel
40268
+ * @param {string} id
40269
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
40270
+ * @param {*} [options] Override http request option.
40271
+ * @throws {RequiredError}
40272
+ * @memberof PaymentMethodsApiInterface
40273
+ */
40274
+ updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
40275
+
40276
+ }
40277
+
40278
+ /**
40279
+ * PaymentMethodsApi - object-oriented interface
40280
+ * @export
40281
+ * @class PaymentMethodsApi
40282
+ * @extends {BaseAPI}
40283
+ */
40284
+ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInterface {
40285
+ /**
40286
+ *
40287
+ * @param {number} businessId
40288
+ * @param {ProviderEnum} channel
40289
+ * @param {CreatePaymentMethodDto} createPaymentMethodDto
40290
+ * @param {*} [options] Override http request option.
40291
+ * @throws {RequiredError}
40292
+ * @memberof PaymentMethodsApi
40293
+ */
40294
+ public createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig) {
40295
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(this.axios, this.basePath));
40296
+ }
40297
+
40298
+ /**
40299
+ *
40300
+ * @param {number} businessId
40301
+ * @param {ProviderEnum} channel
40302
+ * @param {string} id
40303
+ * @param {*} [options] Override http request option.
40304
+ * @throws {RequiredError}
40305
+ * @memberof PaymentMethodsApi
40306
+ */
40307
+ public deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig) {
40308
+ return PaymentMethodsApiFp(this.configuration).deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(this.axios, this.basePath));
40309
+ }
40310
+
40311
+ /**
40312
+ *
40313
+ * @param {number} businessId
40314
+ * @param {ProviderEnum} channel
40315
+ * @param {any} [locale]
40316
+ * @param {*} [options] Override http request option.
40317
+ * @throws {RequiredError}
40318
+ * @memberof PaymentMethodsApi
40319
+ */
40320
+ public getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
40321
+ return PaymentMethodsApiFp(this.configuration).getCatalog(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
40322
+ }
40323
+
40324
+ /**
40325
+ *
40326
+ * @param {ProviderEnum} channel
40327
+ * @param {number} businessId
40328
+ * @param {any} [locale]
40329
+ * @param {*} [options] Override http request option.
40330
+ * @throws {RequiredError}
40331
+ * @memberof PaymentMethodsApi
40332
+ */
40333
+ public getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig) {
40334
+ return PaymentMethodsApiFp(this.configuration).getGlobalCatalog(channel, businessId, locale, options).then((request) => request(this.axios, this.basePath));
40335
+ }
40336
+
40337
+ /**
40338
+ *
40339
+ * @param {number} businessId
40340
+ * @param {ProviderEnum} channel
40341
+ * @param {any} [locale]
40342
+ * @param {*} [options] Override http request option.
40343
+ * @throws {RequiredError}
40344
+ * @memberof PaymentMethodsApi
40345
+ */
40346
+ public getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
40347
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethods(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
40348
+ }
40349
+
40350
+ /**
40351
+ *
40352
+ * @param {ProviderEnum} channel
40353
+ * @param {number} businessId
40354
+ * @param {*} [options] Override http request option.
40355
+ * @throws {RequiredError}
40356
+ * @memberof PaymentMethodsApi
40357
+ */
40358
+ public getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig) {
40359
+ return PaymentMethodsApiFp(this.configuration).getTypes(channel, businessId, options).then((request) => request(this.axios, this.basePath));
40360
+ }
40361
+
40362
+ /**
40363
+ *
40364
+ * @param {number} businessId
40365
+ * @param {ProviderEnum} channel
40366
+ * @param {BulkRankDto} bulkRankDto
40367
+ * @param {*} [options] Override http request option.
40368
+ * @throws {RequiredError}
40369
+ * @memberof PaymentMethodsApi
40370
+ */
40371
+ public reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig) {
40372
+ return PaymentMethodsApiFp(this.configuration).reorder(businessId, channel, bulkRankDto, options).then((request) => request(this.axios, this.basePath));
40373
+ }
40374
+
40375
+ /**
40376
+ *
40377
+ * @param {number} businessId
40378
+ * @param {ProviderEnum} channel
40379
+ * @param {string} id
40380
+ * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
40381
+ * @param {*} [options] Override http request option.
40382
+ * @throws {RequiredError}
40383
+ * @memberof PaymentMethodsApi
40384
+ */
40385
+ public updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig) {
40386
+ return PaymentMethodsApiFp(this.configuration).updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(this.axios, this.basePath));
40387
+ }
40388
+ }
40389
+
40390
+
38380
40391
  /**
38381
40392
  * PaymentSessionApi - axios parameter creator
38382
40393
  * @export
@@ -40635,15 +42646,144 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40635
42646
  baseOptions = configuration.baseOptions;
40636
42647
  }
40637
42648
 
40638
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
42649
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
42650
+ const localVarHeaderParameter = {} as any;
42651
+ const localVarQueryParameter = {} as any;
42652
+
42653
+
42654
+
42655
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42656
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42657
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42658
+
42659
+ return {
42660
+ url: toPathString(localVarUrlObj),
42661
+ options: localVarRequestOptions,
42662
+ };
42663
+ },
42664
+ /**
42665
+ *
42666
+ * @summary
42667
+ * @param {string} businessId
42668
+ * @param {string} orderId
42669
+ * @param {string} refundId
42670
+ * @param {*} [options] Override http request option.
42671
+ * @throws {RequiredError}
42672
+ */
42673
+ cancelPlanV2: async (businessId: string, orderId: string, refundId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42674
+ // verify required parameter 'businessId' is not null or undefined
42675
+ assertParamExists('cancelPlanV2', 'businessId', businessId)
42676
+ // verify required parameter 'orderId' is not null or undefined
42677
+ assertParamExists('cancelPlanV2', 'orderId', orderId)
42678
+ // verify required parameter 'refundId' is not null or undefined
42679
+ assertParamExists('cancelPlanV2', 'refundId', refundId)
42680
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/cancel`
42681
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
42682
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
42683
+ .replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
42684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42685
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42686
+ let baseOptions;
42687
+ if (configuration) {
42688
+ baseOptions = configuration.baseOptions;
42689
+ }
42690
+
42691
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
42692
+ const localVarHeaderParameter = {} as any;
42693
+ const localVarQueryParameter = {} as any;
42694
+
42695
+
42696
+
42697
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42698
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42699
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42700
+
42701
+ return {
42702
+ url: toPathString(localVarUrlObj),
42703
+ options: localVarRequestOptions,
42704
+ };
42705
+ },
42706
+ /**
42707
+ *
42708
+ * @param {string} businessId
42709
+ * @param {string} orderId
42710
+ * @param {CreateRefundPlanDto} createRefundPlanDto
42711
+ * @param {*} [options] Override http request option.
42712
+ * @throws {RequiredError}
42713
+ */
42714
+ createRefundPlan: async (businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42715
+ // verify required parameter 'businessId' is not null or undefined
42716
+ assertParamExists('createRefundPlan', 'businessId', businessId)
42717
+ // verify required parameter 'orderId' is not null or undefined
42718
+ assertParamExists('createRefundPlan', 'orderId', orderId)
42719
+ // verify required parameter 'createRefundPlanDto' is not null or undefined
42720
+ assertParamExists('createRefundPlan', 'createRefundPlanDto', createRefundPlanDto)
42721
+ const localVarPath = `/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan`
42722
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
42723
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
42724
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42725
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42726
+ let baseOptions;
42727
+ if (configuration) {
42728
+ baseOptions = configuration.baseOptions;
42729
+ }
42730
+
42731
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42732
+ const localVarHeaderParameter = {} as any;
42733
+ const localVarQueryParameter = {} as any;
42734
+
42735
+
42736
+
42737
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42738
+
42739
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42740
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42741
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42742
+ localVarRequestOptions.data = serializeDataIfNeeded(createRefundPlanDto, localVarRequestOptions, configuration)
42743
+
42744
+ return {
42745
+ url: toPathString(localVarUrlObj),
42746
+ options: localVarRequestOptions,
42747
+ };
42748
+ },
42749
+ /**
42750
+ *
42751
+ * @summary
42752
+ * @param {string} businessId
42753
+ * @param {string} orderId
42754
+ * @param {CreateRefundPlanDto} createRefundPlanDto
42755
+ * @param {*} [options] Override http request option.
42756
+ * @throws {RequiredError}
42757
+ */
42758
+ createRefundPlanV2: async (businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42759
+ // verify required parameter 'businessId' is not null or undefined
42760
+ assertParamExists('createRefundPlanV2', 'businessId', businessId)
42761
+ // verify required parameter 'orderId' is not null or undefined
42762
+ assertParamExists('createRefundPlanV2', 'orderId', orderId)
42763
+ // verify required parameter 'createRefundPlanDto' is not null or undefined
42764
+ assertParamExists('createRefundPlanV2', 'createRefundPlanDto', createRefundPlanDto)
42765
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan`
42766
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
42767
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
42768
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42769
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42770
+ let baseOptions;
42771
+ if (configuration) {
42772
+ baseOptions = configuration.baseOptions;
42773
+ }
42774
+
42775
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40639
42776
  const localVarHeaderParameter = {} as any;
40640
42777
  const localVarQueryParameter = {} as any;
40641
42778
 
40642
42779
 
40643
42780
 
42781
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42782
+
40644
42783
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40645
42784
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40646
42785
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42786
+ localVarRequestOptions.data = serializeDataIfNeeded(createRefundPlanDto, localVarRequestOptions, configuration)
40647
42787
 
40648
42788
  return {
40649
42789
  url: toPathString(localVarUrlObj),
@@ -40654,18 +42794,18 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40654
42794
  *
40655
42795
  * @param {string} businessId
40656
42796
  * @param {string} orderId
40657
- * @param {CreateRefundPlanDto} createRefundPlanDto
42797
+ * @param {any} status
40658
42798
  * @param {*} [options] Override http request option.
40659
42799
  * @throws {RequiredError}
40660
42800
  */
40661
- createRefundPlan: async (businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42801
+ getRefundPlan: async (businessId: string, orderId: string, status: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40662
42802
  // verify required parameter 'businessId' is not null or undefined
40663
- assertParamExists('createRefundPlan', 'businessId', businessId)
42803
+ assertParamExists('getRefundPlan', 'businessId', businessId)
40664
42804
  // verify required parameter 'orderId' is not null or undefined
40665
- assertParamExists('createRefundPlan', 'orderId', orderId)
40666
- // verify required parameter 'createRefundPlanDto' is not null or undefined
40667
- assertParamExists('createRefundPlan', 'createRefundPlanDto', createRefundPlanDto)
40668
- const localVarPath = `/api/v1/refunds/businesses/{businessId}/orders/{orderId}/plan`
42805
+ assertParamExists('getRefundPlan', 'orderId', orderId)
42806
+ // verify required parameter 'status' is not null or undefined
42807
+ assertParamExists('getRefundPlan', 'status', status)
42808
+ const localVarPath = `/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds`
40669
42809
  .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
40670
42810
  .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
40671
42811
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -40675,18 +42815,19 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40675
42815
  baseOptions = configuration.baseOptions;
40676
42816
  }
40677
42817
 
40678
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42818
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40679
42819
  const localVarHeaderParameter = {} as any;
40680
42820
  const localVarQueryParameter = {} as any;
40681
42821
 
42822
+ if (status !== undefined) {
42823
+ localVarQueryParameter['status'] = status;
42824
+ }
42825
+
40682
42826
 
40683
42827
 
40684
- localVarHeaderParameter['Content-Type'] = 'application/json';
40685
-
40686
42828
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40687
42829
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40688
42830
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40689
- localVarRequestOptions.data = serializeDataIfNeeded(createRefundPlanDto, localVarRequestOptions, configuration)
40690
42831
 
40691
42832
  return {
40692
42833
  url: toPathString(localVarUrlObj),
@@ -40695,20 +42836,21 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40695
42836
  },
40696
42837
  /**
40697
42838
  *
42839
+ * @summary
40698
42840
  * @param {string} businessId
40699
42841
  * @param {string} orderId
40700
42842
  * @param {any} status
40701
42843
  * @param {*} [options] Override http request option.
40702
42844
  * @throws {RequiredError}
40703
42845
  */
40704
- getRefundPlan: async (businessId: string, orderId: string, status: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42846
+ getRefundPlanV2: async (businessId: string, orderId: string, status: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40705
42847
  // verify required parameter 'businessId' is not null or undefined
40706
- assertParamExists('getRefundPlan', 'businessId', businessId)
42848
+ assertParamExists('getRefundPlanV2', 'businessId', businessId)
40707
42849
  // verify required parameter 'orderId' is not null or undefined
40708
- assertParamExists('getRefundPlan', 'orderId', orderId)
42850
+ assertParamExists('getRefundPlanV2', 'orderId', orderId)
40709
42851
  // verify required parameter 'status' is not null or undefined
40710
- assertParamExists('getRefundPlan', 'status', status)
40711
- const localVarPath = `/api/v1/refunds/businesses/{businessId}/orders/{orderId}/refunds`
42852
+ assertParamExists('getRefundPlanV2', 'status', status)
42853
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refunds`
40712
42854
  .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
40713
42855
  .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
40714
42856
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -40772,6 +42914,54 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40772
42914
 
40773
42915
 
40774
42916
 
42917
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42918
+
42919
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42920
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42921
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42922
+ localVarRequestOptions.data = serializeDataIfNeeded(completedStepDto, localVarRequestOptions, configuration)
42923
+
42924
+ return {
42925
+ url: toPathString(localVarUrlObj),
42926
+ options: localVarRequestOptions,
42927
+ };
42928
+ },
42929
+ /**
42930
+ *
42931
+ * @summary
42932
+ * @param {string} businessId
42933
+ * @param {string} orderId
42934
+ * @param {string} refundId
42935
+ * @param {CompletedStepDto} completedStepDto
42936
+ * @param {*} [options] Override http request option.
42937
+ * @throws {RequiredError}
42938
+ */
42939
+ recordRefundPlanV2: async (businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42940
+ // verify required parameter 'businessId' is not null or undefined
42941
+ assertParamExists('recordRefundPlanV2', 'businessId', businessId)
42942
+ // verify required parameter 'orderId' is not null or undefined
42943
+ assertParamExists('recordRefundPlanV2', 'orderId', orderId)
42944
+ // verify required parameter 'refundId' is not null or undefined
42945
+ assertParamExists('recordRefundPlanV2', 'refundId', refundId)
42946
+ // verify required parameter 'completedStepDto' is not null or undefined
42947
+ assertParamExists('recordRefundPlanV2', 'completedStepDto', completedStepDto)
42948
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/record`
42949
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
42950
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
42951
+ .replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
42952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42954
+ let baseOptions;
42955
+ if (configuration) {
42956
+ baseOptions = configuration.baseOptions;
42957
+ }
42958
+
42959
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42960
+ const localVarHeaderParameter = {} as any;
42961
+ const localVarQueryParameter = {} as any;
42962
+
42963
+
42964
+
40775
42965
  localVarHeaderParameter['Content-Type'] = 'application/json';
40776
42966
 
40777
42967
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -40819,6 +43009,51 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40819
43009
 
40820
43010
 
40821
43011
 
43012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43014
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43015
+
43016
+ return {
43017
+ url: toPathString(localVarUrlObj),
43018
+ options: localVarRequestOptions,
43019
+ };
43020
+ },
43021
+ /**
43022
+ *
43023
+ * @summary
43024
+ * @param {string} businessId
43025
+ * @param {string} orderId
43026
+ * @param {any} provider
43027
+ * @param {*} [options] Override http request option.
43028
+ * @throws {RequiredError}
43029
+ */
43030
+ refundOnlineOrderV2: async (businessId: string, orderId: string, provider: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43031
+ // verify required parameter 'businessId' is not null or undefined
43032
+ assertParamExists('refundOnlineOrderV2', 'businessId', businessId)
43033
+ // verify required parameter 'orderId' is not null or undefined
43034
+ assertParamExists('refundOnlineOrderV2', 'orderId', orderId)
43035
+ // verify required parameter 'provider' is not null or undefined
43036
+ assertParamExists('refundOnlineOrderV2', 'provider', provider)
43037
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/refund-online`
43038
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
43039
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
43040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43042
+ let baseOptions;
43043
+ if (configuration) {
43044
+ baseOptions = configuration.baseOptions;
43045
+ }
43046
+
43047
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43048
+ const localVarHeaderParameter = {} as any;
43049
+ const localVarQueryParameter = {} as any;
43050
+
43051
+ if (provider !== undefined) {
43052
+ localVarQueryParameter['provider'] = provider;
43053
+ }
43054
+
43055
+
43056
+
40822
43057
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40823
43058
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40824
43059
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -40863,6 +43098,54 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40863
43098
 
40864
43099
 
40865
43100
 
43101
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43102
+
43103
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43104
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43105
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43106
+ localVarRequestOptions.data = serializeDataIfNeeded(resolveChoiceDto, localVarRequestOptions, configuration)
43107
+
43108
+ return {
43109
+ url: toPathString(localVarUrlObj),
43110
+ options: localVarRequestOptions,
43111
+ };
43112
+ },
43113
+ /**
43114
+ *
43115
+ * @summary
43116
+ * @param {string} businessId
43117
+ * @param {string} orderId
43118
+ * @param {string} refundId
43119
+ * @param {ResolveChoiceDto} resolveChoiceDto
43120
+ * @param {*} [options] Override http request option.
43121
+ * @throws {RequiredError}
43122
+ */
43123
+ resolveRefundChoiceV2: async (businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43124
+ // verify required parameter 'businessId' is not null or undefined
43125
+ assertParamExists('resolveRefundChoiceV2', 'businessId', businessId)
43126
+ // verify required parameter 'orderId' is not null or undefined
43127
+ assertParamExists('resolveRefundChoiceV2', 'orderId', orderId)
43128
+ // verify required parameter 'refundId' is not null or undefined
43129
+ assertParamExists('resolveRefundChoiceV2', 'refundId', refundId)
43130
+ // verify required parameter 'resolveChoiceDto' is not null or undefined
43131
+ assertParamExists('resolveRefundChoiceV2', 'resolveChoiceDto', resolveChoiceDto)
43132
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/resolve-choice`
43133
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
43134
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
43135
+ .replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
43136
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43137
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43138
+ let baseOptions;
43139
+ if (configuration) {
43140
+ baseOptions = configuration.baseOptions;
43141
+ }
43142
+
43143
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43144
+ const localVarHeaderParameter = {} as any;
43145
+ const localVarQueryParameter = {} as any;
43146
+
43147
+
43148
+
40866
43149
  localVarHeaderParameter['Content-Type'] = 'application/json';
40867
43150
 
40868
43151
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -40907,6 +43190,48 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
40907
43190
 
40908
43191
 
40909
43192
 
43193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43195
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43196
+
43197
+ return {
43198
+ url: toPathString(localVarUrlObj),
43199
+ options: localVarRequestOptions,
43200
+ };
43201
+ },
43202
+ /**
43203
+ *
43204
+ * @summary
43205
+ * @param {string} businessId
43206
+ * @param {string} orderId
43207
+ * @param {string} refundId
43208
+ * @param {*} [options] Override http request option.
43209
+ * @throws {RequiredError}
43210
+ */
43211
+ startProcessPlanV2: async (businessId: string, orderId: string, refundId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43212
+ // verify required parameter 'businessId' is not null or undefined
43213
+ assertParamExists('startProcessPlanV2', 'businessId', businessId)
43214
+ // verify required parameter 'orderId' is not null or undefined
43215
+ assertParamExists('startProcessPlanV2', 'orderId', orderId)
43216
+ // verify required parameter 'refundId' is not null or undefined
43217
+ assertParamExists('startProcessPlanV2', 'refundId', refundId)
43218
+ const localVarPath = `/api/v2/refunds/businesses/{businessId}/orders/{orderId}/plan/{refundId}/start`
43219
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
43220
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
43221
+ .replace(`{${"refundId"}}`, encodeURIComponent(String(refundId)));
43222
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43223
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43224
+ let baseOptions;
43225
+ if (configuration) {
43226
+ baseOptions = configuration.baseOptions;
43227
+ }
43228
+
43229
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43230
+ const localVarHeaderParameter = {} as any;
43231
+ const localVarQueryParameter = {} as any;
43232
+
43233
+
43234
+
40910
43235
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40911
43236
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40912
43237
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -40938,6 +43263,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
40938
43263
  const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPlan(businessId, orderId, refundId, options);
40939
43264
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40940
43265
  },
43266
+ /**
43267
+ *
43268
+ * @summary
43269
+ * @param {string} businessId
43270
+ * @param {string} orderId
43271
+ * @param {string} refundId
43272
+ * @param {*} [options] Override http request option.
43273
+ * @throws {RequiredError}
43274
+ */
43275
+ async cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
43276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPlanV2(businessId, orderId, refundId, options);
43277
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43278
+ },
40941
43279
  /**
40942
43280
  *
40943
43281
  * @param {string} businessId
@@ -40950,6 +43288,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
40950
43288
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRefundPlan(businessId, orderId, createRefundPlanDto, options);
40951
43289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40952
43290
  },
43291
+ /**
43292
+ *
43293
+ * @summary
43294
+ * @param {string} businessId
43295
+ * @param {string} orderId
43296
+ * @param {CreateRefundPlanDto} createRefundPlanDto
43297
+ * @param {*} [options] Override http request option.
43298
+ * @throws {RequiredError}
43299
+ */
43300
+ async createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
43301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRefundPlanV2(businessId, orderId, createRefundPlanDto, options);
43302
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43303
+ },
40953
43304
  /**
40954
43305
  *
40955
43306
  * @param {string} businessId
@@ -40962,6 +43313,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
40962
43313
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRefundPlan(businessId, orderId, status, options);
40963
43314
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40964
43315
  },
43316
+ /**
43317
+ *
43318
+ * @summary
43319
+ * @param {string} businessId
43320
+ * @param {string} orderId
43321
+ * @param {any} status
43322
+ * @param {*} [options] Override http request option.
43323
+ * @throws {RequiredError}
43324
+ */
43325
+ async getRefundPlanV2(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RefundPlanDto>>> {
43326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRefundPlanV2(businessId, orderId, status, options);
43327
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43328
+ },
40965
43329
  /**
40966
43330
  *
40967
43331
  * @param {string} businessId
@@ -40975,6 +43339,20 @@ export const RefundsApiFp = function(configuration?: Configuration) {
40975
43339
  const localVarAxiosArgs = await localVarAxiosParamCreator.recordRefundPlan(businessId, orderId, refundId, completedStepDto, options);
40976
43340
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40977
43341
  },
43342
+ /**
43343
+ *
43344
+ * @summary
43345
+ * @param {string} businessId
43346
+ * @param {string} orderId
43347
+ * @param {string} refundId
43348
+ * @param {CompletedStepDto} completedStepDto
43349
+ * @param {*} [options] Override http request option.
43350
+ * @throws {RequiredError}
43351
+ */
43352
+ async recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
43353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recordRefundPlanV2(businessId, orderId, refundId, completedStepDto, options);
43354
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43355
+ },
40978
43356
  /**
40979
43357
  *
40980
43358
  * @param {string} businessId
@@ -40987,6 +43365,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
40987
43365
  const localVarAxiosArgs = await localVarAxiosParamCreator.refundOnlineOrder(businessId, orderId, provider, options);
40988
43366
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40989
43367
  },
43368
+ /**
43369
+ *
43370
+ * @summary
43371
+ * @param {string} businessId
43372
+ * @param {string} orderId
43373
+ * @param {any} provider
43374
+ * @param {*} [options] Override http request option.
43375
+ * @throws {RequiredError}
43376
+ */
43377
+ async refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
43378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refundOnlineOrderV2(businessId, orderId, provider, options);
43379
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43380
+ },
40990
43381
  /**
40991
43382
  *
40992
43383
  * @param {string} businessId
@@ -41000,6 +43391,20 @@ export const RefundsApiFp = function(configuration?: Configuration) {
41000
43391
  const localVarAxiosArgs = await localVarAxiosParamCreator.resolveRefundChoice(businessId, orderId, refundId, resolveChoiceDto, options);
41001
43392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41002
43393
  },
43394
+ /**
43395
+ *
43396
+ * @summary
43397
+ * @param {string} businessId
43398
+ * @param {string} orderId
43399
+ * @param {string} refundId
43400
+ * @param {ResolveChoiceDto} resolveChoiceDto
43401
+ * @param {*} [options] Override http request option.
43402
+ * @throws {RequiredError}
43403
+ */
43404
+ async resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
43405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resolveRefundChoiceV2(businessId, orderId, refundId, resolveChoiceDto, options);
43406
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43407
+ },
41003
43408
  /**
41004
43409
  *
41005
43410
  * @param {string} businessId
@@ -41012,6 +43417,19 @@ export const RefundsApiFp = function(configuration?: Configuration) {
41012
43417
  const localVarAxiosArgs = await localVarAxiosParamCreator.startProcessPlan(businessId, orderId, refundId, options);
41013
43418
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41014
43419
  },
43420
+ /**
43421
+ *
43422
+ * @summary
43423
+ * @param {string} businessId
43424
+ * @param {string} orderId
43425
+ * @param {string} refundId
43426
+ * @param {*} [options] Override http request option.
43427
+ * @throws {RequiredError}
43428
+ */
43429
+ async startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefundPlanDto>> {
43430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startProcessPlanV2(businessId, orderId, refundId, options);
43431
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43432
+ },
41015
43433
  }
41016
43434
  };
41017
43435
 
@@ -41033,6 +43451,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41033
43451
  cancelPlan(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<void> {
41034
43452
  return localVarFp.cancelPlan(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
41035
43453
  },
43454
+ /**
43455
+ *
43456
+ * @summary
43457
+ * @param {string} businessId
43458
+ * @param {string} orderId
43459
+ * @param {string} refundId
43460
+ * @param {*} [options] Override http request option.
43461
+ * @throws {RequiredError}
43462
+ */
43463
+ cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<void> {
43464
+ return localVarFp.cancelPlanV2(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
43465
+ },
41036
43466
  /**
41037
43467
  *
41038
43468
  * @param {string} businessId
@@ -41044,6 +43474,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41044
43474
  createRefundPlan(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: any): AxiosPromise<RefundPlanDto> {
41045
43475
  return localVarFp.createRefundPlan(businessId, orderId, createRefundPlanDto, options).then((request) => request(axios, basePath));
41046
43476
  },
43477
+ /**
43478
+ *
43479
+ * @summary
43480
+ * @param {string} businessId
43481
+ * @param {string} orderId
43482
+ * @param {CreateRefundPlanDto} createRefundPlanDto
43483
+ * @param {*} [options] Override http request option.
43484
+ * @throws {RequiredError}
43485
+ */
43486
+ createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: any): AxiosPromise<RefundPlanDto> {
43487
+ return localVarFp.createRefundPlanV2(businessId, orderId, createRefundPlanDto, options).then((request) => request(axios, basePath));
43488
+ },
41047
43489
  /**
41048
43490
  *
41049
43491
  * @param {string} businessId
@@ -41055,6 +43497,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41055
43497
  getRefundPlan(businessId: string, orderId: string, status: any, options?: any): AxiosPromise<Array<RefundPlanDto>> {
41056
43498
  return localVarFp.getRefundPlan(businessId, orderId, status, options).then((request) => request(axios, basePath));
41057
43499
  },
43500
+ /**
43501
+ *
43502
+ * @summary
43503
+ * @param {string} businessId
43504
+ * @param {string} orderId
43505
+ * @param {any} status
43506
+ * @param {*} [options] Override http request option.
43507
+ * @throws {RequiredError}
43508
+ */
43509
+ getRefundPlanV2(businessId: string, orderId: string, status: any, options?: any): AxiosPromise<Array<RefundPlanDto>> {
43510
+ return localVarFp.getRefundPlanV2(businessId, orderId, status, options).then((request) => request(axios, basePath));
43511
+ },
41058
43512
  /**
41059
43513
  *
41060
43514
  * @param {string} businessId
@@ -41067,6 +43521,19 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41067
43521
  recordRefundPlan(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: any): AxiosPromise<RefundPlanDto> {
41068
43522
  return localVarFp.recordRefundPlan(businessId, orderId, refundId, completedStepDto, options).then((request) => request(axios, basePath));
41069
43523
  },
43524
+ /**
43525
+ *
43526
+ * @summary
43527
+ * @param {string} businessId
43528
+ * @param {string} orderId
43529
+ * @param {string} refundId
43530
+ * @param {CompletedStepDto} completedStepDto
43531
+ * @param {*} [options] Override http request option.
43532
+ * @throws {RequiredError}
43533
+ */
43534
+ recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: any): AxiosPromise<RefundPlanDto> {
43535
+ return localVarFp.recordRefundPlanV2(businessId, orderId, refundId, completedStepDto, options).then((request) => request(axios, basePath));
43536
+ },
41070
43537
  /**
41071
43538
  *
41072
43539
  * @param {string} businessId
@@ -41078,6 +43545,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41078
43545
  refundOnlineOrder(businessId: string, orderId: string, provider: any, options?: any): AxiosPromise<void> {
41079
43546
  return localVarFp.refundOnlineOrder(businessId, orderId, provider, options).then((request) => request(axios, basePath));
41080
43547
  },
43548
+ /**
43549
+ *
43550
+ * @summary
43551
+ * @param {string} businessId
43552
+ * @param {string} orderId
43553
+ * @param {any} provider
43554
+ * @param {*} [options] Override http request option.
43555
+ * @throws {RequiredError}
43556
+ */
43557
+ refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: any): AxiosPromise<void> {
43558
+ return localVarFp.refundOnlineOrderV2(businessId, orderId, provider, options).then((request) => request(axios, basePath));
43559
+ },
41081
43560
  /**
41082
43561
  *
41083
43562
  * @param {string} businessId
@@ -41090,6 +43569,19 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41090
43569
  resolveRefundChoice(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: any): AxiosPromise<RefundPlanDto> {
41091
43570
  return localVarFp.resolveRefundChoice(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(axios, basePath));
41092
43571
  },
43572
+ /**
43573
+ *
43574
+ * @summary
43575
+ * @param {string} businessId
43576
+ * @param {string} orderId
43577
+ * @param {string} refundId
43578
+ * @param {ResolveChoiceDto} resolveChoiceDto
43579
+ * @param {*} [options] Override http request option.
43580
+ * @throws {RequiredError}
43581
+ */
43582
+ resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: any): AxiosPromise<RefundPlanDto> {
43583
+ return localVarFp.resolveRefundChoiceV2(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(axios, basePath));
43584
+ },
41093
43585
  /**
41094
43586
  *
41095
43587
  * @param {string} businessId
@@ -41101,6 +43593,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
41101
43593
  startProcessPlan(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<RefundPlanDto> {
41102
43594
  return localVarFp.startProcessPlan(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
41103
43595
  },
43596
+ /**
43597
+ *
43598
+ * @summary
43599
+ * @param {string} businessId
43600
+ * @param {string} orderId
43601
+ * @param {string} refundId
43602
+ * @param {*} [options] Override http request option.
43603
+ * @throws {RequiredError}
43604
+ */
43605
+ startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: any): AxiosPromise<RefundPlanDto> {
43606
+ return localVarFp.startProcessPlanV2(businessId, orderId, refundId, options).then((request) => request(axios, basePath));
43607
+ },
41104
43608
  };
41105
43609
  };
41106
43610
 
@@ -41121,6 +43625,18 @@ export interface RefundsApiInterface {
41121
43625
  */
41122
43626
  cancelPlan(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
41123
43627
 
43628
+ /**
43629
+ *
43630
+ * @summary
43631
+ * @param {string} businessId
43632
+ * @param {string} orderId
43633
+ * @param {string} refundId
43634
+ * @param {*} [options] Override http request option.
43635
+ * @throws {RequiredError}
43636
+ * @memberof RefundsApiInterface
43637
+ */
43638
+ cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
43639
+
41124
43640
  /**
41125
43641
  *
41126
43642
  * @param {string} businessId
@@ -41132,6 +43648,18 @@ export interface RefundsApiInterface {
41132
43648
  */
41133
43649
  createRefundPlan(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
41134
43650
 
43651
+ /**
43652
+ *
43653
+ * @summary
43654
+ * @param {string} businessId
43655
+ * @param {string} orderId
43656
+ * @param {CreateRefundPlanDto} createRefundPlanDto
43657
+ * @param {*} [options] Override http request option.
43658
+ * @throws {RequiredError}
43659
+ * @memberof RefundsApiInterface
43660
+ */
43661
+ createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
43662
+
41135
43663
  /**
41136
43664
  *
41137
43665
  * @param {string} businessId
@@ -41143,6 +43671,18 @@ export interface RefundsApiInterface {
41143
43671
  */
41144
43672
  getRefundPlan(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig): AxiosPromise<Array<RefundPlanDto>>;
41145
43673
 
43674
+ /**
43675
+ *
43676
+ * @summary
43677
+ * @param {string} businessId
43678
+ * @param {string} orderId
43679
+ * @param {any} status
43680
+ * @param {*} [options] Override http request option.
43681
+ * @throws {RequiredError}
43682
+ * @memberof RefundsApiInterface
43683
+ */
43684
+ getRefundPlanV2(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig): AxiosPromise<Array<RefundPlanDto>>;
43685
+
41146
43686
  /**
41147
43687
  *
41148
43688
  * @param {string} businessId
@@ -41155,6 +43695,19 @@ export interface RefundsApiInterface {
41155
43695
  */
41156
43696
  recordRefundPlan(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
41157
43697
 
43698
+ /**
43699
+ *
43700
+ * @summary
43701
+ * @param {string} businessId
43702
+ * @param {string} orderId
43703
+ * @param {string} refundId
43704
+ * @param {CompletedStepDto} completedStepDto
43705
+ * @param {*} [options] Override http request option.
43706
+ * @throws {RequiredError}
43707
+ * @memberof RefundsApiInterface
43708
+ */
43709
+ recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
43710
+
41158
43711
  /**
41159
43712
  *
41160
43713
  * @param {string} businessId
@@ -41166,6 +43719,18 @@ export interface RefundsApiInterface {
41166
43719
  */
41167
43720
  refundOnlineOrder(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig): AxiosPromise<void>;
41168
43721
 
43722
+ /**
43723
+ *
43724
+ * @summary
43725
+ * @param {string} businessId
43726
+ * @param {string} orderId
43727
+ * @param {any} provider
43728
+ * @param {*} [options] Override http request option.
43729
+ * @throws {RequiredError}
43730
+ * @memberof RefundsApiInterface
43731
+ */
43732
+ refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig): AxiosPromise<void>;
43733
+
41169
43734
  /**
41170
43735
  *
41171
43736
  * @param {string} businessId
@@ -41178,6 +43743,19 @@ export interface RefundsApiInterface {
41178
43743
  */
41179
43744
  resolveRefundChoice(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
41180
43745
 
43746
+ /**
43747
+ *
43748
+ * @summary
43749
+ * @param {string} businessId
43750
+ * @param {string} orderId
43751
+ * @param {string} refundId
43752
+ * @param {ResolveChoiceDto} resolveChoiceDto
43753
+ * @param {*} [options] Override http request option.
43754
+ * @throws {RequiredError}
43755
+ * @memberof RefundsApiInterface
43756
+ */
43757
+ resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
43758
+
41181
43759
  /**
41182
43760
  *
41183
43761
  * @param {string} businessId
@@ -41189,6 +43767,18 @@ export interface RefundsApiInterface {
41189
43767
  */
41190
43768
  startProcessPlan(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
41191
43769
 
43770
+ /**
43771
+ *
43772
+ * @summary
43773
+ * @param {string} businessId
43774
+ * @param {string} orderId
43775
+ * @param {string} refundId
43776
+ * @param {*} [options] Override http request option.
43777
+ * @throws {RequiredError}
43778
+ * @memberof RefundsApiInterface
43779
+ */
43780
+ startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig): AxiosPromise<RefundPlanDto>;
43781
+
41192
43782
  }
41193
43783
 
41194
43784
  /**
@@ -41211,6 +43801,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41211
43801
  return RefundsApiFp(this.configuration).cancelPlan(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
41212
43802
  }
41213
43803
 
43804
+ /**
43805
+ *
43806
+ * @summary
43807
+ * @param {string} businessId
43808
+ * @param {string} orderId
43809
+ * @param {string} refundId
43810
+ * @param {*} [options] Override http request option.
43811
+ * @throws {RequiredError}
43812
+ * @memberof RefundsApi
43813
+ */
43814
+ public cancelPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig) {
43815
+ return RefundsApiFp(this.configuration).cancelPlanV2(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
43816
+ }
43817
+
41214
43818
  /**
41215
43819
  *
41216
43820
  * @param {string} businessId
@@ -41224,6 +43828,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41224
43828
  return RefundsApiFp(this.configuration).createRefundPlan(businessId, orderId, createRefundPlanDto, options).then((request) => request(this.axios, this.basePath));
41225
43829
  }
41226
43830
 
43831
+ /**
43832
+ *
43833
+ * @summary
43834
+ * @param {string} businessId
43835
+ * @param {string} orderId
43836
+ * @param {CreateRefundPlanDto} createRefundPlanDto
43837
+ * @param {*} [options] Override http request option.
43838
+ * @throws {RequiredError}
43839
+ * @memberof RefundsApi
43840
+ */
43841
+ public createRefundPlanV2(businessId: string, orderId: string, createRefundPlanDto: CreateRefundPlanDto, options?: AxiosRequestConfig) {
43842
+ return RefundsApiFp(this.configuration).createRefundPlanV2(businessId, orderId, createRefundPlanDto, options).then((request) => request(this.axios, this.basePath));
43843
+ }
43844
+
41227
43845
  /**
41228
43846
  *
41229
43847
  * @param {string} businessId
@@ -41237,6 +43855,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41237
43855
  return RefundsApiFp(this.configuration).getRefundPlan(businessId, orderId, status, options).then((request) => request(this.axios, this.basePath));
41238
43856
  }
41239
43857
 
43858
+ /**
43859
+ *
43860
+ * @summary
43861
+ * @param {string} businessId
43862
+ * @param {string} orderId
43863
+ * @param {any} status
43864
+ * @param {*} [options] Override http request option.
43865
+ * @throws {RequiredError}
43866
+ * @memberof RefundsApi
43867
+ */
43868
+ public getRefundPlanV2(businessId: string, orderId: string, status: any, options?: AxiosRequestConfig) {
43869
+ return RefundsApiFp(this.configuration).getRefundPlanV2(businessId, orderId, status, options).then((request) => request(this.axios, this.basePath));
43870
+ }
43871
+
41240
43872
  /**
41241
43873
  *
41242
43874
  * @param {string} businessId
@@ -41251,6 +43883,21 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41251
43883
  return RefundsApiFp(this.configuration).recordRefundPlan(businessId, orderId, refundId, completedStepDto, options).then((request) => request(this.axios, this.basePath));
41252
43884
  }
41253
43885
 
43886
+ /**
43887
+ *
43888
+ * @summary
43889
+ * @param {string} businessId
43890
+ * @param {string} orderId
43891
+ * @param {string} refundId
43892
+ * @param {CompletedStepDto} completedStepDto
43893
+ * @param {*} [options] Override http request option.
43894
+ * @throws {RequiredError}
43895
+ * @memberof RefundsApi
43896
+ */
43897
+ public recordRefundPlanV2(businessId: string, orderId: string, refundId: string, completedStepDto: CompletedStepDto, options?: AxiosRequestConfig) {
43898
+ return RefundsApiFp(this.configuration).recordRefundPlanV2(businessId, orderId, refundId, completedStepDto, options).then((request) => request(this.axios, this.basePath));
43899
+ }
43900
+
41254
43901
  /**
41255
43902
  *
41256
43903
  * @param {string} businessId
@@ -41264,6 +43911,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41264
43911
  return RefundsApiFp(this.configuration).refundOnlineOrder(businessId, orderId, provider, options).then((request) => request(this.axios, this.basePath));
41265
43912
  }
41266
43913
 
43914
+ /**
43915
+ *
43916
+ * @summary
43917
+ * @param {string} businessId
43918
+ * @param {string} orderId
43919
+ * @param {any} provider
43920
+ * @param {*} [options] Override http request option.
43921
+ * @throws {RequiredError}
43922
+ * @memberof RefundsApi
43923
+ */
43924
+ public refundOnlineOrderV2(businessId: string, orderId: string, provider: any, options?: AxiosRequestConfig) {
43925
+ return RefundsApiFp(this.configuration).refundOnlineOrderV2(businessId, orderId, provider, options).then((request) => request(this.axios, this.basePath));
43926
+ }
43927
+
41267
43928
  /**
41268
43929
  *
41269
43930
  * @param {string} businessId
@@ -41278,6 +43939,21 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41278
43939
  return RefundsApiFp(this.configuration).resolveRefundChoice(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(this.axios, this.basePath));
41279
43940
  }
41280
43941
 
43942
+ /**
43943
+ *
43944
+ * @summary
43945
+ * @param {string} businessId
43946
+ * @param {string} orderId
43947
+ * @param {string} refundId
43948
+ * @param {ResolveChoiceDto} resolveChoiceDto
43949
+ * @param {*} [options] Override http request option.
43950
+ * @throws {RequiredError}
43951
+ * @memberof RefundsApi
43952
+ */
43953
+ public resolveRefundChoiceV2(businessId: string, orderId: string, refundId: string, resolveChoiceDto: ResolveChoiceDto, options?: AxiosRequestConfig) {
43954
+ return RefundsApiFp(this.configuration).resolveRefundChoiceV2(businessId, orderId, refundId, resolveChoiceDto, options).then((request) => request(this.axios, this.basePath));
43955
+ }
43956
+
41281
43957
  /**
41282
43958
  *
41283
43959
  * @param {string} businessId
@@ -41290,6 +43966,20 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
41290
43966
  public startProcessPlan(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig) {
41291
43967
  return RefundsApiFp(this.configuration).startProcessPlan(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
41292
43968
  }
43969
+
43970
+ /**
43971
+ *
43972
+ * @summary
43973
+ * @param {string} businessId
43974
+ * @param {string} orderId
43975
+ * @param {string} refundId
43976
+ * @param {*} [options] Override http request option.
43977
+ * @throws {RequiredError}
43978
+ * @memberof RefundsApi
43979
+ */
43980
+ public startProcessPlanV2(businessId: string, orderId: string, refundId: string, options?: AxiosRequestConfig) {
43981
+ return RefundsApiFp(this.configuration).startProcessPlanV2(businessId, orderId, refundId, options).then((request) => request(this.axios, this.basePath));
43982
+ }
41293
43983
  }
41294
43984
 
41295
43985