@munchi_oy/core 1.9.66 → 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 +1601 -26
- 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 +2106 -23
- 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
|
|
@@ -14437,11 +15157,11 @@ export interface PosOrderItemDto {
|
|
|
14437
15157
|
*/
|
|
14438
15158
|
'printerType'?: PrinterTypeEnum;
|
|
14439
15159
|
/**
|
|
14440
|
-
* Resolved target printer
|
|
14441
|
-
* @type {string}
|
|
15160
|
+
* Resolved target printer addresses; empty/absent means print on all kitchen printers
|
|
15161
|
+
* @type {Array<string>}
|
|
14442
15162
|
* @memberof PosOrderItemDto
|
|
14443
15163
|
*/
|
|
14444
|
-
'
|
|
15164
|
+
'printerIds'?: Array<string> | null;
|
|
14445
15165
|
/**
|
|
14446
15166
|
*
|
|
14447
15167
|
* @type {Array<PosOrderOptionDto>}
|
|
@@ -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
|
|
@@ -19035,10 +19844,10 @@ export type TableShape = typeof TableShape[keyof typeof TableShape];
|
|
|
19035
19844
|
|
|
19036
19845
|
export const TableStatus = {
|
|
19037
19846
|
Available: 'AVAILABLE',
|
|
19038
|
-
Occupied: 'OCCUPIED',
|
|
19039
19847
|
Dirty: 'DIRTY',
|
|
19040
19848
|
Blocked: 'BLOCKED',
|
|
19041
|
-
OutOfService: 'OUT_OF_SERVICE'
|
|
19849
|
+
OutOfService: 'OUT_OF_SERVICE',
|
|
19850
|
+
Occupied: 'OCCUPIED'
|
|
19042
19851
|
} as const;
|
|
19043
19852
|
|
|
19044
19853
|
export type TableStatus = typeof TableStatus[keyof typeof TableStatus];
|
|
@@ -20730,11 +21539,11 @@ export interface UnifiedProductDto {
|
|
|
20730
21539
|
*/
|
|
20731
21540
|
'comment'?: string | null;
|
|
20732
21541
|
/**
|
|
20733
|
-
* Resolved target printer
|
|
20734
|
-
* @type {string}
|
|
21542
|
+
* Resolved target printer addresses; empty/absent means print on all kitchen printers
|
|
21543
|
+
* @type {Array<string>}
|
|
20735
21544
|
* @memberof UnifiedProductDto
|
|
20736
21545
|
*/
|
|
20737
|
-
'
|
|
21546
|
+
'printerIds'?: Array<string> | null;
|
|
20738
21547
|
/**
|
|
20739
21548
|
*
|
|
20740
21549
|
* @type {KitchenItemStatus}
|
|
@@ -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
|
|
@@ -21389,11 +22278,11 @@ export interface UpsertCategoryPrintPolicyDto {
|
|
|
21389
22278
|
*/
|
|
21390
22279
|
'categoryId': number;
|
|
21391
22280
|
/**
|
|
21392
|
-
*
|
|
21393
|
-
* @type {number}
|
|
22281
|
+
* Full set of target printer row IDs (replaces existing)
|
|
22282
|
+
* @type {Array<number>}
|
|
21394
22283
|
* @memberof UpsertCategoryPrintPolicyDto
|
|
21395
22284
|
*/
|
|
21396
|
-
'
|
|
22285
|
+
'printerIds': Array<number>;
|
|
21397
22286
|
}
|
|
21398
22287
|
/**
|
|
21399
22288
|
*
|
|
@@ -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}
|
|
@@ -21813,12 +22702,93 @@ export interface UpsertProductPrintPolicyDto {
|
|
|
21813
22702
|
*/
|
|
21814
22703
|
'productId': number;
|
|
21815
22704
|
/**
|
|
21816
|
-
*
|
|
21817
|
-
* @type {number}
|
|
22705
|
+
* Full set of target printer row IDs (replaces existing)
|
|
22706
|
+
* @type {Array<number>}
|
|
21818
22707
|
* @memberof UpsertProductPrintPolicyDto
|
|
21819
22708
|
*/
|
|
21820
|
-
'
|
|
22709
|
+
'printerIds': Array<number>;
|
|
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;
|
|
21821
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
|
|
@@ -28152,6 +29190,51 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28152
29190
|
options: localVarRequestOptions,
|
|
28153
29191
|
};
|
|
28154
29192
|
},
|
|
29193
|
+
/**
|
|
29194
|
+
*
|
|
29195
|
+
* @summary Get payment providers config
|
|
29196
|
+
* @param {number} businessId
|
|
29197
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront'} xAppX
|
|
29198
|
+
* @param {*} [options] Override http request option.
|
|
29199
|
+
* @throws {RequiredError}
|
|
29200
|
+
*/
|
|
29201
|
+
configGetProviders: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront' | 'Storefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29202
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29203
|
+
assertParamExists('configGetProviders', 'businessId', businessId)
|
|
29204
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
29205
|
+
assertParamExists('configGetProviders', 'xAppX', xAppX)
|
|
29206
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/providers`
|
|
29207
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
29208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29210
|
+
let baseOptions;
|
|
29211
|
+
if (configuration) {
|
|
29212
|
+
baseOptions = configuration.baseOptions;
|
|
29213
|
+
}
|
|
29214
|
+
|
|
29215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29216
|
+
const localVarHeaderParameter = {} as any;
|
|
29217
|
+
const localVarQueryParameter = {} as any;
|
|
29218
|
+
|
|
29219
|
+
// authentication JWT-auth required
|
|
29220
|
+
// http bearer authentication required
|
|
29221
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29222
|
+
|
|
29223
|
+
if (xAppX != null) {
|
|
29224
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
29225
|
+
}
|
|
29226
|
+
|
|
29227
|
+
|
|
29228
|
+
|
|
29229
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29230
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29231
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29232
|
+
|
|
29233
|
+
return {
|
|
29234
|
+
url: toPathString(localVarUrlObj),
|
|
29235
|
+
options: localVarRequestOptions,
|
|
29236
|
+
};
|
|
29237
|
+
},
|
|
28155
29238
|
/**
|
|
28156
29239
|
*
|
|
28157
29240
|
* @summary Manual sync trigger
|
|
@@ -28537,6 +29620,57 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
28537
29620
|
options: localVarRequestOptions,
|
|
28538
29621
|
};
|
|
28539
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
|
+
},
|
|
28540
29674
|
/**
|
|
28541
29675
|
*
|
|
28542
29676
|
* @summary Upsert Stripe payment config
|
|
@@ -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
|
|
@@ -29873,6 +31105,51 @@ export const FloorPlanApiAxiosParamCreator = function (configuration?: Configura
|
|
|
29873
31105
|
options: localVarRequestOptions,
|
|
29874
31106
|
};
|
|
29875
31107
|
},
|
|
31108
|
+
/**
|
|
31109
|
+
*
|
|
31110
|
+
* @summary Remove a table from its active group
|
|
31111
|
+
* @param {string} id
|
|
31112
|
+
* @param {number} businessId
|
|
31113
|
+
* @param {*} [options] Override http request option.
|
|
31114
|
+
* @throws {RequiredError}
|
|
31115
|
+
*/
|
|
31116
|
+
removeTableFromGroup: async (id: string, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31117
|
+
// verify required parameter 'id' is not null or undefined
|
|
31118
|
+
assertParamExists('removeTableFromGroup', 'id', id)
|
|
31119
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
31120
|
+
assertParamExists('removeTableFromGroup', 'businessId', businessId)
|
|
31121
|
+
const localVarPath = `/api/v1/floor-plan/tables/{id}/remove-from-group`
|
|
31122
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
31123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31125
|
+
let baseOptions;
|
|
31126
|
+
if (configuration) {
|
|
31127
|
+
baseOptions = configuration.baseOptions;
|
|
31128
|
+
}
|
|
31129
|
+
|
|
31130
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
31131
|
+
const localVarHeaderParameter = {} as any;
|
|
31132
|
+
const localVarQueryParameter = {} as any;
|
|
31133
|
+
|
|
31134
|
+
// authentication JWT-auth required
|
|
31135
|
+
// http bearer authentication required
|
|
31136
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31137
|
+
|
|
31138
|
+
if (businessId !== undefined) {
|
|
31139
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
31140
|
+
}
|
|
31141
|
+
|
|
31142
|
+
|
|
31143
|
+
|
|
31144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31146
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31147
|
+
|
|
31148
|
+
return {
|
|
31149
|
+
url: toPathString(localVarUrlObj),
|
|
31150
|
+
options: localVarRequestOptions,
|
|
31151
|
+
};
|
|
31152
|
+
},
|
|
29876
31153
|
/**
|
|
29877
31154
|
*
|
|
29878
31155
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30219,6 +31496,18 @@ export const FloorPlanApiFp = function(configuration?: Configuration) {
|
|
|
30219
31496
|
const localVarAxiosArgs = await localVarAxiosParamCreator.joinTables(businessId, joinTablesDto, options);
|
|
30220
31497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30221
31498
|
},
|
|
31499
|
+
/**
|
|
31500
|
+
*
|
|
31501
|
+
* @summary Remove a table from its active group
|
|
31502
|
+
* @param {string} id
|
|
31503
|
+
* @param {number} businessId
|
|
31504
|
+
* @param {*} [options] Override http request option.
|
|
31505
|
+
* @throws {RequiredError}
|
|
31506
|
+
*/
|
|
31507
|
+
async removeTableFromGroup(id: string, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
31508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeTableFromGroup(id, businessId, options);
|
|
31509
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
31510
|
+
},
|
|
30222
31511
|
/**
|
|
30223
31512
|
*
|
|
30224
31513
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30368,6 +31657,17 @@ export const FloorPlanApiFactory = function (configuration?: Configuration, base
|
|
|
30368
31657
|
joinTables(businessId: number, joinTablesDto: JoinTablesDto, options?: any): AxiosPromise<TableGroupResponseDto> {
|
|
30369
31658
|
return localVarFp.joinTables(businessId, joinTablesDto, options).then((request) => request(axios, basePath));
|
|
30370
31659
|
},
|
|
31660
|
+
/**
|
|
31661
|
+
*
|
|
31662
|
+
* @summary Remove a table from its active group
|
|
31663
|
+
* @param {string} id
|
|
31664
|
+
* @param {number} businessId
|
|
31665
|
+
* @param {*} [options] Override http request option.
|
|
31666
|
+
* @throws {RequiredError}
|
|
31667
|
+
*/
|
|
31668
|
+
removeTableFromGroup(id: string, businessId: number, options?: any): AxiosPromise<void> {
|
|
31669
|
+
return localVarFp.removeTableFromGroup(id, businessId, options).then((request) => request(axios, basePath));
|
|
31670
|
+
},
|
|
30371
31671
|
/**
|
|
30372
31672
|
*
|
|
30373
31673
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30511,6 +31811,17 @@ export interface FloorPlanApiInterface {
|
|
|
30511
31811
|
*/
|
|
30512
31812
|
joinTables(businessId: number, joinTablesDto: JoinTablesDto, options?: AxiosRequestConfig): AxiosPromise<TableGroupResponseDto>;
|
|
30513
31813
|
|
|
31814
|
+
/**
|
|
31815
|
+
*
|
|
31816
|
+
* @summary Remove a table from its active group
|
|
31817
|
+
* @param {string} id
|
|
31818
|
+
* @param {number} businessId
|
|
31819
|
+
* @param {*} [options] Override http request option.
|
|
31820
|
+
* @throws {RequiredError}
|
|
31821
|
+
* @memberof FloorPlanApiInterface
|
|
31822
|
+
*/
|
|
31823
|
+
removeTableFromGroup(id: string, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
31824
|
+
|
|
30514
31825
|
/**
|
|
30515
31826
|
*
|
|
30516
31827
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30668,6 +31979,19 @@ export class FloorPlanApi extends BaseAPI implements FloorPlanApiInterface {
|
|
|
30668
31979
|
return FloorPlanApiFp(this.configuration).joinTables(businessId, joinTablesDto, options).then((request) => request(this.axios, this.basePath));
|
|
30669
31980
|
}
|
|
30670
31981
|
|
|
31982
|
+
/**
|
|
31983
|
+
*
|
|
31984
|
+
* @summary Remove a table from its active group
|
|
31985
|
+
* @param {string} id
|
|
31986
|
+
* @param {number} businessId
|
|
31987
|
+
* @param {*} [options] Override http request option.
|
|
31988
|
+
* @throws {RequiredError}
|
|
31989
|
+
* @memberof FloorPlanApi
|
|
31990
|
+
*/
|
|
31991
|
+
public removeTableFromGroup(id: string, businessId: number, options?: AxiosRequestConfig) {
|
|
31992
|
+
return FloorPlanApiFp(this.configuration).removeTableFromGroup(id, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
31993
|
+
}
|
|
31994
|
+
|
|
30671
31995
|
/**
|
|
30672
31996
|
*
|
|
30673
31997
|
* @summary Transfer an occupied table to an available table
|
|
@@ -38285,6 +39609,765 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
38285
39609
|
}
|
|
38286
39610
|
|
|
38287
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
|
+
|
|
38288
40371
|
/**
|
|
38289
40372
|
* PaymentSessionApi - axios parameter creator
|
|
38290
40373
|
* @export
|
|
@@ -39446,7 +41529,7 @@ export const PrintersApiFp = function(configuration?: Configuration) {
|
|
|
39446
41529
|
* @param {*} [options] Override http request option.
|
|
39447
41530
|
* @throws {RequiredError}
|
|
39448
41531
|
*/
|
|
39449
|
-
async upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto
|
|
41532
|
+
async upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrintPolicyDto>>> {
|
|
39450
41533
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options);
|
|
39451
41534
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39452
41535
|
},
|
|
@@ -39466,7 +41549,7 @@ export const PrintersApiFp = function(configuration?: Configuration) {
|
|
|
39466
41549
|
* @param {*} [options] Override http request option.
|
|
39467
41550
|
* @throws {RequiredError}
|
|
39468
41551
|
*/
|
|
39469
|
-
async upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto
|
|
41552
|
+
async upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PrintPolicyDto>>> {
|
|
39470
41553
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertProductPolicy(upsertProductPrintPolicyDto, options);
|
|
39471
41554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39472
41555
|
},
|
|
@@ -39553,7 +41636,7 @@ export const PrintersApiFactory = function (configuration?: Configuration, baseP
|
|
|
39553
41636
|
* @param {*} [options] Override http request option.
|
|
39554
41637
|
* @throws {RequiredError}
|
|
39555
41638
|
*/
|
|
39556
|
-
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto
|
|
41639
|
+
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: any): AxiosPromise<Array<PrintPolicyDto>> {
|
|
39557
41640
|
return localVarFp.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options).then((request) => request(axios, basePath));
|
|
39558
41641
|
},
|
|
39559
41642
|
/**
|
|
@@ -39571,7 +41654,7 @@ export const PrintersApiFactory = function (configuration?: Configuration, baseP
|
|
|
39571
41654
|
* @param {*} [options] Override http request option.
|
|
39572
41655
|
* @throws {RequiredError}
|
|
39573
41656
|
*/
|
|
39574
|
-
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto
|
|
41657
|
+
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: any): AxiosPromise<Array<PrintPolicyDto>> {
|
|
39575
41658
|
return localVarFp.upsertProductPolicy(upsertProductPrintPolicyDto, options).then((request) => request(axios, basePath));
|
|
39576
41659
|
},
|
|
39577
41660
|
};
|
|
@@ -39657,7 +41740,7 @@ export interface PrintersApiInterface {
|
|
|
39657
41740
|
* @throws {RequiredError}
|
|
39658
41741
|
* @memberof PrintersApiInterface
|
|
39659
41742
|
*/
|
|
39660
|
-
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto
|
|
41743
|
+
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<Array<PrintPolicyDto>>;
|
|
39661
41744
|
|
|
39662
41745
|
/**
|
|
39663
41746
|
*
|
|
@@ -39675,7 +41758,7 @@ export interface PrintersApiInterface {
|
|
|
39675
41758
|
* @throws {RequiredError}
|
|
39676
41759
|
* @memberof PrintersApiInterface
|
|
39677
41760
|
*/
|
|
39678
|
-
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto
|
|
41761
|
+
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<Array<PrintPolicyDto>>;
|
|
39679
41762
|
|
|
39680
41763
|
}
|
|
39681
41764
|
|