@munchi_oy/core 1.9.55 → 1.9.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/generated/api.ts CHANGED
@@ -464,50 +464,6 @@ export const AutonomousVehicleType = {
464
464
  export type AutonomousVehicleType = typeof AutonomousVehicleType[keyof typeof AutonomousVehicleType];
465
465
 
466
466
 
467
- /**
468
- *
469
- * @export
470
- * @interface AvailablePaymentMethodDto
471
- */
472
- export interface AvailablePaymentMethodDto {
473
- /**
474
- * Catalog method code to attach.
475
- * @type {string}
476
- * @memberof AvailablePaymentMethodDto
477
- */
478
- 'code': string;
479
- /**
480
- * Catalog type that drives the method\'s policy.
481
- * @type {string}
482
- * @memberof AvailablePaymentMethodDto
483
- */
484
- 'typeCode': string;
485
- /**
486
- * Resolved display name for the catalog entry.
487
- * @type {string}
488
- * @memberof AvailablePaymentMethodDto
489
- */
490
- 'label': string;
491
- /**
492
- * True for a 3rd-party gift card that needs username/password/posDeviceId.
493
- * @type {boolean}
494
- * @memberof AvailablePaymentMethodDto
495
- */
496
- 'requiresCredentials': boolean;
497
- }
498
- /**
499
- *
500
- * @export
501
- * @interface BulkRankDto
502
- */
503
- export interface BulkRankDto {
504
- /**
505
- * Only the items whose position changed (zero-based ranks).
506
- * @type {Array<RankItemDto>}
507
- * @memberof BulkRankDto
508
- */
509
- 'items': Array<RankItemDto>;
510
- }
511
467
  /**
512
468
  *
513
469
  * @export
@@ -2437,112 +2393,6 @@ export interface CashSessionTotalsDto {
2437
2393
  */
2438
2394
  'cashOut': number;
2439
2395
  }
2440
- /**
2441
- *
2442
- * @export
2443
- * @interface CatalogMethodDto
2444
- */
2445
- export interface CatalogMethodDto {
2446
- /**
2447
- * Stable, immutable method code (catalog identity).
2448
- * @type {string}
2449
- * @memberof CatalogMethodDto
2450
- */
2451
- 'code': string;
2452
- /**
2453
- * Catalog type that drives this method\'s behavior.
2454
- * @type {string}
2455
- * @memberof CatalogMethodDto
2456
- */
2457
- 'typeCode': string;
2458
- /**
2459
- * Resolved display label for this code.
2460
- * @type {string}
2461
- * @memberof CatalogMethodDto
2462
- */
2463
- 'label': string;
2464
- /**
2465
- *
2466
- * @type {CatalogMethodDtoCapabilities}
2467
- * @memberof CatalogMethodDto
2468
- */
2469
- 'capabilities': CatalogMethodDtoCapabilities;
2470
- }
2471
- /**
2472
- * Behavior resolved from the catalog type + per-method overrides.
2473
- * @export
2474
- * @interface CatalogMethodDtoCapabilities
2475
- */
2476
- export interface CatalogMethodDtoCapabilities {
2477
- /**
2478
- * Whether this method can be refunded at all.
2479
- * @type {boolean}
2480
- * @memberof CatalogMethodDtoCapabilities
2481
- */
2482
- 'refundable': boolean;
2483
- /**
2484
- * Whether a refund can be split across this method and others.
2485
- * @type {boolean}
2486
- * @memberof CatalogMethodDtoCapabilities
2487
- */
2488
- 'refundSplittable': boolean;
2489
- /**
2490
- * Whether the customer may choose this method as a refund target.
2491
- * @type {boolean}
2492
- * @memberof CatalogMethodDtoCapabilities
2493
- */
2494
- 'refundChoiceEligible': boolean;
2495
- /**
2496
- * Refund allocation order (lower = refunded first); null when not refundable.
2497
- * @type {number}
2498
- * @memberof CatalogMethodDtoCapabilities
2499
- */
2500
- 'refundPriorityTier': number | null;
2501
- /**
2502
- *
2503
- * @type {PaymentCheckoutFlow}
2504
- * @memberof CatalogMethodDtoCapabilities
2505
- */
2506
- 'checkoutFlow': PaymentCheckoutFlow;
2507
- /**
2508
- * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
2509
- * @type {string}
2510
- * @memberof CatalogMethodDtoCapabilities
2511
- */
2512
- 'tone': string;
2513
- /**
2514
- * Whether a refund is sent back to the original card via the terminal SDK.
2515
- * @type {boolean}
2516
- * @memberof CatalogMethodDtoCapabilities
2517
- */
2518
- 'refundToCard': boolean;
2519
- /**
2520
- * Whether refunding this method needs an active card provider (Viva/Nets).
2521
- * @type {boolean}
2522
- * @memberof CatalogMethodDtoCapabilities
2523
- */
2524
- 'requiresProvider': boolean;
2525
- /**
2526
- * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
2527
- * @type {boolean}
2528
- * @memberof CatalogMethodDtoCapabilities
2529
- */
2530
- 'requiresManualResolution': boolean;
2531
- /**
2532
- * Whether receipts/print should show a forfeited (leftover) amount line.
2533
- * @type {boolean}
2534
- * @memberof CatalogMethodDtoCapabilities
2535
- */
2536
- 'shouldDisplayForfeitedAmount': boolean;
2537
- /**
2538
- * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
2539
- * @type {string}
2540
- * @memberof CatalogMethodDtoCapabilities
2541
- */
2542
- 'notificationIssuer': string | null;
2543
- }
2544
-
2545
-
2546
2396
  /**
2547
2397
  *
2548
2398
  * @export
@@ -4114,104 +3964,6 @@ export interface CreateNetsTerminalPaymentDto {
4114
3964
  }
4115
3965
 
4116
3966
 
4117
- /**
4118
- *
4119
- * @export
4120
- * @interface CreatePaymentMethodDto
4121
- */
4122
- export interface CreatePaymentMethodDto {
4123
- /**
4124
- * Attach an existing catalog method by its code (mutually exclusive with name+type).
4125
- * @type {string}
4126
- * @memberof CreatePaymentMethodDto
4127
- */
4128
- 'code'?: string;
4129
- /**
4130
- * Display name for a new custom method; required with type when code is absent.
4131
- * @type {string}
4132
- * @memberof CreatePaymentMethodDto
4133
- */
4134
- 'name'?: string;
4135
- /**
4136
- * Catalog type code for a new custom method (any seeded PaymentMethodType, e.g. CARD, VOUCHER, GIFT_CARD, MANUAL); required with name when code is absent.
4137
- * @type {string}
4138
- * @memberof CreatePaymentMethodDto
4139
- */
4140
- 'type'?: string;
4141
- /**
4142
- * Per-business name override.
4143
- * @type {string}
4144
- * @memberof CreatePaymentMethodDto
4145
- */
4146
- 'customName'?: string;
4147
- /**
4148
- * Per-business logo URL.
4149
- * @type {string}
4150
- * @memberof CreatePaymentMethodDto
4151
- */
4152
- 'logo'?: string;
4153
- /**
4154
- * Per-business description.
4155
- * @type {string}
4156
- * @memberof CreatePaymentMethodDto
4157
- */
4158
- 'description'?: string;
4159
- /**
4160
- * Parent method code for grouped vouchers.
4161
- * @type {string}
4162
- * @memberof CreatePaymentMethodDto
4163
- */
4164
- 'parentCode'?: string;
4165
- /**
4166
- * Preset amounts/denominations (vouchers).
4167
- * @type {Array<number>}
4168
- * @memberof CreatePaymentMethodDto
4169
- */
4170
- 'amounts'?: Array<number>;
4171
- /**
4172
- * Minimum order amount required to use this method.
4173
- * @type {number}
4174
- * @memberof CreatePaymentMethodDto
4175
- */
4176
- 'minimumCheckoutAmount'?: number;
4177
- /**
4178
- * Whether the method is enabled (defaults to true).
4179
- * @type {boolean}
4180
- * @memberof CreatePaymentMethodDto
4181
- */
4182
- 'enable'?: boolean;
4183
- /**
4184
- *
4185
- * @type {CreatePaymentMethodDtoGiftCardCredentials}
4186
- * @memberof CreatePaymentMethodDto
4187
- */
4188
- 'giftCardCredentials'?: CreatePaymentMethodDtoGiftCardCredentials;
4189
- }
4190
- /**
4191
- * Only for a 3rd-party gift card: username/password (URLs come from constants).
4192
- * @export
4193
- * @interface CreatePaymentMethodDtoGiftCardCredentials
4194
- */
4195
- export interface CreatePaymentMethodDtoGiftCardCredentials {
4196
- /**
4197
- * 3rd-party gift card account username.
4198
- * @type {string}
4199
- * @memberof CreatePaymentMethodDtoGiftCardCredentials
4200
- */
4201
- 'username'?: string;
4202
- /**
4203
- * 3rd-party gift card account password.
4204
- * @type {string}
4205
- * @memberof CreatePaymentMethodDtoGiftCardCredentials
4206
- */
4207
- 'password'?: string;
4208
- /**
4209
- * Unique POS device id for the 3rd-party gift card provider.
4210
- * @type {string}
4211
- * @memberof CreatePaymentMethodDtoGiftCardCredentials
4212
- */
4213
- 'uniquePosDeviceId'?: string;
4214
- }
4215
3967
  /**
4216
3968
  *
4217
3969
  * @export
@@ -6477,56 +6229,6 @@ export interface GiftCardCredentialsDto {
6477
6229
  */
6478
6230
  'password'?: string;
6479
6231
  }
6480
- /**
6481
- *
6482
- * @export
6483
- * @interface GiftCardCredentialsInputDto
6484
- */
6485
- export interface GiftCardCredentialsInputDto {
6486
- /**
6487
- * 3rd-party gift card account username.
6488
- * @type {string}
6489
- * @memberof GiftCardCredentialsInputDto
6490
- */
6491
- 'username'?: string;
6492
- /**
6493
- * 3rd-party gift card account password.
6494
- * @type {string}
6495
- * @memberof GiftCardCredentialsInputDto
6496
- */
6497
- 'password'?: string;
6498
- /**
6499
- * Unique POS device id for the 3rd-party gift card provider.
6500
- * @type {string}
6501
- * @memberof GiftCardCredentialsInputDto
6502
- */
6503
- 'uniquePosDeviceId'?: string;
6504
- }
6505
- /**
6506
- *
6507
- * @export
6508
- * @interface GiftCardCredentialsViewDto
6509
- */
6510
- export interface GiftCardCredentialsViewDto {
6511
- /**
6512
- * Saved 3rd-party gift card username.
6513
- * @type {string}
6514
- * @memberof GiftCardCredentialsViewDto
6515
- */
6516
- 'username': string | null;
6517
- /**
6518
- * Saved 3rd-party gift card password.
6519
- * @type {string}
6520
- * @memberof GiftCardCredentialsViewDto
6521
- */
6522
- 'password': string | null;
6523
- /**
6524
- * Saved unique POS device id for the 3rd-party gift card provider.
6525
- * @type {string}
6526
- * @memberof GiftCardCredentialsViewDto
6527
- */
6528
- 'uniquePosDeviceId': string | null;
6529
- }
6530
6232
  /**
6531
6233
  *
6532
6234
  * @export
@@ -9926,49 +9628,6 @@ export interface NetsCancelTransactionDto {
9926
9628
  */
9927
9629
  'businessId': number;
9928
9630
  }
9929
- /**
9930
- *
9931
- * @export
9932
- * @interface NetsConfigResponseDto
9933
- */
9934
- export interface NetsConfigResponseDto {
9935
- /**
9936
- * Whether the Nets integration is active.
9937
- * @type {boolean}
9938
- * @memberof NetsConfigResponseDto
9939
- */
9940
- 'isActive': boolean;
9941
- /**
9942
- * Display name.
9943
- * @type {string}
9944
- * @memberof NetsConfigResponseDto
9945
- */
9946
- 'name': string | null;
9947
- /**
9948
- * Nets secret key.
9949
- * @type {string}
9950
- * @memberof NetsConfigResponseDto
9951
- */
9952
- 'secretKey': string | null;
9953
- /**
9954
- * Nets public key.
9955
- * @type {string}
9956
- * @memberof NetsConfigResponseDto
9957
- */
9958
- 'publicKey': string | null;
9959
- /**
9960
- * Nets OAuth client id.
9961
- * @type {string}
9962
- * @memberof NetsConfigResponseDto
9963
- */
9964
- 'clientId': string | null;
9965
- /**
9966
- * Nets OAuth client secret.
9967
- * @type {string}
9968
- * @memberof NetsConfigResponseDto
9969
- */
9970
- 'clientSecret': string | null;
9971
- }
9972
9631
  /**
9973
9632
  *
9974
9633
  * @export
@@ -12144,24 +11803,6 @@ export interface PaginationDto {
12144
11803
  */
12145
11804
  'totalPages': number;
12146
11805
  }
12147
- /**
12148
- *
12149
- * @export
12150
- * @enum {string}
12151
- */
12152
-
12153
- export const PaymentCheckoutFlow = {
12154
- TerminalCard: 'terminal_card',
12155
- CardManual: 'card_manual',
12156
- Cash: 'cash',
12157
- GroupedVoucher: 'grouped_voucher',
12158
- GiftCard: 'gift_card',
12159
- Static: 'static'
12160
- } as const;
12161
-
12162
- export type PaymentCheckoutFlow = typeof PaymentCheckoutFlow[keyof typeof PaymentCheckoutFlow];
12163
-
12164
-
12165
11806
  /**
12166
11807
  *
12167
11808
  * @export
@@ -12397,81 +12038,6 @@ export const PaymentMethod = {
12397
12038
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
12398
12039
 
12399
12040
 
12400
- /**
12401
- *
12402
- * @export
12403
- * @interface PaymentMethodCapabilitiesDto
12404
- */
12405
- export interface PaymentMethodCapabilitiesDto {
12406
- /**
12407
- * Whether this method can be refunded at all.
12408
- * @type {boolean}
12409
- * @memberof PaymentMethodCapabilitiesDto
12410
- */
12411
- 'refundable': boolean;
12412
- /**
12413
- * Whether a refund can be split across this method and others.
12414
- * @type {boolean}
12415
- * @memberof PaymentMethodCapabilitiesDto
12416
- */
12417
- 'refundSplittable': boolean;
12418
- /**
12419
- * Whether the customer may choose this method as a refund target.
12420
- * @type {boolean}
12421
- * @memberof PaymentMethodCapabilitiesDto
12422
- */
12423
- 'refundChoiceEligible': boolean;
12424
- /**
12425
- * Refund allocation order (lower = refunded first); null when not refundable.
12426
- * @type {number}
12427
- * @memberof PaymentMethodCapabilitiesDto
12428
- */
12429
- 'refundPriorityTier': number | null;
12430
- /**
12431
- *
12432
- * @type {PaymentCheckoutFlow}
12433
- * @memberof PaymentMethodCapabilitiesDto
12434
- */
12435
- 'checkoutFlow': PaymentCheckoutFlow;
12436
- /**
12437
- * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
12438
- * @type {string}
12439
- * @memberof PaymentMethodCapabilitiesDto
12440
- */
12441
- 'tone': string;
12442
- /**
12443
- * Whether a refund is sent back to the original card via the terminal SDK.
12444
- * @type {boolean}
12445
- * @memberof PaymentMethodCapabilitiesDto
12446
- */
12447
- 'refundToCard': boolean;
12448
- /**
12449
- * Whether refunding this method needs an active card provider (Viva/Nets).
12450
- * @type {boolean}
12451
- * @memberof PaymentMethodCapabilitiesDto
12452
- */
12453
- 'requiresProvider': boolean;
12454
- /**
12455
- * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
12456
- * @type {boolean}
12457
- * @memberof PaymentMethodCapabilitiesDto
12458
- */
12459
- 'requiresManualResolution': boolean;
12460
- /**
12461
- * Whether receipts/print should show a forfeited (leftover) amount line.
12462
- * @type {boolean}
12463
- * @memberof PaymentMethodCapabilitiesDto
12464
- */
12465
- 'shouldDisplayForfeitedAmount': boolean;
12466
- /**
12467
- * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
12468
- * @type {string}
12469
- * @memberof PaymentMethodCapabilitiesDto
12470
- */
12471
- 'notificationIssuer': string | null;
12472
- }
12473
-
12474
-
12475
12041
  /**
12476
12042
  *
12477
12043
  * @export
@@ -12789,240 +12355,6 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
12789
12355
  */
12790
12356
  'transactionId'?: string | null;
12791
12357
  }
12792
- /**
12793
- *
12794
- * @export
12795
- * @interface PaymentMethodDto
12796
- */
12797
- export interface PaymentMethodDto {
12798
- /**
12799
- * PaymentMethodOption id; use it for update/delete/reorder.
12800
- * @type {string}
12801
- * @memberof PaymentMethodDto
12802
- */
12803
- 'id': string;
12804
- /**
12805
- * Stable, immutable method code (catalog identity).
12806
- * @type {string}
12807
- * @memberof PaymentMethodDto
12808
- */
12809
- 'code': string;
12810
- /**
12811
- * Catalog type that drives this method\'s policy/behavior.
12812
- * @type {string}
12813
- * @memberof PaymentMethodDto
12814
- */
12815
- 'typeCode': string;
12816
- /**
12817
- * Display name: per-business customName, else catalog translation, else code.
12818
- * @type {string}
12819
- * @memberof PaymentMethodDto
12820
- */
12821
- 'label': string;
12822
- /**
12823
- * Per-business name override; null means inherit the catalog label.
12824
- * @type {string}
12825
- * @memberof PaymentMethodDto
12826
- */
12827
- 'customName': string | null;
12828
- /**
12829
- * Per-business logo URL.
12830
- * @type {string}
12831
- * @memberof PaymentMethodDto
12832
- */
12833
- 'logo': string | null;
12834
- /**
12835
- * Per-business description.
12836
- * @type {string}
12837
- * @memberof PaymentMethodDto
12838
- */
12839
- 'description': string | null;
12840
- /**
12841
- * Parent method code for grouped vouchers; null when standalone.
12842
- * @type {string}
12843
- * @memberof PaymentMethodDto
12844
- */
12845
- 'parentCode': string | null;
12846
- /**
12847
- * Sort order within the business (ascending).
12848
- * @type {number}
12849
- * @memberof PaymentMethodDto
12850
- */
12851
- 'position': number;
12852
- /**
12853
- * Whether the method is shown/usable (off = hidden, not deleted).
12854
- * @type {boolean}
12855
- * @memberof PaymentMethodDto
12856
- */
12857
- 'enable': boolean;
12858
- /**
12859
- * Preset amounts/denominations (vouchers).
12860
- * @type {Array<number>}
12861
- * @memberof PaymentMethodDto
12862
- */
12863
- 'amounts': Array<number>;
12864
- /**
12865
- * Minimum order amount required to use this method (decimal as string).
12866
- * @type {string}
12867
- * @memberof PaymentMethodDto
12868
- */
12869
- 'minimumCheckoutAmount': string | null;
12870
- /**
12871
- *
12872
- * @type {PaymentMethodDtoCapabilities}
12873
- * @memberof PaymentMethodDto
12874
- */
12875
- 'capabilities': PaymentMethodDtoCapabilities;
12876
- /**
12877
- * True for a 3rd-party gift card whose credentials the merchant can edit.
12878
- * @type {boolean}
12879
- * @memberof PaymentMethodDto
12880
- */
12881
- 'requiresCredentials': boolean;
12882
- /**
12883
- *
12884
- * @type {PaymentMethodDtoGiftCardCredentials}
12885
- * @memberof PaymentMethodDto
12886
- */
12887
- 'giftCardCredentials': PaymentMethodDtoGiftCardCredentials | null;
12888
- /**
12889
- * Auto-managed grouped children (e.g. Card→Debit/Credit, LunchVoucher→its vouchers). Empty for standalone methods.
12890
- * @type {Array<PaymentMethodDto>}
12891
- * @memberof PaymentMethodDto
12892
- */
12893
- 'children': Array<PaymentMethodDto>;
12894
- }
12895
- /**
12896
- * Refund behavior resolved from the catalog type + per-method overrides.
12897
- * @export
12898
- * @interface PaymentMethodDtoCapabilities
12899
- */
12900
- export interface PaymentMethodDtoCapabilities {
12901
- /**
12902
- * Whether this method can be refunded at all.
12903
- * @type {boolean}
12904
- * @memberof PaymentMethodDtoCapabilities
12905
- */
12906
- 'refundable': boolean;
12907
- /**
12908
- * Whether a refund can be split across this method and others.
12909
- * @type {boolean}
12910
- * @memberof PaymentMethodDtoCapabilities
12911
- */
12912
- 'refundSplittable': boolean;
12913
- /**
12914
- * Whether the customer may choose this method as a refund target.
12915
- * @type {boolean}
12916
- * @memberof PaymentMethodDtoCapabilities
12917
- */
12918
- 'refundChoiceEligible': boolean;
12919
- /**
12920
- * Refund allocation order (lower = refunded first); null when not refundable.
12921
- * @type {number}
12922
- * @memberof PaymentMethodDtoCapabilities
12923
- */
12924
- 'refundPriorityTier': number | null;
12925
- /**
12926
- *
12927
- * @type {PaymentCheckoutFlow}
12928
- * @memberof PaymentMethodDtoCapabilities
12929
- */
12930
- 'checkoutFlow': PaymentCheckoutFlow;
12931
- /**
12932
- * Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
12933
- * @type {string}
12934
- * @memberof PaymentMethodDtoCapabilities
12935
- */
12936
- 'tone': string;
12937
- /**
12938
- * Whether a refund is sent back to the original card via the terminal SDK.
12939
- * @type {boolean}
12940
- * @memberof PaymentMethodDtoCapabilities
12941
- */
12942
- 'refundToCard': boolean;
12943
- /**
12944
- * Whether refunding this method needs an active card provider (Viva/Nets).
12945
- * @type {boolean}
12946
- * @memberof PaymentMethodDtoCapabilities
12947
- */
12948
- 'requiresProvider': boolean;
12949
- /**
12950
- * Whether checkout needs a manual resolution step (cash rounding, voucher selection).
12951
- * @type {boolean}
12952
- * @memberof PaymentMethodDtoCapabilities
12953
- */
12954
- 'requiresManualResolution': boolean;
12955
- /**
12956
- * Whether receipts/print should show a forfeited (leftover) amount line.
12957
- * @type {boolean}
12958
- * @memberof PaymentMethodDtoCapabilities
12959
- */
12960
- 'shouldDisplayForfeitedAmount': boolean;
12961
- /**
12962
- * Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
12963
- * @type {string}
12964
- * @memberof PaymentMethodDtoCapabilities
12965
- */
12966
- 'notificationIssuer': string | null;
12967
- }
12968
-
12969
-
12970
- /**
12971
- * Saved 3rd-party gift card credentials for pre-fill; null when not applicable.
12972
- * @export
12973
- * @interface PaymentMethodDtoGiftCardCredentials
12974
- */
12975
- export interface PaymentMethodDtoGiftCardCredentials {
12976
- /**
12977
- * Saved 3rd-party gift card username.
12978
- * @type {string}
12979
- * @memberof PaymentMethodDtoGiftCardCredentials
12980
- */
12981
- 'username': string | null;
12982
- /**
12983
- * Saved 3rd-party gift card password.
12984
- * @type {string}
12985
- * @memberof PaymentMethodDtoGiftCardCredentials
12986
- */
12987
- 'password': string | null;
12988
- /**
12989
- * Saved unique POS device id for the 3rd-party gift card provider.
12990
- * @type {string}
12991
- * @memberof PaymentMethodDtoGiftCardCredentials
12992
- */
12993
- 'uniquePosDeviceId': string | null;
12994
- }
12995
- /**
12996
- *
12997
- * @export
12998
- * @interface PaymentMethodTypeDto
12999
- */
13000
- export interface PaymentMethodTypeDto {
13001
- /**
13002
- * Catalog type code (e.g. CARD, VOUCHER, GIFT_CARD).
13003
- * @type {string}
13004
- * @memberof PaymentMethodTypeDto
13005
- */
13006
- 'code': string;
13007
- /**
13008
- * Human-readable type label for display.
13009
- * @type {string}
13010
- * @memberof PaymentMethodTypeDto
13011
- */
13012
- 'label': string;
13013
- /**
13014
- * Short explanation of what this category means, to guide the user.
13015
- * @type {string}
13016
- * @memberof PaymentMethodTypeDto
13017
- */
13018
- 'description': string;
13019
- /**
13020
- * Whether methods of this type take preset amounts/denominations.
13021
- * @type {boolean}
13022
- * @memberof PaymentMethodTypeDto
13023
- */
13024
- 'supportsAmounts': boolean;
13025
- }
13026
12358
  /**
13027
12359
  *
13028
12360
  * @export
@@ -15691,20 +15023,40 @@ export const PosPermission = {
15691
15023
  PageProducts: 'Page::Products',
15692
15024
  PageReports: 'Page::Reports',
15693
15025
  PageSettings: 'Page::Settings',
15026
+ PageFloorPlan: 'Page::FloorPlan',
15694
15027
  Cart: 'Cart::*',
15695
15028
  CartAddItem: 'Cart::AddItem',
15696
15029
  CartRemoveItem: 'Cart::RemoveItem',
15697
15030
  CartApplyDiscount: 'Cart::ApplyDiscount',
15698
15031
  CartVoidItem: 'Cart::VoidItem',
15699
15032
  CartClear: 'Cart::Clear',
15033
+ CartRemoveDiscount: 'Cart::RemoveDiscount',
15034
+ CartVoidPayment: 'Cart::VoidPayment',
15035
+ Cash: 'Cash::*',
15036
+ CashOpenDay: 'Cash::OpenDay',
15037
+ CashCloseDay: 'Cash::CloseDay',
15038
+ CashCashIn: 'Cash::CashIn',
15039
+ CashCashOut: 'Cash::CashOut',
15040
+ CashOpenDrawer: 'Cash::OpenDrawer',
15041
+ CashPrintReport: 'Cash::PrintReport',
15042
+ CashSendReport: 'Cash::SendReport',
15700
15043
  Transaction: 'Transaction::*',
15701
- TransactionView: 'Transaction::View',
15702
15044
  TransactionRefund: 'Transaction::Refund',
15045
+ Order: 'Order::*',
15046
+ OrderSendReceipt: 'Order::SendReceipt',
15047
+ OpenOrdersDelete: 'OpenOrders::Delete',
15048
+ OpenOrdersSendToKitchen: 'OpenOrders::SendToKitchen',
15049
+ OpenOrdersFireCourse: 'OpenOrders::FireCourse',
15703
15050
  Shift: 'Shift::*',
15704
15051
  ShiftForceClockOut: 'Shift::ForceClockOut',
15052
+ FloorPlan: 'FloorPlan::*',
15053
+ FloorPlanEditLayout: 'FloorPlan::EditLayout',
15054
+ FloorPlanChangeTableStatus: 'FloorPlan::ChangeTableStatus',
15055
+ FloorPlanManageSections: 'FloorPlan::ManageSections',
15705
15056
  Settings: 'Settings::*',
15706
15057
  SettingsEditProfile: 'Settings::EditProfile',
15707
- OpenOrdersDelete: 'OpenOrders::Delete'
15058
+ Report: 'Report::*',
15059
+ ReportSendEmail: 'Report::SendEmail'
15708
15060
  } as const;
15709
15061
 
15710
15062
  export type PosPermission = typeof PosPermission[keyof typeof PosPermission];
@@ -16764,6 +16116,181 @@ export interface ProductWithCategoryDto {
16764
16116
  */
16765
16117
  'default_course_id'?: object | null;
16766
16118
  }
16119
+ /**
16120
+ *
16121
+ * @export
16122
+ * @interface ProductWithCategoryV3Dto
16123
+ */
16124
+ export interface ProductWithCategoryV3Dto {
16125
+ /**
16126
+ * Product ID
16127
+ * @type {number}
16128
+ * @memberof ProductWithCategoryV3Dto
16129
+ */
16130
+ 'id': number;
16131
+ /**
16132
+ * Product name
16133
+ * @type {string}
16134
+ * @memberof ProductWithCategoryV3Dto
16135
+ */
16136
+ 'name': string;
16137
+ /**
16138
+ * Product price
16139
+ * @type {number}
16140
+ * @memberof ProductWithCategoryV3Dto
16141
+ */
16142
+ 'price': number;
16143
+ /**
16144
+ * Product description
16145
+ * @type {string}
16146
+ * @memberof ProductWithCategoryV3Dto
16147
+ */
16148
+ 'description': string;
16149
+ /**
16150
+ * Product image URL
16151
+ * @type {string}
16152
+ * @memberof ProductWithCategoryV3Dto
16153
+ */
16154
+ 'images': string;
16155
+ /**
16156
+ * SKU of the product
16157
+ * @type {string}
16158
+ * @memberof ProductWithCategoryV3Dto
16159
+ */
16160
+ 'sku'?: string | null;
16161
+ /**
16162
+ * Primary barcode value of the product
16163
+ * @type {object}
16164
+ * @memberof ProductWithCategoryV3Dto
16165
+ */
16166
+ 'barcode'?: object | null;
16167
+ /**
16168
+ * Alternative barcode value of the product
16169
+ * @type {object}
16170
+ * @memberof ProductWithCategoryV3Dto
16171
+ */
16172
+ 'barcode_alternative'?: object | null;
16173
+ /**
16174
+ * Category ID the product belongs to
16175
+ * @type {number}
16176
+ * @memberof ProductWithCategoryV3Dto
16177
+ */
16178
+ 'category_id': number;
16179
+ /**
16180
+ * Whether the product is tracked for inventory
16181
+ * @type {boolean}
16182
+ * @memberof ProductWithCategoryV3Dto
16183
+ */
16184
+ 'inventoried': boolean;
16185
+ /**
16186
+ * Available quantity if inventoried
16187
+ * @type {number}
16188
+ * @memberof ProductWithCategoryV3Dto
16189
+ */
16190
+ 'quantity': number;
16191
+ /**
16192
+ * Whether the product is marked as featured
16193
+ * @type {boolean}
16194
+ * @memberof ProductWithCategoryV3Dto
16195
+ */
16196
+ 'featured': boolean;
16197
+ /**
16198
+ * Whether the product is currently enabled
16199
+ * @type {boolean}
16200
+ * @memberof ProductWithCategoryV3Dto
16201
+ */
16202
+ 'enabled': boolean;
16203
+ /**
16204
+ * Whether upselling is enabled for this product
16205
+ * @type {boolean}
16206
+ * @memberof ProductWithCategoryV3Dto
16207
+ */
16208
+ 'upselling': boolean;
16209
+ /**
16210
+ * Whether the product is part of an offer
16211
+ * @type {boolean}
16212
+ * @memberof ProductWithCategoryV3Dto
16213
+ */
16214
+ 'in_offer': boolean;
16215
+ /**
16216
+ * Offer price if applicable
16217
+ * @type {object}
16218
+ * @memberof ProductWithCategoryV3Dto
16219
+ */
16220
+ 'offer_price': object | null;
16221
+ /**
16222
+ * Display order rank of the product
16223
+ * @type {number}
16224
+ * @memberof ProductWithCategoryV3Dto
16225
+ */
16226
+ 'rank': number;
16227
+ /**
16228
+ * Weight unit (e.g., g, kg, ml)
16229
+ * @type {object}
16230
+ * @memberof ProductWithCategoryV3Dto
16231
+ */
16232
+ 'weight_unit': object;
16233
+ /**
16234
+ * Last update timestamp
16235
+ * @type {string}
16236
+ * @memberof ProductWithCategoryV3Dto
16237
+ */
16238
+ 'updated_at': string;
16239
+ /**
16240
+ * Product creation timestamp
16241
+ * @type {string}
16242
+ * @memberof ProductWithCategoryV3Dto
16243
+ */
16244
+ 'created_at': string;
16245
+ /**
16246
+ * Deletion timestamp if soft-deleted
16247
+ * @type {object}
16248
+ * @memberof ProductWithCategoryV3Dto
16249
+ */
16250
+ 'deleted_at': object | null;
16251
+ /**
16252
+ * List of product extras (e.g., toppings, add-ons)
16253
+ * @type {Array<OrderingItemExtraDto>}
16254
+ * @memberof ProductWithCategoryV3Dto
16255
+ */
16256
+ 'extras': Array<OrderingItemExtraDto>;
16257
+ /**
16258
+ * Whether the product is restricted
16259
+ * @type {boolean}
16260
+ * @memberof ProductWithCategoryV3Dto
16261
+ */
16262
+ 'is_restricted': boolean;
16263
+ /**
16264
+ *
16265
+ * @type {BusinessTaxResponseDto}
16266
+ * @memberof ProductWithCategoryV3Dto
16267
+ */
16268
+ 'tax': BusinessTaxResponseDto | null;
16269
+ /**
16270
+ * Name of the category this product belongs to
16271
+ * @type {string}
16272
+ * @memberof ProductWithCategoryV3Dto
16273
+ */
16274
+ 'categoryName': string;
16275
+ /**
16276
+ * Indicates if the product is inventoried in POS
16277
+ * @type {boolean}
16278
+ * @memberof ProductWithCategoryV3Dto
16279
+ */
16280
+ 'pos_inventoried': boolean;
16281
+ /**
16282
+ * Quantity of the product in POS
16283
+ * @type {number}
16284
+ * @memberof ProductWithCategoryV3Dto
16285
+ */
16286
+ 'pos_quantity': number;
16287
+ /**
16288
+ * Default course ID assigned to this product
16289
+ * @type {object}
16290
+ * @memberof ProductWithCategoryV3Dto
16291
+ */
16292
+ 'default_course_id'?: object | null;
16293
+ }
16767
16294
  /**
16768
16295
  *
16769
16296
  * @export
@@ -16808,6 +16335,31 @@ export interface ProductsByCategoriesResponseDtoSummary {
16808
16335
  */
16809
16336
  'categoryCount': number;
16810
16337
  }
16338
+ /**
16339
+ *
16340
+ * @export
16341
+ * @interface ProductsByCategoriesV3ResponseDto
16342
+ */
16343
+ export interface ProductsByCategoriesV3ResponseDto {
16344
+ /**
16345
+ * Categories sorted by rank (additive — existing clients can ignore this field)
16346
+ * @type {Array<RankedCategoryDto>}
16347
+ * @memberof ProductsByCategoriesV3ResponseDto
16348
+ */
16349
+ 'categories': Array<RankedCategoryDto>;
16350
+ /**
16351
+ *
16352
+ * @type {ProductsByCategoriesResponseDtoSummary}
16353
+ * @memberof ProductsByCategoriesV3ResponseDto
16354
+ */
16355
+ 'summary': ProductsByCategoriesResponseDtoSummary;
16356
+ /**
16357
+ * Products without channel_configs; per-channel inventory is fetched per product
16358
+ * @type {Array<ProductWithCategoryV3Dto>}
16359
+ * @memberof ProductsByCategoriesV3ResponseDto
16360
+ */
16361
+ 'products': Array<ProductWithCategoryV3Dto>;
16362
+ }
16811
16363
  /**
16812
16364
  *
16813
16365
  * @export
@@ -17050,45 +16602,6 @@ export interface ProviderSupportedIntegrationsDto {
17050
16602
  }
17051
16603
 
17052
16604
 
17053
- /**
17054
- *
17055
- * @export
17056
- * @interface ProvidersConfigResponseDto
17057
- */
17058
- export interface ProvidersConfigResponseDto {
17059
- /**
17060
- *
17061
- * @type {PaymentProvider}
17062
- * @memberof ProvidersConfigResponseDto
17063
- */
17064
- 'selectedPaymentProvider': PaymentProvider | null;
17065
- /**
17066
- *
17067
- * @type {VivaConfigResponseDto}
17068
- * @memberof ProvidersConfigResponseDto
17069
- */
17070
- 'viva': VivaConfigResponseDto | null;
17071
- /**
17072
- *
17073
- * @type {NetsConfigResponseDto}
17074
- * @memberof ProvidersConfigResponseDto
17075
- */
17076
- 'nets': NetsConfigResponseDto | null;
17077
- /**
17078
- *
17079
- * @type {StripeConfigResponseDto}
17080
- * @memberof ProvidersConfigResponseDto
17081
- */
17082
- 'stripe': StripeConfigResponseDto | null;
17083
- /**
17084
- *
17085
- * @type {WorldlineConfigResponseDto}
17086
- * @memberof ProvidersConfigResponseDto
17087
- */
17088
- 'worldline': WorldlineConfigResponseDto | null;
17089
- }
17090
-
17091
-
17092
16605
  /**
17093
16606
  *
17094
16607
  * @export
@@ -17116,25 +16629,6 @@ export const PubSubTarget = {
17116
16629
  export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
17117
16630
 
17118
16631
 
17119
- /**
17120
- *
17121
- * @export
17122
- * @interface RankItemDto
17123
- */
17124
- export interface RankItemDto {
17125
- /**
17126
- * PaymentMethodOption id to position.
17127
- * @type {string}
17128
- * @memberof RankItemDto
17129
- */
17130
- 'id': string;
17131
- /**
17132
- * New zero-based sort position.
17133
- * @type {number}
17134
- * @memberof RankItemDto
17135
- */
17136
- 'rank': number;
17137
- }
17138
16632
  /**
17139
16633
  *
17140
16634
  * @export
@@ -18380,11 +17874,11 @@ export const SYNCKEY = {
18380
17874
  Discounts: 'DISCOUNTS',
18381
17875
  LoyaltySettings: 'LOYALTY_SETTINGS',
18382
17876
  BusinessConfig: 'BUSINESS_CONFIG',
17877
+ BusinessProviderSupportedIntegrations: 'BUSINESS_PROVIDER_SUPPORTED_INTEGRATIONS',
18383
17878
  PosSession: 'POS_SESSION',
18384
17879
  InvoiceCompanies: 'INVOICE_COMPANIES',
18385
17880
  BusinessTax: 'BUSINESS_TAX',
18386
- Transaction: 'TRANSACTION',
18387
- DiscountsV2: 'DISCOUNTS_V2'
17881
+ Transaction: 'TRANSACTION'
18388
17882
  } as const;
18389
17883
 
18390
17884
  export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
@@ -19171,37 +18665,6 @@ export const Status = {
19171
18665
  export type Status = typeof Status[keyof typeof Status];
19172
18666
 
19173
18667
 
19174
- /**
19175
- *
19176
- * @export
19177
- * @interface StripeConfigResponseDto
19178
- */
19179
- export interface StripeConfigResponseDto {
19180
- /**
19181
- * Whether the Stripe integration is active.
19182
- * @type {boolean}
19183
- * @memberof StripeConfigResponseDto
19184
- */
19185
- 'isActive': boolean;
19186
- /**
19187
- * Display name.
19188
- * @type {string}
19189
- * @memberof StripeConfigResponseDto
19190
- */
19191
- 'name': string | null;
19192
- /**
19193
- * Stripe secret key.
19194
- * @type {string}
19195
- * @memberof StripeConfigResponseDto
19196
- */
19197
- 'secretKey': string | null;
19198
- /**
19199
- * Stripe location id.
19200
- * @type {string}
19201
- * @memberof StripeConfigResponseDto
19202
- */
19203
- 'locationId': string | null;
19204
- }
19205
18668
  /**
19206
18669
  *
19207
18670
  * @export
@@ -21559,86 +21022,6 @@ export interface UpdateInvoiceCompanyDto {
21559
21022
  */
21560
21023
  'address'?: string;
21561
21024
  }
21562
- /**
21563
- *
21564
- * @export
21565
- * @interface UpdatePaymentMethodOptionDto
21566
- */
21567
- export interface UpdatePaymentMethodOptionDto {
21568
- /**
21569
- * Per-business name override.
21570
- * @type {string}
21571
- * @memberof UpdatePaymentMethodOptionDto
21572
- */
21573
- 'customName'?: string;
21574
- /**
21575
- * Per-business logo URL.
21576
- * @type {string}
21577
- * @memberof UpdatePaymentMethodOptionDto
21578
- */
21579
- 'logo'?: string;
21580
- /**
21581
- * Per-business description.
21582
- * @type {string}
21583
- * @memberof UpdatePaymentMethodOptionDto
21584
- */
21585
- 'description'?: string;
21586
- /**
21587
- * Parent method code for grouped vouchers.
21588
- * @type {string}
21589
- * @memberof UpdatePaymentMethodOptionDto
21590
- */
21591
- 'parentCode'?: string;
21592
- /**
21593
- * Preset amounts/denominations (vouchers).
21594
- * @type {Array<number>}
21595
- * @memberof UpdatePaymentMethodOptionDto
21596
- */
21597
- 'amounts'?: Array<number>;
21598
- /**
21599
- * Minimum order amount required to use this method.
21600
- * @type {number}
21601
- * @memberof UpdatePaymentMethodOptionDto
21602
- */
21603
- 'minimumCheckoutAmount'?: number;
21604
- /**
21605
- * Whether the method is enabled.
21606
- * @type {boolean}
21607
- * @memberof UpdatePaymentMethodOptionDto
21608
- */
21609
- 'enable'?: boolean;
21610
- /**
21611
- *
21612
- * @type {UpdatePaymentMethodOptionDtoGiftCardCredentials}
21613
- * @memberof UpdatePaymentMethodOptionDto
21614
- */
21615
- 'giftCardCredentials'?: UpdatePaymentMethodOptionDtoGiftCardCredentials;
21616
- }
21617
- /**
21618
- * Only for a 3rd-party gift card: username/password/posDeviceId (URLs are constants).
21619
- * @export
21620
- * @interface UpdatePaymentMethodOptionDtoGiftCardCredentials
21621
- */
21622
- export interface UpdatePaymentMethodOptionDtoGiftCardCredentials {
21623
- /**
21624
- * 3rd-party gift card account username.
21625
- * @type {string}
21626
- * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
21627
- */
21628
- 'username'?: string;
21629
- /**
21630
- * 3rd-party gift card account password.
21631
- * @type {string}
21632
- * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
21633
- */
21634
- 'password'?: string;
21635
- /**
21636
- * Unique POS device id for the 3rd-party gift card provider.
21637
- * @type {string}
21638
- * @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
21639
- */
21640
- 'uniquePosDeviceId'?: string;
21641
- }
21642
21025
  /**
21643
21026
  *
21644
21027
  * @export
@@ -22098,7 +21481,7 @@ export interface UpsertNetsDto {
22098
21481
  * @type {string}
22099
21482
  * @memberof UpsertNetsDto
22100
21483
  */
22101
- 'name': string;
21484
+ 'name'?: string;
22102
21485
  /**
22103
21486
  *
22104
21487
  * @type {boolean}
@@ -22328,87 +21711,6 @@ export interface UpsertProductPrintPolicyDto {
22328
21711
  */
22329
21712
  'printerId': number;
22330
21713
  }
22331
- /**
22332
- *
22333
- * @export
22334
- * @interface UpsertProvidersDto
22335
- */
22336
- export interface UpsertProvidersDto {
22337
- /**
22338
- *
22339
- * @type {PaymentProvider}
22340
- * @memberof UpsertProvidersDto
22341
- */
22342
- 'provider': PaymentProvider;
22343
- /**
22344
- *
22345
- * @type {string}
22346
- * @memberof UpsertProvidersDto
22347
- */
22348
- 'name': string;
22349
- /**
22350
- *
22351
- * @type {boolean}
22352
- * @memberof UpsertProvidersDto
22353
- */
22354
- 'isActive'?: boolean;
22355
- /**
22356
- * Viva merchant id.
22357
- * @type {string}
22358
- * @memberof UpsertProvidersDto
22359
- */
22360
- 'merchantId'?: string;
22361
- /**
22362
- * Viva source code.
22363
- * @type {string}
22364
- * @memberof UpsertProvidersDto
22365
- */
22366
- 'sourceCode'?: string;
22367
- /**
22368
- * Viva commission/surcharge rate.
22369
- * @type {number}
22370
- * @memberof UpsertProvidersDto
22371
- */
22372
- 'rate'?: number;
22373
- /**
22374
- * Viva additional amount.
22375
- * @type {number}
22376
- * @memberof UpsertProvidersDto
22377
- */
22378
- 'additionalAmount'?: number;
22379
- /**
22380
- * Nets / Stripe / Worldline secret key.
22381
- * @type {string}
22382
- * @memberof UpsertProvidersDto
22383
- */
22384
- 'secretKey'?: string;
22385
- /**
22386
- * Nets / Worldline public key.
22387
- * @type {string}
22388
- * @memberof UpsertProvidersDto
22389
- */
22390
- 'publicKey'?: string;
22391
- /**
22392
- * Nets OAuth client id.
22393
- * @type {string}
22394
- * @memberof UpsertProvidersDto
22395
- */
22396
- 'clientId'?: string;
22397
- /**
22398
- * Nets OAuth client secret.
22399
- * @type {string}
22400
- * @memberof UpsertProvidersDto
22401
- */
22402
- 'clientSecret'?: string;
22403
- /**
22404
- * Stripe location id.
22405
- * @type {string}
22406
- * @memberof UpsertProvidersDto
22407
- */
22408
- 'locationId'?: string;
22409
- }
22410
-
22411
-
22412
21714
  /**
22413
21715
  *
22414
21716
  * @export
@@ -22453,7 +21755,7 @@ export interface UpsertStripeDto {
22453
21755
  * @type {string}
22454
21756
  * @memberof UpsertStripeDto
22455
21757
  */
22456
- 'name': string;
21758
+ 'name'?: string;
22457
21759
  /**
22458
21760
  *
22459
21761
  * @type {boolean}
@@ -22484,7 +21786,7 @@ export interface UpsertVivaDto {
22484
21786
  * @type {string}
22485
21787
  * @memberof UpsertVivaDto
22486
21788
  */
22487
- 'name': string;
21789
+ 'name'?: string;
22488
21790
  /**
22489
21791
  *
22490
21792
  * @type {boolean}
@@ -22886,43 +22188,6 @@ export interface VivaConfigDto {
22886
22188
  */
22887
22189
  'additionalAmount'?: number;
22888
22190
  }
22889
- /**
22890
- *
22891
- * @export
22892
- * @interface VivaConfigResponseDto
22893
- */
22894
- export interface VivaConfigResponseDto {
22895
- /**
22896
- * Whether the Viva integration is active.
22897
- * @type {boolean}
22898
- * @memberof VivaConfigResponseDto
22899
- */
22900
- 'isActive': boolean;
22901
- /**
22902
- * Display name.
22903
- * @type {string}
22904
- * @memberof VivaConfigResponseDto
22905
- */
22906
- 'name': string | null;
22907
- /**
22908
- * Viva merchant id.
22909
- * @type {string}
22910
- * @memberof VivaConfigResponseDto
22911
- */
22912
- 'merchantId': string | null;
22913
- /**
22914
- * Viva source code.
22915
- * @type {string}
22916
- * @memberof VivaConfigResponseDto
22917
- */
22918
- 'sourceCode': string | null;
22919
- /**
22920
- * Commission/surcharge rate.
22921
- * @type {number}
22922
- * @memberof VivaConfigResponseDto
22923
- */
22924
- 'rate': number | null;
22925
- }
22926
22191
  /**
22927
22192
  *
22928
22193
  * @export
@@ -24271,6 +23536,91 @@ export const StatusEnum = {
24271
23536
 
24272
23537
  export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum];
24273
23538
 
23539
+ /**
23540
+ *
23541
+ * @export
23542
+ * @interface WalletValidationResponseDto
23543
+ */
23544
+ export interface WalletValidationResponseDto {
23545
+ /**
23546
+ *
23547
+ * @type {boolean}
23548
+ * @memberof WalletValidationResponseDto
23549
+ */
23550
+ 'is_valid': boolean;
23551
+ /**
23552
+ *
23553
+ * @type {number}
23554
+ * @memberof WalletValidationResponseDto
23555
+ */
23556
+ 'wallet_id': number;
23557
+ /**
23558
+ *
23559
+ * @type {object}
23560
+ * @memberof WalletValidationResponseDto
23561
+ */
23562
+ 'status': object | null;
23563
+ /**
23564
+ *
23565
+ * @type {object}
23566
+ * @memberof WalletValidationResponseDto
23567
+ */
23568
+ 'product_name': object | null;
23569
+ /**
23570
+ *
23571
+ * @type {object}
23572
+ * @memberof WalletValidationResponseDto
23573
+ */
23574
+ 'product_price': object | null;
23575
+ /**
23576
+ *
23577
+ * @type {object}
23578
+ * @memberof WalletValidationResponseDto
23579
+ */
23580
+ 'product_type': object | null;
23581
+ /**
23582
+ *
23583
+ * @type {object}
23584
+ * @memberof WalletValidationResponseDto
23585
+ */
23586
+ 'customer_name': object | null;
23587
+ /**
23588
+ *
23589
+ * @type {object}
23590
+ * @memberof WalletValidationResponseDto
23591
+ */
23592
+ 'customer_email': object | null;
23593
+ /**
23594
+ *
23595
+ * @type {object}
23596
+ * @memberof WalletValidationResponseDto
23597
+ */
23598
+ 'redeemed_at': object | null;
23599
+ /**
23600
+ *
23601
+ * @type {object}
23602
+ * @memberof WalletValidationResponseDto
23603
+ */
23604
+ 'expires_at': object | null;
23605
+ /**
23606
+ *
23607
+ * @type {object}
23608
+ * @memberof WalletValidationResponseDto
23609
+ */
23610
+ 'restaurant_name': object | null;
23611
+ /**
23612
+ *
23613
+ * @type {object}
23614
+ * @memberof WalletValidationResponseDto
23615
+ */
23616
+ 'loyalty_program': object | null;
23617
+ /**
23618
+ *
23619
+ * @type {string}
23620
+ * @memberof WalletValidationResponseDto
23621
+ */
23622
+ 'message': string;
23623
+ }
24274
23624
  /**
24275
23625
  *
24276
23626
  * @export
@@ -24321,37 +23671,6 @@ export interface WorldlineAmountsRequestDto {
24321
23671
  */
24322
23672
  'tip'?: number;
24323
23673
  }
24324
- /**
24325
- *
24326
- * @export
24327
- * @interface WorldlineConfigResponseDto
24328
- */
24329
- export interface WorldlineConfigResponseDto {
24330
- /**
24331
- * Whether the Worldline integration is active.
24332
- * @type {boolean}
24333
- * @memberof WorldlineConfigResponseDto
24334
- */
24335
- 'isActive': boolean;
24336
- /**
24337
- * Display name.
24338
- * @type {string}
24339
- * @memberof WorldlineConfigResponseDto
24340
- */
24341
- 'name': string | null;
24342
- /**
24343
- * Worldline secret key.
24344
- * @type {string}
24345
- * @memberof WorldlineConfigResponseDto
24346
- */
24347
- 'secretKey': string | null;
24348
- /**
24349
- * Worldline public key.
24350
- * @type {string}
24351
- * @memberof WorldlineConfigResponseDto
24352
- */
24353
- 'publicKey': string | null;
24354
- }
24355
23674
  /**
24356
23675
  *
24357
23676
  * @export
@@ -28494,51 +27813,6 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
28494
27813
  options: localVarRequestOptions,
28495
27814
  };
28496
27815
  },
28497
- /**
28498
- *
28499
- * @summary Get payment providers config
28500
- * @param {number} businessId
28501
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
28502
- * @param {*} [options] Override http request option.
28503
- * @throws {RequiredError}
28504
- */
28505
- configGetProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28506
- // verify required parameter 'businessId' is not null or undefined
28507
- assertParamExists('configGetProviders', 'businessId', businessId)
28508
- // verify required parameter 'xAppX' is not null or undefined
28509
- assertParamExists('configGetProviders', 'xAppX', xAppX)
28510
- const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
28511
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
28512
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28513
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28514
- let baseOptions;
28515
- if (configuration) {
28516
- baseOptions = configuration.baseOptions;
28517
- }
28518
-
28519
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28520
- const localVarHeaderParameter = {} as any;
28521
- const localVarQueryParameter = {} as any;
28522
-
28523
- // authentication JWT-auth required
28524
- // http bearer authentication required
28525
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
28526
-
28527
- if (xAppX != null) {
28528
- localVarHeaderParameter['x-app-x'] = String(xAppX);
28529
- }
28530
-
28531
-
28532
-
28533
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28534
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28535
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28536
-
28537
- return {
28538
- url: toPathString(localVarUrlObj),
28539
- options: localVarRequestOptions,
28540
- };
28541
- },
28542
27816
  /**
28543
27817
  *
28544
27818
  * @summary Manual sync trigger
@@ -28924,57 +28198,6 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
28924
28198
  options: localVarRequestOptions,
28925
28199
  };
28926
28200
  },
28927
- /**
28928
- *
28929
- * @summary Set active provider and upsert its credentials
28930
- * @param {number} businessId
28931
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
28932
- * @param {UpsertProvidersDto} upsertProvidersDto
28933
- * @param {*} [options] Override http request option.
28934
- * @throws {RequiredError}
28935
- */
28936
- configUpsertProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28937
- // verify required parameter 'businessId' is not null or undefined
28938
- assertParamExists('configUpsertProviders', 'businessId', businessId)
28939
- // verify required parameter 'xAppX' is not null or undefined
28940
- assertParamExists('configUpsertProviders', 'xAppX', xAppX)
28941
- // verify required parameter 'upsertProvidersDto' is not null or undefined
28942
- assertParamExists('configUpsertProviders', 'upsertProvidersDto', upsertProvidersDto)
28943
- const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
28944
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
28945
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28946
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28947
- let baseOptions;
28948
- if (configuration) {
28949
- baseOptions = configuration.baseOptions;
28950
- }
28951
-
28952
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28953
- const localVarHeaderParameter = {} as any;
28954
- const localVarQueryParameter = {} as any;
28955
-
28956
- // authentication JWT-auth required
28957
- // http bearer authentication required
28958
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
28959
-
28960
- if (xAppX != null) {
28961
- localVarHeaderParameter['x-app-x'] = String(xAppX);
28962
- }
28963
-
28964
-
28965
-
28966
- localVarHeaderParameter['Content-Type'] = 'application/json';
28967
-
28968
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28969
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28970
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28971
- localVarRequestOptions.data = serializeDataIfNeeded(upsertProvidersDto, localVarRequestOptions, configuration)
28972
-
28973
- return {
28974
- url: toPathString(localVarUrlObj),
28975
- options: localVarRequestOptions,
28976
- };
28977
- },
28978
28201
  /**
28979
28202
  *
28980
28203
  * @summary Upsert Stripe payment config
@@ -29100,18 +28323,6 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
29100
28323
  const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
29101
28324
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29102
28325
  },
29103
- /**
29104
- *
29105
- * @summary Get payment providers config
29106
- * @param {number} businessId
29107
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29108
- * @param {*} [options] Override http request option.
29109
- * @throws {RequiredError}
29110
- */
29111
- async configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvidersConfigResponseDto>> {
29112
- const localVarAxiosArgs = await localVarAxiosParamCreator.configGetProviders(businessId, xAppX, options);
29113
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29114
- },
29115
28326
  /**
29116
28327
  *
29117
28328
  * @summary Manual sync trigger
@@ -29213,19 +28424,6 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
29213
28424
  const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options);
29214
28425
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29215
28426
  },
29216
- /**
29217
- *
29218
- * @summary Set active provider and upsert its credentials
29219
- * @param {number} businessId
29220
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29221
- * @param {UpsertProvidersDto} upsertProvidersDto
29222
- * @param {*} [options] Override http request option.
29223
- * @throws {RequiredError}
29224
- */
29225
- async configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvidersConfigResponseDto>> {
29226
- const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options);
29227
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29228
- },
29229
28427
  /**
29230
28428
  *
29231
28429
  * @summary Upsert Stripe payment config
@@ -29274,17 +28472,6 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
29274
28472
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
29275
28473
  return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
29276
28474
  },
29277
- /**
29278
- *
29279
- * @summary Get payment providers config
29280
- * @param {number} businessId
29281
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29282
- * @param {*} [options] Override http request option.
29283
- * @throws {RequiredError}
29284
- */
29285
- configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: any): AxiosPromise<ProvidersConfigResponseDto> {
29286
- return localVarFp.configGetProviders(businessId, xAppX, options).then((request) => request(axios, basePath));
29287
- },
29288
28475
  /**
29289
28476
  *
29290
28477
  * @summary Manual sync trigger
@@ -29378,18 +28565,6 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
29378
28565
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
29379
28566
  return localVarFp.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(axios, basePath));
29380
28567
  },
29381
- /**
29382
- *
29383
- * @summary Set active provider and upsert its credentials
29384
- * @param {number} businessId
29385
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29386
- * @param {UpsertProvidersDto} upsertProvidersDto
29387
- * @param {*} [options] Override http request option.
29388
- * @throws {RequiredError}
29389
- */
29390
- configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: any): AxiosPromise<ProvidersConfigResponseDto> {
29391
- return localVarFp.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(axios, basePath));
29392
- },
29393
28568
  /**
29394
28569
  *
29395
28570
  * @summary Upsert Stripe payment config
@@ -29435,17 +28610,6 @@ export interface ConfigManagementApiInterface {
29435
28610
  */
29436
28611
  configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
29437
28612
 
29438
- /**
29439
- *
29440
- * @summary Get payment providers config
29441
- * @param {number} businessId
29442
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29443
- * @param {*} [options] Override http request option.
29444
- * @throws {RequiredError}
29445
- * @memberof ConfigManagementApiInterface
29446
- */
29447
- configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
29448
-
29449
28613
  /**
29450
28614
  *
29451
28615
  * @summary Manual sync trigger
@@ -29539,18 +28703,6 @@ export interface ConfigManagementApiInterface {
29539
28703
  */
29540
28704
  configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
29541
28705
 
29542
- /**
29543
- *
29544
- * @summary Set active provider and upsert its credentials
29545
- * @param {number} businessId
29546
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29547
- * @param {UpsertProvidersDto} upsertProvidersDto
29548
- * @param {*} [options] Override http request option.
29549
- * @throws {RequiredError}
29550
- * @memberof ConfigManagementApiInterface
29551
- */
29552
- configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
29553
-
29554
28706
  /**
29555
28707
  *
29556
28708
  * @summary Upsert Stripe payment config
@@ -29598,19 +28750,6 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
29598
28750
  return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
29599
28751
  }
29600
28752
 
29601
- /**
29602
- *
29603
- * @summary Get payment providers config
29604
- * @param {number} businessId
29605
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29606
- * @param {*} [options] Override http request option.
29607
- * @throws {RequiredError}
29608
- * @memberof ConfigManagementApi
29609
- */
29610
- public configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig) {
29611
- return ConfigManagementApiFp(this.configuration).configGetProviders(businessId, xAppX, options).then((request) => request(this.axios, this.basePath));
29612
- }
29613
-
29614
28753
  /**
29615
28754
  *
29616
28755
  * @summary Manual sync trigger
@@ -29720,20 +28859,6 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
29720
28859
  return ConfigManagementApiFp(this.configuration).configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(this.axios, this.basePath));
29721
28860
  }
29722
28861
 
29723
- /**
29724
- *
29725
- * @summary Set active provider and upsert its credentials
29726
- * @param {number} businessId
29727
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
29728
- * @param {UpsertProvidersDto} upsertProvidersDto
29729
- * @param {*} [options] Override http request option.
29730
- * @throws {RequiredError}
29731
- * @memberof ConfigManagementApi
29732
- */
29733
- public configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig) {
29734
- return ConfigManagementApiFp(this.configuration).configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(this.axios, this.basePath));
29735
- }
29736
-
29737
28862
  /**
29738
28863
  *
29739
28864
  * @summary Upsert Stripe payment config
@@ -33981,6 +33106,61 @@ export const LoyaltyIntegerationsApiAxiosParamCreator = function (configuration?
33981
33106
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33982
33107
  localVarRequestOptions.data = serializeDataIfNeeded(pointsUpdatePayloadDto, localVarRequestOptions, configuration)
33983
33108
 
33109
+ return {
33110
+ url: toPathString(localVarUrlObj),
33111
+ options: localVarRequestOptions,
33112
+ };
33113
+ },
33114
+ /**
33115
+ *
33116
+ * @summary Validate a loyalty reward QR code wallet transaction
33117
+ * @param {number} businessId
33118
+ * @param {string} loyaltyId
33119
+ * @param {number} walletId
33120
+ * @param {*} [options] Override http request option.
33121
+ * @throws {RequiredError}
33122
+ */
33123
+ validateWallet: async (businessId: number, loyaltyId: string, walletId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33124
+ // verify required parameter 'businessId' is not null or undefined
33125
+ assertParamExists('validateWallet', 'businessId', businessId)
33126
+ // verify required parameter 'loyaltyId' is not null or undefined
33127
+ assertParamExists('validateWallet', 'loyaltyId', loyaltyId)
33128
+ // verify required parameter 'walletId' is not null or undefined
33129
+ assertParamExists('validateWallet', 'walletId', walletId)
33130
+ const localVarPath = `/api/v1/loyalty/wallets/validate`;
33131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33133
+ let baseOptions;
33134
+ if (configuration) {
33135
+ baseOptions = configuration.baseOptions;
33136
+ }
33137
+
33138
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33139
+ const localVarHeaderParameter = {} as any;
33140
+ const localVarQueryParameter = {} as any;
33141
+
33142
+ // authentication JWT-auth required
33143
+ // http bearer authentication required
33144
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33145
+
33146
+ if (businessId !== undefined) {
33147
+ localVarQueryParameter['businessId'] = businessId;
33148
+ }
33149
+
33150
+ if (loyaltyId !== undefined) {
33151
+ localVarQueryParameter['loyaltyId'] = loyaltyId;
33152
+ }
33153
+
33154
+ if (walletId !== undefined) {
33155
+ localVarQueryParameter['walletId'] = walletId;
33156
+ }
33157
+
33158
+
33159
+
33160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33162
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33163
+
33984
33164
  return {
33985
33165
  url: toPathString(localVarUrlObj),
33986
33166
  options: localVarRequestOptions,
@@ -34127,6 +33307,19 @@ export const LoyaltyIntegerationsApiFp = function(configuration?: Configuration)
34127
33307
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePoints(businessId, pointsUpdatePayloadDto, options);
34128
33308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34129
33309
  },
33310
+ /**
33311
+ *
33312
+ * @summary Validate a loyalty reward QR code wallet transaction
33313
+ * @param {number} businessId
33314
+ * @param {string} loyaltyId
33315
+ * @param {number} walletId
33316
+ * @param {*} [options] Override http request option.
33317
+ * @throws {RequiredError}
33318
+ */
33319
+ async validateWallet(businessId: number, loyaltyId: string, walletId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletValidationResponseDto>> {
33320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateWallet(businessId, loyaltyId, walletId, options);
33321
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33322
+ },
34130
33323
  }
34131
33324
  };
34132
33325
 
@@ -34257,6 +33450,18 @@ export const LoyaltyIntegerationsApiFactory = function (configuration?: Configur
34257
33450
  updatePoints(businessId: number, pointsUpdatePayloadDto: PointsUpdatePayloadDto, options?: any): AxiosPromise<PointsUpdateResponseDto> {
34258
33451
  return localVarFp.updatePoints(businessId, pointsUpdatePayloadDto, options).then((request) => request(axios, basePath));
34259
33452
  },
33453
+ /**
33454
+ *
33455
+ * @summary Validate a loyalty reward QR code wallet transaction
33456
+ * @param {number} businessId
33457
+ * @param {string} loyaltyId
33458
+ * @param {number} walletId
33459
+ * @param {*} [options] Override http request option.
33460
+ * @throws {RequiredError}
33461
+ */
33462
+ validateWallet(businessId: number, loyaltyId: string, walletId: number, options?: any): AxiosPromise<WalletValidationResponseDto> {
33463
+ return localVarFp.validateWallet(businessId, loyaltyId, walletId, options).then((request) => request(axios, basePath));
33464
+ },
34260
33465
  };
34261
33466
  };
34262
33467
 
@@ -34386,6 +33591,18 @@ export interface LoyaltyIntegerationsApiInterface {
34386
33591
  */
34387
33592
  updatePoints(businessId: number, pointsUpdatePayloadDto: PointsUpdatePayloadDto, options?: AxiosRequestConfig): AxiosPromise<PointsUpdateResponseDto>;
34388
33593
 
33594
+ /**
33595
+ *
33596
+ * @summary Validate a loyalty reward QR code wallet transaction
33597
+ * @param {number} businessId
33598
+ * @param {string} loyaltyId
33599
+ * @param {number} walletId
33600
+ * @param {*} [options] Override http request option.
33601
+ * @throws {RequiredError}
33602
+ * @memberof LoyaltyIntegerationsApiInterface
33603
+ */
33604
+ validateWallet(businessId: number, loyaltyId: string, walletId: number, options?: AxiosRequestConfig): AxiosPromise<WalletValidationResponseDto>;
33605
+
34389
33606
  }
34390
33607
 
34391
33608
  /**
@@ -34536,6 +33753,20 @@ export class LoyaltyIntegerationsApi extends BaseAPI implements LoyaltyIntegerat
34536
33753
  public updatePoints(businessId: number, pointsUpdatePayloadDto: PointsUpdatePayloadDto, options?: AxiosRequestConfig) {
34537
33754
  return LoyaltyIntegerationsApiFp(this.configuration).updatePoints(businessId, pointsUpdatePayloadDto, options).then((request) => request(this.axios, this.basePath));
34538
33755
  }
33756
+
33757
+ /**
33758
+ *
33759
+ * @summary Validate a loyalty reward QR code wallet transaction
33760
+ * @param {number} businessId
33761
+ * @param {string} loyaltyId
33762
+ * @param {number} walletId
33763
+ * @param {*} [options] Override http request option.
33764
+ * @throws {RequiredError}
33765
+ * @memberof LoyaltyIntegerationsApi
33766
+ */
33767
+ public validateWallet(businessId: number, loyaltyId: string, walletId: number, options?: AxiosRequestConfig) {
33768
+ return LoyaltyIntegerationsApiFp(this.configuration).validateWallet(businessId, loyaltyId, walletId, options).then((request) => request(this.axios, this.basePath));
33769
+ }
34539
33770
  }
34540
33771
 
34541
33772
 
@@ -34689,6 +33920,45 @@ export const MenuApiAxiosParamCreator = function (configuration?: Configuration)
34689
33920
 
34690
33921
 
34691
33922
 
33923
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33924
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33925
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33926
+
33927
+ return {
33928
+ url: toPathString(localVarUrlObj),
33929
+ options: localVarRequestOptions,
33930
+ };
33931
+ },
33932
+ /**
33933
+ *
33934
+ * @summary Get products by categories without channel_configs (product list / labels)
33935
+ * @param {string} businessId Unique identifier of the business
33936
+ * @param {'available' | 'unavailable'} [filter] Filter products by availability status
33937
+ * @param {*} [options] Override http request option.
33938
+ * @throws {RequiredError}
33939
+ */
33940
+ getProductsByCategoriesV3: async (businessId: string, filter?: 'available' | 'unavailable', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33941
+ // verify required parameter 'businessId' is not null or undefined
33942
+ assertParamExists('getProductsByCategoriesV3', 'businessId', businessId)
33943
+ const localVarPath = `/api/v3/menu/{businessId}/categories`
33944
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
33945
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33946
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33947
+ let baseOptions;
33948
+ if (configuration) {
33949
+ baseOptions = configuration.baseOptions;
33950
+ }
33951
+
33952
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33953
+ const localVarHeaderParameter = {} as any;
33954
+ const localVarQueryParameter = {} as any;
33955
+
33956
+ if (filter !== undefined) {
33957
+ localVarQueryParameter['filter'] = filter;
33958
+ }
33959
+
33960
+
33961
+
34692
33962
  setSearchParams(localVarUrlObj, localVarQueryParameter);
34693
33963
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34694
33964
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -34790,6 +34060,18 @@ export const MenuApiFp = function(configuration?: Configuration) {
34790
34060
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductsByCategoriesV2(businessId, filter, options);
34791
34061
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34792
34062
  },
34063
+ /**
34064
+ *
34065
+ * @summary Get products by categories without channel_configs (product list / labels)
34066
+ * @param {string} businessId Unique identifier of the business
34067
+ * @param {'available' | 'unavailable'} [filter] Filter products by availability status
34068
+ * @param {*} [options] Override http request option.
34069
+ * @throws {RequiredError}
34070
+ */
34071
+ async getProductsByCategoriesV3(businessId: string, filter?: 'available' | 'unavailable', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsByCategoriesV3ResponseDto>> {
34072
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductsByCategoriesV3(businessId, filter, options);
34073
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34074
+ },
34793
34075
  /**
34794
34076
  *
34795
34077
  * @param {ResetEodDto} resetEodDto
@@ -34853,6 +34135,17 @@ export const MenuApiFactory = function (configuration?: Configuration, basePath?
34853
34135
  getProductsByCategoriesV2(businessId: string, filter?: 'available' | 'unavailable', options?: any): AxiosPromise<ProductsByCategoriesResponseDto> {
34854
34136
  return localVarFp.getProductsByCategoriesV2(businessId, filter, options).then((request) => request(axios, basePath));
34855
34137
  },
34138
+ /**
34139
+ *
34140
+ * @summary Get products by categories without channel_configs (product list / labels)
34141
+ * @param {string} businessId Unique identifier of the business
34142
+ * @param {'available' | 'unavailable'} [filter] Filter products by availability status
34143
+ * @param {*} [options] Override http request option.
34144
+ * @throws {RequiredError}
34145
+ */
34146
+ getProductsByCategoriesV3(businessId: string, filter?: 'available' | 'unavailable', options?: any): AxiosPromise<ProductsByCategoriesV3ResponseDto> {
34147
+ return localVarFp.getProductsByCategoriesV3(businessId, filter, options).then((request) => request(axios, basePath));
34148
+ },
34856
34149
  /**
34857
34150
  *
34858
34151
  * @param {ResetEodDto} resetEodDto
@@ -34914,6 +34207,17 @@ export interface MenuApiInterface {
34914
34207
  */
34915
34208
  getProductsByCategoriesV2(businessId: string, filter?: 'available' | 'unavailable', options?: AxiosRequestConfig): AxiosPromise<ProductsByCategoriesResponseDto>;
34916
34209
 
34210
+ /**
34211
+ *
34212
+ * @summary Get products by categories without channel_configs (product list / labels)
34213
+ * @param {string} businessId Unique identifier of the business
34214
+ * @param {'available' | 'unavailable'} [filter] Filter products by availability status
34215
+ * @param {*} [options] Override http request option.
34216
+ * @throws {RequiredError}
34217
+ * @memberof MenuApiInterface
34218
+ */
34219
+ getProductsByCategoriesV3(businessId: string, filter?: 'available' | 'unavailable', options?: AxiosRequestConfig): AxiosPromise<ProductsByCategoriesV3ResponseDto>;
34220
+
34917
34221
  /**
34918
34222
  *
34919
34223
  * @param {ResetEodDto} resetEodDto
@@ -34983,6 +34287,19 @@ export class MenuApi extends BaseAPI implements MenuApiInterface {
34983
34287
  return MenuApiFp(this.configuration).getProductsByCategoriesV2(businessId, filter, options).then((request) => request(this.axios, this.basePath));
34984
34288
  }
34985
34289
 
34290
+ /**
34291
+ *
34292
+ * @summary Get products by categories without channel_configs (product list / labels)
34293
+ * @param {string} businessId Unique identifier of the business
34294
+ * @param {'available' | 'unavailable'} [filter] Filter products by availability status
34295
+ * @param {*} [options] Override http request option.
34296
+ * @throws {RequiredError}
34297
+ * @memberof MenuApi
34298
+ */
34299
+ public getProductsByCategoriesV3(businessId: string, filter?: 'available' | 'unavailable', options?: AxiosRequestConfig) {
34300
+ return MenuApiFp(this.configuration).getProductsByCategoriesV3(businessId, filter, options).then((request) => request(this.axios, this.basePath));
34301
+ }
34302
+
34986
34303
  /**
34987
34304
  *
34988
34305
  * @param {ResetEodDto} resetEodDto
@@ -38443,765 +37760,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
38443
37760
  }
38444
37761
 
38445
37762
 
38446
- /**
38447
- * PaymentMethodsApi - axios parameter creator
38448
- * @export
38449
- */
38450
- export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
38451
- return {
38452
- /**
38453
- *
38454
- * @param {number} businessId
38455
- * @param {ProviderEnum} channel
38456
- * @param {CreatePaymentMethodDto} createPaymentMethodDto
38457
- * @param {*} [options] Override http request option.
38458
- * @throws {RequiredError}
38459
- */
38460
- createPaymentMethod: async (businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38461
- // verify required parameter 'businessId' is not null or undefined
38462
- assertParamExists('createPaymentMethod', 'businessId', businessId)
38463
- // verify required parameter 'channel' is not null or undefined
38464
- assertParamExists('createPaymentMethod', 'channel', channel)
38465
- // verify required parameter 'createPaymentMethodDto' is not null or undefined
38466
- assertParamExists('createPaymentMethod', 'createPaymentMethodDto', createPaymentMethodDto)
38467
- const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
38468
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38469
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38470
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38471
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38472
- let baseOptions;
38473
- if (configuration) {
38474
- baseOptions = configuration.baseOptions;
38475
- }
38476
-
38477
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
38478
- const localVarHeaderParameter = {} as any;
38479
- const localVarQueryParameter = {} as any;
38480
-
38481
-
38482
-
38483
- localVarHeaderParameter['Content-Type'] = 'application/json';
38484
-
38485
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38486
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38487
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38488
- localVarRequestOptions.data = serializeDataIfNeeded(createPaymentMethodDto, localVarRequestOptions, configuration)
38489
-
38490
- return {
38491
- url: toPathString(localVarUrlObj),
38492
- options: localVarRequestOptions,
38493
- };
38494
- },
38495
- /**
38496
- *
38497
- * @param {number} businessId
38498
- * @param {ProviderEnum} channel
38499
- * @param {string} id
38500
- * @param {*} [options] Override http request option.
38501
- * @throws {RequiredError}
38502
- */
38503
- deletePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38504
- // verify required parameter 'businessId' is not null or undefined
38505
- assertParamExists('deletePaymentMethodOption', 'businessId', businessId)
38506
- // verify required parameter 'channel' is not null or undefined
38507
- assertParamExists('deletePaymentMethodOption', 'channel', channel)
38508
- // verify required parameter 'id' is not null or undefined
38509
- assertParamExists('deletePaymentMethodOption', 'id', id)
38510
- const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
38511
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38512
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38513
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
38514
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38515
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38516
- let baseOptions;
38517
- if (configuration) {
38518
- baseOptions = configuration.baseOptions;
38519
- }
38520
-
38521
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
38522
- const localVarHeaderParameter = {} as any;
38523
- const localVarQueryParameter = {} as any;
38524
-
38525
-
38526
-
38527
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38528
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38529
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38530
-
38531
- return {
38532
- url: toPathString(localVarUrlObj),
38533
- options: localVarRequestOptions,
38534
- };
38535
- },
38536
- /**
38537
- *
38538
- * @param {number} businessId
38539
- * @param {ProviderEnum} channel
38540
- * @param {any} [locale]
38541
- * @param {*} [options] Override http request option.
38542
- * @throws {RequiredError}
38543
- */
38544
- getCatalog: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38545
- // verify required parameter 'businessId' is not null or undefined
38546
- assertParamExists('getCatalog', 'businessId', businessId)
38547
- // verify required parameter 'channel' is not null or undefined
38548
- assertParamExists('getCatalog', 'channel', channel)
38549
- const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog`
38550
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38551
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38552
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38553
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38554
- let baseOptions;
38555
- if (configuration) {
38556
- baseOptions = configuration.baseOptions;
38557
- }
38558
-
38559
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38560
- const localVarHeaderParameter = {} as any;
38561
- const localVarQueryParameter = {} as any;
38562
-
38563
- if (locale !== undefined) {
38564
- localVarQueryParameter['locale'] = locale;
38565
- }
38566
-
38567
-
38568
-
38569
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38570
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38571
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38572
-
38573
- return {
38574
- url: toPathString(localVarUrlObj),
38575
- options: localVarRequestOptions,
38576
- };
38577
- },
38578
- /**
38579
- *
38580
- * @param {ProviderEnum} channel
38581
- * @param {number} businessId
38582
- * @param {any} [locale]
38583
- * @param {*} [options] Override http request option.
38584
- * @throws {RequiredError}
38585
- */
38586
- getGlobalCatalog: async (channel: ProviderEnum, businessId: number, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38587
- // verify required parameter 'channel' is not null or undefined
38588
- assertParamExists('getGlobalCatalog', 'channel', channel)
38589
- // verify required parameter 'businessId' is not null or undefined
38590
- assertParamExists('getGlobalCatalog', 'businessId', businessId)
38591
- const localVarPath = `/api/v1/payment-methods/catalog`
38592
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38593
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
38594
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38595
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38596
- let baseOptions;
38597
- if (configuration) {
38598
- baseOptions = configuration.baseOptions;
38599
- }
38600
-
38601
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38602
- const localVarHeaderParameter = {} as any;
38603
- const localVarQueryParameter = {} as any;
38604
-
38605
- if (locale !== undefined) {
38606
- localVarQueryParameter['locale'] = locale;
38607
- }
38608
-
38609
-
38610
-
38611
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38612
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38613
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38614
-
38615
- return {
38616
- url: toPathString(localVarUrlObj),
38617
- options: localVarRequestOptions,
38618
- };
38619
- },
38620
- /**
38621
- *
38622
- * @param {number} businessId
38623
- * @param {ProviderEnum} channel
38624
- * @param {any} [locale]
38625
- * @param {*} [options] Override http request option.
38626
- * @throws {RequiredError}
38627
- */
38628
- getPaymentMethods: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38629
- // verify required parameter 'businessId' is not null or undefined
38630
- assertParamExists('getPaymentMethods', 'businessId', businessId)
38631
- // verify required parameter 'channel' is not null or undefined
38632
- assertParamExists('getPaymentMethods', 'channel', channel)
38633
- const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
38634
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38635
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38636
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38637
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38638
- let baseOptions;
38639
- if (configuration) {
38640
- baseOptions = configuration.baseOptions;
38641
- }
38642
-
38643
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38644
- const localVarHeaderParameter = {} as any;
38645
- const localVarQueryParameter = {} as any;
38646
-
38647
- if (locale !== undefined) {
38648
- localVarQueryParameter['locale'] = locale;
38649
- }
38650
-
38651
-
38652
-
38653
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38654
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38655
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38656
-
38657
- return {
38658
- url: toPathString(localVarUrlObj),
38659
- options: localVarRequestOptions,
38660
- };
38661
- },
38662
- /**
38663
- *
38664
- * @param {ProviderEnum} channel
38665
- * @param {number} businessId
38666
- * @param {*} [options] Override http request option.
38667
- * @throws {RequiredError}
38668
- */
38669
- getTypes: async (channel: ProviderEnum, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38670
- // verify required parameter 'channel' is not null or undefined
38671
- assertParamExists('getTypes', 'channel', channel)
38672
- // verify required parameter 'businessId' is not null or undefined
38673
- assertParamExists('getTypes', 'businessId', businessId)
38674
- const localVarPath = `/api/v1/payment-methods/types`
38675
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38676
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
38677
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38678
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38679
- let baseOptions;
38680
- if (configuration) {
38681
- baseOptions = configuration.baseOptions;
38682
- }
38683
-
38684
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38685
- const localVarHeaderParameter = {} as any;
38686
- const localVarQueryParameter = {} as any;
38687
-
38688
-
38689
-
38690
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38691
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38692
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38693
-
38694
- return {
38695
- url: toPathString(localVarUrlObj),
38696
- options: localVarRequestOptions,
38697
- };
38698
- },
38699
- /**
38700
- *
38701
- * @param {number} businessId
38702
- * @param {ProviderEnum} channel
38703
- * @param {BulkRankDto} bulkRankDto
38704
- * @param {*} [options] Override http request option.
38705
- * @throws {RequiredError}
38706
- */
38707
- reorder: async (businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38708
- // verify required parameter 'businessId' is not null or undefined
38709
- assertParamExists('reorder', 'businessId', businessId)
38710
- // verify required parameter 'channel' is not null or undefined
38711
- assertParamExists('reorder', 'channel', channel)
38712
- // verify required parameter 'bulkRankDto' is not null or undefined
38713
- assertParamExists('reorder', 'bulkRankDto', bulkRankDto)
38714
- const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank`
38715
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38716
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
38717
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38718
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38719
- let baseOptions;
38720
- if (configuration) {
38721
- baseOptions = configuration.baseOptions;
38722
- }
38723
-
38724
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
38725
- const localVarHeaderParameter = {} as any;
38726
- const localVarQueryParameter = {} as any;
38727
-
38728
-
38729
-
38730
- localVarHeaderParameter['Content-Type'] = 'application/json';
38731
-
38732
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38733
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38734
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38735
- localVarRequestOptions.data = serializeDataIfNeeded(bulkRankDto, localVarRequestOptions, configuration)
38736
-
38737
- return {
38738
- url: toPathString(localVarUrlObj),
38739
- options: localVarRequestOptions,
38740
- };
38741
- },
38742
- /**
38743
- *
38744
- * @param {number} businessId
38745
- * @param {ProviderEnum} channel
38746
- * @param {string} id
38747
- * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
38748
- * @param {*} [options] Override http request option.
38749
- * @throws {RequiredError}
38750
- */
38751
- updatePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38752
- // verify required parameter 'businessId' is not null or undefined
38753
- assertParamExists('updatePaymentMethodOption', 'businessId', businessId)
38754
- // verify required parameter 'channel' is not null or undefined
38755
- assertParamExists('updatePaymentMethodOption', 'channel', channel)
38756
- // verify required parameter 'id' is not null or undefined
38757
- assertParamExists('updatePaymentMethodOption', 'id', id)
38758
- // verify required parameter 'updatePaymentMethodOptionDto' is not null or undefined
38759
- assertParamExists('updatePaymentMethodOption', 'updatePaymentMethodOptionDto', updatePaymentMethodOptionDto)
38760
- const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
38761
- .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
38762
- .replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
38763
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
38764
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
38765
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38766
- let baseOptions;
38767
- if (configuration) {
38768
- baseOptions = configuration.baseOptions;
38769
- }
38770
-
38771
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
38772
- const localVarHeaderParameter = {} as any;
38773
- const localVarQueryParameter = {} as any;
38774
-
38775
-
38776
-
38777
- localVarHeaderParameter['Content-Type'] = 'application/json';
38778
-
38779
- setSearchParams(localVarUrlObj, localVarQueryParameter);
38780
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38781
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38782
- localVarRequestOptions.data = serializeDataIfNeeded(updatePaymentMethodOptionDto, localVarRequestOptions, configuration)
38783
-
38784
- return {
38785
- url: toPathString(localVarUrlObj),
38786
- options: localVarRequestOptions,
38787
- };
38788
- },
38789
- }
38790
- };
38791
-
38792
- /**
38793
- * PaymentMethodsApi - functional programming interface
38794
- * @export
38795
- */
38796
- export const PaymentMethodsApiFp = function(configuration?: Configuration) {
38797
- const localVarAxiosParamCreator = PaymentMethodsApiAxiosParamCreator(configuration)
38798
- return {
38799
- /**
38800
- *
38801
- * @param {number} businessId
38802
- * @param {ProviderEnum} channel
38803
- * @param {CreatePaymentMethodDto} createPaymentMethodDto
38804
- * @param {*} [options] Override http request option.
38805
- * @throws {RequiredError}
38806
- */
38807
- async createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
38808
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(businessId, channel, createPaymentMethodDto, options);
38809
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38810
- },
38811
- /**
38812
- *
38813
- * @param {number} businessId
38814
- * @param {ProviderEnum} channel
38815
- * @param {string} id
38816
- * @param {*} [options] Override http request option.
38817
- * @throws {RequiredError}
38818
- */
38819
- async deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
38820
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethodOption(businessId, channel, id, options);
38821
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38822
- },
38823
- /**
38824
- *
38825
- * @param {number} businessId
38826
- * @param {ProviderEnum} channel
38827
- * @param {any} [locale]
38828
- * @param {*} [options] Override http request option.
38829
- * @throws {RequiredError}
38830
- */
38831
- async getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AvailablePaymentMethodDto>>> {
38832
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalog(businessId, channel, locale, options);
38833
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38834
- },
38835
- /**
38836
- *
38837
- * @param {ProviderEnum} channel
38838
- * @param {number} businessId
38839
- * @param {any} [locale]
38840
- * @param {*} [options] Override http request option.
38841
- * @throws {RequiredError}
38842
- */
38843
- async getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CatalogMethodDto>>> {
38844
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalCatalog(channel, businessId, locale, options);
38845
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38846
- },
38847
- /**
38848
- *
38849
- * @param {number} businessId
38850
- * @param {ProviderEnum} channel
38851
- * @param {any} [locale]
38852
- * @param {*} [options] Override http request option.
38853
- * @throws {RequiredError}
38854
- */
38855
- async getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodDto>>> {
38856
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(businessId, channel, locale, options);
38857
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38858
- },
38859
- /**
38860
- *
38861
- * @param {ProviderEnum} channel
38862
- * @param {number} businessId
38863
- * @param {*} [options] Override http request option.
38864
- * @throws {RequiredError}
38865
- */
38866
- async getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodTypeDto>>> {
38867
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTypes(channel, businessId, options);
38868
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38869
- },
38870
- /**
38871
- *
38872
- * @param {number} businessId
38873
- * @param {ProviderEnum} channel
38874
- * @param {BulkRankDto} bulkRankDto
38875
- * @param {*} [options] Override http request option.
38876
- * @throws {RequiredError}
38877
- */
38878
- async reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
38879
- const localVarAxiosArgs = await localVarAxiosParamCreator.reorder(businessId, channel, bulkRankDto, options);
38880
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38881
- },
38882
- /**
38883
- *
38884
- * @param {number} businessId
38885
- * @param {ProviderEnum} channel
38886
- * @param {string} id
38887
- * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
38888
- * @param {*} [options] Override http request option.
38889
- * @throws {RequiredError}
38890
- */
38891
- async updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
38892
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options);
38893
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38894
- },
38895
- }
38896
- };
38897
-
38898
- /**
38899
- * PaymentMethodsApi - factory interface
38900
- * @export
38901
- */
38902
- export const PaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
38903
- const localVarFp = PaymentMethodsApiFp(configuration)
38904
- return {
38905
- /**
38906
- *
38907
- * @param {number} businessId
38908
- * @param {ProviderEnum} channel
38909
- * @param {CreatePaymentMethodDto} createPaymentMethodDto
38910
- * @param {*} [options] Override http request option.
38911
- * @throws {RequiredError}
38912
- */
38913
- createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: any): AxiosPromise<PaymentMethodDto> {
38914
- return localVarFp.createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(axios, basePath));
38915
- },
38916
- /**
38917
- *
38918
- * @param {number} businessId
38919
- * @param {ProviderEnum} channel
38920
- * @param {string} id
38921
- * @param {*} [options] Override http request option.
38922
- * @throws {RequiredError}
38923
- */
38924
- deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: any): AxiosPromise<void> {
38925
- return localVarFp.deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(axios, basePath));
38926
- },
38927
- /**
38928
- *
38929
- * @param {number} businessId
38930
- * @param {ProviderEnum} channel
38931
- * @param {any} [locale]
38932
- * @param {*} [options] Override http request option.
38933
- * @throws {RequiredError}
38934
- */
38935
- getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<AvailablePaymentMethodDto>> {
38936
- return localVarFp.getCatalog(businessId, channel, locale, options).then((request) => request(axios, basePath));
38937
- },
38938
- /**
38939
- *
38940
- * @param {ProviderEnum} channel
38941
- * @param {number} businessId
38942
- * @param {any} [locale]
38943
- * @param {*} [options] Override http request option.
38944
- * @throws {RequiredError}
38945
- */
38946
- getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: any): AxiosPromise<Array<CatalogMethodDto>> {
38947
- return localVarFp.getGlobalCatalog(channel, businessId, locale, options).then((request) => request(axios, basePath));
38948
- },
38949
- /**
38950
- *
38951
- * @param {number} businessId
38952
- * @param {ProviderEnum} channel
38953
- * @param {any} [locale]
38954
- * @param {*} [options] Override http request option.
38955
- * @throws {RequiredError}
38956
- */
38957
- getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<PaymentMethodDto>> {
38958
- return localVarFp.getPaymentMethods(businessId, channel, locale, options).then((request) => request(axios, basePath));
38959
- },
38960
- /**
38961
- *
38962
- * @param {ProviderEnum} channel
38963
- * @param {number} businessId
38964
- * @param {*} [options] Override http request option.
38965
- * @throws {RequiredError}
38966
- */
38967
- getTypes(channel: ProviderEnum, businessId: number, options?: any): AxiosPromise<Array<PaymentMethodTypeDto>> {
38968
- return localVarFp.getTypes(channel, businessId, options).then((request) => request(axios, basePath));
38969
- },
38970
- /**
38971
- *
38972
- * @param {number} businessId
38973
- * @param {ProviderEnum} channel
38974
- * @param {BulkRankDto} bulkRankDto
38975
- * @param {*} [options] Override http request option.
38976
- * @throws {RequiredError}
38977
- */
38978
- reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: any): AxiosPromise<void> {
38979
- return localVarFp.reorder(businessId, channel, bulkRankDto, options).then((request) => request(axios, basePath));
38980
- },
38981
- /**
38982
- *
38983
- * @param {number} businessId
38984
- * @param {ProviderEnum} channel
38985
- * @param {string} id
38986
- * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
38987
- * @param {*} [options] Override http request option.
38988
- * @throws {RequiredError}
38989
- */
38990
- updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: any): AxiosPromise<PaymentMethodDto> {
38991
- return localVarFp.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(axios, basePath));
38992
- },
38993
- };
38994
- };
38995
-
38996
- /**
38997
- * PaymentMethodsApi - interface
38998
- * @export
38999
- * @interface PaymentMethodsApi
39000
- */
39001
- export interface PaymentMethodsApiInterface {
39002
- /**
39003
- *
39004
- * @param {number} businessId
39005
- * @param {ProviderEnum} channel
39006
- * @param {CreatePaymentMethodDto} createPaymentMethodDto
39007
- * @param {*} [options] Override http request option.
39008
- * @throws {RequiredError}
39009
- * @memberof PaymentMethodsApiInterface
39010
- */
39011
- createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
39012
-
39013
- /**
39014
- *
39015
- * @param {number} businessId
39016
- * @param {ProviderEnum} channel
39017
- * @param {string} id
39018
- * @param {*} [options] Override http request option.
39019
- * @throws {RequiredError}
39020
- * @memberof PaymentMethodsApiInterface
39021
- */
39022
- deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): AxiosPromise<void>;
39023
-
39024
- /**
39025
- *
39026
- * @param {number} businessId
39027
- * @param {ProviderEnum} channel
39028
- * @param {any} [locale]
39029
- * @param {*} [options] Override http request option.
39030
- * @throws {RequiredError}
39031
- * @memberof PaymentMethodsApiInterface
39032
- */
39033
- getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<AvailablePaymentMethodDto>>;
39034
-
39035
- /**
39036
- *
39037
- * @param {ProviderEnum} channel
39038
- * @param {number} businessId
39039
- * @param {any} [locale]
39040
- * @param {*} [options] Override http request option.
39041
- * @throws {RequiredError}
39042
- * @memberof PaymentMethodsApiInterface
39043
- */
39044
- getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<CatalogMethodDto>>;
39045
-
39046
- /**
39047
- *
39048
- * @param {number} businessId
39049
- * @param {ProviderEnum} channel
39050
- * @param {any} [locale]
39051
- * @param {*} [options] Override http request option.
39052
- * @throws {RequiredError}
39053
- * @memberof PaymentMethodsApiInterface
39054
- */
39055
- getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodDto>>;
39056
-
39057
- /**
39058
- *
39059
- * @param {ProviderEnum} channel
39060
- * @param {number} businessId
39061
- * @param {*} [options] Override http request option.
39062
- * @throws {RequiredError}
39063
- * @memberof PaymentMethodsApiInterface
39064
- */
39065
- getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodTypeDto>>;
39066
-
39067
- /**
39068
- *
39069
- * @param {number} businessId
39070
- * @param {ProviderEnum} channel
39071
- * @param {BulkRankDto} bulkRankDto
39072
- * @param {*} [options] Override http request option.
39073
- * @throws {RequiredError}
39074
- * @memberof PaymentMethodsApiInterface
39075
- */
39076
- reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): AxiosPromise<void>;
39077
-
39078
- /**
39079
- *
39080
- * @param {number} businessId
39081
- * @param {ProviderEnum} channel
39082
- * @param {string} id
39083
- * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
39084
- * @param {*} [options] Override http request option.
39085
- * @throws {RequiredError}
39086
- * @memberof PaymentMethodsApiInterface
39087
- */
39088
- updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
39089
-
39090
- }
39091
-
39092
- /**
39093
- * PaymentMethodsApi - object-oriented interface
39094
- * @export
39095
- * @class PaymentMethodsApi
39096
- * @extends {BaseAPI}
39097
- */
39098
- export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInterface {
39099
- /**
39100
- *
39101
- * @param {number} businessId
39102
- * @param {ProviderEnum} channel
39103
- * @param {CreatePaymentMethodDto} createPaymentMethodDto
39104
- * @param {*} [options] Override http request option.
39105
- * @throws {RequiredError}
39106
- * @memberof PaymentMethodsApi
39107
- */
39108
- public createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig) {
39109
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(this.axios, this.basePath));
39110
- }
39111
-
39112
- /**
39113
- *
39114
- * @param {number} businessId
39115
- * @param {ProviderEnum} channel
39116
- * @param {string} id
39117
- * @param {*} [options] Override http request option.
39118
- * @throws {RequiredError}
39119
- * @memberof PaymentMethodsApi
39120
- */
39121
- public deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig) {
39122
- return PaymentMethodsApiFp(this.configuration).deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(this.axios, this.basePath));
39123
- }
39124
-
39125
- /**
39126
- *
39127
- * @param {number} businessId
39128
- * @param {ProviderEnum} channel
39129
- * @param {any} [locale]
39130
- * @param {*} [options] Override http request option.
39131
- * @throws {RequiredError}
39132
- * @memberof PaymentMethodsApi
39133
- */
39134
- public getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
39135
- return PaymentMethodsApiFp(this.configuration).getCatalog(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
39136
- }
39137
-
39138
- /**
39139
- *
39140
- * @param {ProviderEnum} channel
39141
- * @param {number} businessId
39142
- * @param {any} [locale]
39143
- * @param {*} [options] Override http request option.
39144
- * @throws {RequiredError}
39145
- * @memberof PaymentMethodsApi
39146
- */
39147
- public getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig) {
39148
- return PaymentMethodsApiFp(this.configuration).getGlobalCatalog(channel, businessId, locale, options).then((request) => request(this.axios, this.basePath));
39149
- }
39150
-
39151
- /**
39152
- *
39153
- * @param {number} businessId
39154
- * @param {ProviderEnum} channel
39155
- * @param {any} [locale]
39156
- * @param {*} [options] Override http request option.
39157
- * @throws {RequiredError}
39158
- * @memberof PaymentMethodsApi
39159
- */
39160
- public getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
39161
- return PaymentMethodsApiFp(this.configuration).getPaymentMethods(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
39162
- }
39163
-
39164
- /**
39165
- *
39166
- * @param {ProviderEnum} channel
39167
- * @param {number} businessId
39168
- * @param {*} [options] Override http request option.
39169
- * @throws {RequiredError}
39170
- * @memberof PaymentMethodsApi
39171
- */
39172
- public getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig) {
39173
- return PaymentMethodsApiFp(this.configuration).getTypes(channel, businessId, options).then((request) => request(this.axios, this.basePath));
39174
- }
39175
-
39176
- /**
39177
- *
39178
- * @param {number} businessId
39179
- * @param {ProviderEnum} channel
39180
- * @param {BulkRankDto} bulkRankDto
39181
- * @param {*} [options] Override http request option.
39182
- * @throws {RequiredError}
39183
- * @memberof PaymentMethodsApi
39184
- */
39185
- public reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig) {
39186
- return PaymentMethodsApiFp(this.configuration).reorder(businessId, channel, bulkRankDto, options).then((request) => request(this.axios, this.basePath));
39187
- }
39188
-
39189
- /**
39190
- *
39191
- * @param {number} businessId
39192
- * @param {ProviderEnum} channel
39193
- * @param {string} id
39194
- * @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
39195
- * @param {*} [options] Override http request option.
39196
- * @throws {RequiredError}
39197
- * @memberof PaymentMethodsApi
39198
- */
39199
- public updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig) {
39200
- return PaymentMethodsApiFp(this.configuration).updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(this.axios, this.basePath));
39201
- }
39202
- }
39203
-
39204
-
39205
37763
  /**
39206
37764
  * PaymentSessionApi - axios parameter creator
39207
37765
  * @export
@@ -40758,6 +39316,48 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
40758
39316
 
40759
39317
 
40760
39318
 
39319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39321
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39322
+
39323
+ return {
39324
+ url: toPathString(localVarUrlObj),
39325
+ options: localVarRequestOptions,
39326
+ };
39327
+ },
39328
+ /**
39329
+ * Returns inventory settings across all channels; used by the pencil-edit flow
39330
+ * @summary Get channel inventory (all channels) for a product
39331
+ * @param {string} businessId Business ID
39332
+ * @param {string} categoryId Category ID
39333
+ * @param {string} productId Product ID
39334
+ * @param {*} [options] Override http request option.
39335
+ * @throws {RequiredError}
39336
+ */
39337
+ getChannelInventoryV2: async (businessId: string, categoryId: string, productId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39338
+ // verify required parameter 'businessId' is not null or undefined
39339
+ assertParamExists('getChannelInventoryV2', 'businessId', businessId)
39340
+ // verify required parameter 'categoryId' is not null or undefined
39341
+ assertParamExists('getChannelInventoryV2', 'categoryId', categoryId)
39342
+ // verify required parameter 'productId' is not null or undefined
39343
+ assertParamExists('getChannelInventoryV2', 'productId', productId)
39344
+ const localVarPath = `/api/v2/business/{businessId}/categories/{categoryId}/products/{productId}/channel-inventory`
39345
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
39346
+ .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)))
39347
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
39348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39350
+ let baseOptions;
39351
+ if (configuration) {
39352
+ baseOptions = configuration.baseOptions;
39353
+ }
39354
+
39355
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39356
+ const localVarHeaderParameter = {} as any;
39357
+ const localVarQueryParameter = {} as any;
39358
+
39359
+
39360
+
40761
39361
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40762
39362
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40763
39363
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -40886,6 +39486,19 @@ export const ProductApiFp = function(configuration?: Configuration) {
40886
39486
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateProductSkuV2(businessId, categoryId, productId, options);
40887
39487
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40888
39488
  },
39489
+ /**
39490
+ * Returns inventory settings across all channels; used by the pencil-edit flow
39491
+ * @summary Get channel inventory (all channels) for a product
39492
+ * @param {string} businessId Business ID
39493
+ * @param {string} categoryId Category ID
39494
+ * @param {string} productId Product ID
39495
+ * @param {*} [options] Override http request option.
39496
+ * @throws {RequiredError}
39497
+ */
39498
+ async getChannelInventoryV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChannelInventoryResponseDto>>> {
39499
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelInventoryV2(businessId, categoryId, productId, options);
39500
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39501
+ },
40889
39502
  /**
40890
39503
  * Update inventory settings for multiple channels at once
40891
39504
  * @summary Update channel inventory (POS, Kiosk, etc.)
@@ -40936,6 +39549,18 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
40936
39549
  generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: any): AxiosPromise<ProductSkuResponseDto> {
40937
39550
  return localVarFp.generateProductSkuV2(businessId, categoryId, productId, options).then((request) => request(axios, basePath));
40938
39551
  },
39552
+ /**
39553
+ * Returns inventory settings across all channels; used by the pencil-edit flow
39554
+ * @summary Get channel inventory (all channels) for a product
39555
+ * @param {string} businessId Business ID
39556
+ * @param {string} categoryId Category ID
39557
+ * @param {string} productId Product ID
39558
+ * @param {*} [options] Override http request option.
39559
+ * @throws {RequiredError}
39560
+ */
39561
+ getChannelInventoryV2(businessId: string, categoryId: string, productId: string, options?: any): AxiosPromise<Array<ChannelInventoryResponseDto>> {
39562
+ return localVarFp.getChannelInventoryV2(businessId, categoryId, productId, options).then((request) => request(axios, basePath));
39563
+ },
40939
39564
  /**
40940
39565
  * Update inventory settings for multiple channels at once
40941
39566
  * @summary Update channel inventory (POS, Kiosk, etc.)
@@ -40983,6 +39608,18 @@ export interface ProductApiInterface {
40983
39608
  */
40984
39609
  generateProductSkuV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): AxiosPromise<ProductSkuResponseDto>;
40985
39610
 
39611
+ /**
39612
+ * Returns inventory settings across all channels; used by the pencil-edit flow
39613
+ * @summary Get channel inventory (all channels) for a product
39614
+ * @param {string} businessId Business ID
39615
+ * @param {string} categoryId Category ID
39616
+ * @param {string} productId Product ID
39617
+ * @param {*} [options] Override http request option.
39618
+ * @throws {RequiredError}
39619
+ * @memberof ProductApiInterface
39620
+ */
39621
+ getChannelInventoryV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig): AxiosPromise<Array<ChannelInventoryResponseDto>>;
39622
+
40986
39623
  /**
40987
39624
  * Update inventory settings for multiple channels at once
40988
39625
  * @summary Update channel inventory (POS, Kiosk, etc.)
@@ -41032,6 +39669,20 @@ export class ProductApi extends BaseAPI implements ProductApiInterface {
41032
39669
  return ProductApiFp(this.configuration).generateProductSkuV2(businessId, categoryId, productId, options).then((request) => request(this.axios, this.basePath));
41033
39670
  }
41034
39671
 
39672
+ /**
39673
+ * Returns inventory settings across all channels; used by the pencil-edit flow
39674
+ * @summary Get channel inventory (all channels) for a product
39675
+ * @param {string} businessId Business ID
39676
+ * @param {string} categoryId Category ID
39677
+ * @param {string} productId Product ID
39678
+ * @param {*} [options] Override http request option.
39679
+ * @throws {RequiredError}
39680
+ * @memberof ProductApi
39681
+ */
39682
+ public getChannelInventoryV2(businessId: string, categoryId: string, productId: string, options?: AxiosRequestConfig) {
39683
+ return ProductApiFp(this.configuration).getChannelInventoryV2(businessId, categoryId, productId, options).then((request) => request(this.axios, this.basePath));
39684
+ }
39685
+
41035
39686
  /**
41036
39687
  * Update inventory settings for multiple channels at once
41037
39688
  * @summary Update channel inventory (POS, Kiosk, etc.)