@munchi_oy/core 1.9.4 → 1.9.6
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 +375 -1
- 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 +555 -3
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -447,7 +447,7 @@ export interface BusinessCategoryBodyDto {
|
|
|
447
447
|
*/
|
|
448
448
|
'cid': Array<number>;
|
|
449
449
|
/**
|
|
450
|
-
*
|
|
450
|
+
* Menu type — controls which product filters are applied
|
|
451
451
|
* @type {string}
|
|
452
452
|
* @memberof BusinessCategoryBodyDto
|
|
453
453
|
*/
|
|
@@ -2942,6 +2942,19 @@ export interface ConfigManagementResponseDto {
|
|
|
2942
2942
|
*/
|
|
2943
2943
|
'data'?: object;
|
|
2944
2944
|
}
|
|
2945
|
+
/**
|
|
2946
|
+
*
|
|
2947
|
+
* @export
|
|
2948
|
+
* @interface ConfigureMunchiGiftCardDto
|
|
2949
|
+
*/
|
|
2950
|
+
export interface ConfigureMunchiGiftCardDto {
|
|
2951
|
+
/**
|
|
2952
|
+
*
|
|
2953
|
+
* @type {boolean}
|
|
2954
|
+
* @memberof ConfigureMunchiGiftCardDto
|
|
2955
|
+
*/
|
|
2956
|
+
'active': boolean;
|
|
2957
|
+
}
|
|
2945
2958
|
/**
|
|
2946
2959
|
*
|
|
2947
2960
|
* @export
|
|
@@ -3208,6 +3221,156 @@ export interface CreateMerchantDto {
|
|
|
3208
3221
|
*/
|
|
3209
3222
|
'name': string;
|
|
3210
3223
|
}
|
|
3224
|
+
/**
|
|
3225
|
+
*
|
|
3226
|
+
* @export
|
|
3227
|
+
* @interface CreateMunchiGiftCardDto
|
|
3228
|
+
*/
|
|
3229
|
+
export interface CreateMunchiGiftCardDto {
|
|
3230
|
+
/**
|
|
3231
|
+
*
|
|
3232
|
+
* @type {number}
|
|
3233
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3234
|
+
*/
|
|
3235
|
+
'orderingBusinessId': number;
|
|
3236
|
+
/**
|
|
3237
|
+
* Initial balance stored in cents.
|
|
3238
|
+
* @type {number}
|
|
3239
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3240
|
+
*/
|
|
3241
|
+
'amount': number;
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* @type {CurrencyCode}
|
|
3245
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3246
|
+
*/
|
|
3247
|
+
'currency'?: CurrencyCode;
|
|
3248
|
+
/**
|
|
3249
|
+
* When true, the card is created for the current merchant group instead of the current business only.
|
|
3250
|
+
* @type {boolean}
|
|
3251
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3252
|
+
*/
|
|
3253
|
+
'useMerchantScope'?: boolean;
|
|
3254
|
+
/**
|
|
3255
|
+
*
|
|
3256
|
+
* @type {string}
|
|
3257
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3258
|
+
*/
|
|
3259
|
+
'purchaserName'?: string;
|
|
3260
|
+
/**
|
|
3261
|
+
*
|
|
3262
|
+
* @type {string}
|
|
3263
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3264
|
+
*/
|
|
3265
|
+
'purchaserEmail'?: string;
|
|
3266
|
+
/**
|
|
3267
|
+
*
|
|
3268
|
+
* @type {string}
|
|
3269
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3270
|
+
*/
|
|
3271
|
+
'phoneCountryCode'?: string;
|
|
3272
|
+
/**
|
|
3273
|
+
*
|
|
3274
|
+
* @type {string}
|
|
3275
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3276
|
+
*/
|
|
3277
|
+
'phoneNumber'?: string;
|
|
3278
|
+
/**
|
|
3279
|
+
*
|
|
3280
|
+
* @type {string}
|
|
3281
|
+
* @memberof CreateMunchiGiftCardDto
|
|
3282
|
+
*/
|
|
3283
|
+
'expiresAt'?: string;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
|
|
3287
|
+
/**
|
|
3288
|
+
*
|
|
3289
|
+
* @export
|
|
3290
|
+
* @interface CreateMunchiGiftCardResponseDto
|
|
3291
|
+
*/
|
|
3292
|
+
export interface CreateMunchiGiftCardResponseDto {
|
|
3293
|
+
/**
|
|
3294
|
+
*
|
|
3295
|
+
* @type {string}
|
|
3296
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3297
|
+
*/
|
|
3298
|
+
'id': string;
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @type {string}
|
|
3302
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3303
|
+
*/
|
|
3304
|
+
'code': string;
|
|
3305
|
+
/**
|
|
3306
|
+
*
|
|
3307
|
+
* @type {CurrencyCode}
|
|
3308
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3309
|
+
*/
|
|
3310
|
+
'currency': CurrencyCode;
|
|
3311
|
+
/**
|
|
3312
|
+
* Initial balance stored in cents.
|
|
3313
|
+
* @type {number}
|
|
3314
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3315
|
+
*/
|
|
3316
|
+
'initialBalance': number;
|
|
3317
|
+
/**
|
|
3318
|
+
* Remaining balance stored in cents.
|
|
3319
|
+
* @type {number}
|
|
3320
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3321
|
+
*/
|
|
3322
|
+
'remainingBalance': number;
|
|
3323
|
+
/**
|
|
3324
|
+
*
|
|
3325
|
+
* @type {number}
|
|
3326
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3327
|
+
*/
|
|
3328
|
+
'businessId'?: number | null;
|
|
3329
|
+
/**
|
|
3330
|
+
*
|
|
3331
|
+
* @type {string}
|
|
3332
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3333
|
+
*/
|
|
3334
|
+
'merchantId'?: string | null;
|
|
3335
|
+
/**
|
|
3336
|
+
*
|
|
3337
|
+
* @type {string}
|
|
3338
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3339
|
+
*/
|
|
3340
|
+
'purchaserName'?: string | null;
|
|
3341
|
+
/**
|
|
3342
|
+
*
|
|
3343
|
+
* @type {string}
|
|
3344
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3345
|
+
*/
|
|
3346
|
+
'purchaserEmail'?: string | null;
|
|
3347
|
+
/**
|
|
3348
|
+
*
|
|
3349
|
+
* @type {string}
|
|
3350
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3351
|
+
*/
|
|
3352
|
+
'phoneCountryCode'?: string | null;
|
|
3353
|
+
/**
|
|
3354
|
+
*
|
|
3355
|
+
* @type {string}
|
|
3356
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3357
|
+
*/
|
|
3358
|
+
'phoneNumber'?: string | null;
|
|
3359
|
+
/**
|
|
3360
|
+
*
|
|
3361
|
+
* @type {string}
|
|
3362
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3363
|
+
*/
|
|
3364
|
+
'expiresAt'?: string | null;
|
|
3365
|
+
/**
|
|
3366
|
+
*
|
|
3367
|
+
* @type {string}
|
|
3368
|
+
* @memberof CreateMunchiGiftCardResponseDto
|
|
3369
|
+
*/
|
|
3370
|
+
'createdAt': string;
|
|
3371
|
+
}
|
|
3372
|
+
|
|
3373
|
+
|
|
3211
3374
|
/**
|
|
3212
3375
|
*
|
|
3213
3376
|
* @export
|
|
@@ -10567,7 +10730,9 @@ export const PaymentMethod = {
|
|
|
10567
10730
|
Credit: 'Credit',
|
|
10568
10731
|
GiftCardManual: 'GiftCardManual',
|
|
10569
10732
|
WoltBenefit: 'WoltBenefit',
|
|
10570
|
-
Fundis: 'Fundis'
|
|
10733
|
+
Fundis: 'Fundis',
|
|
10734
|
+
UberEats: 'UberEats',
|
|
10735
|
+
MunchiGiftCard: 'MunchiGiftCard'
|
|
10571
10736
|
} as const;
|
|
10572
10737
|
|
|
10573
10738
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
@@ -18621,7 +18786,9 @@ export const NameEnum = {
|
|
|
18621
18786
|
Credit: 'Credit',
|
|
18622
18787
|
GiftCardManual: 'GiftCardManual',
|
|
18623
18788
|
WoltBenefit: 'WoltBenefit',
|
|
18624
|
-
Fundis: 'Fundis'
|
|
18789
|
+
Fundis: 'Fundis',
|
|
18790
|
+
UberEats: 'UberEats',
|
|
18791
|
+
MunchiGiftCard: 'MunchiGiftCard'
|
|
18625
18792
|
} as const;
|
|
18626
18793
|
|
|
18627
18794
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
@@ -25476,6 +25643,57 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
|
|
|
25476
25643
|
*/
|
|
25477
25644
|
export const ConfigManagementApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25478
25645
|
return {
|
|
25646
|
+
/**
|
|
25647
|
+
*
|
|
25648
|
+
* @summary Enable or disable first-party Munchi GiftCard integration
|
|
25649
|
+
* @param {number} businessId
|
|
25650
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} xAppX
|
|
25651
|
+
* @param {ConfigureMunchiGiftCardDto} configureMunchiGiftCardDto
|
|
25652
|
+
* @param {*} [options] Override http request option.
|
|
25653
|
+
* @throws {RequiredError}
|
|
25654
|
+
*/
|
|
25655
|
+
configConfigureMunchiGiftCard: async (businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25656
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
25657
|
+
assertParamExists('configConfigureMunchiGiftCard', 'businessId', businessId)
|
|
25658
|
+
// verify required parameter 'xAppX' is not null or undefined
|
|
25659
|
+
assertParamExists('configConfigureMunchiGiftCard', 'xAppX', xAppX)
|
|
25660
|
+
// verify required parameter 'configureMunchiGiftCardDto' is not null or undefined
|
|
25661
|
+
assertParamExists('configConfigureMunchiGiftCard', 'configureMunchiGiftCardDto', configureMunchiGiftCardDto)
|
|
25662
|
+
const localVarPath = `/api/v1/config-management/business/{businessId}/config/munchi-giftcard`
|
|
25663
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
25664
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25665
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25666
|
+
let baseOptions;
|
|
25667
|
+
if (configuration) {
|
|
25668
|
+
baseOptions = configuration.baseOptions;
|
|
25669
|
+
}
|
|
25670
|
+
|
|
25671
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
25672
|
+
const localVarHeaderParameter = {} as any;
|
|
25673
|
+
const localVarQueryParameter = {} as any;
|
|
25674
|
+
|
|
25675
|
+
// authentication JWT-auth required
|
|
25676
|
+
// http bearer authentication required
|
|
25677
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
25678
|
+
|
|
25679
|
+
if (xAppX != null) {
|
|
25680
|
+
localVarHeaderParameter['x-app-x'] = String(xAppX);
|
|
25681
|
+
}
|
|
25682
|
+
|
|
25683
|
+
|
|
25684
|
+
|
|
25685
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25686
|
+
|
|
25687
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25688
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25689
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25690
|
+
localVarRequestOptions.data = serializeDataIfNeeded(configureMunchiGiftCardDto, localVarRequestOptions, configuration)
|
|
25691
|
+
|
|
25692
|
+
return {
|
|
25693
|
+
url: toPathString(localVarUrlObj),
|
|
25694
|
+
options: localVarRequestOptions,
|
|
25695
|
+
};
|
|
25696
|
+
},
|
|
25479
25697
|
/**
|
|
25480
25698
|
*
|
|
25481
25699
|
* @summary Manual sync trigger
|
|
@@ -25973,6 +26191,19 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
25973
26191
|
export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
25974
26192
|
const localVarAxiosParamCreator = ConfigManagementApiAxiosParamCreator(configuration)
|
|
25975
26193
|
return {
|
|
26194
|
+
/**
|
|
26195
|
+
*
|
|
26196
|
+
* @summary Enable or disable first-party Munchi GiftCard integration
|
|
26197
|
+
* @param {number} businessId
|
|
26198
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} xAppX
|
|
26199
|
+
* @param {ConfigureMunchiGiftCardDto} configureMunchiGiftCardDto
|
|
26200
|
+
* @param {*} [options] Override http request option.
|
|
26201
|
+
* @throws {RequiredError}
|
|
26202
|
+
*/
|
|
26203
|
+
async configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigManagementResponseDto>> {
|
|
26204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options);
|
|
26205
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26206
|
+
},
|
|
25976
26207
|
/**
|
|
25977
26208
|
*
|
|
25978
26209
|
* @summary Manual sync trigger
|
|
@@ -26110,6 +26341,18 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
|
26110
26341
|
export const ConfigManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26111
26342
|
const localVarFp = ConfigManagementApiFp(configuration)
|
|
26112
26343
|
return {
|
|
26344
|
+
/**
|
|
26345
|
+
*
|
|
26346
|
+
* @summary Enable or disable first-party Munchi GiftCard integration
|
|
26347
|
+
* @param {number} businessId
|
|
26348
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} xAppX
|
|
26349
|
+
* @param {ConfigureMunchiGiftCardDto} configureMunchiGiftCardDto
|
|
26350
|
+
* @param {*} [options] Override http request option.
|
|
26351
|
+
* @throws {RequiredError}
|
|
26352
|
+
*/
|
|
26353
|
+
configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: any): AxiosPromise<ConfigManagementResponseDto> {
|
|
26354
|
+
return localVarFp.configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(axios, basePath));
|
|
26355
|
+
},
|
|
26113
26356
|
/**
|
|
26114
26357
|
*
|
|
26115
26358
|
* @summary Manual sync trigger
|
|
@@ -26236,6 +26479,18 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
|
|
|
26236
26479
|
* @interface ConfigManagementApi
|
|
26237
26480
|
*/
|
|
26238
26481
|
export interface ConfigManagementApiInterface {
|
|
26482
|
+
/**
|
|
26483
|
+
*
|
|
26484
|
+
* @summary Enable or disable first-party Munchi GiftCard integration
|
|
26485
|
+
* @param {number} businessId
|
|
26486
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} xAppX
|
|
26487
|
+
* @param {ConfigureMunchiGiftCardDto} configureMunchiGiftCardDto
|
|
26488
|
+
* @param {*} [options] Override http request option.
|
|
26489
|
+
* @throws {RequiredError}
|
|
26490
|
+
* @memberof ConfigManagementApiInterface
|
|
26491
|
+
*/
|
|
26492
|
+
configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ConfigManagementResponseDto>;
|
|
26493
|
+
|
|
26239
26494
|
/**
|
|
26240
26495
|
*
|
|
26241
26496
|
* @summary Manual sync trigger
|
|
@@ -26362,6 +26617,20 @@ export interface ConfigManagementApiInterface {
|
|
|
26362
26617
|
* @extends {BaseAPI}
|
|
26363
26618
|
*/
|
|
26364
26619
|
export class ConfigManagementApi extends BaseAPI implements ConfigManagementApiInterface {
|
|
26620
|
+
/**
|
|
26621
|
+
*
|
|
26622
|
+
* @summary Enable or disable first-party Munchi GiftCard integration
|
|
26623
|
+
* @param {number} businessId
|
|
26624
|
+
* @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} xAppX
|
|
26625
|
+
* @param {ConfigureMunchiGiftCardDto} configureMunchiGiftCardDto
|
|
26626
|
+
* @param {*} [options] Override http request option.
|
|
26627
|
+
* @throws {RequiredError}
|
|
26628
|
+
* @memberof ConfigManagementApi
|
|
26629
|
+
*/
|
|
26630
|
+
public configConfigureMunchiGiftCard(businessId: number, xAppX: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', configureMunchiGiftCardDto: ConfigureMunchiGiftCardDto, options?: AxiosRequestConfig) {
|
|
26631
|
+
return ConfigManagementApiFp(this.configuration).configConfigureMunchiGiftCard(businessId, xAppX, configureMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
|
|
26632
|
+
}
|
|
26633
|
+
|
|
26365
26634
|
/**
|
|
26366
26635
|
*
|
|
26367
26636
|
* @summary Manual sync trigger
|
|
@@ -30325,6 +30594,289 @@ export class MerchantsApi extends BaseAPI implements MerchantsApiInterface {
|
|
|
30325
30594
|
}
|
|
30326
30595
|
|
|
30327
30596
|
|
|
30597
|
+
/**
|
|
30598
|
+
* MunchiGiftCardApi - axios parameter creator
|
|
30599
|
+
* @export
|
|
30600
|
+
*/
|
|
30601
|
+
export const MunchiGiftCardApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30602
|
+
return {
|
|
30603
|
+
/**
|
|
30604
|
+
*
|
|
30605
|
+
* @summary Create a first-party Munchi gift card
|
|
30606
|
+
* @param {CreateMunchiGiftCardDto} createMunchiGiftCardDto
|
|
30607
|
+
* @param {*} [options] Override http request option.
|
|
30608
|
+
* @throws {RequiredError}
|
|
30609
|
+
*/
|
|
30610
|
+
createMunchiGiftCard: async (createMunchiGiftCardDto: CreateMunchiGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30611
|
+
// verify required parameter 'createMunchiGiftCardDto' is not null or undefined
|
|
30612
|
+
assertParamExists('createMunchiGiftCard', 'createMunchiGiftCardDto', createMunchiGiftCardDto)
|
|
30613
|
+
const localVarPath = `/api/v1/munchi-giftcard/create`;
|
|
30614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30615
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30616
|
+
let baseOptions;
|
|
30617
|
+
if (configuration) {
|
|
30618
|
+
baseOptions = configuration.baseOptions;
|
|
30619
|
+
}
|
|
30620
|
+
|
|
30621
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30622
|
+
const localVarHeaderParameter = {} as any;
|
|
30623
|
+
const localVarQueryParameter = {} as any;
|
|
30624
|
+
|
|
30625
|
+
|
|
30626
|
+
|
|
30627
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30628
|
+
|
|
30629
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30631
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30632
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createMunchiGiftCardDto, localVarRequestOptions, configuration)
|
|
30633
|
+
|
|
30634
|
+
return {
|
|
30635
|
+
url: toPathString(localVarUrlObj),
|
|
30636
|
+
options: localVarRequestOptions,
|
|
30637
|
+
};
|
|
30638
|
+
},
|
|
30639
|
+
/**
|
|
30640
|
+
*
|
|
30641
|
+
* @summary Redeem a first-party Munchi gift card
|
|
30642
|
+
* @param {RedeemGiftCardDto} redeemGiftCardDto
|
|
30643
|
+
* @param {*} [options] Override http request option.
|
|
30644
|
+
* @throws {RequiredError}
|
|
30645
|
+
*/
|
|
30646
|
+
redeemMunchiGiftCard: async (redeemGiftCardDto: RedeemGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30647
|
+
// verify required parameter 'redeemGiftCardDto' is not null or undefined
|
|
30648
|
+
assertParamExists('redeemMunchiGiftCard', 'redeemGiftCardDto', redeemGiftCardDto)
|
|
30649
|
+
const localVarPath = `/api/v1/munchi-giftcard/redeem`;
|
|
30650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30651
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30652
|
+
let baseOptions;
|
|
30653
|
+
if (configuration) {
|
|
30654
|
+
baseOptions = configuration.baseOptions;
|
|
30655
|
+
}
|
|
30656
|
+
|
|
30657
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30658
|
+
const localVarHeaderParameter = {} as any;
|
|
30659
|
+
const localVarQueryParameter = {} as any;
|
|
30660
|
+
|
|
30661
|
+
|
|
30662
|
+
|
|
30663
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30664
|
+
|
|
30665
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30667
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30668
|
+
localVarRequestOptions.data = serializeDataIfNeeded(redeemGiftCardDto, localVarRequestOptions, configuration)
|
|
30669
|
+
|
|
30670
|
+
return {
|
|
30671
|
+
url: toPathString(localVarUrlObj),
|
|
30672
|
+
options: localVarRequestOptions,
|
|
30673
|
+
};
|
|
30674
|
+
},
|
|
30675
|
+
/**
|
|
30676
|
+
*
|
|
30677
|
+
* @summary Validate a first-party Munchi gift card
|
|
30678
|
+
* @param {ValidateGiftCardDto} validateGiftCardDto
|
|
30679
|
+
* @param {*} [options] Override http request option.
|
|
30680
|
+
* @throws {RequiredError}
|
|
30681
|
+
*/
|
|
30682
|
+
validateMunchiGiftCard: async (validateGiftCardDto: ValidateGiftCardDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30683
|
+
// verify required parameter 'validateGiftCardDto' is not null or undefined
|
|
30684
|
+
assertParamExists('validateMunchiGiftCard', 'validateGiftCardDto', validateGiftCardDto)
|
|
30685
|
+
const localVarPath = `/api/v1/munchi-giftcard/validate`;
|
|
30686
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30687
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30688
|
+
let baseOptions;
|
|
30689
|
+
if (configuration) {
|
|
30690
|
+
baseOptions = configuration.baseOptions;
|
|
30691
|
+
}
|
|
30692
|
+
|
|
30693
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30694
|
+
const localVarHeaderParameter = {} as any;
|
|
30695
|
+
const localVarQueryParameter = {} as any;
|
|
30696
|
+
|
|
30697
|
+
|
|
30698
|
+
|
|
30699
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30700
|
+
|
|
30701
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30703
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30704
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validateGiftCardDto, localVarRequestOptions, configuration)
|
|
30705
|
+
|
|
30706
|
+
return {
|
|
30707
|
+
url: toPathString(localVarUrlObj),
|
|
30708
|
+
options: localVarRequestOptions,
|
|
30709
|
+
};
|
|
30710
|
+
},
|
|
30711
|
+
}
|
|
30712
|
+
};
|
|
30713
|
+
|
|
30714
|
+
/**
|
|
30715
|
+
* MunchiGiftCardApi - functional programming interface
|
|
30716
|
+
* @export
|
|
30717
|
+
*/
|
|
30718
|
+
export const MunchiGiftCardApiFp = function(configuration?: Configuration) {
|
|
30719
|
+
const localVarAxiosParamCreator = MunchiGiftCardApiAxiosParamCreator(configuration)
|
|
30720
|
+
return {
|
|
30721
|
+
/**
|
|
30722
|
+
*
|
|
30723
|
+
* @summary Create a first-party Munchi gift card
|
|
30724
|
+
* @param {CreateMunchiGiftCardDto} createMunchiGiftCardDto
|
|
30725
|
+
* @param {*} [options] Override http request option.
|
|
30726
|
+
* @throws {RequiredError}
|
|
30727
|
+
*/
|
|
30728
|
+
async createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMunchiGiftCardResponseDto>> {
|
|
30729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMunchiGiftCard(createMunchiGiftCardDto, options);
|
|
30730
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30731
|
+
},
|
|
30732
|
+
/**
|
|
30733
|
+
*
|
|
30734
|
+
* @summary Redeem a first-party Munchi gift card
|
|
30735
|
+
* @param {RedeemGiftCardDto} redeemGiftCardDto
|
|
30736
|
+
* @param {*} [options] Override http request option.
|
|
30737
|
+
* @throws {RequiredError}
|
|
30738
|
+
*/
|
|
30739
|
+
async redeemMunchiGiftCard(redeemGiftCardDto: RedeemGiftCardDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemGiftCardResponseDto>> {
|
|
30740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.redeemMunchiGiftCard(redeemGiftCardDto, options);
|
|
30741
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30742
|
+
},
|
|
30743
|
+
/**
|
|
30744
|
+
*
|
|
30745
|
+
* @summary Validate a first-party Munchi gift card
|
|
30746
|
+
* @param {ValidateGiftCardDto} validateGiftCardDto
|
|
30747
|
+
* @param {*} [options] Override http request option.
|
|
30748
|
+
* @throws {RequiredError}
|
|
30749
|
+
*/
|
|
30750
|
+
async validateMunchiGiftCard(validateGiftCardDto: ValidateGiftCardDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateGiftCardResponseDto>> {
|
|
30751
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateMunchiGiftCard(validateGiftCardDto, options);
|
|
30752
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30753
|
+
},
|
|
30754
|
+
}
|
|
30755
|
+
};
|
|
30756
|
+
|
|
30757
|
+
/**
|
|
30758
|
+
* MunchiGiftCardApi - factory interface
|
|
30759
|
+
* @export
|
|
30760
|
+
*/
|
|
30761
|
+
export const MunchiGiftCardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30762
|
+
const localVarFp = MunchiGiftCardApiFp(configuration)
|
|
30763
|
+
return {
|
|
30764
|
+
/**
|
|
30765
|
+
*
|
|
30766
|
+
* @summary Create a first-party Munchi gift card
|
|
30767
|
+
* @param {CreateMunchiGiftCardDto} createMunchiGiftCardDto
|
|
30768
|
+
* @param {*} [options] Override http request option.
|
|
30769
|
+
* @throws {RequiredError}
|
|
30770
|
+
*/
|
|
30771
|
+
createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: any): AxiosPromise<CreateMunchiGiftCardResponseDto> {
|
|
30772
|
+
return localVarFp.createMunchiGiftCard(createMunchiGiftCardDto, options).then((request) => request(axios, basePath));
|
|
30773
|
+
},
|
|
30774
|
+
/**
|
|
30775
|
+
*
|
|
30776
|
+
* @summary Redeem a first-party Munchi gift card
|
|
30777
|
+
* @param {RedeemGiftCardDto} redeemGiftCardDto
|
|
30778
|
+
* @param {*} [options] Override http request option.
|
|
30779
|
+
* @throws {RequiredError}
|
|
30780
|
+
*/
|
|
30781
|
+
redeemMunchiGiftCard(redeemGiftCardDto: RedeemGiftCardDto, options?: any): AxiosPromise<RedeemGiftCardResponseDto> {
|
|
30782
|
+
return localVarFp.redeemMunchiGiftCard(redeemGiftCardDto, options).then((request) => request(axios, basePath));
|
|
30783
|
+
},
|
|
30784
|
+
/**
|
|
30785
|
+
*
|
|
30786
|
+
* @summary Validate a first-party Munchi gift card
|
|
30787
|
+
* @param {ValidateGiftCardDto} validateGiftCardDto
|
|
30788
|
+
* @param {*} [options] Override http request option.
|
|
30789
|
+
* @throws {RequiredError}
|
|
30790
|
+
*/
|
|
30791
|
+
validateMunchiGiftCard(validateGiftCardDto: ValidateGiftCardDto, options?: any): AxiosPromise<ValidateGiftCardResponseDto> {
|
|
30792
|
+
return localVarFp.validateMunchiGiftCard(validateGiftCardDto, options).then((request) => request(axios, basePath));
|
|
30793
|
+
},
|
|
30794
|
+
};
|
|
30795
|
+
};
|
|
30796
|
+
|
|
30797
|
+
/**
|
|
30798
|
+
* MunchiGiftCardApi - interface
|
|
30799
|
+
* @export
|
|
30800
|
+
* @interface MunchiGiftCardApi
|
|
30801
|
+
*/
|
|
30802
|
+
export interface MunchiGiftCardApiInterface {
|
|
30803
|
+
/**
|
|
30804
|
+
*
|
|
30805
|
+
* @summary Create a first-party Munchi gift card
|
|
30806
|
+
* @param {CreateMunchiGiftCardDto} createMunchiGiftCardDto
|
|
30807
|
+
* @param {*} [options] Override http request option.
|
|
30808
|
+
* @throws {RequiredError}
|
|
30809
|
+
* @memberof MunchiGiftCardApiInterface
|
|
30810
|
+
*/
|
|
30811
|
+
createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<CreateMunchiGiftCardResponseDto>;
|
|
30812
|
+
|
|
30813
|
+
/**
|
|
30814
|
+
*
|
|
30815
|
+
* @summary Redeem a first-party Munchi gift card
|
|
30816
|
+
* @param {RedeemGiftCardDto} redeemGiftCardDto
|
|
30817
|
+
* @param {*} [options] Override http request option.
|
|
30818
|
+
* @throws {RequiredError}
|
|
30819
|
+
* @memberof MunchiGiftCardApiInterface
|
|
30820
|
+
*/
|
|
30821
|
+
redeemMunchiGiftCard(redeemGiftCardDto: RedeemGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<RedeemGiftCardResponseDto>;
|
|
30822
|
+
|
|
30823
|
+
/**
|
|
30824
|
+
*
|
|
30825
|
+
* @summary Validate a first-party Munchi gift card
|
|
30826
|
+
* @param {ValidateGiftCardDto} validateGiftCardDto
|
|
30827
|
+
* @param {*} [options] Override http request option.
|
|
30828
|
+
* @throws {RequiredError}
|
|
30829
|
+
* @memberof MunchiGiftCardApiInterface
|
|
30830
|
+
*/
|
|
30831
|
+
validateMunchiGiftCard(validateGiftCardDto: ValidateGiftCardDto, options?: AxiosRequestConfig): AxiosPromise<ValidateGiftCardResponseDto>;
|
|
30832
|
+
|
|
30833
|
+
}
|
|
30834
|
+
|
|
30835
|
+
/**
|
|
30836
|
+
* MunchiGiftCardApi - object-oriented interface
|
|
30837
|
+
* @export
|
|
30838
|
+
* @class MunchiGiftCardApi
|
|
30839
|
+
* @extends {BaseAPI}
|
|
30840
|
+
*/
|
|
30841
|
+
export class MunchiGiftCardApi extends BaseAPI implements MunchiGiftCardApiInterface {
|
|
30842
|
+
/**
|
|
30843
|
+
*
|
|
30844
|
+
* @summary Create a first-party Munchi gift card
|
|
30845
|
+
* @param {CreateMunchiGiftCardDto} createMunchiGiftCardDto
|
|
30846
|
+
* @param {*} [options] Override http request option.
|
|
30847
|
+
* @throws {RequiredError}
|
|
30848
|
+
* @memberof MunchiGiftCardApi
|
|
30849
|
+
*/
|
|
30850
|
+
public createMunchiGiftCard(createMunchiGiftCardDto: CreateMunchiGiftCardDto, options?: AxiosRequestConfig) {
|
|
30851
|
+
return MunchiGiftCardApiFp(this.configuration).createMunchiGiftCard(createMunchiGiftCardDto, options).then((request) => request(this.axios, this.basePath));
|
|
30852
|
+
}
|
|
30853
|
+
|
|
30854
|
+
/**
|
|
30855
|
+
*
|
|
30856
|
+
* @summary Redeem a first-party Munchi gift card
|
|
30857
|
+
* @param {RedeemGiftCardDto} redeemGiftCardDto
|
|
30858
|
+
* @param {*} [options] Override http request option.
|
|
30859
|
+
* @throws {RequiredError}
|
|
30860
|
+
* @memberof MunchiGiftCardApi
|
|
30861
|
+
*/
|
|
30862
|
+
public redeemMunchiGiftCard(redeemGiftCardDto: RedeemGiftCardDto, options?: AxiosRequestConfig) {
|
|
30863
|
+
return MunchiGiftCardApiFp(this.configuration).redeemMunchiGiftCard(redeemGiftCardDto, options).then((request) => request(this.axios, this.basePath));
|
|
30864
|
+
}
|
|
30865
|
+
|
|
30866
|
+
/**
|
|
30867
|
+
*
|
|
30868
|
+
* @summary Validate a first-party Munchi gift card
|
|
30869
|
+
* @param {ValidateGiftCardDto} validateGiftCardDto
|
|
30870
|
+
* @param {*} [options] Override http request option.
|
|
30871
|
+
* @throws {RequiredError}
|
|
30872
|
+
* @memberof MunchiGiftCardApi
|
|
30873
|
+
*/
|
|
30874
|
+
public validateMunchiGiftCard(validateGiftCardDto: ValidateGiftCardDto, options?: AxiosRequestConfig) {
|
|
30875
|
+
return MunchiGiftCardApiFp(this.configuration).validateMunchiGiftCard(validateGiftCardDto, options).then((request) => request(this.axios, this.basePath));
|
|
30876
|
+
}
|
|
30877
|
+
}
|
|
30878
|
+
|
|
30879
|
+
|
|
30328
30880
|
/**
|
|
30329
30881
|
* NotificationApi - axios parameter creator
|
|
30330
30882
|
* @export
|
package/package.json
CHANGED
package/src/version.ts
CHANGED