@munchi_oy/core 1.9.48 → 1.9.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +945 -43
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +1149 -22
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -464,6 +464,37 @@ 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
|
+
}
|
|
467
498
|
/**
|
|
468
499
|
*
|
|
469
500
|
* @export
|
|
@@ -2406,6 +2437,112 @@ export interface CashSessionTotalsDto {
|
|
|
2406
2437
|
*/
|
|
2407
2438
|
'cashOut': number;
|
|
2408
2439
|
}
|
|
2440
|
+
/**
|
|
2441
|
+
*
|
|
2442
|
+
* @export
|
|
2443
|
+
* @interface CatalogMethodDto
|
|
2444
|
+
*/
|
|
2445
|
+
export interface CatalogMethodDto {
|
|
2446
|
+
/**
|
|
2447
|
+
* Stable, immutable method code (catalog identity).
|
|
2448
|
+
* @type {string}
|
|
2449
|
+
* @memberof CatalogMethodDto
|
|
2450
|
+
*/
|
|
2451
|
+
'code': string;
|
|
2452
|
+
/**
|
|
2453
|
+
* Catalog type that drives this method\'s behavior.
|
|
2454
|
+
* @type {string}
|
|
2455
|
+
* @memberof CatalogMethodDto
|
|
2456
|
+
*/
|
|
2457
|
+
'typeCode': string;
|
|
2458
|
+
/**
|
|
2459
|
+
* Resolved display label for this code.
|
|
2460
|
+
* @type {string}
|
|
2461
|
+
* @memberof CatalogMethodDto
|
|
2462
|
+
*/
|
|
2463
|
+
'label': string;
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @type {CatalogMethodDtoCapabilities}
|
|
2467
|
+
* @memberof CatalogMethodDto
|
|
2468
|
+
*/
|
|
2469
|
+
'capabilities': CatalogMethodDtoCapabilities;
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Behavior resolved from the catalog type + per-method overrides.
|
|
2473
|
+
* @export
|
|
2474
|
+
* @interface CatalogMethodDtoCapabilities
|
|
2475
|
+
*/
|
|
2476
|
+
export interface CatalogMethodDtoCapabilities {
|
|
2477
|
+
/**
|
|
2478
|
+
* Whether this method can be refunded at all.
|
|
2479
|
+
* @type {boolean}
|
|
2480
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2481
|
+
*/
|
|
2482
|
+
'refundable': boolean;
|
|
2483
|
+
/**
|
|
2484
|
+
* Whether a refund can be split across this method and others.
|
|
2485
|
+
* @type {boolean}
|
|
2486
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2487
|
+
*/
|
|
2488
|
+
'refundSplittable': boolean;
|
|
2489
|
+
/**
|
|
2490
|
+
* Whether the customer may choose this method as a refund target.
|
|
2491
|
+
* @type {boolean}
|
|
2492
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2493
|
+
*/
|
|
2494
|
+
'refundChoiceEligible': boolean;
|
|
2495
|
+
/**
|
|
2496
|
+
* Refund allocation order (lower = refunded first); null when not refundable.
|
|
2497
|
+
* @type {number}
|
|
2498
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2499
|
+
*/
|
|
2500
|
+
'refundPriorityTier': number | null;
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @type {PaymentCheckoutFlow}
|
|
2504
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2505
|
+
*/
|
|
2506
|
+
'checkoutFlow': PaymentCheckoutFlow;
|
|
2507
|
+
/**
|
|
2508
|
+
* Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
|
|
2509
|
+
* @type {string}
|
|
2510
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2511
|
+
*/
|
|
2512
|
+
'tone': string;
|
|
2513
|
+
/**
|
|
2514
|
+
* Whether a refund is sent back to the original card via the terminal SDK.
|
|
2515
|
+
* @type {boolean}
|
|
2516
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2517
|
+
*/
|
|
2518
|
+
'refundToCard': boolean;
|
|
2519
|
+
/**
|
|
2520
|
+
* Whether refunding this method needs an active card provider (Viva/Nets).
|
|
2521
|
+
* @type {boolean}
|
|
2522
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2523
|
+
*/
|
|
2524
|
+
'requiresProvider': boolean;
|
|
2525
|
+
/**
|
|
2526
|
+
* Whether checkout needs a manual resolution step (cash rounding, voucher selection).
|
|
2527
|
+
* @type {boolean}
|
|
2528
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2529
|
+
*/
|
|
2530
|
+
'requiresManualResolution': boolean;
|
|
2531
|
+
/**
|
|
2532
|
+
* Whether receipts/print should show a forfeited (leftover) amount line.
|
|
2533
|
+
* @type {boolean}
|
|
2534
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2535
|
+
*/
|
|
2536
|
+
'shouldDisplayForfeitedAmount': boolean;
|
|
2537
|
+
/**
|
|
2538
|
+
* Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
|
|
2539
|
+
* @type {string}
|
|
2540
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2541
|
+
*/
|
|
2542
|
+
'notificationIssuer': string | null;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
|
|
2409
2546
|
/**
|
|
2410
2547
|
*
|
|
2411
2548
|
* @export
|
|
@@ -3165,20 +3302,6 @@ export interface CourseDto {
|
|
|
3165
3302
|
*/
|
|
3166
3303
|
'autoFire'?: boolean;
|
|
3167
3304
|
}
|
|
3168
|
-
/**
|
|
3169
|
-
*
|
|
3170
|
-
* @export
|
|
3171
|
-
* @enum {string}
|
|
3172
|
-
*/
|
|
3173
|
-
|
|
3174
|
-
export const CreatablePaymentType = {
|
|
3175
|
-
Manual: 'MANUAL',
|
|
3176
|
-
Voucher: 'VOUCHER'
|
|
3177
|
-
} as const;
|
|
3178
|
-
|
|
3179
|
-
export type CreatablePaymentType = typeof CreatablePaymentType[keyof typeof CreatablePaymentType];
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
3305
|
/**
|
|
3183
3306
|
*
|
|
3184
3307
|
* @export
|
|
@@ -4010,11 +4133,11 @@ export interface CreatePaymentMethodDto {
|
|
|
4010
4133
|
*/
|
|
4011
4134
|
'name'?: string;
|
|
4012
4135
|
/**
|
|
4013
|
-
*
|
|
4014
|
-
* @type {
|
|
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}
|
|
4015
4138
|
* @memberof CreatePaymentMethodDto
|
|
4016
4139
|
*/
|
|
4017
|
-
'type'?:
|
|
4140
|
+
'type'?: string;
|
|
4018
4141
|
/**
|
|
4019
4142
|
* Per-business name override.
|
|
4020
4143
|
* @type {string}
|
|
@@ -4057,9 +4180,38 @@ export interface CreatePaymentMethodDto {
|
|
|
4057
4180
|
* @memberof CreatePaymentMethodDto
|
|
4058
4181
|
*/
|
|
4059
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;
|
|
4060
4214
|
}
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
4215
|
/**
|
|
4064
4216
|
*
|
|
4065
4217
|
* @export
|
|
@@ -6325,6 +6477,56 @@ export interface GiftCardCredentialsDto {
|
|
|
6325
6477
|
*/
|
|
6326
6478
|
'password'?: string;
|
|
6327
6479
|
}
|
|
6480
|
+
/**
|
|
6481
|
+
*
|
|
6482
|
+
* @export
|
|
6483
|
+
* @interface GiftCardCredentialsInputDto
|
|
6484
|
+
*/
|
|
6485
|
+
export interface GiftCardCredentialsInputDto {
|
|
6486
|
+
/**
|
|
6487
|
+
* 3rd-party gift card account username.
|
|
6488
|
+
* @type {string}
|
|
6489
|
+
* @memberof GiftCardCredentialsInputDto
|
|
6490
|
+
*/
|
|
6491
|
+
'username'?: string;
|
|
6492
|
+
/**
|
|
6493
|
+
* 3rd-party gift card account password.
|
|
6494
|
+
* @type {string}
|
|
6495
|
+
* @memberof GiftCardCredentialsInputDto
|
|
6496
|
+
*/
|
|
6497
|
+
'password'?: string;
|
|
6498
|
+
/**
|
|
6499
|
+
* Unique POS device id for the 3rd-party gift card provider.
|
|
6500
|
+
* @type {string}
|
|
6501
|
+
* @memberof GiftCardCredentialsInputDto
|
|
6502
|
+
*/
|
|
6503
|
+
'uniquePosDeviceId'?: string;
|
|
6504
|
+
}
|
|
6505
|
+
/**
|
|
6506
|
+
*
|
|
6507
|
+
* @export
|
|
6508
|
+
* @interface GiftCardCredentialsViewDto
|
|
6509
|
+
*/
|
|
6510
|
+
export interface GiftCardCredentialsViewDto {
|
|
6511
|
+
/**
|
|
6512
|
+
* Saved 3rd-party gift card username.
|
|
6513
|
+
* @type {string}
|
|
6514
|
+
* @memberof GiftCardCredentialsViewDto
|
|
6515
|
+
*/
|
|
6516
|
+
'username': string | null;
|
|
6517
|
+
/**
|
|
6518
|
+
* Saved 3rd-party gift card password.
|
|
6519
|
+
* @type {string}
|
|
6520
|
+
* @memberof GiftCardCredentialsViewDto
|
|
6521
|
+
*/
|
|
6522
|
+
'password': string | null;
|
|
6523
|
+
/**
|
|
6524
|
+
* Saved unique POS device id for the 3rd-party gift card provider.
|
|
6525
|
+
* @type {string}
|
|
6526
|
+
* @memberof GiftCardCredentialsViewDto
|
|
6527
|
+
*/
|
|
6528
|
+
'uniquePosDeviceId': string | null;
|
|
6529
|
+
}
|
|
6328
6530
|
/**
|
|
6329
6531
|
*
|
|
6330
6532
|
* @export
|
|
@@ -9724,6 +9926,49 @@ export interface NetsCancelTransactionDto {
|
|
|
9724
9926
|
*/
|
|
9725
9927
|
'businessId': number;
|
|
9726
9928
|
}
|
|
9929
|
+
/**
|
|
9930
|
+
*
|
|
9931
|
+
* @export
|
|
9932
|
+
* @interface NetsConfigResponseDto
|
|
9933
|
+
*/
|
|
9934
|
+
export interface NetsConfigResponseDto {
|
|
9935
|
+
/**
|
|
9936
|
+
* Whether the Nets integration is active.
|
|
9937
|
+
* @type {boolean}
|
|
9938
|
+
* @memberof NetsConfigResponseDto
|
|
9939
|
+
*/
|
|
9940
|
+
'isActive': boolean;
|
|
9941
|
+
/**
|
|
9942
|
+
* Display name.
|
|
9943
|
+
* @type {string}
|
|
9944
|
+
* @memberof NetsConfigResponseDto
|
|
9945
|
+
*/
|
|
9946
|
+
'name': string | null;
|
|
9947
|
+
/**
|
|
9948
|
+
* Nets secret key.
|
|
9949
|
+
* @type {string}
|
|
9950
|
+
* @memberof NetsConfigResponseDto
|
|
9951
|
+
*/
|
|
9952
|
+
'secretKey': string | null;
|
|
9953
|
+
/**
|
|
9954
|
+
* Nets public key.
|
|
9955
|
+
* @type {string}
|
|
9956
|
+
* @memberof NetsConfigResponseDto
|
|
9957
|
+
*/
|
|
9958
|
+
'publicKey': string | null;
|
|
9959
|
+
/**
|
|
9960
|
+
* Nets OAuth client id.
|
|
9961
|
+
* @type {string}
|
|
9962
|
+
* @memberof NetsConfigResponseDto
|
|
9963
|
+
*/
|
|
9964
|
+
'clientId': string | null;
|
|
9965
|
+
/**
|
|
9966
|
+
* Nets OAuth client secret.
|
|
9967
|
+
* @type {string}
|
|
9968
|
+
* @memberof NetsConfigResponseDto
|
|
9969
|
+
*/
|
|
9970
|
+
'clientSecret': string | null;
|
|
9971
|
+
}
|
|
9727
9972
|
/**
|
|
9728
9973
|
*
|
|
9729
9974
|
* @export
|
|
@@ -11899,6 +12144,24 @@ export interface PaginationDto {
|
|
|
11899
12144
|
*/
|
|
11900
12145
|
'totalPages': number;
|
|
11901
12146
|
}
|
|
12147
|
+
/**
|
|
12148
|
+
*
|
|
12149
|
+
* @export
|
|
12150
|
+
* @enum {string}
|
|
12151
|
+
*/
|
|
12152
|
+
|
|
12153
|
+
export const PaymentCheckoutFlow = {
|
|
12154
|
+
TerminalCard: 'terminal_card',
|
|
12155
|
+
CardManual: 'card_manual',
|
|
12156
|
+
Cash: 'cash',
|
|
12157
|
+
GroupedVoucher: 'grouped_voucher',
|
|
12158
|
+
GiftCard: 'gift_card',
|
|
12159
|
+
Static: 'static'
|
|
12160
|
+
} as const;
|
|
12161
|
+
|
|
12162
|
+
export type PaymentCheckoutFlow = typeof PaymentCheckoutFlow[keyof typeof PaymentCheckoutFlow];
|
|
12163
|
+
|
|
12164
|
+
|
|
11902
12165
|
/**
|
|
11903
12166
|
*
|
|
11904
12167
|
* @export
|
|
@@ -12164,7 +12427,51 @@ export interface PaymentMethodCapabilitiesDto {
|
|
|
12164
12427
|
* @memberof PaymentMethodCapabilitiesDto
|
|
12165
12428
|
*/
|
|
12166
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;
|
|
12167
12472
|
}
|
|
12473
|
+
|
|
12474
|
+
|
|
12168
12475
|
/**
|
|
12169
12476
|
*
|
|
12170
12477
|
* @export
|
|
@@ -12566,6 +12873,24 @@ export interface PaymentMethodDto {
|
|
|
12566
12873
|
* @memberof PaymentMethodDto
|
|
12567
12874
|
*/
|
|
12568
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>;
|
|
12569
12894
|
}
|
|
12570
12895
|
/**
|
|
12571
12896
|
* Refund behavior resolved from the catalog type + per-method overrides.
|
|
@@ -12597,6 +12922,106 @@ export interface PaymentMethodDtoCapabilities {
|
|
|
12597
12922
|
* @memberof PaymentMethodDtoCapabilities
|
|
12598
12923
|
*/
|
|
12599
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;
|
|
12600
13025
|
}
|
|
12601
13026
|
/**
|
|
12602
13027
|
*
|
|
@@ -16625,6 +17050,45 @@ export interface ProviderSupportedIntegrationsDto {
|
|
|
16625
17050
|
}
|
|
16626
17051
|
|
|
16627
17052
|
|
|
17053
|
+
/**
|
|
17054
|
+
*
|
|
17055
|
+
* @export
|
|
17056
|
+
* @interface ProvidersConfigResponseDto
|
|
17057
|
+
*/
|
|
17058
|
+
export interface ProvidersConfigResponseDto {
|
|
17059
|
+
/**
|
|
17060
|
+
*
|
|
17061
|
+
* @type {PaymentProvider}
|
|
17062
|
+
* @memberof ProvidersConfigResponseDto
|
|
17063
|
+
*/
|
|
17064
|
+
'selectedPaymentProvider': PaymentProvider | null;
|
|
17065
|
+
/**
|
|
17066
|
+
*
|
|
17067
|
+
* @type {VivaConfigResponseDto}
|
|
17068
|
+
* @memberof ProvidersConfigResponseDto
|
|
17069
|
+
*/
|
|
17070
|
+
'viva': VivaConfigResponseDto | null;
|
|
17071
|
+
/**
|
|
17072
|
+
*
|
|
17073
|
+
* @type {NetsConfigResponseDto}
|
|
17074
|
+
* @memberof ProvidersConfigResponseDto
|
|
17075
|
+
*/
|
|
17076
|
+
'nets': NetsConfigResponseDto | null;
|
|
17077
|
+
/**
|
|
17078
|
+
*
|
|
17079
|
+
* @type {StripeConfigResponseDto}
|
|
17080
|
+
* @memberof ProvidersConfigResponseDto
|
|
17081
|
+
*/
|
|
17082
|
+
'stripe': StripeConfigResponseDto | null;
|
|
17083
|
+
/**
|
|
17084
|
+
*
|
|
17085
|
+
* @type {WorldlineConfigResponseDto}
|
|
17086
|
+
* @memberof ProvidersConfigResponseDto
|
|
17087
|
+
*/
|
|
17088
|
+
'worldline': WorldlineConfigResponseDto | null;
|
|
17089
|
+
}
|
|
17090
|
+
|
|
17091
|
+
|
|
16628
17092
|
/**
|
|
16629
17093
|
*
|
|
16630
17094
|
* @export
|
|
@@ -18707,6 +19171,37 @@ export const Status = {
|
|
|
18707
19171
|
export type Status = typeof Status[keyof typeof Status];
|
|
18708
19172
|
|
|
18709
19173
|
|
|
19174
|
+
/**
|
|
19175
|
+
*
|
|
19176
|
+
* @export
|
|
19177
|
+
* @interface StripeConfigResponseDto
|
|
19178
|
+
*/
|
|
19179
|
+
export interface StripeConfigResponseDto {
|
|
19180
|
+
/**
|
|
19181
|
+
* Whether the Stripe integration is active.
|
|
19182
|
+
* @type {boolean}
|
|
19183
|
+
* @memberof StripeConfigResponseDto
|
|
19184
|
+
*/
|
|
19185
|
+
'isActive': boolean;
|
|
19186
|
+
/**
|
|
19187
|
+
* Display name.
|
|
19188
|
+
* @type {string}
|
|
19189
|
+
* @memberof StripeConfigResponseDto
|
|
19190
|
+
*/
|
|
19191
|
+
'name': string | null;
|
|
19192
|
+
/**
|
|
19193
|
+
* Stripe secret key.
|
|
19194
|
+
* @type {string}
|
|
19195
|
+
* @memberof StripeConfigResponseDto
|
|
19196
|
+
*/
|
|
19197
|
+
'secretKey': string | null;
|
|
19198
|
+
/**
|
|
19199
|
+
* Stripe location id.
|
|
19200
|
+
* @type {string}
|
|
19201
|
+
* @memberof StripeConfigResponseDto
|
|
19202
|
+
*/
|
|
19203
|
+
'locationId': string | null;
|
|
19204
|
+
}
|
|
18710
19205
|
/**
|
|
18711
19206
|
*
|
|
18712
19207
|
* @export
|
|
@@ -21112,6 +21607,37 @@ export interface UpdatePaymentMethodOptionDto {
|
|
|
21112
21607
|
* @memberof UpdatePaymentMethodOptionDto
|
|
21113
21608
|
*/
|
|
21114
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;
|
|
21115
21641
|
}
|
|
21116
21642
|
/**
|
|
21117
21643
|
*
|
|
@@ -21572,7 +22098,7 @@ export interface UpsertNetsDto {
|
|
|
21572
22098
|
* @type {string}
|
|
21573
22099
|
* @memberof UpsertNetsDto
|
|
21574
22100
|
*/
|
|
21575
|
-
'name'
|
|
22101
|
+
'name': string;
|
|
21576
22102
|
/**
|
|
21577
22103
|
*
|
|
21578
22104
|
* @type {boolean}
|
|
@@ -21802,6 +22328,87 @@ export interface UpsertProductPrintPolicyDto {
|
|
|
21802
22328
|
*/
|
|
21803
22329
|
'printerId': number;
|
|
21804
22330
|
}
|
|
22331
|
+
/**
|
|
22332
|
+
*
|
|
22333
|
+
* @export
|
|
22334
|
+
* @interface UpsertProvidersDto
|
|
22335
|
+
*/
|
|
22336
|
+
export interface UpsertProvidersDto {
|
|
22337
|
+
/**
|
|
22338
|
+
*
|
|
22339
|
+
* @type {PaymentProvider}
|
|
22340
|
+
* @memberof UpsertProvidersDto
|
|
22341
|
+
*/
|
|
22342
|
+
'provider': PaymentProvider;
|
|
22343
|
+
/**
|
|
22344
|
+
*
|
|
22345
|
+
* @type {string}
|
|
22346
|
+
* @memberof UpsertProvidersDto
|
|
22347
|
+
*/
|
|
22348
|
+
'name': string;
|
|
22349
|
+
/**
|
|
22350
|
+
*
|
|
22351
|
+
* @type {boolean}
|
|
22352
|
+
* @memberof UpsertProvidersDto
|
|
22353
|
+
*/
|
|
22354
|
+
'isActive'?: boolean;
|
|
22355
|
+
/**
|
|
22356
|
+
* Viva merchant id.
|
|
22357
|
+
* @type {string}
|
|
22358
|
+
* @memberof UpsertProvidersDto
|
|
22359
|
+
*/
|
|
22360
|
+
'merchantId'?: string;
|
|
22361
|
+
/**
|
|
22362
|
+
* Viva source code.
|
|
22363
|
+
* @type {string}
|
|
22364
|
+
* @memberof UpsertProvidersDto
|
|
22365
|
+
*/
|
|
22366
|
+
'sourceCode'?: string;
|
|
22367
|
+
/**
|
|
22368
|
+
* Viva commission/surcharge rate.
|
|
22369
|
+
* @type {number}
|
|
22370
|
+
* @memberof UpsertProvidersDto
|
|
22371
|
+
*/
|
|
22372
|
+
'rate'?: number;
|
|
22373
|
+
/**
|
|
22374
|
+
* Viva additional amount.
|
|
22375
|
+
* @type {number}
|
|
22376
|
+
* @memberof UpsertProvidersDto
|
|
22377
|
+
*/
|
|
22378
|
+
'additionalAmount'?: number;
|
|
22379
|
+
/**
|
|
22380
|
+
* Nets / Stripe / Worldline secret key.
|
|
22381
|
+
* @type {string}
|
|
22382
|
+
* @memberof UpsertProvidersDto
|
|
22383
|
+
*/
|
|
22384
|
+
'secretKey'?: string;
|
|
22385
|
+
/**
|
|
22386
|
+
* Nets / Worldline public key.
|
|
22387
|
+
* @type {string}
|
|
22388
|
+
* @memberof UpsertProvidersDto
|
|
22389
|
+
*/
|
|
22390
|
+
'publicKey'?: string;
|
|
22391
|
+
/**
|
|
22392
|
+
* Nets OAuth client id.
|
|
22393
|
+
* @type {string}
|
|
22394
|
+
* @memberof UpsertProvidersDto
|
|
22395
|
+
*/
|
|
22396
|
+
'clientId'?: string;
|
|
22397
|
+
/**
|
|
22398
|
+
* Nets OAuth client secret.
|
|
22399
|
+
* @type {string}
|
|
22400
|
+
* @memberof UpsertProvidersDto
|
|
22401
|
+
*/
|
|
22402
|
+
'clientSecret'?: string;
|
|
22403
|
+
/**
|
|
22404
|
+
* Stripe location id.
|
|
22405
|
+
* @type {string}
|
|
22406
|
+
* @memberof UpsertProvidersDto
|
|
22407
|
+
*/
|
|
22408
|
+
'locationId'?: string;
|
|
22409
|
+
}
|
|
22410
|
+
|
|
22411
|
+
|
|
21805
22412
|
/**
|
|
21806
22413
|
*
|
|
21807
22414
|
* @export
|
|
@@ -21846,7 +22453,7 @@ export interface UpsertStripeDto {
|
|
|
21846
22453
|
* @type {string}
|
|
21847
22454
|
* @memberof UpsertStripeDto
|
|
21848
22455
|
*/
|
|
21849
|
-
'name'
|
|
22456
|
+
'name': string;
|
|
21850
22457
|
/**
|
|
21851
22458
|
*
|
|
21852
22459
|
* @type {boolean}
|
|
@@ -21877,7 +22484,7 @@ export interface UpsertVivaDto {
|
|
|
21877
22484
|
* @type {string}
|
|
21878
22485
|
* @memberof UpsertVivaDto
|
|
21879
22486
|
*/
|
|
21880
|
-
'name'
|
|
22487
|
+
'name': string;
|
|
21881
22488
|
/**
|
|
21882
22489
|
*
|
|
21883
22490
|
* @type {boolean}
|
|
@@ -22279,6 +22886,43 @@ export interface VivaConfigDto {
|
|
|
22279
22886
|
*/
|
|
22280
22887
|
'additionalAmount'?: number;
|
|
22281
22888
|
}
|
|
22889
|
+
/**
|
|
22890
|
+
*
|
|
22891
|
+
* @export
|
|
22892
|
+
* @interface VivaConfigResponseDto
|
|
22893
|
+
*/
|
|
22894
|
+
export interface VivaConfigResponseDto {
|
|
22895
|
+
/**
|
|
22896
|
+
* Whether the Viva integration is active.
|
|
22897
|
+
* @type {boolean}
|
|
22898
|
+
* @memberof VivaConfigResponseDto
|
|
22899
|
+
*/
|
|
22900
|
+
'isActive': boolean;
|
|
22901
|
+
/**
|
|
22902
|
+
* Display name.
|
|
22903
|
+
* @type {string}
|
|
22904
|
+
* @memberof VivaConfigResponseDto
|
|
22905
|
+
*/
|
|
22906
|
+
'name': string | null;
|
|
22907
|
+
/**
|
|
22908
|
+
* Viva merchant id.
|
|
22909
|
+
* @type {string}
|
|
22910
|
+
* @memberof VivaConfigResponseDto
|
|
22911
|
+
*/
|
|
22912
|
+
'merchantId': string | null;
|
|
22913
|
+
/**
|
|
22914
|
+
* Viva source code.
|
|
22915
|
+
* @type {string}
|
|
22916
|
+
* @memberof VivaConfigResponseDto
|
|
22917
|
+
*/
|
|
22918
|
+
'sourceCode': string | null;
|
|
22919
|
+
/**
|
|
22920
|
+
* Commission/surcharge rate.
|
|
22921
|
+
* @type {number}
|
|
22922
|
+
* @memberof VivaConfigResponseDto
|
|
22923
|
+
*/
|
|
22924
|
+
'rate': number | null;
|
|
22925
|
+
}
|
|
22282
22926
|
/**
|
|
22283
22927
|
*
|
|
22284
22928
|
* @export
|
|
@@ -23677,6 +24321,37 @@ export interface WorldlineAmountsRequestDto {
|
|
|
23677
24321
|
*/
|
|
23678
24322
|
'tip'?: number;
|
|
23679
24323
|
}
|
|
24324
|
+
/**
|
|
24325
|
+
*
|
|
24326
|
+
* @export
|
|
24327
|
+
* @interface WorldlineConfigResponseDto
|
|
24328
|
+
*/
|
|
24329
|
+
export interface WorldlineConfigResponseDto {
|
|
24330
|
+
/**
|
|
24331
|
+
* Whether the Worldline integration is active.
|
|
24332
|
+
* @type {boolean}
|
|
24333
|
+
* @memberof WorldlineConfigResponseDto
|
|
24334
|
+
*/
|
|
24335
|
+
'isActive': boolean;
|
|
24336
|
+
/**
|
|
24337
|
+
* Display name.
|
|
24338
|
+
* @type {string}
|
|
24339
|
+
* @memberof WorldlineConfigResponseDto
|
|
24340
|
+
*/
|
|
24341
|
+
'name': string | null;
|
|
24342
|
+
/**
|
|
24343
|
+
* Worldline secret key.
|
|
24344
|
+
* @type {string}
|
|
24345
|
+
* @memberof WorldlineConfigResponseDto
|
|
24346
|
+
*/
|
|
24347
|
+
'secretKey': string | null;
|
|
24348
|
+
/**
|
|
24349
|
+
* Worldline public key.
|
|
24350
|
+
* @type {string}
|
|
24351
|
+
* @memberof WorldlineConfigResponseDto
|
|
24352
|
+
*/
|
|
24353
|
+
'publicKey': string | null;
|
|
24354
|
+
}
|
|
23680
24355
|
/**
|
|
23681
24356
|
*
|
|
23682
24357
|
* @export
|
|
@@ -27819,6 +28494,51 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
27819
28494
|
options: localVarRequestOptions,
|
|
27820
28495
|
};
|
|
27821
28496
|
},
|
|
28497
|
+
/**
|
|
28498
|
+
*
|
|
28499
|
+
* @summary Get payment providers config
|
|
28500
|
+
* @param {number} businessId
|
|
28501
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
28502
|
+
* @param {*} [options] Override http request option.
|
|
28503
|
+
* @throws {RequiredError}
|
|
28504
|
+
*/
|
|
28505
|
+
configGetProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28506
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28507
|
+
assertParamExists('configGetProviders', 'businessId', businessId)
|
|
28508
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
28509
|
+
assertParamExists('configGetProviders', 'xAppX', xAppX)
|
|
28510
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
|
|
28511
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28512
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28513
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28514
|
+
let baseOptions;
|
|
28515
|
+
if (configuration) {
|
|
28516
|
+
baseOptions = configuration.baseOptions;
|
|
28517
|
+
}
|
|
28518
|
+
|
|
28519
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28520
|
+
const localVarHeaderParameter = {} as any;
|
|
28521
|
+
const localVarQueryParameter = {} as any;
|
|
28522
|
+
|
|
28523
|
+
// authentication JWT-auth required
|
|
28524
|
+
// http bearer authentication required
|
|
28525
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28526
|
+
|
|
28527
|
+
if (xAppX != null) {
|
|
28528
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
28529
|
+
}
|
|
28530
|
+
|
|
28531
|
+
|
|
28532
|
+
|
|
28533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28535
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28536
|
+
|
|
28537
|
+
return {
|
|
28538
|
+
url: toPathString(localVarUrlObj),
|
|
28539
|
+
options: localVarRequestOptions,
|
|
28540
|
+
};
|
|
28541
|
+
},
|
|
27822
28542
|
/**
|
|
27823
28543
|
*
|
|
27824
28544
|
* @summary Manual sync trigger
|
|
@@ -28204,6 +28924,57 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28204
28924
|
options: localVarRequestOptions,
|
|
28205
28925
|
};
|
|
28206
28926
|
},
|
|
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
|
+
},
|
|
28207
28978
|
/**
|
|
28208
28979
|
*
|
|
28209
28980
|
* @summary Upsert Stripe payment config
|
|
@@ -28329,6 +29100,18 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
|
28329
29100
|
const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
|
|
28330
29101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28331
29102
|
},
|
|
29103
|
+
/**
|
|
29104
|
+
*
|
|
29105
|
+
* @summary Get payment providers config
|
|
29106
|
+
* @param {number} businessId
|
|
29107
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29108
|
+
* @param {*} [options] Override http request option.
|
|
29109
|
+
* @throws {RequiredError}
|
|
29110
|
+
*/
|
|
29111
|
+
async configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvidersConfigResponseDto>> {
|
|
29112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configGetProviders(businessId, xAppX, options);
|
|
29113
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29114
|
+
},
|
|
28332
29115
|
/**
|
|
28333
29116
|
*
|
|
28334
29117
|
* @summary Manual sync trigger
|
|
@@ -28430,6 +29213,19 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
|
28430
29213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options);
|
|
28431
29214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28432
29215
|
},
|
|
29216
|
+
/**
|
|
29217
|
+
*
|
|
29218
|
+
* @summary Set active provider and upsert its credentials
|
|
29219
|
+
* @param {number} businessId
|
|
29220
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29221
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
29222
|
+
* @param {*} [options] Override http request option.
|
|
29223
|
+
* @throws {RequiredError}
|
|
29224
|
+
*/
|
|
29225
|
+
async configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvidersConfigResponseDto>> {
|
|
29226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options);
|
|
29227
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29228
|
+
},
|
|
28433
29229
|
/**
|
|
28434
29230
|
*
|
|
28435
29231
|
* @summary Upsert Stripe payment config
|
|
@@ -28478,6 +29274,17 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
|
|
|
28478
29274
|
configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
|
|
28479
29275
|
return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
|
|
28480
29276
|
},
|
|
29277
|
+
/**
|
|
29278
|
+
*
|
|
29279
|
+
* @summary Get payment providers config
|
|
29280
|
+
* @param {number} businessId
|
|
29281
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29282
|
+
* @param {*} [options] Override http request option.
|
|
29283
|
+
* @throws {RequiredError}
|
|
29284
|
+
*/
|
|
29285
|
+
configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: any): AxiosPromise<ProvidersConfigResponseDto> {
|
|
29286
|
+
return localVarFp.configGetProviders(businessId, xAppX, options).then((request) => request(axios, basePath));
|
|
29287
|
+
},
|
|
28481
29288
|
/**
|
|
28482
29289
|
*
|
|
28483
29290
|
* @summary Manual sync trigger
|
|
@@ -28571,6 +29378,18 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
|
|
|
28571
29378
|
configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
|
|
28572
29379
|
return localVarFp.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(axios, basePath));
|
|
28573
29380
|
},
|
|
29381
|
+
/**
|
|
29382
|
+
*
|
|
29383
|
+
* @summary Set active provider and upsert its credentials
|
|
29384
|
+
* @param {number} businessId
|
|
29385
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29386
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
29387
|
+
* @param {*} [options] Override http request option.
|
|
29388
|
+
* @throws {RequiredError}
|
|
29389
|
+
*/
|
|
29390
|
+
configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: any): AxiosPromise<ProvidersConfigResponseDto> {
|
|
29391
|
+
return localVarFp.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(axios, basePath));
|
|
29392
|
+
},
|
|
28574
29393
|
/**
|
|
28575
29394
|
*
|
|
28576
29395
|
* @summary Upsert Stripe payment config
|
|
@@ -28616,6 +29435,17 @@ export interface ConfigManagementApiInterface {
|
|
|
28616
29435
|
*/
|
|
28617
29436
|
configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
|
|
28618
29437
|
|
|
29438
|
+
/**
|
|
29439
|
+
*
|
|
29440
|
+
* @summary Get payment providers config
|
|
29441
|
+
* @param {number} businessId
|
|
29442
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29443
|
+
* @param {*} [options] Override http request option.
|
|
29444
|
+
* @throws {RequiredError}
|
|
29445
|
+
* @memberof ConfigManagementApiInterface
|
|
29446
|
+
*/
|
|
29447
|
+
configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
|
|
29448
|
+
|
|
28619
29449
|
/**
|
|
28620
29450
|
*
|
|
28621
29451
|
* @summary Manual sync trigger
|
|
@@ -28709,6 +29539,18 @@ export interface ConfigManagementApiInterface {
|
|
|
28709
29539
|
*/
|
|
28710
29540
|
configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
|
|
28711
29541
|
|
|
29542
|
+
/**
|
|
29543
|
+
*
|
|
29544
|
+
* @summary Set active provider and upsert its credentials
|
|
29545
|
+
* @param {number} businessId
|
|
29546
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29547
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
29548
|
+
* @param {*} [options] Override http request option.
|
|
29549
|
+
* @throws {RequiredError}
|
|
29550
|
+
* @memberof ConfigManagementApiInterface
|
|
29551
|
+
*/
|
|
29552
|
+
configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
|
|
29553
|
+
|
|
28712
29554
|
/**
|
|
28713
29555
|
*
|
|
28714
29556
|
* @summary Upsert Stripe payment config
|
|
@@ -28756,6 +29598,19 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
|
|
|
28756
29598
|
return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
|
|
28757
29599
|
}
|
|
28758
29600
|
|
|
29601
|
+
/**
|
|
29602
|
+
*
|
|
29603
|
+
* @summary Get payment providers config
|
|
29604
|
+
* @param {number} businessId
|
|
29605
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29606
|
+
* @param {*} [options] Override http request option.
|
|
29607
|
+
* @throws {RequiredError}
|
|
29608
|
+
* @memberof ConfigManagementApi
|
|
29609
|
+
*/
|
|
29610
|
+
public configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig) {
|
|
29611
|
+
return ConfigManagementApiFp(this.configuration).configGetProviders(businessId, xAppX, options).then((request) => request(this.axios, this.basePath));
|
|
29612
|
+
}
|
|
29613
|
+
|
|
28759
29614
|
/**
|
|
28760
29615
|
*
|
|
28761
29616
|
* @summary Manual sync trigger
|
|
@@ -28865,6 +29720,20 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
|
|
|
28865
29720
|
return ConfigManagementApiFp(this.configuration).configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(this.axios, this.basePath));
|
|
28866
29721
|
}
|
|
28867
29722
|
|
|
29723
|
+
/**
|
|
29724
|
+
*
|
|
29725
|
+
* @summary Set active provider and upsert its credentials
|
|
29726
|
+
* @param {number} businessId
|
|
29727
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29728
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
29729
|
+
* @param {*} [options] Override http request option.
|
|
29730
|
+
* @throws {RequiredError}
|
|
29731
|
+
* @memberof ConfigManagementApi
|
|
29732
|
+
*/
|
|
29733
|
+
public configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig) {
|
|
29734
|
+
return ConfigManagementApiFp(this.configuration).configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(this.axios, this.basePath));
|
|
29735
|
+
}
|
|
29736
|
+
|
|
28868
29737
|
/**
|
|
28869
29738
|
*
|
|
28870
29739
|
* @summary Upsert Stripe payment config
|
|
@@ -37655,6 +38524,90 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
37655
38524
|
|
|
37656
38525
|
|
|
37657
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
|
+
|
|
37658
38611
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37659
38612
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37660
38613
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -37697,6 +38650,43 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
37697
38650
|
|
|
37698
38651
|
|
|
37699
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
|
+
|
|
37700
38690
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37701
38691
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37702
38692
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -37830,6 +38820,30 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
37830
38820
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethodOption(businessId, channel, id, options);
|
|
37831
38821
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37832
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
|
+
},
|
|
37833
38847
|
/**
|
|
37834
38848
|
*
|
|
37835
38849
|
* @param {number} businessId
|
|
@@ -37842,6 +38856,17 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
37842
38856
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(businessId, channel, locale, options);
|
|
37843
38857
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
37844
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
|
+
},
|
|
37845
38870
|
/**
|
|
37846
38871
|
*
|
|
37847
38872
|
* @param {number} businessId
|
|
@@ -37899,6 +38924,28 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
37899
38924
|
deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: any): AxiosPromise<void> {
|
|
37900
38925
|
return localVarFp.deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(axios, basePath));
|
|
37901
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
|
+
},
|
|
37902
38949
|
/**
|
|
37903
38950
|
*
|
|
37904
38951
|
* @param {number} businessId
|
|
@@ -37910,6 +38957,16 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
37910
38957
|
getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<PaymentMethodDto>> {
|
|
37911
38958
|
return localVarFp.getPaymentMethods(businessId, channel, locale, options).then((request) => request(axios, basePath));
|
|
37912
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
|
+
},
|
|
37913
38970
|
/**
|
|
37914
38971
|
*
|
|
37915
38972
|
* @param {number} businessId
|
|
@@ -37964,6 +39021,28 @@ export interface PaymentMethodsApiInterface {
|
|
|
37964
39021
|
*/
|
|
37965
39022
|
deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
37966
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
|
+
|
|
37967
39046
|
/**
|
|
37968
39047
|
*
|
|
37969
39048
|
* @param {number} businessId
|
|
@@ -37975,6 +39054,16 @@ export interface PaymentMethodsApiInterface {
|
|
|
37975
39054
|
*/
|
|
37976
39055
|
getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodDto>>;
|
|
37977
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
|
+
|
|
37978
39067
|
/**
|
|
37979
39068
|
*
|
|
37980
39069
|
* @param {number} businessId
|
|
@@ -38033,6 +39122,32 @@ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInter
|
|
|
38033
39122
|
return PaymentMethodsApiFp(this.configuration).deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(this.axios, this.basePath));
|
|
38034
39123
|
}
|
|
38035
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
|
+
|
|
38036
39151
|
/**
|
|
38037
39152
|
*
|
|
38038
39153
|
* @param {number} businessId
|
|
@@ -38046,6 +39161,18 @@ export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInter
|
|
|
38046
39161
|
return PaymentMethodsApiFp(this.configuration).getPaymentMethods(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
|
|
38047
39162
|
}
|
|
38048
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
|
+
|
|
38049
39176
|
/**
|
|
38050
39177
|
*
|
|
38051
39178
|
* @param {number} businessId
|