@munchi_oy/core 1.9.3 → 1.9.5
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 +522 -0
- 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 +813 -51
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -446,7 +446,22 @@ export interface BusinessCategoryBodyDto {
|
|
|
446
446
|
* @memberof BusinessCategoryBodyDto
|
|
447
447
|
*/
|
|
448
448
|
'cid': Array<number>;
|
|
449
|
+
/**
|
|
450
|
+
* Menu type — controls which product filters are applied
|
|
451
|
+
* @type {string}
|
|
452
|
+
* @memberof BusinessCategoryBodyDto
|
|
453
|
+
*/
|
|
454
|
+
'menuType'?: MenuTypeEnum;
|
|
449
455
|
}
|
|
456
|
+
|
|
457
|
+
export const MenuTypeEnum = {
|
|
458
|
+
Pos: 'pos',
|
|
459
|
+
Kiosk: 'kiosk',
|
|
460
|
+
Ayce: 'ayce'
|
|
461
|
+
} as const;
|
|
462
|
+
|
|
463
|
+
export type MenuTypeEnum = typeof MenuTypeEnum[keyof typeof MenuTypeEnum];
|
|
464
|
+
|
|
450
465
|
/**
|
|
451
466
|
*
|
|
452
467
|
* @export
|
|
@@ -531,6 +546,12 @@ export interface BusinessConfigResponseDto {
|
|
|
531
546
|
* @memberof BusinessConfigResponseDto
|
|
532
547
|
*/
|
|
533
548
|
'hasInvoiceCompany': boolean;
|
|
549
|
+
/**
|
|
550
|
+
* Whether POS orders should be hidden from OM for this business.
|
|
551
|
+
* @type {boolean}
|
|
552
|
+
* @memberof BusinessConfigResponseDto
|
|
553
|
+
*/
|
|
554
|
+
'hidePosOrdersInOm': boolean;
|
|
534
555
|
}
|
|
535
556
|
|
|
536
557
|
|
|
@@ -2921,6 +2942,19 @@ export interface ConfigManagementResponseDto {
|
|
|
2921
2942
|
*/
|
|
2922
2943
|
'data'?: object;
|
|
2923
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
|
+
}
|
|
2924
2958
|
/**
|
|
2925
2959
|
*
|
|
2926
2960
|
* @export
|
|
@@ -3187,6 +3221,156 @@ export interface CreateMerchantDto {
|
|
|
3187
3221
|
*/
|
|
3188
3222
|
'name': string;
|
|
3189
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
|
+
|
|
3190
3374
|
/**
|
|
3191
3375
|
*
|
|
3192
3376
|
* @export
|
|
@@ -4813,6 +4997,12 @@ export interface ExternalBusinessConfigDto {
|
|
|
4813
4997
|
* @memberof ExternalBusinessConfigDto
|
|
4814
4998
|
*/
|
|
4815
4999
|
'hasInvoiceCompany': boolean;
|
|
5000
|
+
/**
|
|
5001
|
+
* Whether POS orders should be hidden from OM for this business.
|
|
5002
|
+
* @type {boolean}
|
|
5003
|
+
* @memberof ExternalBusinessConfigDto
|
|
5004
|
+
*/
|
|
5005
|
+
'hidePosOrdersInOm': boolean;
|
|
4816
5006
|
}
|
|
4817
5007
|
|
|
4818
5008
|
|
|
@@ -10540,7 +10730,9 @@ export const PaymentMethod = {
|
|
|
10540
10730
|
Credit: 'Credit',
|
|
10541
10731
|
GiftCardManual: 'GiftCardManual',
|
|
10542
10732
|
WoltBenefit: 'WoltBenefit',
|
|
10543
|
-
Fundis: 'Fundis'
|
|
10733
|
+
Fundis: 'Fundis',
|
|
10734
|
+
UberEats: 'UberEats',
|
|
10735
|
+
MunchiGiftCard: 'MunchiGiftCard'
|
|
10544
10736
|
} as const;
|
|
10545
10737
|
|
|
10546
10738
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
@@ -11912,6 +12104,39 @@ export interface PosEmployeeDto {
|
|
|
11912
12104
|
}
|
|
11913
12105
|
|
|
11914
12106
|
|
|
12107
|
+
/**
|
|
12108
|
+
*
|
|
12109
|
+
* @export
|
|
12110
|
+
* @interface PosGlobalSettingsResponseDto
|
|
12111
|
+
*/
|
|
12112
|
+
export interface PosGlobalSettingsResponseDto {
|
|
12113
|
+
/**
|
|
12114
|
+
*
|
|
12115
|
+
* @type {number}
|
|
12116
|
+
* @memberof PosGlobalSettingsResponseDto
|
|
12117
|
+
*/
|
|
12118
|
+
'businessId': number;
|
|
12119
|
+
/**
|
|
12120
|
+
*
|
|
12121
|
+
* @type {ProviderEnum}
|
|
12122
|
+
* @memberof PosGlobalSettingsResponseDto
|
|
12123
|
+
*/
|
|
12124
|
+
'provider': ProviderEnum;
|
|
12125
|
+
/**
|
|
12126
|
+
*
|
|
12127
|
+
* @type {boolean}
|
|
12128
|
+
* @memberof PosGlobalSettingsResponseDto
|
|
12129
|
+
*/
|
|
12130
|
+
'hidePosOrdersInOm': boolean;
|
|
12131
|
+
/**
|
|
12132
|
+
*
|
|
12133
|
+
* @type {boolean}
|
|
12134
|
+
* @memberof PosGlobalSettingsResponseDto
|
|
12135
|
+
*/
|
|
12136
|
+
'emitPrintJob': boolean;
|
|
12137
|
+
}
|
|
12138
|
+
|
|
12139
|
+
|
|
11915
12140
|
/**
|
|
11916
12141
|
*
|
|
11917
12142
|
* @export
|
|
@@ -18127,6 +18352,19 @@ export interface UpdatePermissionDto {
|
|
|
18127
18352
|
*/
|
|
18128
18353
|
'enabled': boolean;
|
|
18129
18354
|
}
|
|
18355
|
+
/**
|
|
18356
|
+
*
|
|
18357
|
+
* @export
|
|
18358
|
+
* @interface UpdatePosGlobalSettingsDto
|
|
18359
|
+
*/
|
|
18360
|
+
export interface UpdatePosGlobalSettingsDto {
|
|
18361
|
+
/**
|
|
18362
|
+
* Whether POS orders should be hidden from OM for this business.
|
|
18363
|
+
* @type {boolean}
|
|
18364
|
+
* @memberof UpdatePosGlobalSettingsDto
|
|
18365
|
+
*/
|
|
18366
|
+
'hidePosOrdersInOm': boolean;
|
|
18367
|
+
}
|
|
18130
18368
|
/**
|
|
18131
18369
|
*
|
|
18132
18370
|
* @export
|
|
@@ -18548,7 +18786,9 @@ export const NameEnum = {
|
|
|
18548
18786
|
Credit: 'Credit',
|
|
18549
18787
|
GiftCardManual: 'GiftCardManual',
|
|
18550
18788
|
WoltBenefit: 'WoltBenefit',
|
|
18551
|
-
Fundis: 'Fundis'
|
|
18789
|
+
Fundis: 'Fundis',
|
|
18790
|
+
UberEats: 'UberEats',
|
|
18791
|
+
MunchiGiftCard: 'MunchiGiftCard'
|
|
18552
18792
|
} as const;
|
|
18553
18793
|
|
|
18554
18794
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
@@ -24676,24 +24916,25 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
24676
24916
|
|
|
24677
24917
|
|
|
24678
24918
|
/**
|
|
24679
|
-
*
|
|
24919
|
+
* BusinessProviderPolicyApi - axios parameter creator
|
|
24680
24920
|
* @export
|
|
24681
24921
|
*/
|
|
24682
|
-
export const
|
|
24922
|
+
export const BusinessProviderPolicyApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
24683
24923
|
return {
|
|
24684
24924
|
/**
|
|
24685
24925
|
*
|
|
24686
|
-
* @
|
|
24687
|
-
* @param {
|
|
24926
|
+
* @summary Update global POS visibility settings for a business
|
|
24927
|
+
* @param {number} businessId Business ID to update
|
|
24928
|
+
* @param {UpdatePosGlobalSettingsDto} updatePosGlobalSettingsDto
|
|
24688
24929
|
* @param {*} [options] Override http request option.
|
|
24689
24930
|
* @throws {RequiredError}
|
|
24690
24931
|
*/
|
|
24691
|
-
|
|
24932
|
+
updatePosGlobalSettings: async (businessId: number, updatePosGlobalSettingsDto: UpdatePosGlobalSettingsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24692
24933
|
// verify required parameter 'businessId' is not null or undefined
|
|
24693
|
-
assertParamExists('
|
|
24694
|
-
// verify required parameter '
|
|
24695
|
-
assertParamExists('
|
|
24696
|
-
const localVarPath = `/api/v1/
|
|
24934
|
+
assertParamExists('updatePosGlobalSettings', 'businessId', businessId)
|
|
24935
|
+
// verify required parameter 'updatePosGlobalSettingsDto' is not null or undefined
|
|
24936
|
+
assertParamExists('updatePosGlobalSettings', 'updatePosGlobalSettingsDto', updatePosGlobalSettingsDto)
|
|
24937
|
+
const localVarPath = `/api/v1/business-provider-policy/business/{businessId}/pos-global-settings`
|
|
24697
24938
|
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
24698
24939
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24699
24940
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -24702,10 +24943,14 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24702
24943
|
baseOptions = configuration.baseOptions;
|
|
24703
24944
|
}
|
|
24704
24945
|
|
|
24705
|
-
const localVarRequestOptions = { method: '
|
|
24946
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
24706
24947
|
const localVarHeaderParameter = {} as any;
|
|
24707
24948
|
const localVarQueryParameter = {} as any;
|
|
24708
24949
|
|
|
24950
|
+
// authentication JWT-auth required
|
|
24951
|
+
// http bearer authentication required
|
|
24952
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
24953
|
+
|
|
24709
24954
|
|
|
24710
24955
|
|
|
24711
24956
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -24713,59 +24958,191 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24713
24958
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24714
24959
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24715
24960
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24716
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
24961
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePosGlobalSettingsDto, localVarRequestOptions, configuration)
|
|
24717
24962
|
|
|
24718
24963
|
return {
|
|
24719
24964
|
url: toPathString(localVarUrlObj),
|
|
24720
24965
|
options: localVarRequestOptions,
|
|
24721
24966
|
};
|
|
24722
24967
|
},
|
|
24968
|
+
}
|
|
24969
|
+
};
|
|
24970
|
+
|
|
24971
|
+
/**
|
|
24972
|
+
* BusinessProviderPolicyApi - functional programming interface
|
|
24973
|
+
* @export
|
|
24974
|
+
*/
|
|
24975
|
+
export const BusinessProviderPolicyApiFp = function(configuration?: Configuration) {
|
|
24976
|
+
const localVarAxiosParamCreator = BusinessProviderPolicyApiAxiosParamCreator(configuration)
|
|
24977
|
+
return {
|
|
24723
24978
|
/**
|
|
24724
24979
|
*
|
|
24725
|
-
* @summary
|
|
24726
|
-
* @param {
|
|
24727
|
-
* @param {
|
|
24728
|
-
* @param {TimeSpan} [timeSpan] Time span
|
|
24729
|
-
* @param {string} [start] Start date
|
|
24730
|
-
* @param {string} [end] End date
|
|
24731
|
-
* @param {number} [page] Page number
|
|
24732
|
-
* @param {number} [rowPerPage] Rows per page
|
|
24980
|
+
* @summary Update global POS visibility settings for a business
|
|
24981
|
+
* @param {number} businessId Business ID to update
|
|
24982
|
+
* @param {UpdatePosGlobalSettingsDto} updatePosGlobalSettingsDto
|
|
24733
24983
|
* @param {*} [options] Override http request option.
|
|
24734
24984
|
* @throws {RequiredError}
|
|
24735
24985
|
*/
|
|
24736
|
-
|
|
24737
|
-
|
|
24738
|
-
|
|
24739
|
-
|
|
24740
|
-
|
|
24741
|
-
|
|
24742
|
-
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
24743
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24744
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24745
|
-
let baseOptions;
|
|
24746
|
-
if (configuration) {
|
|
24747
|
-
baseOptions = configuration.baseOptions;
|
|
24748
|
-
}
|
|
24749
|
-
|
|
24750
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24751
|
-
const localVarHeaderParameter = {} as any;
|
|
24752
|
-
const localVarQueryParameter = {} as any;
|
|
24753
|
-
|
|
24754
|
-
if (timeSpan !== undefined) {
|
|
24755
|
-
localVarQueryParameter['timeSpan'] = timeSpan;
|
|
24756
|
-
}
|
|
24986
|
+
async updatePosGlobalSettings(businessId: number, updatePosGlobalSettingsDto: UpdatePosGlobalSettingsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosGlobalSettingsResponseDto>> {
|
|
24987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePosGlobalSettings(businessId, updatePosGlobalSettingsDto, options);
|
|
24988
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24989
|
+
},
|
|
24990
|
+
}
|
|
24991
|
+
};
|
|
24757
24992
|
|
|
24758
|
-
|
|
24759
|
-
|
|
24760
|
-
|
|
24993
|
+
/**
|
|
24994
|
+
* BusinessProviderPolicyApi - factory interface
|
|
24995
|
+
* @export
|
|
24996
|
+
*/
|
|
24997
|
+
export const BusinessProviderPolicyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
24998
|
+
const localVarFp = BusinessProviderPolicyApiFp(configuration)
|
|
24999
|
+
return {
|
|
25000
|
+
/**
|
|
25001
|
+
*
|
|
25002
|
+
* @summary Update global POS visibility settings for a business
|
|
25003
|
+
* @param {number} businessId Business ID to update
|
|
25004
|
+
* @param {UpdatePosGlobalSettingsDto} updatePosGlobalSettingsDto
|
|
25005
|
+
* @param {*} [options] Override http request option.
|
|
25006
|
+
* @throws {RequiredError}
|
|
25007
|
+
*/
|
|
25008
|
+
updatePosGlobalSettings(businessId: number, updatePosGlobalSettingsDto: UpdatePosGlobalSettingsDto, options?: any): AxiosPromise<PosGlobalSettingsResponseDto> {
|
|
25009
|
+
return localVarFp.updatePosGlobalSettings(businessId, updatePosGlobalSettingsDto, options).then((request) => request(axios, basePath));
|
|
25010
|
+
},
|
|
25011
|
+
};
|
|
25012
|
+
};
|
|
24761
25013
|
|
|
24762
|
-
|
|
24763
|
-
|
|
24764
|
-
|
|
25014
|
+
/**
|
|
25015
|
+
* BusinessProviderPolicyApi - interface
|
|
25016
|
+
* @export
|
|
25017
|
+
* @interface BusinessProviderPolicyApi
|
|
25018
|
+
*/
|
|
25019
|
+
export interface BusinessProviderPolicyApiInterface {
|
|
25020
|
+
/**
|
|
25021
|
+
*
|
|
25022
|
+
* @summary Update global POS visibility settings for a business
|
|
25023
|
+
* @param {number} businessId Business ID to update
|
|
25024
|
+
* @param {UpdatePosGlobalSettingsDto} updatePosGlobalSettingsDto
|
|
25025
|
+
* @param {*} [options] Override http request option.
|
|
25026
|
+
* @throws {RequiredError}
|
|
25027
|
+
* @memberof BusinessProviderPolicyApiInterface
|
|
25028
|
+
*/
|
|
25029
|
+
updatePosGlobalSettings(businessId: number, updatePosGlobalSettingsDto: UpdatePosGlobalSettingsDto, options?: AxiosRequestConfig): AxiosPromise<PosGlobalSettingsResponseDto>;
|
|
24765
25030
|
|
|
24766
|
-
|
|
24767
|
-
|
|
24768
|
-
|
|
25031
|
+
}
|
|
25032
|
+
|
|
25033
|
+
/**
|
|
25034
|
+
* BusinessProviderPolicyApi - object-oriented interface
|
|
25035
|
+
* @export
|
|
25036
|
+
* @class BusinessProviderPolicyApi
|
|
25037
|
+
* @extends {BaseAPI}
|
|
25038
|
+
*/
|
|
25039
|
+
export class BusinessProviderPolicyApi extends BaseAPI implements BusinessProviderPolicyApiInterface {
|
|
25040
|
+
/**
|
|
25041
|
+
*
|
|
25042
|
+
* @summary Update global POS visibility settings for a business
|
|
25043
|
+
* @param {number} businessId Business ID to update
|
|
25044
|
+
* @param {UpdatePosGlobalSettingsDto} updatePosGlobalSettingsDto
|
|
25045
|
+
* @param {*} [options] Override http request option.
|
|
25046
|
+
* @throws {RequiredError}
|
|
25047
|
+
* @memberof BusinessProviderPolicyApi
|
|
25048
|
+
*/
|
|
25049
|
+
public updatePosGlobalSettings(businessId: number, updatePosGlobalSettingsDto: UpdatePosGlobalSettingsDto, options?: AxiosRequestConfig) {
|
|
25050
|
+
return BusinessProviderPolicyApiFp(this.configuration).updatePosGlobalSettings(businessId, updatePosGlobalSettingsDto, options).then((request) => request(this.axios, this.basePath));
|
|
25051
|
+
}
|
|
25052
|
+
}
|
|
25053
|
+
|
|
25054
|
+
|
|
25055
|
+
/**
|
|
25056
|
+
* CashManagementApi - axios parameter creator
|
|
25057
|
+
* @export
|
|
25058
|
+
*/
|
|
25059
|
+
export const CashManagementApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25060
|
+
return {
|
|
25061
|
+
/**
|
|
25062
|
+
*
|
|
25063
|
+
* @param {string} businessId
|
|
25064
|
+
* @param {CashSessionDto} cashSessionDto
|
|
25065
|
+
* @param {*} [options] Override http request option.
|
|
25066
|
+
* @throws {RequiredError}
|
|
25067
|
+
*/
|
|
25068
|
+
create: async (businessId: string, cashSessionDto: CashSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25069
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
25070
|
+
assertParamExists('create', 'businessId', businessId)
|
|
25071
|
+
// verify required parameter 'cashSessionDto' is not null or undefined
|
|
25072
|
+
assertParamExists('create', 'cashSessionDto', cashSessionDto)
|
|
25073
|
+
const localVarPath = `/api/v1/cash-management/{businessId}/create`
|
|
25074
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
25075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25076
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25077
|
+
let baseOptions;
|
|
25078
|
+
if (configuration) {
|
|
25079
|
+
baseOptions = configuration.baseOptions;
|
|
25080
|
+
}
|
|
25081
|
+
|
|
25082
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
25083
|
+
const localVarHeaderParameter = {} as any;
|
|
25084
|
+
const localVarQueryParameter = {} as any;
|
|
25085
|
+
|
|
25086
|
+
|
|
25087
|
+
|
|
25088
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25089
|
+
|
|
25090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25092
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25093
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cashSessionDto, localVarRequestOptions, configuration)
|
|
25094
|
+
|
|
25095
|
+
return {
|
|
25096
|
+
url: toPathString(localVarUrlObj),
|
|
25097
|
+
options: localVarRequestOptions,
|
|
25098
|
+
};
|
|
25099
|
+
},
|
|
25100
|
+
/**
|
|
25101
|
+
*
|
|
25102
|
+
* @summary
|
|
25103
|
+
* @param {string} businessId
|
|
25104
|
+
* @param {string} timezone
|
|
25105
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
25106
|
+
* @param {string} [start] Start date
|
|
25107
|
+
* @param {string} [end] End date
|
|
25108
|
+
* @param {number} [page] Page number
|
|
25109
|
+
* @param {number} [rowPerPage] Rows per page
|
|
25110
|
+
* @param {*} [options] Override http request option.
|
|
25111
|
+
* @throws {RequiredError}
|
|
25112
|
+
*/
|
|
25113
|
+
getCashLogs: async (businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25114
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
25115
|
+
assertParamExists('getCashLogs', 'businessId', businessId)
|
|
25116
|
+
// verify required parameter 'timezone' is not null or undefined
|
|
25117
|
+
assertParamExists('getCashLogs', 'timezone', timezone)
|
|
25118
|
+
const localVarPath = `/api/v1/cash-management/{businessId}/logs`
|
|
25119
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
25120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25122
|
+
let baseOptions;
|
|
25123
|
+
if (configuration) {
|
|
25124
|
+
baseOptions = configuration.baseOptions;
|
|
25125
|
+
}
|
|
25126
|
+
|
|
25127
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25128
|
+
const localVarHeaderParameter = {} as any;
|
|
25129
|
+
const localVarQueryParameter = {} as any;
|
|
25130
|
+
|
|
25131
|
+
if (timeSpan !== undefined) {
|
|
25132
|
+
localVarQueryParameter['timeSpan'] = timeSpan;
|
|
25133
|
+
}
|
|
25134
|
+
|
|
25135
|
+
if (start !== undefined) {
|
|
25136
|
+
localVarQueryParameter['start'] = start;
|
|
25137
|
+
}
|
|
25138
|
+
|
|
25139
|
+
if (end !== undefined) {
|
|
25140
|
+
localVarQueryParameter['end'] = end;
|
|
25141
|
+
}
|
|
25142
|
+
|
|
25143
|
+
if (page !== undefined) {
|
|
25144
|
+
localVarQueryParameter['page'] = page;
|
|
25145
|
+
}
|
|
24769
25146
|
|
|
24770
25147
|
if (rowPerPage !== undefined) {
|
|
24771
25148
|
localVarQueryParameter['rowPerPage'] = rowPerPage;
|
|
@@ -25266,6 +25643,57 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
|
|
|
25266
25643
|
*/
|
|
25267
25644
|
export const ConfigManagementApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25268
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
|
+
},
|
|
25269
25697
|
/**
|
|
25270
25698
|
*
|
|
25271
25699
|
* @summary Manual sync trigger
|
|
@@ -25763,6 +26191,19 @@ export const ConfigManagementApiAxiosParamCreator = function (configuration?: Co
|
|
|
25763
26191
|
export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
25764
26192
|
const localVarAxiosParamCreator = ConfigManagementApiAxiosParamCreator(configuration)
|
|
25765
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
|
+
},
|
|
25766
26207
|
/**
|
|
25767
26208
|
*
|
|
25768
26209
|
* @summary Manual sync trigger
|
|
@@ -25900,6 +26341,18 @@ export const ConfigManagementApiFp = function(configuration?: Configuration) {
|
|
|
25900
26341
|
export const ConfigManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
25901
26342
|
const localVarFp = ConfigManagementApiFp(configuration)
|
|
25902
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
|
+
},
|
|
25903
26356
|
/**
|
|
25904
26357
|
*
|
|
25905
26358
|
* @summary Manual sync trigger
|
|
@@ -26026,6 +26479,18 @@ export const ConfigManagementApiFactory = function (configuration?: Configuratio
|
|
|
26026
26479
|
* @interface ConfigManagementApi
|
|
26027
26480
|
*/
|
|
26028
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
|
+
|
|
26029
26494
|
/**
|
|
26030
26495
|
*
|
|
26031
26496
|
* @summary Manual sync trigger
|
|
@@ -26152,6 +26617,20 @@ export interface ConfigManagementApiInterface {
|
|
|
26152
26617
|
* @extends {BaseAPI}
|
|
26153
26618
|
*/
|
|
26154
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
|
+
|
|
26155
26634
|
/**
|
|
26156
26635
|
*
|
|
26157
26636
|
* @summary Manual sync trigger
|
|
@@ -30115,6 +30594,289 @@ export class MerchantsApi extends BaseAPI implements MerchantsApiInterface {
|
|
|
30115
30594
|
}
|
|
30116
30595
|
|
|
30117
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
|
+
|
|
30118
30880
|
/**
|
|
30119
30881
|
* NotificationApi - axios parameter creator
|
|
30120
30882
|
* @export
|