@munchi_oy/core 1.9.67 → 1.9.68
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 +1539 -11
- 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 +2238 -247
- package/package.json +13 -15
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -464,6 +464,50 @@ export const AutonomousVehicleType = {
|
|
|
464
464
|
export type AutonomousVehicleType = typeof AutonomousVehicleType[keyof typeof AutonomousVehicleType];
|
|
465
465
|
|
|
466
466
|
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @export
|
|
470
|
+
* @interface AvailablePaymentMethodDto
|
|
471
|
+
*/
|
|
472
|
+
export interface AvailablePaymentMethodDto {
|
|
473
|
+
/**
|
|
474
|
+
* Catalog method code to attach.
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof AvailablePaymentMethodDto
|
|
477
|
+
*/
|
|
478
|
+
'code': string;
|
|
479
|
+
/**
|
|
480
|
+
* Catalog type that drives the method\'s policy.
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof AvailablePaymentMethodDto
|
|
483
|
+
*/
|
|
484
|
+
'typeCode': string;
|
|
485
|
+
/**
|
|
486
|
+
* Resolved display name for the catalog entry.
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof AvailablePaymentMethodDto
|
|
489
|
+
*/
|
|
490
|
+
'label': string;
|
|
491
|
+
/**
|
|
492
|
+
* True for a 3rd-party gift card that needs username/password/posDeviceId.
|
|
493
|
+
* @type {boolean}
|
|
494
|
+
* @memberof AvailablePaymentMethodDto
|
|
495
|
+
*/
|
|
496
|
+
'requiresCredentials': boolean;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @export
|
|
501
|
+
* @interface BulkRankDto
|
|
502
|
+
*/
|
|
503
|
+
export interface BulkRankDto {
|
|
504
|
+
/**
|
|
505
|
+
* Only the items whose position changed (zero-based ranks).
|
|
506
|
+
* @type {Array<RankItemDto>}
|
|
507
|
+
* @memberof BulkRankDto
|
|
508
|
+
*/
|
|
509
|
+
'items': Array<RankItemDto>;
|
|
510
|
+
}
|
|
467
511
|
/**
|
|
468
512
|
*
|
|
469
513
|
* @export
|
|
@@ -2393,6 +2437,124 @@ export interface CashSessionTotalsDto {
|
|
|
2393
2437
|
*/
|
|
2394
2438
|
'cashOut': number;
|
|
2395
2439
|
}
|
|
2440
|
+
/**
|
|
2441
|
+
*
|
|
2442
|
+
* @export
|
|
2443
|
+
* @interface CatalogMethodDto
|
|
2444
|
+
*/
|
|
2445
|
+
export interface CatalogMethodDto {
|
|
2446
|
+
/**
|
|
2447
|
+
* Stable, immutable method code (catalog identity).
|
|
2448
|
+
* @type {string}
|
|
2449
|
+
* @memberof CatalogMethodDto
|
|
2450
|
+
*/
|
|
2451
|
+
'code': string;
|
|
2452
|
+
/**
|
|
2453
|
+
* Catalog type that drives this method\'s behavior.
|
|
2454
|
+
* @type {string}
|
|
2455
|
+
* @memberof CatalogMethodDto
|
|
2456
|
+
*/
|
|
2457
|
+
'typeCode': string;
|
|
2458
|
+
/**
|
|
2459
|
+
* Resolved display label for this code.
|
|
2460
|
+
* @type {string}
|
|
2461
|
+
* @memberof CatalogMethodDto
|
|
2462
|
+
*/
|
|
2463
|
+
'label': string;
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @type {CatalogMethodDtoCapabilities}
|
|
2467
|
+
* @memberof CatalogMethodDto
|
|
2468
|
+
*/
|
|
2469
|
+
'capabilities': CatalogMethodDtoCapabilities;
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Behavior resolved from the catalog type + per-method overrides.
|
|
2473
|
+
* @export
|
|
2474
|
+
* @interface CatalogMethodDtoCapabilities
|
|
2475
|
+
*/
|
|
2476
|
+
export interface CatalogMethodDtoCapabilities {
|
|
2477
|
+
/**
|
|
2478
|
+
* Whether this method can be refunded at all.
|
|
2479
|
+
* @type {boolean}
|
|
2480
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2481
|
+
*/
|
|
2482
|
+
'refundable': boolean;
|
|
2483
|
+
/**
|
|
2484
|
+
* Whether a refund can be split across this method and others.
|
|
2485
|
+
* @type {boolean}
|
|
2486
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2487
|
+
*/
|
|
2488
|
+
'refundSplittable': boolean;
|
|
2489
|
+
/**
|
|
2490
|
+
* Whether the customer may choose this method as a refund target.
|
|
2491
|
+
* @type {boolean}
|
|
2492
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2493
|
+
*/
|
|
2494
|
+
'refundChoiceEligible': boolean;
|
|
2495
|
+
/**
|
|
2496
|
+
* Refund allocation order (lower = refunded first); null when not refundable.
|
|
2497
|
+
* @type {number}
|
|
2498
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2499
|
+
*/
|
|
2500
|
+
'refundPriorityTier': number | null;
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @type {PaymentCheckoutFlow}
|
|
2504
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2505
|
+
*/
|
|
2506
|
+
'checkoutFlow': PaymentCheckoutFlow;
|
|
2507
|
+
/**
|
|
2508
|
+
*
|
|
2509
|
+
* @type {PaymentReportingBucket}
|
|
2510
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2511
|
+
*/
|
|
2512
|
+
'reportingBucket': PaymentReportingBucket;
|
|
2513
|
+
/**
|
|
2514
|
+
* Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
|
|
2515
|
+
* @type {string}
|
|
2516
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2517
|
+
*/
|
|
2518
|
+
'tone': string;
|
|
2519
|
+
/**
|
|
2520
|
+
* Whether a refund is sent back to the original card via the terminal SDK.
|
|
2521
|
+
* @type {boolean}
|
|
2522
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2523
|
+
*/
|
|
2524
|
+
'refundToCard': boolean;
|
|
2525
|
+
/**
|
|
2526
|
+
* Whether refunding this method needs an active card provider (Viva/Nets).
|
|
2527
|
+
* @type {boolean}
|
|
2528
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2529
|
+
*/
|
|
2530
|
+
'requiresProvider': boolean;
|
|
2531
|
+
/**
|
|
2532
|
+
* Whether checkout needs a manual resolution step (cash rounding, voucher selection).
|
|
2533
|
+
* @type {boolean}
|
|
2534
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2535
|
+
*/
|
|
2536
|
+
'requiresManualResolution': boolean;
|
|
2537
|
+
/**
|
|
2538
|
+
* Whether receipts/print should show a forfeited (leftover) amount line.
|
|
2539
|
+
* @type {boolean}
|
|
2540
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2541
|
+
*/
|
|
2542
|
+
'shouldDisplayForfeitedAmount': boolean;
|
|
2543
|
+
/**
|
|
2544
|
+
* Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
|
|
2545
|
+
* @type {string}
|
|
2546
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2547
|
+
*/
|
|
2548
|
+
'notificationIssuer': string | null;
|
|
2549
|
+
/**
|
|
2550
|
+
* Whether this method is checkout-only (cannot be a manual refund target).
|
|
2551
|
+
* @type {boolean}
|
|
2552
|
+
* @memberof CatalogMethodDtoCapabilities
|
|
2553
|
+
*/
|
|
2554
|
+
'checkoutOnly': boolean;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
|
|
2396
2558
|
/**
|
|
2397
2559
|
*
|
|
2398
2560
|
* @export
|
|
@@ -3970,6 +4132,104 @@ export interface CreateNetsTerminalPaymentDto {
|
|
|
3970
4132
|
}
|
|
3971
4133
|
|
|
3972
4134
|
|
|
4135
|
+
/**
|
|
4136
|
+
*
|
|
4137
|
+
* @export
|
|
4138
|
+
* @interface CreatePaymentMethodDto
|
|
4139
|
+
*/
|
|
4140
|
+
export interface CreatePaymentMethodDto {
|
|
4141
|
+
/**
|
|
4142
|
+
* Attach an existing catalog method by its code (mutually exclusive with name+type).
|
|
4143
|
+
* @type {string}
|
|
4144
|
+
* @memberof CreatePaymentMethodDto
|
|
4145
|
+
*/
|
|
4146
|
+
'code'?: string;
|
|
4147
|
+
/**
|
|
4148
|
+
* Display name for a new custom method; required with type when code is absent.
|
|
4149
|
+
* @type {string}
|
|
4150
|
+
* @memberof CreatePaymentMethodDto
|
|
4151
|
+
*/
|
|
4152
|
+
'name'?: string;
|
|
4153
|
+
/**
|
|
4154
|
+
* 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.
|
|
4155
|
+
* @type {string}
|
|
4156
|
+
* @memberof CreatePaymentMethodDto
|
|
4157
|
+
*/
|
|
4158
|
+
'type'?: string;
|
|
4159
|
+
/**
|
|
4160
|
+
* Per-business name override.
|
|
4161
|
+
* @type {string}
|
|
4162
|
+
* @memberof CreatePaymentMethodDto
|
|
4163
|
+
*/
|
|
4164
|
+
'customName'?: string;
|
|
4165
|
+
/**
|
|
4166
|
+
* Per-business logo URL.
|
|
4167
|
+
* @type {string}
|
|
4168
|
+
* @memberof CreatePaymentMethodDto
|
|
4169
|
+
*/
|
|
4170
|
+
'logo'?: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* Per-business description.
|
|
4173
|
+
* @type {string}
|
|
4174
|
+
* @memberof CreatePaymentMethodDto
|
|
4175
|
+
*/
|
|
4176
|
+
'description'?: string;
|
|
4177
|
+
/**
|
|
4178
|
+
* Parent method code for grouped vouchers.
|
|
4179
|
+
* @type {string}
|
|
4180
|
+
* @memberof CreatePaymentMethodDto
|
|
4181
|
+
*/
|
|
4182
|
+
'parentCode'?: string;
|
|
4183
|
+
/**
|
|
4184
|
+
* Preset amounts/denominations (vouchers).
|
|
4185
|
+
* @type {Array<number>}
|
|
4186
|
+
* @memberof CreatePaymentMethodDto
|
|
4187
|
+
*/
|
|
4188
|
+
'amounts'?: Array<number>;
|
|
4189
|
+
/**
|
|
4190
|
+
* Minimum order amount required to use this method.
|
|
4191
|
+
* @type {number}
|
|
4192
|
+
* @memberof CreatePaymentMethodDto
|
|
4193
|
+
*/
|
|
4194
|
+
'minimumCheckoutAmount'?: number;
|
|
4195
|
+
/**
|
|
4196
|
+
* Whether the method is enabled (defaults to true).
|
|
4197
|
+
* @type {boolean}
|
|
4198
|
+
* @memberof CreatePaymentMethodDto
|
|
4199
|
+
*/
|
|
4200
|
+
'enable'?: boolean;
|
|
4201
|
+
/**
|
|
4202
|
+
*
|
|
4203
|
+
* @type {CreatePaymentMethodDtoGiftCardCredentials}
|
|
4204
|
+
* @memberof CreatePaymentMethodDto
|
|
4205
|
+
*/
|
|
4206
|
+
'giftCardCredentials'?: CreatePaymentMethodDtoGiftCardCredentials;
|
|
4207
|
+
}
|
|
4208
|
+
/**
|
|
4209
|
+
* Only for a 3rd-party gift card: username/password (URLs come from constants).
|
|
4210
|
+
* @export
|
|
4211
|
+
* @interface CreatePaymentMethodDtoGiftCardCredentials
|
|
4212
|
+
*/
|
|
4213
|
+
export interface CreatePaymentMethodDtoGiftCardCredentials {
|
|
4214
|
+
/**
|
|
4215
|
+
* 3rd-party gift card account username.
|
|
4216
|
+
* @type {string}
|
|
4217
|
+
* @memberof CreatePaymentMethodDtoGiftCardCredentials
|
|
4218
|
+
*/
|
|
4219
|
+
'username'?: string;
|
|
4220
|
+
/**
|
|
4221
|
+
* 3rd-party gift card account password.
|
|
4222
|
+
* @type {string}
|
|
4223
|
+
* @memberof CreatePaymentMethodDtoGiftCardCredentials
|
|
4224
|
+
*/
|
|
4225
|
+
'password'?: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* Unique POS device id for the 3rd-party gift card provider.
|
|
4228
|
+
* @type {string}
|
|
4229
|
+
* @memberof CreatePaymentMethodDtoGiftCardCredentials
|
|
4230
|
+
*/
|
|
4231
|
+
'uniquePosDeviceId'?: string;
|
|
4232
|
+
}
|
|
3973
4233
|
/**
|
|
3974
4234
|
*
|
|
3975
4235
|
* @export
|
|
@@ -6241,6 +6501,56 @@ export interface GiftCardCredentialsDto {
|
|
|
6241
6501
|
*/
|
|
6242
6502
|
'password'?: string;
|
|
6243
6503
|
}
|
|
6504
|
+
/**
|
|
6505
|
+
*
|
|
6506
|
+
* @export
|
|
6507
|
+
* @interface GiftCardCredentialsInputDto
|
|
6508
|
+
*/
|
|
6509
|
+
export interface GiftCardCredentialsInputDto {
|
|
6510
|
+
/**
|
|
6511
|
+
* 3rd-party gift card account username.
|
|
6512
|
+
* @type {string}
|
|
6513
|
+
* @memberof GiftCardCredentialsInputDto
|
|
6514
|
+
*/
|
|
6515
|
+
'username'?: string;
|
|
6516
|
+
/**
|
|
6517
|
+
* 3rd-party gift card account password.
|
|
6518
|
+
* @type {string}
|
|
6519
|
+
* @memberof GiftCardCredentialsInputDto
|
|
6520
|
+
*/
|
|
6521
|
+
'password'?: string;
|
|
6522
|
+
/**
|
|
6523
|
+
* Unique POS device id for the 3rd-party gift card provider.
|
|
6524
|
+
* @type {string}
|
|
6525
|
+
* @memberof GiftCardCredentialsInputDto
|
|
6526
|
+
*/
|
|
6527
|
+
'uniquePosDeviceId'?: string;
|
|
6528
|
+
}
|
|
6529
|
+
/**
|
|
6530
|
+
*
|
|
6531
|
+
* @export
|
|
6532
|
+
* @interface GiftCardCredentialsViewDto
|
|
6533
|
+
*/
|
|
6534
|
+
export interface GiftCardCredentialsViewDto {
|
|
6535
|
+
/**
|
|
6536
|
+
* Saved 3rd-party gift card username.
|
|
6537
|
+
* @type {string}
|
|
6538
|
+
* @memberof GiftCardCredentialsViewDto
|
|
6539
|
+
*/
|
|
6540
|
+
'username': string | null;
|
|
6541
|
+
/**
|
|
6542
|
+
* Saved 3rd-party gift card password.
|
|
6543
|
+
* @type {string}
|
|
6544
|
+
* @memberof GiftCardCredentialsViewDto
|
|
6545
|
+
*/
|
|
6546
|
+
'password': string | null;
|
|
6547
|
+
/**
|
|
6548
|
+
* Saved unique POS device id for the 3rd-party gift card provider.
|
|
6549
|
+
* @type {string}
|
|
6550
|
+
* @memberof GiftCardCredentialsViewDto
|
|
6551
|
+
*/
|
|
6552
|
+
'uniquePosDeviceId': string | null;
|
|
6553
|
+
}
|
|
6244
6554
|
/**
|
|
6245
6555
|
*
|
|
6246
6556
|
* @export
|
|
@@ -9653,6 +9963,49 @@ export interface NetsCancelTransactionDto {
|
|
|
9653
9963
|
*/
|
|
9654
9964
|
'businessId': number;
|
|
9655
9965
|
}
|
|
9966
|
+
/**
|
|
9967
|
+
*
|
|
9968
|
+
* @export
|
|
9969
|
+
* @interface NetsConfigResponseDto
|
|
9970
|
+
*/
|
|
9971
|
+
export interface NetsConfigResponseDto {
|
|
9972
|
+
/**
|
|
9973
|
+
* Whether the Nets integration is active.
|
|
9974
|
+
* @type {boolean}
|
|
9975
|
+
* @memberof NetsConfigResponseDto
|
|
9976
|
+
*/
|
|
9977
|
+
'isActive': boolean;
|
|
9978
|
+
/**
|
|
9979
|
+
* Display name.
|
|
9980
|
+
* @type {string}
|
|
9981
|
+
* @memberof NetsConfigResponseDto
|
|
9982
|
+
*/
|
|
9983
|
+
'name': string | null;
|
|
9984
|
+
/**
|
|
9985
|
+
* Nets secret key.
|
|
9986
|
+
* @type {string}
|
|
9987
|
+
* @memberof NetsConfigResponseDto
|
|
9988
|
+
*/
|
|
9989
|
+
'secretKey': string | null;
|
|
9990
|
+
/**
|
|
9991
|
+
* Nets public key.
|
|
9992
|
+
* @type {string}
|
|
9993
|
+
* @memberof NetsConfigResponseDto
|
|
9994
|
+
*/
|
|
9995
|
+
'publicKey': string | null;
|
|
9996
|
+
/**
|
|
9997
|
+
* Nets OAuth client id.
|
|
9998
|
+
* @type {string}
|
|
9999
|
+
* @memberof NetsConfigResponseDto
|
|
10000
|
+
*/
|
|
10001
|
+
'clientId': string | null;
|
|
10002
|
+
/**
|
|
10003
|
+
* Nets OAuth client secret.
|
|
10004
|
+
* @type {string}
|
|
10005
|
+
* @memberof NetsConfigResponseDto
|
|
10006
|
+
*/
|
|
10007
|
+
'clientSecret': string | null;
|
|
10008
|
+
}
|
|
9656
10009
|
/**
|
|
9657
10010
|
*
|
|
9658
10011
|
* @export
|
|
@@ -11828,6 +12181,24 @@ export interface PaginationDto {
|
|
|
11828
12181
|
*/
|
|
11829
12182
|
'totalPages': number;
|
|
11830
12183
|
}
|
|
12184
|
+
/**
|
|
12185
|
+
*
|
|
12186
|
+
* @export
|
|
12187
|
+
* @enum {string}
|
|
12188
|
+
*/
|
|
12189
|
+
|
|
12190
|
+
export const PaymentCheckoutFlow = {
|
|
12191
|
+
TerminalCard: 'terminal_card',
|
|
12192
|
+
CardManual: 'card_manual',
|
|
12193
|
+
Cash: 'cash',
|
|
12194
|
+
GroupedVoucher: 'grouped_voucher',
|
|
12195
|
+
GiftCard: 'gift_card',
|
|
12196
|
+
Static: 'static'
|
|
12197
|
+
} as const;
|
|
12198
|
+
|
|
12199
|
+
export type PaymentCheckoutFlow = typeof PaymentCheckoutFlow[keyof typeof PaymentCheckoutFlow];
|
|
12200
|
+
|
|
12201
|
+
|
|
11831
12202
|
/**
|
|
11832
12203
|
*
|
|
11833
12204
|
* @export
|
|
@@ -12063,6 +12434,93 @@ export const PaymentMethod = {
|
|
|
12063
12434
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
12064
12435
|
|
|
12065
12436
|
|
|
12437
|
+
/**
|
|
12438
|
+
*
|
|
12439
|
+
* @export
|
|
12440
|
+
* @interface PaymentMethodCapabilitiesDto
|
|
12441
|
+
*/
|
|
12442
|
+
export interface PaymentMethodCapabilitiesDto {
|
|
12443
|
+
/**
|
|
12444
|
+
* Whether this method can be refunded at all.
|
|
12445
|
+
* @type {boolean}
|
|
12446
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12447
|
+
*/
|
|
12448
|
+
'refundable': boolean;
|
|
12449
|
+
/**
|
|
12450
|
+
* Whether a refund can be split across this method and others.
|
|
12451
|
+
* @type {boolean}
|
|
12452
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12453
|
+
*/
|
|
12454
|
+
'refundSplittable': boolean;
|
|
12455
|
+
/**
|
|
12456
|
+
* Whether the customer may choose this method as a refund target.
|
|
12457
|
+
* @type {boolean}
|
|
12458
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12459
|
+
*/
|
|
12460
|
+
'refundChoiceEligible': boolean;
|
|
12461
|
+
/**
|
|
12462
|
+
* Refund allocation order (lower = refunded first); null when not refundable.
|
|
12463
|
+
* @type {number}
|
|
12464
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12465
|
+
*/
|
|
12466
|
+
'refundPriorityTier': number | null;
|
|
12467
|
+
/**
|
|
12468
|
+
*
|
|
12469
|
+
* @type {PaymentCheckoutFlow}
|
|
12470
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12471
|
+
*/
|
|
12472
|
+
'checkoutFlow': PaymentCheckoutFlow;
|
|
12473
|
+
/**
|
|
12474
|
+
*
|
|
12475
|
+
* @type {PaymentReportingBucket}
|
|
12476
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12477
|
+
*/
|
|
12478
|
+
'reportingBucket': PaymentReportingBucket;
|
|
12479
|
+
/**
|
|
12480
|
+
* Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
|
|
12481
|
+
* @type {string}
|
|
12482
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12483
|
+
*/
|
|
12484
|
+
'tone': string;
|
|
12485
|
+
/**
|
|
12486
|
+
* Whether a refund is sent back to the original card via the terminal SDK.
|
|
12487
|
+
* @type {boolean}
|
|
12488
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12489
|
+
*/
|
|
12490
|
+
'refundToCard': boolean;
|
|
12491
|
+
/**
|
|
12492
|
+
* Whether refunding this method needs an active card provider (Viva/Nets).
|
|
12493
|
+
* @type {boolean}
|
|
12494
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12495
|
+
*/
|
|
12496
|
+
'requiresProvider': boolean;
|
|
12497
|
+
/**
|
|
12498
|
+
* Whether checkout needs a manual resolution step (cash rounding, voucher selection).
|
|
12499
|
+
* @type {boolean}
|
|
12500
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12501
|
+
*/
|
|
12502
|
+
'requiresManualResolution': boolean;
|
|
12503
|
+
/**
|
|
12504
|
+
* Whether receipts/print should show a forfeited (leftover) amount line.
|
|
12505
|
+
* @type {boolean}
|
|
12506
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12507
|
+
*/
|
|
12508
|
+
'shouldDisplayForfeitedAmount': boolean;
|
|
12509
|
+
/**
|
|
12510
|
+
* Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
|
|
12511
|
+
* @type {string}
|
|
12512
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12513
|
+
*/
|
|
12514
|
+
'notificationIssuer': string | null;
|
|
12515
|
+
/**
|
|
12516
|
+
* Whether this method is checkout-only (cannot be a manual refund target).
|
|
12517
|
+
* @type {boolean}
|
|
12518
|
+
* @memberof PaymentMethodCapabilitiesDto
|
|
12519
|
+
*/
|
|
12520
|
+
'checkoutOnly': boolean;
|
|
12521
|
+
}
|
|
12522
|
+
|
|
12523
|
+
|
|
12066
12524
|
/**
|
|
12067
12525
|
*
|
|
12068
12526
|
* @export
|
|
@@ -12380,6 +12838,252 @@ export interface PaymentMethodDetailsDtoWechatPayDetails {
|
|
|
12380
12838
|
*/
|
|
12381
12839
|
'transactionId'?: string | null;
|
|
12382
12840
|
}
|
|
12841
|
+
/**
|
|
12842
|
+
*
|
|
12843
|
+
* @export
|
|
12844
|
+
* @interface PaymentMethodDto
|
|
12845
|
+
*/
|
|
12846
|
+
export interface PaymentMethodDto {
|
|
12847
|
+
/**
|
|
12848
|
+
* PaymentMethodOption id; use it for update/delete/reorder.
|
|
12849
|
+
* @type {string}
|
|
12850
|
+
* @memberof PaymentMethodDto
|
|
12851
|
+
*/
|
|
12852
|
+
'id': string;
|
|
12853
|
+
/**
|
|
12854
|
+
* Stable, immutable method code (catalog identity).
|
|
12855
|
+
* @type {string}
|
|
12856
|
+
* @memberof PaymentMethodDto
|
|
12857
|
+
*/
|
|
12858
|
+
'code': string;
|
|
12859
|
+
/**
|
|
12860
|
+
* Catalog type that drives this method\'s policy/behavior.
|
|
12861
|
+
* @type {string}
|
|
12862
|
+
* @memberof PaymentMethodDto
|
|
12863
|
+
*/
|
|
12864
|
+
'typeCode': string;
|
|
12865
|
+
/**
|
|
12866
|
+
* Display name: per-business customName, else catalog translation, else code.
|
|
12867
|
+
* @type {string}
|
|
12868
|
+
* @memberof PaymentMethodDto
|
|
12869
|
+
*/
|
|
12870
|
+
'label': string;
|
|
12871
|
+
/**
|
|
12872
|
+
* Per-business name override; null means inherit the catalog label.
|
|
12873
|
+
* @type {string}
|
|
12874
|
+
* @memberof PaymentMethodDto
|
|
12875
|
+
*/
|
|
12876
|
+
'customName': string | null;
|
|
12877
|
+
/**
|
|
12878
|
+
* Per-business logo URL.
|
|
12879
|
+
* @type {string}
|
|
12880
|
+
* @memberof PaymentMethodDto
|
|
12881
|
+
*/
|
|
12882
|
+
'logo': string | null;
|
|
12883
|
+
/**
|
|
12884
|
+
* Per-business description.
|
|
12885
|
+
* @type {string}
|
|
12886
|
+
* @memberof PaymentMethodDto
|
|
12887
|
+
*/
|
|
12888
|
+
'description': string | null;
|
|
12889
|
+
/**
|
|
12890
|
+
* Parent method code for grouped vouchers; null when standalone.
|
|
12891
|
+
* @type {string}
|
|
12892
|
+
* @memberof PaymentMethodDto
|
|
12893
|
+
*/
|
|
12894
|
+
'parentCode': string | null;
|
|
12895
|
+
/**
|
|
12896
|
+
* Sort order within the business (ascending).
|
|
12897
|
+
* @type {number}
|
|
12898
|
+
* @memberof PaymentMethodDto
|
|
12899
|
+
*/
|
|
12900
|
+
'position': number;
|
|
12901
|
+
/**
|
|
12902
|
+
* Whether the method is shown/usable (off = hidden, not deleted).
|
|
12903
|
+
* @type {boolean}
|
|
12904
|
+
* @memberof PaymentMethodDto
|
|
12905
|
+
*/
|
|
12906
|
+
'enable': boolean;
|
|
12907
|
+
/**
|
|
12908
|
+
* Preset amounts/denominations (vouchers).
|
|
12909
|
+
* @type {Array<number>}
|
|
12910
|
+
* @memberof PaymentMethodDto
|
|
12911
|
+
*/
|
|
12912
|
+
'amounts': Array<number>;
|
|
12913
|
+
/**
|
|
12914
|
+
* Minimum order amount required to use this method (decimal as string).
|
|
12915
|
+
* @type {string}
|
|
12916
|
+
* @memberof PaymentMethodDto
|
|
12917
|
+
*/
|
|
12918
|
+
'minimumCheckoutAmount': string | null;
|
|
12919
|
+
/**
|
|
12920
|
+
*
|
|
12921
|
+
* @type {PaymentMethodDtoCapabilities}
|
|
12922
|
+
* @memberof PaymentMethodDto
|
|
12923
|
+
*/
|
|
12924
|
+
'capabilities': PaymentMethodDtoCapabilities;
|
|
12925
|
+
/**
|
|
12926
|
+
* True for a 3rd-party gift card whose credentials the merchant can edit.
|
|
12927
|
+
* @type {boolean}
|
|
12928
|
+
* @memberof PaymentMethodDto
|
|
12929
|
+
*/
|
|
12930
|
+
'requiresCredentials': boolean;
|
|
12931
|
+
/**
|
|
12932
|
+
*
|
|
12933
|
+
* @type {PaymentMethodDtoGiftCardCredentials}
|
|
12934
|
+
* @memberof PaymentMethodDto
|
|
12935
|
+
*/
|
|
12936
|
+
'giftCardCredentials': PaymentMethodDtoGiftCardCredentials | null;
|
|
12937
|
+
/**
|
|
12938
|
+
* Auto-managed grouped children (e.g. Card→Debit/Credit, LunchVoucher→its vouchers). Empty for standalone methods.
|
|
12939
|
+
* @type {Array<PaymentMethodDto>}
|
|
12940
|
+
* @memberof PaymentMethodDto
|
|
12941
|
+
*/
|
|
12942
|
+
'children': Array<PaymentMethodDto>;
|
|
12943
|
+
}
|
|
12944
|
+
/**
|
|
12945
|
+
* Refund behavior resolved from the catalog type + per-method overrides.
|
|
12946
|
+
* @export
|
|
12947
|
+
* @interface PaymentMethodDtoCapabilities
|
|
12948
|
+
*/
|
|
12949
|
+
export interface PaymentMethodDtoCapabilities {
|
|
12950
|
+
/**
|
|
12951
|
+
* Whether this method can be refunded at all.
|
|
12952
|
+
* @type {boolean}
|
|
12953
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12954
|
+
*/
|
|
12955
|
+
'refundable': boolean;
|
|
12956
|
+
/**
|
|
12957
|
+
* Whether a refund can be split across this method and others.
|
|
12958
|
+
* @type {boolean}
|
|
12959
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12960
|
+
*/
|
|
12961
|
+
'refundSplittable': boolean;
|
|
12962
|
+
/**
|
|
12963
|
+
* Whether the customer may choose this method as a refund target.
|
|
12964
|
+
* @type {boolean}
|
|
12965
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12966
|
+
*/
|
|
12967
|
+
'refundChoiceEligible': boolean;
|
|
12968
|
+
/**
|
|
12969
|
+
* Refund allocation order (lower = refunded first); null when not refundable.
|
|
12970
|
+
* @type {number}
|
|
12971
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12972
|
+
*/
|
|
12973
|
+
'refundPriorityTier': number | null;
|
|
12974
|
+
/**
|
|
12975
|
+
*
|
|
12976
|
+
* @type {PaymentCheckoutFlow}
|
|
12977
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12978
|
+
*/
|
|
12979
|
+
'checkoutFlow': PaymentCheckoutFlow;
|
|
12980
|
+
/**
|
|
12981
|
+
*
|
|
12982
|
+
* @type {PaymentReportingBucket}
|
|
12983
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12984
|
+
*/
|
|
12985
|
+
'reportingBucket': PaymentReportingBucket;
|
|
12986
|
+
/**
|
|
12987
|
+
* Display tone/color key for badges and chips (e.g. info, edenred, voucherOrange).
|
|
12988
|
+
* @type {string}
|
|
12989
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12990
|
+
*/
|
|
12991
|
+
'tone': string;
|
|
12992
|
+
/**
|
|
12993
|
+
* Whether a refund is sent back to the original card via the terminal SDK.
|
|
12994
|
+
* @type {boolean}
|
|
12995
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
12996
|
+
*/
|
|
12997
|
+
'refundToCard': boolean;
|
|
12998
|
+
/**
|
|
12999
|
+
* Whether refunding this method needs an active card provider (Viva/Nets).
|
|
13000
|
+
* @type {boolean}
|
|
13001
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
13002
|
+
*/
|
|
13003
|
+
'requiresProvider': boolean;
|
|
13004
|
+
/**
|
|
13005
|
+
* Whether checkout needs a manual resolution step (cash rounding, voucher selection).
|
|
13006
|
+
* @type {boolean}
|
|
13007
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
13008
|
+
*/
|
|
13009
|
+
'requiresManualResolution': boolean;
|
|
13010
|
+
/**
|
|
13011
|
+
* Whether receipts/print should show a forfeited (leftover) amount line.
|
|
13012
|
+
* @type {boolean}
|
|
13013
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
13014
|
+
*/
|
|
13015
|
+
'shouldDisplayForfeitedAmount': boolean;
|
|
13016
|
+
/**
|
|
13017
|
+
* Benefit-confirmation issuer for the post-payment notification (e.g. edenred, wolt).
|
|
13018
|
+
* @type {string}
|
|
13019
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
13020
|
+
*/
|
|
13021
|
+
'notificationIssuer': string | null;
|
|
13022
|
+
/**
|
|
13023
|
+
* Whether this method is checkout-only (cannot be a manual refund target).
|
|
13024
|
+
* @type {boolean}
|
|
13025
|
+
* @memberof PaymentMethodDtoCapabilities
|
|
13026
|
+
*/
|
|
13027
|
+
'checkoutOnly': boolean;
|
|
13028
|
+
}
|
|
13029
|
+
|
|
13030
|
+
|
|
13031
|
+
/**
|
|
13032
|
+
* Saved 3rd-party gift card credentials for pre-fill; null when not applicable.
|
|
13033
|
+
* @export
|
|
13034
|
+
* @interface PaymentMethodDtoGiftCardCredentials
|
|
13035
|
+
*/
|
|
13036
|
+
export interface PaymentMethodDtoGiftCardCredentials {
|
|
13037
|
+
/**
|
|
13038
|
+
* Saved 3rd-party gift card username.
|
|
13039
|
+
* @type {string}
|
|
13040
|
+
* @memberof PaymentMethodDtoGiftCardCredentials
|
|
13041
|
+
*/
|
|
13042
|
+
'username': string | null;
|
|
13043
|
+
/**
|
|
13044
|
+
* Saved 3rd-party gift card password.
|
|
13045
|
+
* @type {string}
|
|
13046
|
+
* @memberof PaymentMethodDtoGiftCardCredentials
|
|
13047
|
+
*/
|
|
13048
|
+
'password': string | null;
|
|
13049
|
+
/**
|
|
13050
|
+
* Saved unique POS device id for the 3rd-party gift card provider.
|
|
13051
|
+
* @type {string}
|
|
13052
|
+
* @memberof PaymentMethodDtoGiftCardCredentials
|
|
13053
|
+
*/
|
|
13054
|
+
'uniquePosDeviceId': string | null;
|
|
13055
|
+
}
|
|
13056
|
+
/**
|
|
13057
|
+
*
|
|
13058
|
+
* @export
|
|
13059
|
+
* @interface PaymentMethodTypeDto
|
|
13060
|
+
*/
|
|
13061
|
+
export interface PaymentMethodTypeDto {
|
|
13062
|
+
/**
|
|
13063
|
+
* Catalog type code (e.g. CARD, VOUCHER, GIFT_CARD).
|
|
13064
|
+
* @type {string}
|
|
13065
|
+
* @memberof PaymentMethodTypeDto
|
|
13066
|
+
*/
|
|
13067
|
+
'code': string;
|
|
13068
|
+
/**
|
|
13069
|
+
* Human-readable type label for display.
|
|
13070
|
+
* @type {string}
|
|
13071
|
+
* @memberof PaymentMethodTypeDto
|
|
13072
|
+
*/
|
|
13073
|
+
'label': string;
|
|
13074
|
+
/**
|
|
13075
|
+
* Short explanation of what this category means, to guide the user.
|
|
13076
|
+
* @type {string}
|
|
13077
|
+
* @memberof PaymentMethodTypeDto
|
|
13078
|
+
*/
|
|
13079
|
+
'description': string;
|
|
13080
|
+
/**
|
|
13081
|
+
* Whether methods of this type take preset amounts/denominations.
|
|
13082
|
+
* @type {boolean}
|
|
13083
|
+
* @memberof PaymentMethodTypeDto
|
|
13084
|
+
*/
|
|
13085
|
+
'supportsAmounts': boolean;
|
|
13086
|
+
}
|
|
12383
13087
|
/**
|
|
12384
13088
|
*
|
|
12385
13089
|
* @export
|
|
@@ -12739,6 +13443,22 @@ export interface PaymentRefundLineAllocationDto {
|
|
|
12739
13443
|
*/
|
|
12740
13444
|
'quantity': number;
|
|
12741
13445
|
}
|
|
13446
|
+
/**
|
|
13447
|
+
*
|
|
13448
|
+
* @export
|
|
13449
|
+
* @enum {string}
|
|
13450
|
+
*/
|
|
13451
|
+
|
|
13452
|
+
export const PaymentReportingBucket = {
|
|
13453
|
+
Cards: 'cards',
|
|
13454
|
+
EdenredVoucher: 'edenred_voucher',
|
|
13455
|
+
SmartumVoucher: 'smartum_voucher',
|
|
13456
|
+
Other: 'other'
|
|
13457
|
+
} as const;
|
|
13458
|
+
|
|
13459
|
+
export type PaymentReportingBucket = typeof PaymentReportingBucket[keyof typeof PaymentReportingBucket];
|
|
13460
|
+
|
|
13461
|
+
|
|
12742
13462
|
/**
|
|
12743
13463
|
*
|
|
12744
13464
|
* @export
|
|
@@ -16651,6 +17371,45 @@ export interface ProviderSupportedIntegrationsDto {
|
|
|
16651
17371
|
}
|
|
16652
17372
|
|
|
16653
17373
|
|
|
17374
|
+
/**
|
|
17375
|
+
*
|
|
17376
|
+
* @export
|
|
17377
|
+
* @interface ProvidersConfigResponseDto
|
|
17378
|
+
*/
|
|
17379
|
+
export interface ProvidersConfigResponseDto {
|
|
17380
|
+
/**
|
|
17381
|
+
*
|
|
17382
|
+
* @type {PaymentProvider}
|
|
17383
|
+
* @memberof ProvidersConfigResponseDto
|
|
17384
|
+
*/
|
|
17385
|
+
'selectedPaymentProvider': PaymentProvider | null;
|
|
17386
|
+
/**
|
|
17387
|
+
*
|
|
17388
|
+
* @type {VivaConfigResponseDto}
|
|
17389
|
+
* @memberof ProvidersConfigResponseDto
|
|
17390
|
+
*/
|
|
17391
|
+
'viva': VivaConfigResponseDto | null;
|
|
17392
|
+
/**
|
|
17393
|
+
*
|
|
17394
|
+
* @type {NetsConfigResponseDto}
|
|
17395
|
+
* @memberof ProvidersConfigResponseDto
|
|
17396
|
+
*/
|
|
17397
|
+
'nets': NetsConfigResponseDto | null;
|
|
17398
|
+
/**
|
|
17399
|
+
*
|
|
17400
|
+
* @type {StripeConfigResponseDto}
|
|
17401
|
+
* @memberof ProvidersConfigResponseDto
|
|
17402
|
+
*/
|
|
17403
|
+
'stripe': StripeConfigResponseDto | null;
|
|
17404
|
+
/**
|
|
17405
|
+
*
|
|
17406
|
+
* @type {WorldlineConfigResponseDto}
|
|
17407
|
+
* @memberof ProvidersConfigResponseDto
|
|
17408
|
+
*/
|
|
17409
|
+
'worldline': WorldlineConfigResponseDto | null;
|
|
17410
|
+
}
|
|
17411
|
+
|
|
17412
|
+
|
|
16654
17413
|
/**
|
|
16655
17414
|
*
|
|
16656
17415
|
* @export
|
|
@@ -16678,6 +17437,25 @@ export const PubSubTarget = {
|
|
|
16678
17437
|
export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
|
|
16679
17438
|
|
|
16680
17439
|
|
|
17440
|
+
/**
|
|
17441
|
+
*
|
|
17442
|
+
* @export
|
|
17443
|
+
* @interface RankItemDto
|
|
17444
|
+
*/
|
|
17445
|
+
export interface RankItemDto {
|
|
17446
|
+
/**
|
|
17447
|
+
* PaymentMethodOption id to position.
|
|
17448
|
+
* @type {string}
|
|
17449
|
+
* @memberof RankItemDto
|
|
17450
|
+
*/
|
|
17451
|
+
'id': string;
|
|
17452
|
+
/**
|
|
17453
|
+
* New zero-based sort position.
|
|
17454
|
+
* @type {number}
|
|
17455
|
+
* @memberof RankItemDto
|
|
17456
|
+
*/
|
|
17457
|
+
'rank': number;
|
|
17458
|
+
}
|
|
16681
17459
|
/**
|
|
16682
17460
|
*
|
|
16683
17461
|
* @export
|
|
@@ -18720,6 +19498,37 @@ export const Status = {
|
|
|
18720
19498
|
export type Status = typeof Status[keyof typeof Status];
|
|
18721
19499
|
|
|
18722
19500
|
|
|
19501
|
+
/**
|
|
19502
|
+
*
|
|
19503
|
+
* @export
|
|
19504
|
+
* @interface StripeConfigResponseDto
|
|
19505
|
+
*/
|
|
19506
|
+
export interface StripeConfigResponseDto {
|
|
19507
|
+
/**
|
|
19508
|
+
* Whether the Stripe integration is active.
|
|
19509
|
+
* @type {boolean}
|
|
19510
|
+
* @memberof StripeConfigResponseDto
|
|
19511
|
+
*/
|
|
19512
|
+
'isActive': boolean;
|
|
19513
|
+
/**
|
|
19514
|
+
* Display name.
|
|
19515
|
+
* @type {string}
|
|
19516
|
+
* @memberof StripeConfigResponseDto
|
|
19517
|
+
*/
|
|
19518
|
+
'name': string | null;
|
|
19519
|
+
/**
|
|
19520
|
+
* Stripe secret key.
|
|
19521
|
+
* @type {string}
|
|
19522
|
+
* @memberof StripeConfigResponseDto
|
|
19523
|
+
*/
|
|
19524
|
+
'secretKey': string | null;
|
|
19525
|
+
/**
|
|
19526
|
+
* Stripe location id.
|
|
19527
|
+
* @type {string}
|
|
19528
|
+
* @memberof StripeConfigResponseDto
|
|
19529
|
+
*/
|
|
19530
|
+
'locationId': string | null;
|
|
19531
|
+
}
|
|
18723
19532
|
/**
|
|
18724
19533
|
*
|
|
18725
19534
|
* @export
|
|
@@ -21130,6 +21939,86 @@ export interface UpdateInvoiceCompanyDto {
|
|
|
21130
21939
|
*/
|
|
21131
21940
|
'address'?: string;
|
|
21132
21941
|
}
|
|
21942
|
+
/**
|
|
21943
|
+
*
|
|
21944
|
+
* @export
|
|
21945
|
+
* @interface UpdatePaymentMethodOptionDto
|
|
21946
|
+
*/
|
|
21947
|
+
export interface UpdatePaymentMethodOptionDto {
|
|
21948
|
+
/**
|
|
21949
|
+
* Per-business name override.
|
|
21950
|
+
* @type {string}
|
|
21951
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21952
|
+
*/
|
|
21953
|
+
'customName'?: string;
|
|
21954
|
+
/**
|
|
21955
|
+
* Per-business logo URL.
|
|
21956
|
+
* @type {string}
|
|
21957
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21958
|
+
*/
|
|
21959
|
+
'logo'?: string;
|
|
21960
|
+
/**
|
|
21961
|
+
* Per-business description.
|
|
21962
|
+
* @type {string}
|
|
21963
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21964
|
+
*/
|
|
21965
|
+
'description'?: string;
|
|
21966
|
+
/**
|
|
21967
|
+
* Parent method code for grouped vouchers.
|
|
21968
|
+
* @type {string}
|
|
21969
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21970
|
+
*/
|
|
21971
|
+
'parentCode'?: string;
|
|
21972
|
+
/**
|
|
21973
|
+
* Preset amounts/denominations (vouchers).
|
|
21974
|
+
* @type {Array<number>}
|
|
21975
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21976
|
+
*/
|
|
21977
|
+
'amounts'?: Array<number>;
|
|
21978
|
+
/**
|
|
21979
|
+
* Minimum order amount required to use this method.
|
|
21980
|
+
* @type {number}
|
|
21981
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21982
|
+
*/
|
|
21983
|
+
'minimumCheckoutAmount'?: number;
|
|
21984
|
+
/**
|
|
21985
|
+
* Whether the method is enabled.
|
|
21986
|
+
* @type {boolean}
|
|
21987
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21988
|
+
*/
|
|
21989
|
+
'enable'?: boolean;
|
|
21990
|
+
/**
|
|
21991
|
+
*
|
|
21992
|
+
* @type {UpdatePaymentMethodOptionDtoGiftCardCredentials}
|
|
21993
|
+
* @memberof UpdatePaymentMethodOptionDto
|
|
21994
|
+
*/
|
|
21995
|
+
'giftCardCredentials'?: UpdatePaymentMethodOptionDtoGiftCardCredentials;
|
|
21996
|
+
}
|
|
21997
|
+
/**
|
|
21998
|
+
* Only for a 3rd-party gift card: username/password/posDeviceId (URLs are constants).
|
|
21999
|
+
* @export
|
|
22000
|
+
* @interface UpdatePaymentMethodOptionDtoGiftCardCredentials
|
|
22001
|
+
*/
|
|
22002
|
+
export interface UpdatePaymentMethodOptionDtoGiftCardCredentials {
|
|
22003
|
+
/**
|
|
22004
|
+
* 3rd-party gift card account username.
|
|
22005
|
+
* @type {string}
|
|
22006
|
+
* @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
|
|
22007
|
+
*/
|
|
22008
|
+
'username'?: string;
|
|
22009
|
+
/**
|
|
22010
|
+
* 3rd-party gift card account password.
|
|
22011
|
+
* @type {string}
|
|
22012
|
+
* @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
|
|
22013
|
+
*/
|
|
22014
|
+
'password'?: string;
|
|
22015
|
+
/**
|
|
22016
|
+
* Unique POS device id for the 3rd-party gift card provider.
|
|
22017
|
+
* @type {string}
|
|
22018
|
+
* @memberof UpdatePaymentMethodOptionDtoGiftCardCredentials
|
|
22019
|
+
*/
|
|
22020
|
+
'uniquePosDeviceId'?: string;
|
|
22021
|
+
}
|
|
21133
22022
|
/**
|
|
21134
22023
|
*
|
|
21135
22024
|
* @export
|
|
@@ -21589,7 +22478,7 @@ export interface UpsertNetsDto {
|
|
|
21589
22478
|
* @type {string}
|
|
21590
22479
|
* @memberof UpsertNetsDto
|
|
21591
22480
|
*/
|
|
21592
|
-
'name'
|
|
22481
|
+
'name': string;
|
|
21593
22482
|
/**
|
|
21594
22483
|
*
|
|
21595
22484
|
* @type {boolean}
|
|
@@ -21819,6 +22708,87 @@ export interface UpsertProductPrintPolicyDto {
|
|
|
21819
22708
|
*/
|
|
21820
22709
|
'printerIds': Array<number>;
|
|
21821
22710
|
}
|
|
22711
|
+
/**
|
|
22712
|
+
*
|
|
22713
|
+
* @export
|
|
22714
|
+
* @interface UpsertProvidersDto
|
|
22715
|
+
*/
|
|
22716
|
+
export interface UpsertProvidersDto {
|
|
22717
|
+
/**
|
|
22718
|
+
*
|
|
22719
|
+
* @type {PaymentProvider}
|
|
22720
|
+
* @memberof UpsertProvidersDto
|
|
22721
|
+
*/
|
|
22722
|
+
'provider': PaymentProvider;
|
|
22723
|
+
/**
|
|
22724
|
+
*
|
|
22725
|
+
* @type {string}
|
|
22726
|
+
* @memberof UpsertProvidersDto
|
|
22727
|
+
*/
|
|
22728
|
+
'name': string;
|
|
22729
|
+
/**
|
|
22730
|
+
*
|
|
22731
|
+
* @type {boolean}
|
|
22732
|
+
* @memberof UpsertProvidersDto
|
|
22733
|
+
*/
|
|
22734
|
+
'isActive'?: boolean;
|
|
22735
|
+
/**
|
|
22736
|
+
* Viva merchant id.
|
|
22737
|
+
* @type {string}
|
|
22738
|
+
* @memberof UpsertProvidersDto
|
|
22739
|
+
*/
|
|
22740
|
+
'merchantId'?: string;
|
|
22741
|
+
/**
|
|
22742
|
+
* Viva source code.
|
|
22743
|
+
* @type {string}
|
|
22744
|
+
* @memberof UpsertProvidersDto
|
|
22745
|
+
*/
|
|
22746
|
+
'sourceCode'?: string;
|
|
22747
|
+
/**
|
|
22748
|
+
* Viva commission/surcharge rate.
|
|
22749
|
+
* @type {number}
|
|
22750
|
+
* @memberof UpsertProvidersDto
|
|
22751
|
+
*/
|
|
22752
|
+
'rate'?: number;
|
|
22753
|
+
/**
|
|
22754
|
+
* Viva additional amount.
|
|
22755
|
+
* @type {number}
|
|
22756
|
+
* @memberof UpsertProvidersDto
|
|
22757
|
+
*/
|
|
22758
|
+
'additionalAmount'?: number;
|
|
22759
|
+
/**
|
|
22760
|
+
* Nets / Stripe / Worldline secret key.
|
|
22761
|
+
* @type {string}
|
|
22762
|
+
* @memberof UpsertProvidersDto
|
|
22763
|
+
*/
|
|
22764
|
+
'secretKey'?: string;
|
|
22765
|
+
/**
|
|
22766
|
+
* Nets / Worldline public key.
|
|
22767
|
+
* @type {string}
|
|
22768
|
+
* @memberof UpsertProvidersDto
|
|
22769
|
+
*/
|
|
22770
|
+
'publicKey'?: string;
|
|
22771
|
+
/**
|
|
22772
|
+
* Nets OAuth client id.
|
|
22773
|
+
* @type {string}
|
|
22774
|
+
* @memberof UpsertProvidersDto
|
|
22775
|
+
*/
|
|
22776
|
+
'clientId'?: string;
|
|
22777
|
+
/**
|
|
22778
|
+
* Nets OAuth client secret.
|
|
22779
|
+
* @type {string}
|
|
22780
|
+
* @memberof UpsertProvidersDto
|
|
22781
|
+
*/
|
|
22782
|
+
'clientSecret'?: string;
|
|
22783
|
+
/**
|
|
22784
|
+
* Stripe location id.
|
|
22785
|
+
* @type {string}
|
|
22786
|
+
* @memberof UpsertProvidersDto
|
|
22787
|
+
*/
|
|
22788
|
+
'locationId'?: string;
|
|
22789
|
+
}
|
|
22790
|
+
|
|
22791
|
+
|
|
21822
22792
|
/**
|
|
21823
22793
|
*
|
|
21824
22794
|
* @export
|
|
@@ -21863,7 +22833,7 @@ export interface UpsertStripeDto {
|
|
|
21863
22833
|
* @type {string}
|
|
21864
22834
|
* @memberof UpsertStripeDto
|
|
21865
22835
|
*/
|
|
21866
|
-
'name'
|
|
22836
|
+
'name': string;
|
|
21867
22837
|
/**
|
|
21868
22838
|
*
|
|
21869
22839
|
* @type {boolean}
|
|
@@ -21894,7 +22864,7 @@ export interface UpsertVivaDto {
|
|
|
21894
22864
|
* @type {string}
|
|
21895
22865
|
* @memberof UpsertVivaDto
|
|
21896
22866
|
*/
|
|
21897
|
-
'name'
|
|
22867
|
+
'name': string;
|
|
21898
22868
|
/**
|
|
21899
22869
|
*
|
|
21900
22870
|
* @type {boolean}
|
|
@@ -22296,6 +23266,43 @@ export interface VivaConfigDto {
|
|
|
22296
23266
|
*/
|
|
22297
23267
|
'additionalAmount'?: number;
|
|
22298
23268
|
}
|
|
23269
|
+
/**
|
|
23270
|
+
*
|
|
23271
|
+
* @export
|
|
23272
|
+
* @interface VivaConfigResponseDto
|
|
23273
|
+
*/
|
|
23274
|
+
export interface VivaConfigResponseDto {
|
|
23275
|
+
/**
|
|
23276
|
+
* Whether the Viva integration is active.
|
|
23277
|
+
* @type {boolean}
|
|
23278
|
+
* @memberof VivaConfigResponseDto
|
|
23279
|
+
*/
|
|
23280
|
+
'isActive': boolean;
|
|
23281
|
+
/**
|
|
23282
|
+
* Display name.
|
|
23283
|
+
* @type {string}
|
|
23284
|
+
* @memberof VivaConfigResponseDto
|
|
23285
|
+
*/
|
|
23286
|
+
'name': string | null;
|
|
23287
|
+
/**
|
|
23288
|
+
* Viva merchant id.
|
|
23289
|
+
* @type {string}
|
|
23290
|
+
* @memberof VivaConfigResponseDto
|
|
23291
|
+
*/
|
|
23292
|
+
'merchantId': string | null;
|
|
23293
|
+
/**
|
|
23294
|
+
* Viva source code.
|
|
23295
|
+
* @type {string}
|
|
23296
|
+
* @memberof VivaConfigResponseDto
|
|
23297
|
+
*/
|
|
23298
|
+
'sourceCode': string | null;
|
|
23299
|
+
/**
|
|
23300
|
+
* Commission/surcharge rate.
|
|
23301
|
+
* @type {number}
|
|
23302
|
+
* @memberof VivaConfigResponseDto
|
|
23303
|
+
*/
|
|
23304
|
+
'rate': number | null;
|
|
23305
|
+
}
|
|
22299
23306
|
/**
|
|
22300
23307
|
*
|
|
22301
23308
|
* @export
|
|
@@ -23779,6 +24786,37 @@ export interface WorldlineAmountsRequestDto {
|
|
|
23779
24786
|
*/
|
|
23780
24787
|
'tip'?: number;
|
|
23781
24788
|
}
|
|
24789
|
+
/**
|
|
24790
|
+
*
|
|
24791
|
+
* @export
|
|
24792
|
+
* @interface WorldlineConfigResponseDto
|
|
24793
|
+
*/
|
|
24794
|
+
export interface WorldlineConfigResponseDto {
|
|
24795
|
+
/**
|
|
24796
|
+
* Whether the Worldline integration is active.
|
|
24797
|
+
* @type {boolean}
|
|
24798
|
+
* @memberof WorldlineConfigResponseDto
|
|
24799
|
+
*/
|
|
24800
|
+
'isActive': boolean;
|
|
24801
|
+
/**
|
|
24802
|
+
* Display name.
|
|
24803
|
+
* @type {string}
|
|
24804
|
+
* @memberof WorldlineConfigResponseDto
|
|
24805
|
+
*/
|
|
24806
|
+
'name': string | null;
|
|
24807
|
+
/**
|
|
24808
|
+
* Worldline secret key.
|
|
24809
|
+
* @type {string}
|
|
24810
|
+
* @memberof WorldlineConfigResponseDto
|
|
24811
|
+
*/
|
|
24812
|
+
'secretKey': string | null;
|
|
24813
|
+
/**
|
|
24814
|
+
* Worldline public key.
|
|
24815
|
+
* @type {string}
|
|
24816
|
+
* @memberof WorldlineConfigResponseDto
|
|
24817
|
+
*/
|
|
24818
|
+
'publicKey': string | null;
|
|
24819
|
+
}
|
|
23782
24820
|
/**
|
|
23783
24821
|
*
|
|
23784
24822
|
* @export
|
|
@@ -28154,158 +29192,18 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28154
29192
|
},
|
|
28155
29193
|
/**
|
|
28156
29194
|
*
|
|
28157
|
-
* @summary
|
|
28158
|
-
* @param {number} businessId
|
|
28159
|
-
* @param {ManualSyncDto} manualSyncDto
|
|
28160
|
-
* @param {*} [options] Override http request option.
|
|
28161
|
-
* @throws {RequiredError}
|
|
28162
|
-
*/
|
|
28163
|
-
configManualSync: async (businessId: number, manualSyncDto: ManualSyncDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28164
|
-
// verify required parameter 'businessId' is not null or undefined
|
|
28165
|
-
assertParamExists('configManualSync', 'businessId', businessId)
|
|
28166
|
-
// verify required parameter 'manualSyncDto' is not null or undefined
|
|
28167
|
-
assertParamExists('configManualSync', 'manualSyncDto', manualSyncDto)
|
|
28168
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/sync`
|
|
28169
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28170
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28171
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28172
|
-
let baseOptions;
|
|
28173
|
-
if (configuration) {
|
|
28174
|
-
baseOptions = configuration.baseOptions;
|
|
28175
|
-
}
|
|
28176
|
-
|
|
28177
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28178
|
-
const localVarHeaderParameter = {} as any;
|
|
28179
|
-
const localVarQueryParameter = {} as any;
|
|
28180
|
-
|
|
28181
|
-
// authentication JWT-auth required
|
|
28182
|
-
// http bearer authentication required
|
|
28183
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28184
|
-
|
|
28185
|
-
|
|
28186
|
-
|
|
28187
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28188
|
-
|
|
28189
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28190
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28191
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28192
|
-
localVarRequestOptions.data = serializeDataIfNeeded(manualSyncDto, localVarRequestOptions, configuration)
|
|
28193
|
-
|
|
28194
|
-
return {
|
|
28195
|
-
url: toPathString(localVarUrlObj),
|
|
28196
|
-
options: localVarRequestOptions,
|
|
28197
|
-
};
|
|
28198
|
-
},
|
|
28199
|
-
/**
|
|
28200
|
-
*
|
|
28201
|
-
* @summary Remove payment option
|
|
28202
|
-
* @param {number} businessId
|
|
28203
|
-
* @param {string} id
|
|
28204
|
-
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
28205
|
-
* @param {*} [options] Override http request option.
|
|
28206
|
-
* @throws {RequiredError}
|
|
28207
|
-
*/
|
|
28208
|
-
configRemovePaymentOption: async (businessId: number, id: string, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28209
|
-
// verify required parameter 'businessId' is not null or undefined
|
|
28210
|
-
assertParamExists('configRemovePaymentOption', 'businessId', businessId)
|
|
28211
|
-
// verify required parameter 'id' is not null or undefined
|
|
28212
|
-
assertParamExists('configRemovePaymentOption', 'id', id)
|
|
28213
|
-
// verify required parameter 'xAppX' is not null or undefined
|
|
28214
|
-
assertParamExists('configRemovePaymentOption', 'xAppX', xAppX)
|
|
28215
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/config/payment-options/{id}`
|
|
28216
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
28217
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
28218
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28219
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28220
|
-
let baseOptions;
|
|
28221
|
-
if (configuration) {
|
|
28222
|
-
baseOptions = configuration.baseOptions;
|
|
28223
|
-
}
|
|
28224
|
-
|
|
28225
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
28226
|
-
const localVarHeaderParameter = {} as any;
|
|
28227
|
-
const localVarQueryParameter = {} as any;
|
|
28228
|
-
|
|
28229
|
-
// authentication JWT-auth required
|
|
28230
|
-
// http bearer authentication required
|
|
28231
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28232
|
-
|
|
28233
|
-
if (xAppX != null) {
|
|
28234
|
-
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
28235
|
-
}
|
|
28236
|
-
|
|
28237
|
-
|
|
28238
|
-
|
|
28239
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28240
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28241
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28242
|
-
|
|
28243
|
-
return {
|
|
28244
|
-
url: toPathString(localVarUrlObj),
|
|
28245
|
-
options: localVarRequestOptions,
|
|
28246
|
-
};
|
|
28247
|
-
},
|
|
28248
|
-
/**
|
|
28249
|
-
*
|
|
28250
|
-
* @summary Upsert business
|
|
28251
|
-
* @param {number} businessId
|
|
28252
|
-
* @param {UpsertBusinessDto} upsertBusinessDto
|
|
28253
|
-
* @param {*} [options] Override http request option.
|
|
28254
|
-
* @throws {RequiredError}
|
|
28255
|
-
*/
|
|
28256
|
-
configUpsertBusiness: async (businessId: number, upsertBusinessDto: UpsertBusinessDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28257
|
-
// verify required parameter 'businessId' is not null or undefined
|
|
28258
|
-
assertParamExists('configUpsertBusiness', 'businessId', businessId)
|
|
28259
|
-
// verify required parameter 'upsertBusinessDto' is not null or undefined
|
|
28260
|
-
assertParamExists('configUpsertBusiness', 'upsertBusinessDto', upsertBusinessDto)
|
|
28261
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}`
|
|
28262
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28263
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28264
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28265
|
-
let baseOptions;
|
|
28266
|
-
if (configuration) {
|
|
28267
|
-
baseOptions = configuration.baseOptions;
|
|
28268
|
-
}
|
|
28269
|
-
|
|
28270
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28271
|
-
const localVarHeaderParameter = {} as any;
|
|
28272
|
-
const localVarQueryParameter = {} as any;
|
|
28273
|
-
|
|
28274
|
-
// authentication JWT-auth required
|
|
28275
|
-
// http bearer authentication required
|
|
28276
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28277
|
-
|
|
28278
|
-
|
|
28279
|
-
|
|
28280
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28281
|
-
|
|
28282
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28283
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28284
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28285
|
-
localVarRequestOptions.data = serializeDataIfNeeded(upsertBusinessDto, localVarRequestOptions, configuration)
|
|
28286
|
-
|
|
28287
|
-
return {
|
|
28288
|
-
url: toPathString(localVarUrlObj),
|
|
28289
|
-
options: localVarRequestOptions,
|
|
28290
|
-
};
|
|
28291
|
-
},
|
|
28292
|
-
/**
|
|
28293
|
-
*
|
|
28294
|
-
* @summary Upsert channel config
|
|
29195
|
+
* @summary Get payment providers config
|
|
28295
29196
|
* @param {number} businessId
|
|
28296
29197
|
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
28297
|
-
* @param {UpsertConfigDto} upsertConfigDto
|
|
28298
29198
|
* @param {*} [options] Override http request option.
|
|
28299
29199
|
* @throws {RequiredError}
|
|
28300
29200
|
*/
|
|
28301
|
-
|
|
29201
|
+
configGetProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28302
29202
|
// verify required parameter 'businessId' is not null or undefined
|
|
28303
|
-
assertParamExists('
|
|
29203
|
+
assertParamExists('configGetProviders', 'businessId', businessId)
|
|
28304
29204
|
// verify required parameter 'xAppX' is not null or undefined
|
|
28305
|
-
assertParamExists('
|
|
28306
|
-
|
|
28307
|
-
assertParamExists('configUpsertChannelConfig', 'upsertConfigDto', upsertConfigDto)
|
|
28308
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/config`
|
|
29205
|
+
assertParamExists('configGetProviders', 'xAppX', xAppX)
|
|
29206
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
|
|
28309
29207
|
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28310
29208
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28311
29209
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28314,7 +29212,7 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28314
29212
|
baseOptions = configuration.baseOptions;
|
|
28315
29213
|
}
|
|
28316
29214
|
|
|
28317
|
-
const localVarRequestOptions = { method: '
|
|
29215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28318
29216
|
const localVarHeaderParameter = {} as any;
|
|
28319
29217
|
const localVarQueryParameter = {} as any;
|
|
28320
29218
|
|
|
@@ -28328,12 +29226,9 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28328
29226
|
|
|
28329
29227
|
|
|
28330
29228
|
|
|
28331
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28332
|
-
|
|
28333
29229
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28334
29230
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28335
29231
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28336
|
-
localVarRequestOptions.data = serializeDataIfNeeded(upsertConfigDto, localVarRequestOptions, configuration)
|
|
28337
29232
|
|
|
28338
29233
|
return {
|
|
28339
29234
|
url: toPathString(localVarUrlObj),
|
|
@@ -28342,69 +29237,18 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28342
29237
|
},
|
|
28343
29238
|
/**
|
|
28344
29239
|
*
|
|
28345
|
-
* @summary
|
|
28346
|
-
* @param {number} businessId
|
|
28347
|
-
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
28348
|
-
* @param {UpsertGiftCardDto} upsertGiftCardDto
|
|
28349
|
-
* @param {*} [options] Override http request option.
|
|
28350
|
-
* @throws {RequiredError}
|
|
28351
|
-
*/
|
|
28352
|
-
configUpsertGiftCard: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertGiftCardDto: UpsertGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28353
|
-
// verify required parameter 'businessId' is not null or undefined
|
|
28354
|
-
assertParamExists('configUpsertGiftCard', 'businessId', businessId)
|
|
28355
|
-
// verify required parameter 'xAppX' is not null or undefined
|
|
28356
|
-
assertParamExists('configUpsertGiftCard', 'xAppX', xAppX)
|
|
28357
|
-
// verify required parameter 'upsertGiftCardDto' is not null or undefined
|
|
28358
|
-
assertParamExists('configUpsertGiftCard', 'upsertGiftCardDto', upsertGiftCardDto)
|
|
28359
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/config/giftcard`
|
|
28360
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28361
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28362
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28363
|
-
let baseOptions;
|
|
28364
|
-
if (configuration) {
|
|
28365
|
-
baseOptions = configuration.baseOptions;
|
|
28366
|
-
}
|
|
28367
|
-
|
|
28368
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28369
|
-
const localVarHeaderParameter = {} as any;
|
|
28370
|
-
const localVarQueryParameter = {} as any;
|
|
28371
|
-
|
|
28372
|
-
// authentication JWT-auth required
|
|
28373
|
-
// http bearer authentication required
|
|
28374
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28375
|
-
|
|
28376
|
-
if (xAppX != null) {
|
|
28377
|
-
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
28378
|
-
}
|
|
28379
|
-
|
|
28380
|
-
|
|
28381
|
-
|
|
28382
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28383
|
-
|
|
28384
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28385
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28386
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28387
|
-
localVarRequestOptions.data = serializeDataIfNeeded(upsertGiftCardDto, localVarRequestOptions, configuration)
|
|
28388
|
-
|
|
28389
|
-
return {
|
|
28390
|
-
url: toPathString(localVarUrlObj),
|
|
28391
|
-
options: localVarRequestOptions,
|
|
28392
|
-
};
|
|
28393
|
-
},
|
|
28394
|
-
/**
|
|
28395
|
-
*
|
|
28396
|
-
* @summary Upsert Loyalty program
|
|
29240
|
+
* @summary Manual sync trigger
|
|
28397
29241
|
* @param {number} businessId
|
|
28398
|
-
* @param {
|
|
29242
|
+
* @param {ManualSyncDto} manualSyncDto
|
|
28399
29243
|
* @param {*} [options] Override http request option.
|
|
28400
29244
|
* @throws {RequiredError}
|
|
28401
29245
|
*/
|
|
28402
|
-
|
|
29246
|
+
configManualSync: async (businessId: number, manualSyncDto: ManualSyncDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28403
29247
|
// verify required parameter 'businessId' is not null or undefined
|
|
28404
|
-
assertParamExists('
|
|
28405
|
-
// verify required parameter '
|
|
28406
|
-
assertParamExists('
|
|
28407
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/
|
|
29248
|
+
assertParamExists('configManualSync', 'businessId', businessId)
|
|
29249
|
+
// verify required parameter 'manualSyncDto' is not null or undefined
|
|
29250
|
+
assertParamExists('configManualSync', 'manualSyncDto', manualSyncDto)
|
|
29251
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/sync`
|
|
28408
29252
|
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28409
29253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28410
29254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28428,7 +29272,7 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28428
29272
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28429
29273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28430
29274
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28431
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
29275
|
+
localVarRequestOptions.data = serializeDataIfNeeded(manualSyncDto, localVarRequestOptions, configuration)
|
|
28432
29276
|
|
|
28433
29277
|
return {
|
|
28434
29278
|
url: toPathString(localVarUrlObj),
|
|
@@ -28437,22 +29281,23 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28437
29281
|
},
|
|
28438
29282
|
/**
|
|
28439
29283
|
*
|
|
28440
|
-
* @summary
|
|
29284
|
+
* @summary Remove payment option
|
|
28441
29285
|
* @param {number} businessId
|
|
29286
|
+
* @param {string} id
|
|
28442
29287
|
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
28443
|
-
* @param {UpsertNetsDto} upsertNetsDto
|
|
28444
29288
|
* @param {*} [options] Override http request option.
|
|
28445
29289
|
* @throws {RequiredError}
|
|
28446
29290
|
*/
|
|
28447
|
-
|
|
29291
|
+
configRemovePaymentOption: async (businessId: number, id: string, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28448
29292
|
// verify required parameter 'businessId' is not null or undefined
|
|
28449
|
-
assertParamExists('
|
|
29293
|
+
assertParamExists('configRemovePaymentOption', 'businessId', businessId)
|
|
29294
|
+
// verify required parameter 'id' is not null or undefined
|
|
29295
|
+
assertParamExists('configRemovePaymentOption', 'id', id)
|
|
28450
29296
|
// verify required parameter 'xAppX' is not null or undefined
|
|
28451
|
-
assertParamExists('
|
|
28452
|
-
|
|
28453
|
-
|
|
28454
|
-
|
|
28455
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29297
|
+
assertParamExists('configRemovePaymentOption', 'xAppX', xAppX)
|
|
29298
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config/payment-options/{id}`
|
|
29299
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
29300
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
28456
29301
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28457
29302
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28458
29303
|
let baseOptions;
|
|
@@ -28460,7 +29305,7 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28460
29305
|
baseOptions = configuration.baseOptions;
|
|
28461
29306
|
}
|
|
28462
29307
|
|
|
28463
|
-
const localVarRequestOptions = { method: '
|
|
29308
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
28464
29309
|
const localVarHeaderParameter = {} as any;
|
|
28465
29310
|
const localVarQueryParameter = {} as any;
|
|
28466
29311
|
|
|
@@ -28474,12 +29319,9 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28474
29319
|
|
|
28475
29320
|
|
|
28476
29321
|
|
|
28477
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28478
|
-
|
|
28479
29322
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28480
29323
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28481
29324
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28482
|
-
localVarRequestOptions.data = serializeDataIfNeeded(upsertNetsDto, localVarRequestOptions, configuration)
|
|
28483
29325
|
|
|
28484
29326
|
return {
|
|
28485
29327
|
url: toPathString(localVarUrlObj),
|
|
@@ -28488,21 +29330,18 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28488
29330
|
},
|
|
28489
29331
|
/**
|
|
28490
29332
|
*
|
|
28491
|
-
* @summary Upsert
|
|
29333
|
+
* @summary Upsert business
|
|
28492
29334
|
* @param {number} businessId
|
|
28493
|
-
* @param {
|
|
28494
|
-
* @param {UpsertPaymentOptionsDto} upsertPaymentOptionsDto
|
|
29335
|
+
* @param {UpsertBusinessDto} upsertBusinessDto
|
|
28495
29336
|
* @param {*} [options] Override http request option.
|
|
28496
29337
|
* @throws {RequiredError}
|
|
28497
29338
|
*/
|
|
28498
|
-
|
|
29339
|
+
configUpsertBusiness: async (businessId: number, upsertBusinessDto: UpsertBusinessDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28499
29340
|
// verify required parameter 'businessId' is not null or undefined
|
|
28500
|
-
assertParamExists('
|
|
28501
|
-
// verify required parameter '
|
|
28502
|
-
assertParamExists('
|
|
28503
|
-
|
|
28504
|
-
assertParamExists('configUpsertPaymentOptions', 'upsertPaymentOptionsDto', upsertPaymentOptionsDto)
|
|
28505
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/config/payment-options`
|
|
29341
|
+
assertParamExists('configUpsertBusiness', 'businessId', businessId)
|
|
29342
|
+
// verify required parameter 'upsertBusinessDto' is not null or undefined
|
|
29343
|
+
assertParamExists('configUpsertBusiness', 'upsertBusinessDto', upsertBusinessDto)
|
|
29344
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}`
|
|
28506
29345
|
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28507
29346
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28508
29347
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28519,10 +29358,6 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28519
29358
|
// http bearer authentication required
|
|
28520
29359
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28521
29360
|
|
|
28522
|
-
if (xAppX != null) {
|
|
28523
|
-
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
28524
|
-
}
|
|
28525
|
-
|
|
28526
29361
|
|
|
28527
29362
|
|
|
28528
29363
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -28530,7 +29365,7 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28530
29365
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28531
29366
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28532
29367
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28533
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
29368
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertBusinessDto, localVarRequestOptions, configuration)
|
|
28534
29369
|
|
|
28535
29370
|
return {
|
|
28536
29371
|
url: toPathString(localVarUrlObj),
|
|
@@ -28539,21 +29374,320 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28539
29374
|
},
|
|
28540
29375
|
/**
|
|
28541
29376
|
*
|
|
28542
|
-
* @summary Upsert
|
|
29377
|
+
* @summary Upsert channel config
|
|
28543
29378
|
* @param {number} businessId
|
|
28544
29379
|
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
28545
|
-
* @param {
|
|
29380
|
+
* @param {UpsertConfigDto} upsertConfigDto
|
|
28546
29381
|
* @param {*} [options] Override http request option.
|
|
28547
29382
|
* @throws {RequiredError}
|
|
28548
29383
|
*/
|
|
28549
|
-
|
|
29384
|
+
configUpsertChannelConfig: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertConfigDto: UpsertConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28550
29385
|
// verify required parameter 'businessId' is not null or undefined
|
|
28551
|
-
assertParamExists('
|
|
29386
|
+
assertParamExists('configUpsertChannelConfig', 'businessId', businessId)
|
|
28552
29387
|
// verify required parameter 'xAppX' is not null or undefined
|
|
28553
|
-
assertParamExists('
|
|
28554
|
-
// verify required parameter '
|
|
28555
|
-
assertParamExists('
|
|
28556
|
-
const localVarPath = `/api/v1/config-management/business/{businessId}/config
|
|
29388
|
+
assertParamExists('configUpsertChannelConfig', 'xAppX', xAppX)
|
|
29389
|
+
// verify required parameter 'upsertConfigDto' is not null or undefined
|
|
29390
|
+
assertParamExists('configUpsertChannelConfig', 'upsertConfigDto', upsertConfigDto)
|
|
29391
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config`
|
|
29392
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29395
|
+
let baseOptions;
|
|
29396
|
+
if (configuration) {
|
|
29397
|
+
baseOptions = configuration.baseOptions;
|
|
29398
|
+
}
|
|
29399
|
+
|
|
29400
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29401
|
+
const localVarHeaderParameter = {} as any;
|
|
29402
|
+
const localVarQueryParameter = {} as any;
|
|
29403
|
+
|
|
29404
|
+
// authentication JWT-auth required
|
|
29405
|
+
// http bearer authentication required
|
|
29406
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29407
|
+
|
|
29408
|
+
if (xAppX != null) {
|
|
29409
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
29410
|
+
}
|
|
29411
|
+
|
|
29412
|
+
|
|
29413
|
+
|
|
29414
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29415
|
+
|
|
29416
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29417
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29418
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29419
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertConfigDto, localVarRequestOptions, configuration)
|
|
29420
|
+
|
|
29421
|
+
return {
|
|
29422
|
+
url: toPathString(localVarUrlObj),
|
|
29423
|
+
options: localVarRequestOptions,
|
|
29424
|
+
};
|
|
29425
|
+
},
|
|
29426
|
+
/**
|
|
29427
|
+
*
|
|
29428
|
+
* @summary Upsert GiftCard integration
|
|
29429
|
+
* @param {number} businessId
|
|
29430
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29431
|
+
* @param {UpsertGiftCardDto} upsertGiftCardDto
|
|
29432
|
+
* @param {*} [options] Override http request option.
|
|
29433
|
+
* @throws {RequiredError}
|
|
29434
|
+
*/
|
|
29435
|
+
configUpsertGiftCard: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertGiftCardDto: UpsertGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29436
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29437
|
+
assertParamExists('configUpsertGiftCard', 'businessId', businessId)
|
|
29438
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
29439
|
+
assertParamExists('configUpsertGiftCard', 'xAppX', xAppX)
|
|
29440
|
+
// verify required parameter 'upsertGiftCardDto' is not null or undefined
|
|
29441
|
+
assertParamExists('configUpsertGiftCard', 'upsertGiftCardDto', upsertGiftCardDto)
|
|
29442
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config/giftcard`
|
|
29443
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29445
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29446
|
+
let baseOptions;
|
|
29447
|
+
if (configuration) {
|
|
29448
|
+
baseOptions = configuration.baseOptions;
|
|
29449
|
+
}
|
|
29450
|
+
|
|
29451
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29452
|
+
const localVarHeaderParameter = {} as any;
|
|
29453
|
+
const localVarQueryParameter = {} as any;
|
|
29454
|
+
|
|
29455
|
+
// authentication JWT-auth required
|
|
29456
|
+
// http bearer authentication required
|
|
29457
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29458
|
+
|
|
29459
|
+
if (xAppX != null) {
|
|
29460
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
29461
|
+
}
|
|
29462
|
+
|
|
29463
|
+
|
|
29464
|
+
|
|
29465
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29466
|
+
|
|
29467
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29468
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29469
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29470
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertGiftCardDto, localVarRequestOptions, configuration)
|
|
29471
|
+
|
|
29472
|
+
return {
|
|
29473
|
+
url: toPathString(localVarUrlObj),
|
|
29474
|
+
options: localVarRequestOptions,
|
|
29475
|
+
};
|
|
29476
|
+
},
|
|
29477
|
+
/**
|
|
29478
|
+
*
|
|
29479
|
+
* @summary Upsert Loyalty program
|
|
29480
|
+
* @param {number} businessId
|
|
29481
|
+
* @param {UpsertLoyaltyDto} upsertLoyaltyDto
|
|
29482
|
+
* @param {*} [options] Override http request option.
|
|
29483
|
+
* @throws {RequiredError}
|
|
29484
|
+
*/
|
|
29485
|
+
configUpsertLoyalty: async (businessId: number, upsertLoyaltyDto: UpsertLoyaltyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29486
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29487
|
+
assertParamExists('configUpsertLoyalty', 'businessId', businessId)
|
|
29488
|
+
// verify required parameter 'upsertLoyaltyDto' is not null or undefined
|
|
29489
|
+
assertParamExists('configUpsertLoyalty', 'upsertLoyaltyDto', upsertLoyaltyDto)
|
|
29490
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/loyalty`
|
|
29491
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29492
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29493
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29494
|
+
let baseOptions;
|
|
29495
|
+
if (configuration) {
|
|
29496
|
+
baseOptions = configuration.baseOptions;
|
|
29497
|
+
}
|
|
29498
|
+
|
|
29499
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29500
|
+
const localVarHeaderParameter = {} as any;
|
|
29501
|
+
const localVarQueryParameter = {} as any;
|
|
29502
|
+
|
|
29503
|
+
// authentication JWT-auth required
|
|
29504
|
+
// http bearer authentication required
|
|
29505
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29506
|
+
|
|
29507
|
+
|
|
29508
|
+
|
|
29509
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29510
|
+
|
|
29511
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29512
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29513
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29514
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertLoyaltyDto, localVarRequestOptions, configuration)
|
|
29515
|
+
|
|
29516
|
+
return {
|
|
29517
|
+
url: toPathString(localVarUrlObj),
|
|
29518
|
+
options: localVarRequestOptions,
|
|
29519
|
+
};
|
|
29520
|
+
},
|
|
29521
|
+
/**
|
|
29522
|
+
*
|
|
29523
|
+
* @summary Upsert Nets payment config
|
|
29524
|
+
* @param {number} businessId
|
|
29525
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29526
|
+
* @param {UpsertNetsDto} upsertNetsDto
|
|
29527
|
+
* @param {*} [options] Override http request option.
|
|
29528
|
+
* @throws {RequiredError}
|
|
29529
|
+
*/
|
|
29530
|
+
configUpsertNets: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertNetsDto: UpsertNetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29531
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29532
|
+
assertParamExists('configUpsertNets', 'businessId', businessId)
|
|
29533
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
29534
|
+
assertParamExists('configUpsertNets', 'xAppX', xAppX)
|
|
29535
|
+
// verify required parameter 'upsertNetsDto' is not null or undefined
|
|
29536
|
+
assertParamExists('configUpsertNets', 'upsertNetsDto', upsertNetsDto)
|
|
29537
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config/nets`
|
|
29538
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29540
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29541
|
+
let baseOptions;
|
|
29542
|
+
if (configuration) {
|
|
29543
|
+
baseOptions = configuration.baseOptions;
|
|
29544
|
+
}
|
|
29545
|
+
|
|
29546
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29547
|
+
const localVarHeaderParameter = {} as any;
|
|
29548
|
+
const localVarQueryParameter = {} as any;
|
|
29549
|
+
|
|
29550
|
+
// authentication JWT-auth required
|
|
29551
|
+
// http bearer authentication required
|
|
29552
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29553
|
+
|
|
29554
|
+
if (xAppX != null) {
|
|
29555
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
29556
|
+
}
|
|
29557
|
+
|
|
29558
|
+
|
|
29559
|
+
|
|
29560
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29561
|
+
|
|
29562
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29563
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29564
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29565
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertNetsDto, localVarRequestOptions, configuration)
|
|
29566
|
+
|
|
29567
|
+
return {
|
|
29568
|
+
url: toPathString(localVarUrlObj),
|
|
29569
|
+
options: localVarRequestOptions,
|
|
29570
|
+
};
|
|
29571
|
+
},
|
|
29572
|
+
/**
|
|
29573
|
+
*
|
|
29574
|
+
* @summary Upsert payment options
|
|
29575
|
+
* @param {number} businessId
|
|
29576
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29577
|
+
* @param {UpsertPaymentOptionsDto} upsertPaymentOptionsDto
|
|
29578
|
+
* @param {*} [options] Override http request option.
|
|
29579
|
+
* @throws {RequiredError}
|
|
29580
|
+
*/
|
|
29581
|
+
configUpsertPaymentOptions: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29582
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29583
|
+
assertParamExists('configUpsertPaymentOptions', 'businessId', businessId)
|
|
29584
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
29585
|
+
assertParamExists('configUpsertPaymentOptions', 'xAppX', xAppX)
|
|
29586
|
+
// verify required parameter 'upsertPaymentOptionsDto' is not null or undefined
|
|
29587
|
+
assertParamExists('configUpsertPaymentOptions', 'upsertPaymentOptionsDto', upsertPaymentOptionsDto)
|
|
29588
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config/payment-options`
|
|
29589
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29590
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29591
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29592
|
+
let baseOptions;
|
|
29593
|
+
if (configuration) {
|
|
29594
|
+
baseOptions = configuration.baseOptions;
|
|
29595
|
+
}
|
|
29596
|
+
|
|
29597
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29598
|
+
const localVarHeaderParameter = {} as any;
|
|
29599
|
+
const localVarQueryParameter = {} as any;
|
|
29600
|
+
|
|
29601
|
+
// authentication JWT-auth required
|
|
29602
|
+
// http bearer authentication required
|
|
29603
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29604
|
+
|
|
29605
|
+
if (xAppX != null) {
|
|
29606
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
29607
|
+
}
|
|
29608
|
+
|
|
29609
|
+
|
|
29610
|
+
|
|
29611
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29612
|
+
|
|
29613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29615
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29616
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertPaymentOptionsDto, localVarRequestOptions, configuration)
|
|
29617
|
+
|
|
29618
|
+
return {
|
|
29619
|
+
url: toPathString(localVarUrlObj),
|
|
29620
|
+
options: localVarRequestOptions,
|
|
29621
|
+
};
|
|
29622
|
+
},
|
|
29623
|
+
/**
|
|
29624
|
+
*
|
|
29625
|
+
* @summary Set active provider and upsert its credentials
|
|
29626
|
+
* @param {number} businessId
|
|
29627
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29628
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
29629
|
+
* @param {*} [options] Override http request option.
|
|
29630
|
+
* @throws {RequiredError}
|
|
29631
|
+
*/
|
|
29632
|
+
configUpsertProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29633
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29634
|
+
assertParamExists('configUpsertProviders', 'businessId', businessId)
|
|
29635
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
29636
|
+
assertParamExists('configUpsertProviders', 'xAppX', xAppX)
|
|
29637
|
+
// verify required parameter 'upsertProvidersDto' is not null or undefined
|
|
29638
|
+
assertParamExists('configUpsertProviders', 'upsertProvidersDto', upsertProvidersDto)
|
|
29639
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
|
|
29640
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29641
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29642
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29643
|
+
let baseOptions;
|
|
29644
|
+
if (configuration) {
|
|
29645
|
+
baseOptions = configuration.baseOptions;
|
|
29646
|
+
}
|
|
29647
|
+
|
|
29648
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29649
|
+
const localVarHeaderParameter = {} as any;
|
|
29650
|
+
const localVarQueryParameter = {} as any;
|
|
29651
|
+
|
|
29652
|
+
// authentication JWT-auth required
|
|
29653
|
+
// http bearer authentication required
|
|
29654
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29655
|
+
|
|
29656
|
+
if (xAppX != null) {
|
|
29657
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
29658
|
+
}
|
|
29659
|
+
|
|
29660
|
+
|
|
29661
|
+
|
|
29662
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29663
|
+
|
|
29664
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29665
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29666
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29667
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertProvidersDto, localVarRequestOptions, configuration)
|
|
29668
|
+
|
|
29669
|
+
return {
|
|
29670
|
+
url: toPathString(localVarUrlObj),
|
|
29671
|
+
options: localVarRequestOptions,
|
|
29672
|
+
};
|
|
29673
|
+
},
|
|
29674
|
+
/**
|
|
29675
|
+
*
|
|
29676
|
+
* @summary Upsert Stripe payment config
|
|
29677
|
+
* @param {number} businessId
|
|
29678
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29679
|
+
* @param {UpsertStripeDto} upsertStripeDto
|
|
29680
|
+
* @param {*} [options] Override http request option.
|
|
29681
|
+
* @throws {RequiredError}
|
|
29682
|
+
*/
|
|
29683
|
+
configUpsertStripe: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertStripeDto: UpsertStripeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29684
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29685
|
+
assertParamExists('configUpsertStripe', 'businessId', businessId)
|
|
29686
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
29687
|
+
assertParamExists('configUpsertStripe', 'xAppX', xAppX)
|
|
29688
|
+
// verify required parameter 'upsertStripeDto' is not null or undefined
|
|
29689
|
+
assertParamExists('configUpsertStripe', 'upsertStripeDto', upsertStripeDto)
|
|
29690
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config/stripe`
|
|
28557
29691
|
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
28558
29692
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28559
29693
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -28662,6 +29796,18 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
|
28662
29796
|
const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
|
|
28663
29797
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28664
29798
|
},
|
|
29799
|
+
/**
|
|
29800
|
+
*
|
|
29801
|
+
* @summary Get payment providers config
|
|
29802
|
+
* @param {number} businessId
|
|
29803
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29804
|
+
* @param {*} [options] Override http request option.
|
|
29805
|
+
* @throws {RequiredError}
|
|
29806
|
+
*/
|
|
29807
|
+
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>> {
|
|
29808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configGetProviders(businessId, xAppX, options);
|
|
29809
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29810
|
+
},
|
|
28665
29811
|
/**
|
|
28666
29812
|
*
|
|
28667
29813
|
* @summary Manual sync trigger
|
|
@@ -28763,6 +29909,19 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
|
28763
29909
|
const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options);
|
|
28764
29910
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28765
29911
|
},
|
|
29912
|
+
/**
|
|
29913
|
+
*
|
|
29914
|
+
* @summary Set active provider and upsert its credentials
|
|
29915
|
+
* @param {number} businessId
|
|
29916
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29917
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
29918
|
+
* @param {*} [options] Override http request option.
|
|
29919
|
+
* @throws {RequiredError}
|
|
29920
|
+
*/
|
|
29921
|
+
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>> {
|
|
29922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options);
|
|
29923
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29924
|
+
},
|
|
28766
29925
|
/**
|
|
28767
29926
|
*
|
|
28768
29927
|
* @summary Upsert Stripe payment config
|
|
@@ -28811,6 +29970,17 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
|
|
|
28811
29970
|
configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
|
|
28812
29971
|
return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
|
|
28813
29972
|
},
|
|
29973
|
+
/**
|
|
29974
|
+
*
|
|
29975
|
+
* @summary Get payment providers config
|
|
29976
|
+
* @param {number} businessId
|
|
29977
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29978
|
+
* @param {*} [options] Override http request option.
|
|
29979
|
+
* @throws {RequiredError}
|
|
29980
|
+
*/
|
|
29981
|
+
configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: any): AxiosPromise<ProvidersConfigResponseDto> {
|
|
29982
|
+
return localVarFp.configGetProviders(businessId, xAppX, options).then((request) => request(axios, basePath));
|
|
29983
|
+
},
|
|
28814
29984
|
/**
|
|
28815
29985
|
*
|
|
28816
29986
|
* @summary Manual sync trigger
|
|
@@ -28904,6 +30074,18 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
|
|
|
28904
30074
|
configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
|
|
28905
30075
|
return localVarFp.configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(axios, basePath));
|
|
28906
30076
|
},
|
|
30077
|
+
/**
|
|
30078
|
+
*
|
|
30079
|
+
* @summary Set active provider and upsert its credentials
|
|
30080
|
+
* @param {number} businessId
|
|
30081
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
30082
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
30083
|
+
* @param {*} [options] Override http request option.
|
|
30084
|
+
* @throws {RequiredError}
|
|
30085
|
+
*/
|
|
30086
|
+
configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: any): AxiosPromise<ProvidersConfigResponseDto> {
|
|
30087
|
+
return localVarFp.configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(axios, basePath));
|
|
30088
|
+
},
|
|
28907
30089
|
/**
|
|
28908
30090
|
*
|
|
28909
30091
|
* @summary Upsert Stripe payment config
|
|
@@ -28949,6 +30131,17 @@ export interface ConfigManagementApiInterface {
|
|
|
28949
30131
|
*/
|
|
28950
30132
|
configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
|
|
28951
30133
|
|
|
30134
|
+
/**
|
|
30135
|
+
*
|
|
30136
|
+
* @summary Get payment providers config
|
|
30137
|
+
* @param {number} businessId
|
|
30138
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
30139
|
+
* @param {*} [options] Override http request option.
|
|
30140
|
+
* @throws {RequiredError}
|
|
30141
|
+
* @memberof ConfigManagementApiInterface
|
|
30142
|
+
*/
|
|
30143
|
+
configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
|
|
30144
|
+
|
|
28952
30145
|
/**
|
|
28953
30146
|
*
|
|
28954
30147
|
* @summary Manual sync trigger
|
|
@@ -29042,6 +30235,18 @@ export interface ConfigManagementApiInterface {
|
|
|
29042
30235
|
*/
|
|
29043
30236
|
configUpsertPaymentOptions(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertPaymentOptionsDto: UpsertPaymentOptionsDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
|
|
29044
30237
|
|
|
30238
|
+
/**
|
|
30239
|
+
*
|
|
30240
|
+
* @summary Set active provider and upsert its credentials
|
|
30241
|
+
* @param {number} businessId
|
|
30242
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
30243
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
30244
|
+
* @param {*} [options] Override http request option.
|
|
30245
|
+
* @throws {RequiredError}
|
|
30246
|
+
* @memberof ConfigManagementApiInterface
|
|
30247
|
+
*/
|
|
30248
|
+
configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig): AxiosPromise<ProvidersConfigResponseDto>;
|
|
30249
|
+
|
|
29045
30250
|
/**
|
|
29046
30251
|
*
|
|
29047
30252
|
* @summary Upsert Stripe payment config
|
|
@@ -29089,6 +30294,19 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
|
|
|
29089
30294
|
return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
|
|
29090
30295
|
}
|
|
29091
30296
|
|
|
30297
|
+
/**
|
|
30298
|
+
*
|
|
30299
|
+
* @summary Get payment providers config
|
|
30300
|
+
* @param {number} businessId
|
|
30301
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
30302
|
+
* @param {*} [options] Override http request option.
|
|
30303
|
+
* @throws {RequiredError}
|
|
30304
|
+
* @memberof ConfigManagementApi
|
|
30305
|
+
*/
|
|
30306
|
+
public configGetProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options?: AxiosRequestConfig) {
|
|
30307
|
+
return ConfigManagementApiFp(this.configuration).configGetProviders(businessId, xAppX, options).then((request) => request(this.axios, this.basePath));
|
|
30308
|
+
}
|
|
30309
|
+
|
|
29092
30310
|
/**
|
|
29093
30311
|
*
|
|
29094
30312
|
* @summary Manual sync trigger
|
|
@@ -29198,6 +30416,20 @@ export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiI
|
|
|
29198
30416
|
return ConfigManagementApiFp(this.configuration).configUpsertPaymentOptions(businessId, xAppX, upsertPaymentOptionsDto, options).then((request) => request(this.axios, this.basePath));
|
|
29199
30417
|
}
|
|
29200
30418
|
|
|
30419
|
+
/**
|
|
30420
|
+
*
|
|
30421
|
+
* @summary Set active provider and upsert its credentials
|
|
30422
|
+
* @param {number} businessId
|
|
30423
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
30424
|
+
* @param {UpsertProvidersDto} upsertProvidersDto
|
|
30425
|
+
* @param {*} [options] Override http request option.
|
|
30426
|
+
* @throws {RequiredError}
|
|
30427
|
+
* @memberof ConfigManagementApi
|
|
30428
|
+
*/
|
|
30429
|
+
public configUpsertProviders(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', upsertProvidersDto: UpsertProvidersDto, options?: AxiosRequestConfig) {
|
|
30430
|
+
return ConfigManagementApiFp(this.configuration).configUpsertProviders(businessId, xAppX, upsertProvidersDto, options).then((request) => request(this.axios, this.basePath));
|
|
30431
|
+
}
|
|
30432
|
+
|
|
29201
30433
|
/**
|
|
29202
30434
|
*
|
|
29203
30435
|
* @summary Upsert Stripe payment config
|
|
@@ -38377,6 +39609,765 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
38377
39609
|
}
|
|
38378
39610
|
|
|
38379
39611
|
|
|
39612
|
+
/**
|
|
39613
|
+
* PaymentMethodsApi - axios parameter creator
|
|
39614
|
+
* @export
|
|
39615
|
+
*/
|
|
39616
|
+
export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
39617
|
+
return {
|
|
39618
|
+
/**
|
|
39619
|
+
*
|
|
39620
|
+
* @param {number} businessId
|
|
39621
|
+
* @param {ProviderEnum} channel
|
|
39622
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
39623
|
+
* @param {*} [options] Override http request option.
|
|
39624
|
+
* @throws {RequiredError}
|
|
39625
|
+
*/
|
|
39626
|
+
createPaymentMethod: async (businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39627
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39628
|
+
assertParamExists('createPaymentMethod', 'businessId', businessId)
|
|
39629
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39630
|
+
assertParamExists('createPaymentMethod', 'channel', channel)
|
|
39631
|
+
// verify required parameter 'createPaymentMethodDto' is not null or undefined
|
|
39632
|
+
assertParamExists('createPaymentMethod', 'createPaymentMethodDto', createPaymentMethodDto)
|
|
39633
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
|
|
39634
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
39635
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
39636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39638
|
+
let baseOptions;
|
|
39639
|
+
if (configuration) {
|
|
39640
|
+
baseOptions = configuration.baseOptions;
|
|
39641
|
+
}
|
|
39642
|
+
|
|
39643
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
39644
|
+
const localVarHeaderParameter = {} as any;
|
|
39645
|
+
const localVarQueryParameter = {} as any;
|
|
39646
|
+
|
|
39647
|
+
|
|
39648
|
+
|
|
39649
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39650
|
+
|
|
39651
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39652
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39653
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39654
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentMethodDto, localVarRequestOptions, configuration)
|
|
39655
|
+
|
|
39656
|
+
return {
|
|
39657
|
+
url: toPathString(localVarUrlObj),
|
|
39658
|
+
options: localVarRequestOptions,
|
|
39659
|
+
};
|
|
39660
|
+
},
|
|
39661
|
+
/**
|
|
39662
|
+
*
|
|
39663
|
+
* @param {number} businessId
|
|
39664
|
+
* @param {ProviderEnum} channel
|
|
39665
|
+
* @param {string} id
|
|
39666
|
+
* @param {*} [options] Override http request option.
|
|
39667
|
+
* @throws {RequiredError}
|
|
39668
|
+
*/
|
|
39669
|
+
deletePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39670
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39671
|
+
assertParamExists('deletePaymentMethodOption', 'businessId', businessId)
|
|
39672
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39673
|
+
assertParamExists('deletePaymentMethodOption', 'channel', channel)
|
|
39674
|
+
// verify required parameter 'id' is not null or undefined
|
|
39675
|
+
assertParamExists('deletePaymentMethodOption', 'id', id)
|
|
39676
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
|
|
39677
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
39678
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
39679
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
39680
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39681
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39682
|
+
let baseOptions;
|
|
39683
|
+
if (configuration) {
|
|
39684
|
+
baseOptions = configuration.baseOptions;
|
|
39685
|
+
}
|
|
39686
|
+
|
|
39687
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
39688
|
+
const localVarHeaderParameter = {} as any;
|
|
39689
|
+
const localVarQueryParameter = {} as any;
|
|
39690
|
+
|
|
39691
|
+
|
|
39692
|
+
|
|
39693
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39695
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39696
|
+
|
|
39697
|
+
return {
|
|
39698
|
+
url: toPathString(localVarUrlObj),
|
|
39699
|
+
options: localVarRequestOptions,
|
|
39700
|
+
};
|
|
39701
|
+
},
|
|
39702
|
+
/**
|
|
39703
|
+
*
|
|
39704
|
+
* @param {number} businessId
|
|
39705
|
+
* @param {ProviderEnum} channel
|
|
39706
|
+
* @param {any} [locale]
|
|
39707
|
+
* @param {*} [options] Override http request option.
|
|
39708
|
+
* @throws {RequiredError}
|
|
39709
|
+
*/
|
|
39710
|
+
getCatalog: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39711
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39712
|
+
assertParamExists('getCatalog', 'businessId', businessId)
|
|
39713
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39714
|
+
assertParamExists('getCatalog', 'channel', channel)
|
|
39715
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/catalog`
|
|
39716
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
39717
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
39718
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39719
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39720
|
+
let baseOptions;
|
|
39721
|
+
if (configuration) {
|
|
39722
|
+
baseOptions = configuration.baseOptions;
|
|
39723
|
+
}
|
|
39724
|
+
|
|
39725
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
39726
|
+
const localVarHeaderParameter = {} as any;
|
|
39727
|
+
const localVarQueryParameter = {} as any;
|
|
39728
|
+
|
|
39729
|
+
if (locale !== undefined) {
|
|
39730
|
+
localVarQueryParameter['locale'] = locale;
|
|
39731
|
+
}
|
|
39732
|
+
|
|
39733
|
+
|
|
39734
|
+
|
|
39735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39737
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39738
|
+
|
|
39739
|
+
return {
|
|
39740
|
+
url: toPathString(localVarUrlObj),
|
|
39741
|
+
options: localVarRequestOptions,
|
|
39742
|
+
};
|
|
39743
|
+
},
|
|
39744
|
+
/**
|
|
39745
|
+
*
|
|
39746
|
+
* @param {ProviderEnum} channel
|
|
39747
|
+
* @param {number} businessId
|
|
39748
|
+
* @param {any} [locale]
|
|
39749
|
+
* @param {*} [options] Override http request option.
|
|
39750
|
+
* @throws {RequiredError}
|
|
39751
|
+
*/
|
|
39752
|
+
getGlobalCatalog: async (channel: ProviderEnum, businessId: number, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39753
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39754
|
+
assertParamExists('getGlobalCatalog', 'channel', channel)
|
|
39755
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39756
|
+
assertParamExists('getGlobalCatalog', 'businessId', businessId)
|
|
39757
|
+
const localVarPath = `/api/v1/payment-methods/catalog`
|
|
39758
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
39759
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
39760
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39761
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39762
|
+
let baseOptions;
|
|
39763
|
+
if (configuration) {
|
|
39764
|
+
baseOptions = configuration.baseOptions;
|
|
39765
|
+
}
|
|
39766
|
+
|
|
39767
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
39768
|
+
const localVarHeaderParameter = {} as any;
|
|
39769
|
+
const localVarQueryParameter = {} as any;
|
|
39770
|
+
|
|
39771
|
+
if (locale !== undefined) {
|
|
39772
|
+
localVarQueryParameter['locale'] = locale;
|
|
39773
|
+
}
|
|
39774
|
+
|
|
39775
|
+
|
|
39776
|
+
|
|
39777
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39778
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39779
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39780
|
+
|
|
39781
|
+
return {
|
|
39782
|
+
url: toPathString(localVarUrlObj),
|
|
39783
|
+
options: localVarRequestOptions,
|
|
39784
|
+
};
|
|
39785
|
+
},
|
|
39786
|
+
/**
|
|
39787
|
+
*
|
|
39788
|
+
* @param {number} businessId
|
|
39789
|
+
* @param {ProviderEnum} channel
|
|
39790
|
+
* @param {any} [locale]
|
|
39791
|
+
* @param {*} [options] Override http request option.
|
|
39792
|
+
* @throws {RequiredError}
|
|
39793
|
+
*/
|
|
39794
|
+
getPaymentMethods: async (businessId: number, channel: ProviderEnum, locale?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39795
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39796
|
+
assertParamExists('getPaymentMethods', 'businessId', businessId)
|
|
39797
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39798
|
+
assertParamExists('getPaymentMethods', 'channel', channel)
|
|
39799
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}`
|
|
39800
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
39801
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
39802
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39803
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39804
|
+
let baseOptions;
|
|
39805
|
+
if (configuration) {
|
|
39806
|
+
baseOptions = configuration.baseOptions;
|
|
39807
|
+
}
|
|
39808
|
+
|
|
39809
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
39810
|
+
const localVarHeaderParameter = {} as any;
|
|
39811
|
+
const localVarQueryParameter = {} as any;
|
|
39812
|
+
|
|
39813
|
+
if (locale !== undefined) {
|
|
39814
|
+
localVarQueryParameter['locale'] = locale;
|
|
39815
|
+
}
|
|
39816
|
+
|
|
39817
|
+
|
|
39818
|
+
|
|
39819
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39820
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39821
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39822
|
+
|
|
39823
|
+
return {
|
|
39824
|
+
url: toPathString(localVarUrlObj),
|
|
39825
|
+
options: localVarRequestOptions,
|
|
39826
|
+
};
|
|
39827
|
+
},
|
|
39828
|
+
/**
|
|
39829
|
+
*
|
|
39830
|
+
* @param {ProviderEnum} channel
|
|
39831
|
+
* @param {number} businessId
|
|
39832
|
+
* @param {*} [options] Override http request option.
|
|
39833
|
+
* @throws {RequiredError}
|
|
39834
|
+
*/
|
|
39835
|
+
getTypes: async (channel: ProviderEnum, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39836
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39837
|
+
assertParamExists('getTypes', 'channel', channel)
|
|
39838
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39839
|
+
assertParamExists('getTypes', 'businessId', businessId)
|
|
39840
|
+
const localVarPath = `/api/v1/payment-methods/types`
|
|
39841
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
39842
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
39843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39845
|
+
let baseOptions;
|
|
39846
|
+
if (configuration) {
|
|
39847
|
+
baseOptions = configuration.baseOptions;
|
|
39848
|
+
}
|
|
39849
|
+
|
|
39850
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
39851
|
+
const localVarHeaderParameter = {} as any;
|
|
39852
|
+
const localVarQueryParameter = {} as any;
|
|
39853
|
+
|
|
39854
|
+
|
|
39855
|
+
|
|
39856
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39857
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39858
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39859
|
+
|
|
39860
|
+
return {
|
|
39861
|
+
url: toPathString(localVarUrlObj),
|
|
39862
|
+
options: localVarRequestOptions,
|
|
39863
|
+
};
|
|
39864
|
+
},
|
|
39865
|
+
/**
|
|
39866
|
+
*
|
|
39867
|
+
* @param {number} businessId
|
|
39868
|
+
* @param {ProviderEnum} channel
|
|
39869
|
+
* @param {BulkRankDto} bulkRankDto
|
|
39870
|
+
* @param {*} [options] Override http request option.
|
|
39871
|
+
* @throws {RequiredError}
|
|
39872
|
+
*/
|
|
39873
|
+
reorder: async (businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39874
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39875
|
+
assertParamExists('reorder', 'businessId', businessId)
|
|
39876
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39877
|
+
assertParamExists('reorder', 'channel', channel)
|
|
39878
|
+
// verify required parameter 'bulkRankDto' is not null or undefined
|
|
39879
|
+
assertParamExists('reorder', 'bulkRankDto', bulkRankDto)
|
|
39880
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/bulk-rank`
|
|
39881
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
39882
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)));
|
|
39883
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39884
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39885
|
+
let baseOptions;
|
|
39886
|
+
if (configuration) {
|
|
39887
|
+
baseOptions = configuration.baseOptions;
|
|
39888
|
+
}
|
|
39889
|
+
|
|
39890
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
39891
|
+
const localVarHeaderParameter = {} as any;
|
|
39892
|
+
const localVarQueryParameter = {} as any;
|
|
39893
|
+
|
|
39894
|
+
|
|
39895
|
+
|
|
39896
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39897
|
+
|
|
39898
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39899
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39900
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39901
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkRankDto, localVarRequestOptions, configuration)
|
|
39902
|
+
|
|
39903
|
+
return {
|
|
39904
|
+
url: toPathString(localVarUrlObj),
|
|
39905
|
+
options: localVarRequestOptions,
|
|
39906
|
+
};
|
|
39907
|
+
},
|
|
39908
|
+
/**
|
|
39909
|
+
*
|
|
39910
|
+
* @param {number} businessId
|
|
39911
|
+
* @param {ProviderEnum} channel
|
|
39912
|
+
* @param {string} id
|
|
39913
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
39914
|
+
* @param {*} [options] Override http request option.
|
|
39915
|
+
* @throws {RequiredError}
|
|
39916
|
+
*/
|
|
39917
|
+
updatePaymentMethodOption: async (businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39918
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
39919
|
+
assertParamExists('updatePaymentMethodOption', 'businessId', businessId)
|
|
39920
|
+
// verify required parameter 'channel' is not null or undefined
|
|
39921
|
+
assertParamExists('updatePaymentMethodOption', 'channel', channel)
|
|
39922
|
+
// verify required parameter 'id' is not null or undefined
|
|
39923
|
+
assertParamExists('updatePaymentMethodOption', 'id', id)
|
|
39924
|
+
// verify required parameter 'updatePaymentMethodOptionDto' is not null or undefined
|
|
39925
|
+
assertParamExists('updatePaymentMethodOption', 'updatePaymentMethodOptionDto', updatePaymentMethodOptionDto)
|
|
39926
|
+
const localVarPath = `/api/v1/payment-methods/businesses/{businessId}/channels/{channel}/options/{id}`
|
|
39927
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
|
|
39928
|
+
.replace(`{${"channel"}}`, encodeURIComponent(String(channel)))
|
|
39929
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
39930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39932
|
+
let baseOptions;
|
|
39933
|
+
if (configuration) {
|
|
39934
|
+
baseOptions = configuration.baseOptions;
|
|
39935
|
+
}
|
|
39936
|
+
|
|
39937
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
39938
|
+
const localVarHeaderParameter = {} as any;
|
|
39939
|
+
const localVarQueryParameter = {} as any;
|
|
39940
|
+
|
|
39941
|
+
|
|
39942
|
+
|
|
39943
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
39944
|
+
|
|
39945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
39947
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
39948
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePaymentMethodOptionDto, localVarRequestOptions, configuration)
|
|
39949
|
+
|
|
39950
|
+
return {
|
|
39951
|
+
url: toPathString(localVarUrlObj),
|
|
39952
|
+
options: localVarRequestOptions,
|
|
39953
|
+
};
|
|
39954
|
+
},
|
|
39955
|
+
}
|
|
39956
|
+
};
|
|
39957
|
+
|
|
39958
|
+
/**
|
|
39959
|
+
* PaymentMethodsApi - functional programming interface
|
|
39960
|
+
* @export
|
|
39961
|
+
*/
|
|
39962
|
+
export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
39963
|
+
const localVarAxiosParamCreator = PaymentMethodsApiAxiosParamCreator(configuration)
|
|
39964
|
+
return {
|
|
39965
|
+
/**
|
|
39966
|
+
*
|
|
39967
|
+
* @param {number} businessId
|
|
39968
|
+
* @param {ProviderEnum} channel
|
|
39969
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
39970
|
+
* @param {*} [options] Override http request option.
|
|
39971
|
+
* @throws {RequiredError}
|
|
39972
|
+
*/
|
|
39973
|
+
async createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
|
|
39974
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(businessId, channel, createPaymentMethodDto, options);
|
|
39975
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39976
|
+
},
|
|
39977
|
+
/**
|
|
39978
|
+
*
|
|
39979
|
+
* @param {number} businessId
|
|
39980
|
+
* @param {ProviderEnum} channel
|
|
39981
|
+
* @param {string} id
|
|
39982
|
+
* @param {*} [options] Override http request option.
|
|
39983
|
+
* @throws {RequiredError}
|
|
39984
|
+
*/
|
|
39985
|
+
async deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
39986
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethodOption(businessId, channel, id, options);
|
|
39987
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39988
|
+
},
|
|
39989
|
+
/**
|
|
39990
|
+
*
|
|
39991
|
+
* @param {number} businessId
|
|
39992
|
+
* @param {ProviderEnum} channel
|
|
39993
|
+
* @param {any} [locale]
|
|
39994
|
+
* @param {*} [options] Override http request option.
|
|
39995
|
+
* @throws {RequiredError}
|
|
39996
|
+
*/
|
|
39997
|
+
async getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AvailablePaymentMethodDto>>> {
|
|
39998
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalog(businessId, channel, locale, options);
|
|
39999
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40000
|
+
},
|
|
40001
|
+
/**
|
|
40002
|
+
*
|
|
40003
|
+
* @param {ProviderEnum} channel
|
|
40004
|
+
* @param {number} businessId
|
|
40005
|
+
* @param {any} [locale]
|
|
40006
|
+
* @param {*} [options] Override http request option.
|
|
40007
|
+
* @throws {RequiredError}
|
|
40008
|
+
*/
|
|
40009
|
+
async getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CatalogMethodDto>>> {
|
|
40010
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalCatalog(channel, businessId, locale, options);
|
|
40011
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40012
|
+
},
|
|
40013
|
+
/**
|
|
40014
|
+
*
|
|
40015
|
+
* @param {number} businessId
|
|
40016
|
+
* @param {ProviderEnum} channel
|
|
40017
|
+
* @param {any} [locale]
|
|
40018
|
+
* @param {*} [options] Override http request option.
|
|
40019
|
+
* @throws {RequiredError}
|
|
40020
|
+
*/
|
|
40021
|
+
async getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodDto>>> {
|
|
40022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(businessId, channel, locale, options);
|
|
40023
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40024
|
+
},
|
|
40025
|
+
/**
|
|
40026
|
+
*
|
|
40027
|
+
* @param {ProviderEnum} channel
|
|
40028
|
+
* @param {number} businessId
|
|
40029
|
+
* @param {*} [options] Override http request option.
|
|
40030
|
+
* @throws {RequiredError}
|
|
40031
|
+
*/
|
|
40032
|
+
async getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentMethodTypeDto>>> {
|
|
40033
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTypes(channel, businessId, options);
|
|
40034
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40035
|
+
},
|
|
40036
|
+
/**
|
|
40037
|
+
*
|
|
40038
|
+
* @param {number} businessId
|
|
40039
|
+
* @param {ProviderEnum} channel
|
|
40040
|
+
* @param {BulkRankDto} bulkRankDto
|
|
40041
|
+
* @param {*} [options] Override http request option.
|
|
40042
|
+
* @throws {RequiredError}
|
|
40043
|
+
*/
|
|
40044
|
+
async reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
40045
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reorder(businessId, channel, bulkRankDto, options);
|
|
40046
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40047
|
+
},
|
|
40048
|
+
/**
|
|
40049
|
+
*
|
|
40050
|
+
* @param {number} businessId
|
|
40051
|
+
* @param {ProviderEnum} channel
|
|
40052
|
+
* @param {string} id
|
|
40053
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
40054
|
+
* @param {*} [options] Override http request option.
|
|
40055
|
+
* @throws {RequiredError}
|
|
40056
|
+
*/
|
|
40057
|
+
async updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodDto>> {
|
|
40058
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options);
|
|
40059
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40060
|
+
},
|
|
40061
|
+
}
|
|
40062
|
+
};
|
|
40063
|
+
|
|
40064
|
+
/**
|
|
40065
|
+
* PaymentMethodsApi - factory interface
|
|
40066
|
+
* @export
|
|
40067
|
+
*/
|
|
40068
|
+
export const PaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
40069
|
+
const localVarFp = PaymentMethodsApiFp(configuration)
|
|
40070
|
+
return {
|
|
40071
|
+
/**
|
|
40072
|
+
*
|
|
40073
|
+
* @param {number} businessId
|
|
40074
|
+
* @param {ProviderEnum} channel
|
|
40075
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
40076
|
+
* @param {*} [options] Override http request option.
|
|
40077
|
+
* @throws {RequiredError}
|
|
40078
|
+
*/
|
|
40079
|
+
createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: any): AxiosPromise<PaymentMethodDto> {
|
|
40080
|
+
return localVarFp.createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(axios, basePath));
|
|
40081
|
+
},
|
|
40082
|
+
/**
|
|
40083
|
+
*
|
|
40084
|
+
* @param {number} businessId
|
|
40085
|
+
* @param {ProviderEnum} channel
|
|
40086
|
+
* @param {string} id
|
|
40087
|
+
* @param {*} [options] Override http request option.
|
|
40088
|
+
* @throws {RequiredError}
|
|
40089
|
+
*/
|
|
40090
|
+
deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: any): AxiosPromise<void> {
|
|
40091
|
+
return localVarFp.deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(axios, basePath));
|
|
40092
|
+
},
|
|
40093
|
+
/**
|
|
40094
|
+
*
|
|
40095
|
+
* @param {number} businessId
|
|
40096
|
+
* @param {ProviderEnum} channel
|
|
40097
|
+
* @param {any} [locale]
|
|
40098
|
+
* @param {*} [options] Override http request option.
|
|
40099
|
+
* @throws {RequiredError}
|
|
40100
|
+
*/
|
|
40101
|
+
getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<AvailablePaymentMethodDto>> {
|
|
40102
|
+
return localVarFp.getCatalog(businessId, channel, locale, options).then((request) => request(axios, basePath));
|
|
40103
|
+
},
|
|
40104
|
+
/**
|
|
40105
|
+
*
|
|
40106
|
+
* @param {ProviderEnum} channel
|
|
40107
|
+
* @param {number} businessId
|
|
40108
|
+
* @param {any} [locale]
|
|
40109
|
+
* @param {*} [options] Override http request option.
|
|
40110
|
+
* @throws {RequiredError}
|
|
40111
|
+
*/
|
|
40112
|
+
getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: any): AxiosPromise<Array<CatalogMethodDto>> {
|
|
40113
|
+
return localVarFp.getGlobalCatalog(channel, businessId, locale, options).then((request) => request(axios, basePath));
|
|
40114
|
+
},
|
|
40115
|
+
/**
|
|
40116
|
+
*
|
|
40117
|
+
* @param {number} businessId
|
|
40118
|
+
* @param {ProviderEnum} channel
|
|
40119
|
+
* @param {any} [locale]
|
|
40120
|
+
* @param {*} [options] Override http request option.
|
|
40121
|
+
* @throws {RequiredError}
|
|
40122
|
+
*/
|
|
40123
|
+
getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: any): AxiosPromise<Array<PaymentMethodDto>> {
|
|
40124
|
+
return localVarFp.getPaymentMethods(businessId, channel, locale, options).then((request) => request(axios, basePath));
|
|
40125
|
+
},
|
|
40126
|
+
/**
|
|
40127
|
+
*
|
|
40128
|
+
* @param {ProviderEnum} channel
|
|
40129
|
+
* @param {number} businessId
|
|
40130
|
+
* @param {*} [options] Override http request option.
|
|
40131
|
+
* @throws {RequiredError}
|
|
40132
|
+
*/
|
|
40133
|
+
getTypes(channel: ProviderEnum, businessId: number, options?: any): AxiosPromise<Array<PaymentMethodTypeDto>> {
|
|
40134
|
+
return localVarFp.getTypes(channel, businessId, options).then((request) => request(axios, basePath));
|
|
40135
|
+
},
|
|
40136
|
+
/**
|
|
40137
|
+
*
|
|
40138
|
+
* @param {number} businessId
|
|
40139
|
+
* @param {ProviderEnum} channel
|
|
40140
|
+
* @param {BulkRankDto} bulkRankDto
|
|
40141
|
+
* @param {*} [options] Override http request option.
|
|
40142
|
+
* @throws {RequiredError}
|
|
40143
|
+
*/
|
|
40144
|
+
reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: any): AxiosPromise<void> {
|
|
40145
|
+
return localVarFp.reorder(businessId, channel, bulkRankDto, options).then((request) => request(axios, basePath));
|
|
40146
|
+
},
|
|
40147
|
+
/**
|
|
40148
|
+
*
|
|
40149
|
+
* @param {number} businessId
|
|
40150
|
+
* @param {ProviderEnum} channel
|
|
40151
|
+
* @param {string} id
|
|
40152
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
40153
|
+
* @param {*} [options] Override http request option.
|
|
40154
|
+
* @throws {RequiredError}
|
|
40155
|
+
*/
|
|
40156
|
+
updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: any): AxiosPromise<PaymentMethodDto> {
|
|
40157
|
+
return localVarFp.updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(axios, basePath));
|
|
40158
|
+
},
|
|
40159
|
+
};
|
|
40160
|
+
};
|
|
40161
|
+
|
|
40162
|
+
/**
|
|
40163
|
+
* PaymentMethodsApi - interface
|
|
40164
|
+
* @export
|
|
40165
|
+
* @interface PaymentMethodsApi
|
|
40166
|
+
*/
|
|
40167
|
+
export interface PaymentMethodsApiInterface {
|
|
40168
|
+
/**
|
|
40169
|
+
*
|
|
40170
|
+
* @param {number} businessId
|
|
40171
|
+
* @param {ProviderEnum} channel
|
|
40172
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
40173
|
+
* @param {*} [options] Override http request option.
|
|
40174
|
+
* @throws {RequiredError}
|
|
40175
|
+
* @memberof PaymentMethodsApiInterface
|
|
40176
|
+
*/
|
|
40177
|
+
createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
|
|
40178
|
+
|
|
40179
|
+
/**
|
|
40180
|
+
*
|
|
40181
|
+
* @param {number} businessId
|
|
40182
|
+
* @param {ProviderEnum} channel
|
|
40183
|
+
* @param {string} id
|
|
40184
|
+
* @param {*} [options] Override http request option.
|
|
40185
|
+
* @throws {RequiredError}
|
|
40186
|
+
* @memberof PaymentMethodsApiInterface
|
|
40187
|
+
*/
|
|
40188
|
+
deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
40189
|
+
|
|
40190
|
+
/**
|
|
40191
|
+
*
|
|
40192
|
+
* @param {number} businessId
|
|
40193
|
+
* @param {ProviderEnum} channel
|
|
40194
|
+
* @param {any} [locale]
|
|
40195
|
+
* @param {*} [options] Override http request option.
|
|
40196
|
+
* @throws {RequiredError}
|
|
40197
|
+
* @memberof PaymentMethodsApiInterface
|
|
40198
|
+
*/
|
|
40199
|
+
getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<AvailablePaymentMethodDto>>;
|
|
40200
|
+
|
|
40201
|
+
/**
|
|
40202
|
+
*
|
|
40203
|
+
* @param {ProviderEnum} channel
|
|
40204
|
+
* @param {number} businessId
|
|
40205
|
+
* @param {any} [locale]
|
|
40206
|
+
* @param {*} [options] Override http request option.
|
|
40207
|
+
* @throws {RequiredError}
|
|
40208
|
+
* @memberof PaymentMethodsApiInterface
|
|
40209
|
+
*/
|
|
40210
|
+
getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<CatalogMethodDto>>;
|
|
40211
|
+
|
|
40212
|
+
/**
|
|
40213
|
+
*
|
|
40214
|
+
* @param {number} businessId
|
|
40215
|
+
* @param {ProviderEnum} channel
|
|
40216
|
+
* @param {any} [locale]
|
|
40217
|
+
* @param {*} [options] Override http request option.
|
|
40218
|
+
* @throws {RequiredError}
|
|
40219
|
+
* @memberof PaymentMethodsApiInterface
|
|
40220
|
+
*/
|
|
40221
|
+
getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodDto>>;
|
|
40222
|
+
|
|
40223
|
+
/**
|
|
40224
|
+
*
|
|
40225
|
+
* @param {ProviderEnum} channel
|
|
40226
|
+
* @param {number} businessId
|
|
40227
|
+
* @param {*} [options] Override http request option.
|
|
40228
|
+
* @throws {RequiredError}
|
|
40229
|
+
* @memberof PaymentMethodsApiInterface
|
|
40230
|
+
*/
|
|
40231
|
+
getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentMethodTypeDto>>;
|
|
40232
|
+
|
|
40233
|
+
/**
|
|
40234
|
+
*
|
|
40235
|
+
* @param {number} businessId
|
|
40236
|
+
* @param {ProviderEnum} channel
|
|
40237
|
+
* @param {BulkRankDto} bulkRankDto
|
|
40238
|
+
* @param {*} [options] Override http request option.
|
|
40239
|
+
* @throws {RequiredError}
|
|
40240
|
+
* @memberof PaymentMethodsApiInterface
|
|
40241
|
+
*/
|
|
40242
|
+
reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
40243
|
+
|
|
40244
|
+
/**
|
|
40245
|
+
*
|
|
40246
|
+
* @param {number} businessId
|
|
40247
|
+
* @param {ProviderEnum} channel
|
|
40248
|
+
* @param {string} id
|
|
40249
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
40250
|
+
* @param {*} [options] Override http request option.
|
|
40251
|
+
* @throws {RequiredError}
|
|
40252
|
+
* @memberof PaymentMethodsApiInterface
|
|
40253
|
+
*/
|
|
40254
|
+
updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentMethodDto>;
|
|
40255
|
+
|
|
40256
|
+
}
|
|
40257
|
+
|
|
40258
|
+
/**
|
|
40259
|
+
* PaymentMethodsApi - object-oriented interface
|
|
40260
|
+
* @export
|
|
40261
|
+
* @class PaymentMethodsApi
|
|
40262
|
+
* @extends {BaseAPI}
|
|
40263
|
+
*/
|
|
40264
|
+
export class PaymentMethodsApi extends BaseAPI implements PaymentMethodsApiInterface {
|
|
40265
|
+
/**
|
|
40266
|
+
*
|
|
40267
|
+
* @param {number} businessId
|
|
40268
|
+
* @param {ProviderEnum} channel
|
|
40269
|
+
* @param {CreatePaymentMethodDto} createPaymentMethodDto
|
|
40270
|
+
* @param {*} [options] Override http request option.
|
|
40271
|
+
* @throws {RequiredError}
|
|
40272
|
+
* @memberof PaymentMethodsApi
|
|
40273
|
+
*/
|
|
40274
|
+
public createPaymentMethod(businessId: number, channel: ProviderEnum, createPaymentMethodDto: CreatePaymentMethodDto, options?: AxiosRequestConfig) {
|
|
40275
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(businessId, channel, createPaymentMethodDto, options).then((request) => request(this.axios, this.basePath));
|
|
40276
|
+
}
|
|
40277
|
+
|
|
40278
|
+
/**
|
|
40279
|
+
*
|
|
40280
|
+
* @param {number} businessId
|
|
40281
|
+
* @param {ProviderEnum} channel
|
|
40282
|
+
* @param {string} id
|
|
40283
|
+
* @param {*} [options] Override http request option.
|
|
40284
|
+
* @throws {RequiredError}
|
|
40285
|
+
* @memberof PaymentMethodsApi
|
|
40286
|
+
*/
|
|
40287
|
+
public deletePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, options?: AxiosRequestConfig) {
|
|
40288
|
+
return PaymentMethodsApiFp(this.configuration).deletePaymentMethodOption(businessId, channel, id, options).then((request) => request(this.axios, this.basePath));
|
|
40289
|
+
}
|
|
40290
|
+
|
|
40291
|
+
/**
|
|
40292
|
+
*
|
|
40293
|
+
* @param {number} businessId
|
|
40294
|
+
* @param {ProviderEnum} channel
|
|
40295
|
+
* @param {any} [locale]
|
|
40296
|
+
* @param {*} [options] Override http request option.
|
|
40297
|
+
* @throws {RequiredError}
|
|
40298
|
+
* @memberof PaymentMethodsApi
|
|
40299
|
+
*/
|
|
40300
|
+
public getCatalog(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
|
|
40301
|
+
return PaymentMethodsApiFp(this.configuration).getCatalog(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
|
|
40302
|
+
}
|
|
40303
|
+
|
|
40304
|
+
/**
|
|
40305
|
+
*
|
|
40306
|
+
* @param {ProviderEnum} channel
|
|
40307
|
+
* @param {number} businessId
|
|
40308
|
+
* @param {any} [locale]
|
|
40309
|
+
* @param {*} [options] Override http request option.
|
|
40310
|
+
* @throws {RequiredError}
|
|
40311
|
+
* @memberof PaymentMethodsApi
|
|
40312
|
+
*/
|
|
40313
|
+
public getGlobalCatalog(channel: ProviderEnum, businessId: number, locale?: any, options?: AxiosRequestConfig) {
|
|
40314
|
+
return PaymentMethodsApiFp(this.configuration).getGlobalCatalog(channel, businessId, locale, options).then((request) => request(this.axios, this.basePath));
|
|
40315
|
+
}
|
|
40316
|
+
|
|
40317
|
+
/**
|
|
40318
|
+
*
|
|
40319
|
+
* @param {number} businessId
|
|
40320
|
+
* @param {ProviderEnum} channel
|
|
40321
|
+
* @param {any} [locale]
|
|
40322
|
+
* @param {*} [options] Override http request option.
|
|
40323
|
+
* @throws {RequiredError}
|
|
40324
|
+
* @memberof PaymentMethodsApi
|
|
40325
|
+
*/
|
|
40326
|
+
public getPaymentMethods(businessId: number, channel: ProviderEnum, locale?: any, options?: AxiosRequestConfig) {
|
|
40327
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethods(businessId, channel, locale, options).then((request) => request(this.axios, this.basePath));
|
|
40328
|
+
}
|
|
40329
|
+
|
|
40330
|
+
/**
|
|
40331
|
+
*
|
|
40332
|
+
* @param {ProviderEnum} channel
|
|
40333
|
+
* @param {number} businessId
|
|
40334
|
+
* @param {*} [options] Override http request option.
|
|
40335
|
+
* @throws {RequiredError}
|
|
40336
|
+
* @memberof PaymentMethodsApi
|
|
40337
|
+
*/
|
|
40338
|
+
public getTypes(channel: ProviderEnum, businessId: number, options?: AxiosRequestConfig) {
|
|
40339
|
+
return PaymentMethodsApiFp(this.configuration).getTypes(channel, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
40340
|
+
}
|
|
40341
|
+
|
|
40342
|
+
/**
|
|
40343
|
+
*
|
|
40344
|
+
* @param {number} businessId
|
|
40345
|
+
* @param {ProviderEnum} channel
|
|
40346
|
+
* @param {BulkRankDto} bulkRankDto
|
|
40347
|
+
* @param {*} [options] Override http request option.
|
|
40348
|
+
* @throws {RequiredError}
|
|
40349
|
+
* @memberof PaymentMethodsApi
|
|
40350
|
+
*/
|
|
40351
|
+
public reorder(businessId: number, channel: ProviderEnum, bulkRankDto: BulkRankDto, options?: AxiosRequestConfig) {
|
|
40352
|
+
return PaymentMethodsApiFp(this.configuration).reorder(businessId, channel, bulkRankDto, options).then((request) => request(this.axios, this.basePath));
|
|
40353
|
+
}
|
|
40354
|
+
|
|
40355
|
+
/**
|
|
40356
|
+
*
|
|
40357
|
+
* @param {number} businessId
|
|
40358
|
+
* @param {ProviderEnum} channel
|
|
40359
|
+
* @param {string} id
|
|
40360
|
+
* @param {UpdatePaymentMethodOptionDto} updatePaymentMethodOptionDto
|
|
40361
|
+
* @param {*} [options] Override http request option.
|
|
40362
|
+
* @throws {RequiredError}
|
|
40363
|
+
* @memberof PaymentMethodsApi
|
|
40364
|
+
*/
|
|
40365
|
+
public updatePaymentMethodOption(businessId: number, channel: ProviderEnum, id: string, updatePaymentMethodOptionDto: UpdatePaymentMethodOptionDto, options?: AxiosRequestConfig) {
|
|
40366
|
+
return PaymentMethodsApiFp(this.configuration).updatePaymentMethodOption(businessId, channel, id, updatePaymentMethodOptionDto, options).then((request) => request(this.axios, this.basePath));
|
|
40367
|
+
}
|
|
40368
|
+
}
|
|
40369
|
+
|
|
40370
|
+
|
|
38380
40371
|
/**
|
|
38381
40372
|
* PaymentSessionApi - axios parameter creator
|
|
38382
40373
|
* @export
|