@munchi_oy/core 1.5.5 → 1.5.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 +242 -148
- 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 +349 -187
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -1656,6 +1656,82 @@ export const CashLogType = {
|
|
|
1656
1656
|
export type CashLogType = typeof CashLogType[keyof typeof CashLogType];
|
|
1657
1657
|
|
|
1658
1658
|
|
|
1659
|
+
/**
|
|
1660
|
+
*
|
|
1661
|
+
* @export
|
|
1662
|
+
* @interface CashLogsPaginatedDto
|
|
1663
|
+
*/
|
|
1664
|
+
export interface CashLogsPaginatedDto {
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @type {Array<CashLogDto>}
|
|
1668
|
+
* @memberof CashLogsPaginatedDto
|
|
1669
|
+
*/
|
|
1670
|
+
'data': Array<CashLogDto>;
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @type {number}
|
|
1674
|
+
* @memberof CashLogsPaginatedDto
|
|
1675
|
+
*/
|
|
1676
|
+
'page': number;
|
|
1677
|
+
/**
|
|
1678
|
+
*
|
|
1679
|
+
* @type {number}
|
|
1680
|
+
* @memberof CashLogsPaginatedDto
|
|
1681
|
+
*/
|
|
1682
|
+
'rowPerPage': number;
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @type {number}
|
|
1686
|
+
* @memberof CashLogsPaginatedDto
|
|
1687
|
+
*/
|
|
1688
|
+
'totalPages': number;
|
|
1689
|
+
/**
|
|
1690
|
+
*
|
|
1691
|
+
* @type {number}
|
|
1692
|
+
* @memberof CashLogsPaginatedDto
|
|
1693
|
+
*/
|
|
1694
|
+
'total': number;
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @export
|
|
1699
|
+
* @interface CashLogsQueryDto
|
|
1700
|
+
*/
|
|
1701
|
+
export interface CashLogsQueryDto {
|
|
1702
|
+
/**
|
|
1703
|
+
*
|
|
1704
|
+
* @type {TimeSpan}
|
|
1705
|
+
* @memberof CashLogsQueryDto
|
|
1706
|
+
*/
|
|
1707
|
+
'timeSpan'?: TimeSpan;
|
|
1708
|
+
/**
|
|
1709
|
+
* Start date
|
|
1710
|
+
* @type {string}
|
|
1711
|
+
* @memberof CashLogsQueryDto
|
|
1712
|
+
*/
|
|
1713
|
+
'start'?: string;
|
|
1714
|
+
/**
|
|
1715
|
+
* End date
|
|
1716
|
+
* @type {string}
|
|
1717
|
+
* @memberof CashLogsQueryDto
|
|
1718
|
+
*/
|
|
1719
|
+
'end'?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* Page number
|
|
1722
|
+
* @type {number}
|
|
1723
|
+
* @memberof CashLogsQueryDto
|
|
1724
|
+
*/
|
|
1725
|
+
'page'?: number;
|
|
1726
|
+
/**
|
|
1727
|
+
* Rows per page
|
|
1728
|
+
* @type {number}
|
|
1729
|
+
* @memberof CashLogsQueryDto
|
|
1730
|
+
*/
|
|
1731
|
+
'rowPerPage'?: number;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
|
|
1659
1735
|
/**
|
|
1660
1736
|
*
|
|
1661
1737
|
* @export
|
|
@@ -12907,7 +12983,6 @@ export type RefundMode = typeof RefundMode[keyof typeof RefundMode];
|
|
|
12907
12983
|
export const RefundOverallStatus = {
|
|
12908
12984
|
Pending: 'PENDING',
|
|
12909
12985
|
InProgress: 'IN_PROGRESS',
|
|
12910
|
-
Processing: 'PROCESSING',
|
|
12911
12986
|
ChoiceRequired: 'CHOICE_REQUIRED',
|
|
12912
12987
|
Completed: 'COMPLETED',
|
|
12913
12988
|
Failed: 'FAILED'
|
|
@@ -13202,7 +13277,6 @@ export type RefundStatusEnum = typeof RefundStatusEnum[keyof typeof RefundStatus
|
|
|
13202
13277
|
export const RefundStepStatus = {
|
|
13203
13278
|
Pending: 'PENDING',
|
|
13204
13279
|
InProgress: 'IN_PROGRESS',
|
|
13205
|
-
Processing: 'PROCESSING',
|
|
13206
13280
|
Failed: 'FAILED',
|
|
13207
13281
|
Completed: 'COMPLETED'
|
|
13208
13282
|
} as const;
|
|
@@ -17070,69 +17144,6 @@ export interface VivaConfigDto {
|
|
|
17070
17144
|
*/
|
|
17071
17145
|
'additionalAmount'?: number;
|
|
17072
17146
|
}
|
|
17073
|
-
/**
|
|
17074
|
-
*
|
|
17075
|
-
* @export
|
|
17076
|
-
* @interface VivaCreatePaymentDto
|
|
17077
|
-
*/
|
|
17078
|
-
export interface VivaCreatePaymentDto {
|
|
17079
|
-
/**
|
|
17080
|
-
* The ordering business ID for this transaction.
|
|
17081
|
-
* @type {number}
|
|
17082
|
-
* @memberof VivaCreatePaymentDto
|
|
17083
|
-
*/
|
|
17084
|
-
'orderingBusinessId': number;
|
|
17085
|
-
/**
|
|
17086
|
-
*
|
|
17087
|
-
* @type {PaymentProvider}
|
|
17088
|
-
* @memberof VivaCreatePaymentDto
|
|
17089
|
-
*/
|
|
17090
|
-
'provider': PaymentProvider;
|
|
17091
|
-
/**
|
|
17092
|
-
* The cart ID for this transaction.
|
|
17093
|
-
* @type {string}
|
|
17094
|
-
* @memberof VivaCreatePaymentDto
|
|
17095
|
-
*/
|
|
17096
|
-
'cartId': string;
|
|
17097
|
-
/**
|
|
17098
|
-
* The amount for this transaction in cents.
|
|
17099
|
-
* @type {number}
|
|
17100
|
-
* @memberof VivaCreatePaymentDto
|
|
17101
|
-
*/
|
|
17102
|
-
'amount': number;
|
|
17103
|
-
/**
|
|
17104
|
-
* The terminal ID for this transaction.
|
|
17105
|
-
* @type {string}
|
|
17106
|
-
* @memberof VivaCreatePaymentDto
|
|
17107
|
-
*/
|
|
17108
|
-
'terminalId': string;
|
|
17109
|
-
/**
|
|
17110
|
-
*
|
|
17111
|
-
* @type {VivaCurrencyCode}
|
|
17112
|
-
* @memberof VivaCreatePaymentDto
|
|
17113
|
-
*/
|
|
17114
|
-
'currencyCode': VivaCurrencyCode;
|
|
17115
|
-
/**
|
|
17116
|
-
* Whether to show the transaction result.
|
|
17117
|
-
* @type {boolean}
|
|
17118
|
-
* @memberof VivaCreatePaymentDto
|
|
17119
|
-
*/
|
|
17120
|
-
'showTransactionResult'?: boolean;
|
|
17121
|
-
/**
|
|
17122
|
-
* Whether to show the receipt.
|
|
17123
|
-
* @type {boolean}
|
|
17124
|
-
* @memberof VivaCreatePaymentDto
|
|
17125
|
-
*/
|
|
17126
|
-
'showReceipt'?: boolean;
|
|
17127
|
-
/**
|
|
17128
|
-
* The tip amount for this transaction.
|
|
17129
|
-
* @type {number}
|
|
17130
|
-
* @memberof VivaCreatePaymentDto
|
|
17131
|
-
*/
|
|
17132
|
-
'tipAmount'?: number;
|
|
17133
|
-
}
|
|
17134
|
-
|
|
17135
|
-
|
|
17136
17147
|
/**
|
|
17137
17148
|
*
|
|
17138
17149
|
* @export
|
|
@@ -17659,10 +17670,16 @@ export interface VivaPaymentIntent {
|
|
|
17659
17670
|
'showReceipt': boolean;
|
|
17660
17671
|
/**
|
|
17661
17672
|
*
|
|
17662
|
-
* @type {
|
|
17673
|
+
* @type {VivaPaymentResultDtoIsvDetails}
|
|
17674
|
+
* @memberof VivaPaymentIntent
|
|
17675
|
+
*/
|
|
17676
|
+
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
17677
|
+
/**
|
|
17678
|
+
* Whether to skip applying a surcharge to the transaction.
|
|
17679
|
+
* @type {boolean}
|
|
17663
17680
|
* @memberof VivaPaymentIntent
|
|
17664
17681
|
*/
|
|
17665
|
-
'
|
|
17682
|
+
'skipSurcharge': boolean;
|
|
17666
17683
|
}
|
|
17667
17684
|
|
|
17668
17685
|
export const CurrencyCodeEnum = {
|
|
@@ -17705,43 +17722,6 @@ export const CurrencyCodeEnum = {
|
|
|
17705
17722
|
|
|
17706
17723
|
export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
|
|
17707
17724
|
|
|
17708
|
-
/**
|
|
17709
|
-
* ISV (Independent Software Vendor) specific details.
|
|
17710
|
-
* @export
|
|
17711
|
-
* @interface VivaPaymentIntentIsvDetails
|
|
17712
|
-
*/
|
|
17713
|
-
export interface VivaPaymentIntentIsvDetails {
|
|
17714
|
-
/**
|
|
17715
|
-
* The amount related to the ISV (Independent Software Vendor).
|
|
17716
|
-
* @type {number}
|
|
17717
|
-
* @memberof VivaPaymentIntentIsvDetails
|
|
17718
|
-
*/
|
|
17719
|
-
'amount'?: number;
|
|
17720
|
-
/**
|
|
17721
|
-
* The terminal merchant ID associated with the ISV.
|
|
17722
|
-
* @type {string}
|
|
17723
|
-
* @memberof VivaPaymentIntentIsvDetails
|
|
17724
|
-
*/
|
|
17725
|
-
'terminalMerchantId'?: string;
|
|
17726
|
-
/**
|
|
17727
|
-
* The source code for the ISV.
|
|
17728
|
-
* @type {string}
|
|
17729
|
-
* @memberof VivaPaymentIntentIsvDetails
|
|
17730
|
-
*/
|
|
17731
|
-
'sourceCode'?: string;
|
|
17732
|
-
/**
|
|
17733
|
-
* The merchant ID for the ISV.
|
|
17734
|
-
* @type {string}
|
|
17735
|
-
* @memberof VivaPaymentIntentIsvDetails
|
|
17736
|
-
*/
|
|
17737
|
-
'merchantId'?: string;
|
|
17738
|
-
/**
|
|
17739
|
-
* The merchant source code for the ISV.
|
|
17740
|
-
* @type {string}
|
|
17741
|
-
* @memberof VivaPaymentIntentIsvDetails
|
|
17742
|
-
*/
|
|
17743
|
-
'merchantSourceCode'?: string;
|
|
17744
|
-
}
|
|
17745
17725
|
/**
|
|
17746
17726
|
*
|
|
17747
17727
|
* @export
|
|
@@ -18021,10 +18001,10 @@ export interface VivaPaymentMessageDtoData {
|
|
|
18021
18001
|
'bankId': string;
|
|
18022
18002
|
/**
|
|
18023
18003
|
*
|
|
18024
|
-
* @type {
|
|
18004
|
+
* @type {VivaPaymentResultDtoIsvDetails}
|
|
18025
18005
|
* @memberof VivaPaymentMessageDtoData
|
|
18026
18006
|
*/
|
|
18027
|
-
'isvDetails'?:
|
|
18007
|
+
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
18028
18008
|
/**
|
|
18029
18009
|
* AADE (Greek Tax Authority) specific transaction ID.
|
|
18030
18010
|
* @type {object}
|
|
@@ -18282,10 +18262,10 @@ export interface VivaPaymentResultDto {
|
|
|
18282
18262
|
'bankId': string;
|
|
18283
18263
|
/**
|
|
18284
18264
|
*
|
|
18285
|
-
* @type {
|
|
18265
|
+
* @type {VivaPaymentResultDtoIsvDetails}
|
|
18286
18266
|
* @memberof VivaPaymentResultDto
|
|
18287
18267
|
*/
|
|
18288
|
-
'isvDetails'?:
|
|
18268
|
+
'isvDetails'?: VivaPaymentResultDtoIsvDetails;
|
|
18289
18269
|
/**
|
|
18290
18270
|
* AADE (Greek Tax Authority) specific transaction ID.
|
|
18291
18271
|
* @type {object}
|
|
@@ -18313,6 +18293,43 @@ export interface VivaPaymentResultDto {
|
|
|
18313
18293
|
}
|
|
18314
18294
|
|
|
18315
18295
|
|
|
18296
|
+
/**
|
|
18297
|
+
* ISV (Independent Software Vendor) specific details.
|
|
18298
|
+
* @export
|
|
18299
|
+
* @interface VivaPaymentResultDtoIsvDetails
|
|
18300
|
+
*/
|
|
18301
|
+
export interface VivaPaymentResultDtoIsvDetails {
|
|
18302
|
+
/**
|
|
18303
|
+
* The amount related to the ISV (Independent Software Vendor).
|
|
18304
|
+
* @type {number}
|
|
18305
|
+
* @memberof VivaPaymentResultDtoIsvDetails
|
|
18306
|
+
*/
|
|
18307
|
+
'amount'?: number;
|
|
18308
|
+
/**
|
|
18309
|
+
* The terminal merchant ID associated with the ISV.
|
|
18310
|
+
* @type {string}
|
|
18311
|
+
* @memberof VivaPaymentResultDtoIsvDetails
|
|
18312
|
+
*/
|
|
18313
|
+
'terminalMerchantId'?: string;
|
|
18314
|
+
/**
|
|
18315
|
+
* The source code for the ISV.
|
|
18316
|
+
* @type {string}
|
|
18317
|
+
* @memberof VivaPaymentResultDtoIsvDetails
|
|
18318
|
+
*/
|
|
18319
|
+
'sourceCode'?: string;
|
|
18320
|
+
/**
|
|
18321
|
+
* The merchant ID for the ISV.
|
|
18322
|
+
* @type {string}
|
|
18323
|
+
* @memberof VivaPaymentResultDtoIsvDetails
|
|
18324
|
+
*/
|
|
18325
|
+
'merchantId'?: string;
|
|
18326
|
+
/**
|
|
18327
|
+
* The merchant source code for the ISV.
|
|
18328
|
+
* @type {string}
|
|
18329
|
+
* @memberof VivaPaymentResultDtoIsvDetails
|
|
18330
|
+
*/
|
|
18331
|
+
'merchantSourceCode'?: string;
|
|
18332
|
+
}
|
|
18316
18333
|
/**
|
|
18317
18334
|
*
|
|
18318
18335
|
* @export
|
|
@@ -20684,6 +20701,50 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
20684
20701
|
|
|
20685
20702
|
|
|
20686
20703
|
|
|
20704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20705
|
+
|
|
20706
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20707
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20708
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20709
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessCategoryBodyDto, localVarRequestOptions, configuration)
|
|
20710
|
+
|
|
20711
|
+
return {
|
|
20712
|
+
url: toPathString(localVarUrlObj),
|
|
20713
|
+
options: localVarRequestOptions,
|
|
20714
|
+
};
|
|
20715
|
+
},
|
|
20716
|
+
/**
|
|
20717
|
+
*
|
|
20718
|
+
* @summary Get business menu categories V3
|
|
20719
|
+
* @param {string} businessId
|
|
20720
|
+
* @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
|
|
20721
|
+
* @param {*} [options] Override http request option.
|
|
20722
|
+
* @throws {RequiredError}
|
|
20723
|
+
*/
|
|
20724
|
+
getBusinessCategoriesByMenuIdV3: async (businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20725
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
20726
|
+
assertParamExists('getBusinessCategoriesByMenuIdV3', 'businessId', businessId)
|
|
20727
|
+
// verify required parameter 'businessCategoryBodyDto' is not null or undefined
|
|
20728
|
+
assertParamExists('getBusinessCategoriesByMenuIdV3', 'businessCategoryBodyDto', businessCategoryBodyDto)
|
|
20729
|
+
const localVarPath = `/api/v3/business/{businessId}/menu/categories`
|
|
20730
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
20731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20733
|
+
let baseOptions;
|
|
20734
|
+
if (configuration) {
|
|
20735
|
+
baseOptions = configuration.baseOptions;
|
|
20736
|
+
}
|
|
20737
|
+
|
|
20738
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20739
|
+
const localVarHeaderParameter = {} as any;
|
|
20740
|
+
const localVarQueryParameter = {} as any;
|
|
20741
|
+
|
|
20742
|
+
// authentication JWT-auth required
|
|
20743
|
+
// http bearer authentication required
|
|
20744
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20745
|
+
|
|
20746
|
+
|
|
20747
|
+
|
|
20687
20748
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20688
20749
|
|
|
20689
20750
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -21539,6 +21600,18 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
21539
21600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessCategoriesByMenuIdV2(businessId, businessCategoryBodyDto, options);
|
|
21540
21601
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21541
21602
|
},
|
|
21603
|
+
/**
|
|
21604
|
+
*
|
|
21605
|
+
* @summary Get business menu categories V3
|
|
21606
|
+
* @param {string} businessId
|
|
21607
|
+
* @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
|
|
21608
|
+
* @param {*} [options] Override http request option.
|
|
21609
|
+
* @throws {RequiredError}
|
|
21610
|
+
*/
|
|
21611
|
+
async getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExtendedCategoryDto>>> {
|
|
21612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessCategoriesByMenuIdV3(businessId, businessCategoryBodyDto, options);
|
|
21613
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21614
|
+
},
|
|
21542
21615
|
/**
|
|
21543
21616
|
*
|
|
21544
21617
|
* @param {string} businessId Id of the business
|
|
@@ -21804,6 +21877,17 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
21804
21877
|
getBusinessCategoriesByMenuIdV2(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: any): AxiosPromise<Array<ExtendedCategoryDto>> {
|
|
21805
21878
|
return localVarFp.getBusinessCategoriesByMenuIdV2(businessId, businessCategoryBodyDto, options).then((request) => request(axios, basePath));
|
|
21806
21879
|
},
|
|
21880
|
+
/**
|
|
21881
|
+
*
|
|
21882
|
+
* @summary Get business menu categories V3
|
|
21883
|
+
* @param {string} businessId
|
|
21884
|
+
* @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
|
|
21885
|
+
* @param {*} [options] Override http request option.
|
|
21886
|
+
* @throws {RequiredError}
|
|
21887
|
+
*/
|
|
21888
|
+
getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: any): AxiosPromise<Array<ExtendedCategoryDto>> {
|
|
21889
|
+
return localVarFp.getBusinessCategoriesByMenuIdV3(businessId, businessCategoryBodyDto, options).then((request) => request(axios, basePath));
|
|
21890
|
+
},
|
|
21807
21891
|
/**
|
|
21808
21892
|
*
|
|
21809
21893
|
* @param {string} businessId Id of the business
|
|
@@ -22049,6 +22133,17 @@ export interface BusinessApiInterface {
|
|
|
22049
22133
|
*/
|
|
22050
22134
|
getBusinessCategoriesByMenuIdV2(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig): AxiosPromise<Array<ExtendedCategoryDto>>;
|
|
22051
22135
|
|
|
22136
|
+
/**
|
|
22137
|
+
*
|
|
22138
|
+
* @summary Get business menu categories V3
|
|
22139
|
+
* @param {string} businessId
|
|
22140
|
+
* @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
|
|
22141
|
+
* @param {*} [options] Override http request option.
|
|
22142
|
+
* @throws {RequiredError}
|
|
22143
|
+
* @memberof BusinessApiInterface
|
|
22144
|
+
*/
|
|
22145
|
+
getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig): AxiosPromise<Array<ExtendedCategoryDto>>;
|
|
22146
|
+
|
|
22052
22147
|
/**
|
|
22053
22148
|
*
|
|
22054
22149
|
* @param {string} businessId Id of the business
|
|
@@ -22302,6 +22397,19 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
|
|
|
22302
22397
|
return BusinessApiFp(this.configuration).getBusinessCategoriesByMenuIdV2(businessId, businessCategoryBodyDto, options).then((request) => request(this.axios, this.basePath));
|
|
22303
22398
|
}
|
|
22304
22399
|
|
|
22400
|
+
/**
|
|
22401
|
+
*
|
|
22402
|
+
* @summary Get business menu categories V3
|
|
22403
|
+
* @param {string} businessId
|
|
22404
|
+
* @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
|
|
22405
|
+
* @param {*} [options] Override http request option.
|
|
22406
|
+
* @throws {RequiredError}
|
|
22407
|
+
* @memberof BusinessApi
|
|
22408
|
+
*/
|
|
22409
|
+
public getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig) {
|
|
22410
|
+
return BusinessApiFp(this.configuration).getBusinessCategoriesByMenuIdV3(businessId, businessCategoryBodyDto, options).then((request) => request(this.axios, this.basePath));
|
|
22411
|
+
}
|
|
22412
|
+
|
|
22305
22413
|
/**
|
|
22306
22414
|
*
|
|
22307
22415
|
* @param {string} businessId Id of the business
|
|
@@ -22580,6 +22688,72 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
22580
22688
|
options: localVarRequestOptions,
|
|
22581
22689
|
};
|
|
22582
22690
|
},
|
|
22691
|
+
/**
|
|
22692
|
+
*
|
|
22693
|
+
* @summary
|
|
22694
|
+
* @param {string} businessId
|
|
22695
|
+
* @param {string} timezone
|
|
22696
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
22697
|
+
* @param {string} [start] Start date
|
|
22698
|
+
* @param {string} [end] End date
|
|
22699
|
+
* @param {number} [page] Page number
|
|
22700
|
+
* @param {number} [rowPerPage] Rows per page
|
|
22701
|
+
* @param {*} [options] Override http request option.
|
|
22702
|
+
* @throws {RequiredError}
|
|
22703
|
+
*/
|
|
22704
|
+
getCashLogs: async (businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22705
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
22706
|
+
assertParamExists('getCashLogs', 'businessId', businessId)
|
|
22707
|
+
// verify required parameter 'timezone' is not null or undefined
|
|
22708
|
+
assertParamExists('getCashLogs', 'timezone', timezone)
|
|
22709
|
+
const localVarPath = `/api/v1/cash-management/{businessId}/logs`
|
|
22710
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
22711
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22712
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22713
|
+
let baseOptions;
|
|
22714
|
+
if (configuration) {
|
|
22715
|
+
baseOptions = configuration.baseOptions;
|
|
22716
|
+
}
|
|
22717
|
+
|
|
22718
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
22719
|
+
const localVarHeaderParameter = {} as any;
|
|
22720
|
+
const localVarQueryParameter = {} as any;
|
|
22721
|
+
|
|
22722
|
+
if (timeSpan !== undefined) {
|
|
22723
|
+
localVarQueryParameter['timeSpan'] = timeSpan;
|
|
22724
|
+
}
|
|
22725
|
+
|
|
22726
|
+
if (start !== undefined) {
|
|
22727
|
+
localVarQueryParameter['start'] = start;
|
|
22728
|
+
}
|
|
22729
|
+
|
|
22730
|
+
if (end !== undefined) {
|
|
22731
|
+
localVarQueryParameter['end'] = end;
|
|
22732
|
+
}
|
|
22733
|
+
|
|
22734
|
+
if (page !== undefined) {
|
|
22735
|
+
localVarQueryParameter['page'] = page;
|
|
22736
|
+
}
|
|
22737
|
+
|
|
22738
|
+
if (rowPerPage !== undefined) {
|
|
22739
|
+
localVarQueryParameter['rowPerPage'] = rowPerPage;
|
|
22740
|
+
}
|
|
22741
|
+
|
|
22742
|
+
if (timezone !== undefined) {
|
|
22743
|
+
localVarQueryParameter['timezone'] = timezone;
|
|
22744
|
+
}
|
|
22745
|
+
|
|
22746
|
+
|
|
22747
|
+
|
|
22748
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22749
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22750
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22751
|
+
|
|
22752
|
+
return {
|
|
22753
|
+
url: toPathString(localVarUrlObj),
|
|
22754
|
+
options: localVarRequestOptions,
|
|
22755
|
+
};
|
|
22756
|
+
},
|
|
22583
22757
|
/**
|
|
22584
22758
|
*
|
|
22585
22759
|
* @param {string} businessId
|
|
@@ -22753,6 +22927,23 @@ export const CashManagementApiFp = function(configuration?: Configuration) {
|
|
|
22753
22927
|
const localVarAxiosArgs = await localVarAxiosParamCreator.create(businessId, cashSessionDto, options);
|
|
22754
22928
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22755
22929
|
},
|
|
22930
|
+
/**
|
|
22931
|
+
*
|
|
22932
|
+
* @summary
|
|
22933
|
+
* @param {string} businessId
|
|
22934
|
+
* @param {string} timezone
|
|
22935
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
22936
|
+
* @param {string} [start] Start date
|
|
22937
|
+
* @param {string} [end] End date
|
|
22938
|
+
* @param {number} [page] Page number
|
|
22939
|
+
* @param {number} [rowPerPage] Rows per page
|
|
22940
|
+
* @param {*} [options] Override http request option.
|
|
22941
|
+
* @throws {RequiredError}
|
|
22942
|
+
*/
|
|
22943
|
+
async getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CashLogsPaginatedDto>> {
|
|
22944
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCashLogs(businessId, timezone, timeSpan, start, end, page, rowPerPage, options);
|
|
22945
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22946
|
+
},
|
|
22756
22947
|
/**
|
|
22757
22948
|
*
|
|
22758
22949
|
* @param {string} businessId
|
|
@@ -22817,6 +23008,22 @@ export const CashManagementApiFactory = function (configuration?: Configuration,
|
|
|
22817
23008
|
create(businessId: string, cashSessionDto: CashSessionDto, options?: any): AxiosPromise<CashSessionDto> {
|
|
22818
23009
|
return localVarFp.create(businessId, cashSessionDto, options).then((request) => request(axios, basePath));
|
|
22819
23010
|
},
|
|
23011
|
+
/**
|
|
23012
|
+
*
|
|
23013
|
+
* @summary
|
|
23014
|
+
* @param {string} businessId
|
|
23015
|
+
* @param {string} timezone
|
|
23016
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
23017
|
+
* @param {string} [start] Start date
|
|
23018
|
+
* @param {string} [end] End date
|
|
23019
|
+
* @param {number} [page] Page number
|
|
23020
|
+
* @param {number} [rowPerPage] Rows per page
|
|
23021
|
+
* @param {*} [options] Override http request option.
|
|
23022
|
+
* @throws {RequiredError}
|
|
23023
|
+
*/
|
|
23024
|
+
getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: any): AxiosPromise<CashLogsPaginatedDto> {
|
|
23025
|
+
return localVarFp.getCashLogs(businessId, timezone, timeSpan, start, end, page, rowPerPage, options).then((request) => request(axios, basePath));
|
|
23026
|
+
},
|
|
22820
23027
|
/**
|
|
22821
23028
|
*
|
|
22822
23029
|
* @param {string} businessId
|
|
@@ -22876,6 +23083,22 @@ export interface CashManagementApiInterface {
|
|
|
22876
23083
|
*/
|
|
22877
23084
|
create(businessId: string, cashSessionDto: CashSessionDto, options?: AxiosRequestConfig): AxiosPromise<CashSessionDto>;
|
|
22878
23085
|
|
|
23086
|
+
/**
|
|
23087
|
+
*
|
|
23088
|
+
* @summary
|
|
23089
|
+
* @param {string} businessId
|
|
23090
|
+
* @param {string} timezone
|
|
23091
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
23092
|
+
* @param {string} [start] Start date
|
|
23093
|
+
* @param {string} [end] End date
|
|
23094
|
+
* @param {number} [page] Page number
|
|
23095
|
+
* @param {number} [rowPerPage] Rows per page
|
|
23096
|
+
* @param {*} [options] Override http request option.
|
|
23097
|
+
* @throws {RequiredError}
|
|
23098
|
+
* @memberof CashManagementApiInterface
|
|
23099
|
+
*/
|
|
23100
|
+
getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: AxiosRequestConfig): AxiosPromise<CashLogsPaginatedDto>;
|
|
23101
|
+
|
|
22879
23102
|
/**
|
|
22880
23103
|
*
|
|
22881
23104
|
* @param {string} businessId
|
|
@@ -22937,6 +23160,24 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
|
|
|
22937
23160
|
return CashManagementApiFp(this.configuration).create(businessId, cashSessionDto, options).then((request) => request(this.axios, this.basePath));
|
|
22938
23161
|
}
|
|
22939
23162
|
|
|
23163
|
+
/**
|
|
23164
|
+
*
|
|
23165
|
+
* @summary
|
|
23166
|
+
* @param {string} businessId
|
|
23167
|
+
* @param {string} timezone
|
|
23168
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
23169
|
+
* @param {string} [start] Start date
|
|
23170
|
+
* @param {string} [end] End date
|
|
23171
|
+
* @param {number} [page] Page number
|
|
23172
|
+
* @param {number} [rowPerPage] Rows per page
|
|
23173
|
+
* @param {*} [options] Override http request option.
|
|
23174
|
+
* @throws {RequiredError}
|
|
23175
|
+
* @memberof CashManagementApi
|
|
23176
|
+
*/
|
|
23177
|
+
public getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: AxiosRequestConfig) {
|
|
23178
|
+
return CashManagementApiFp(this.configuration).getCashLogs(businessId, timezone, timeSpan, start, end, page, rowPerPage, options).then((request) => request(this.axios, this.basePath));
|
|
23179
|
+
}
|
|
23180
|
+
|
|
22940
23181
|
/**
|
|
22941
23182
|
*
|
|
22942
23183
|
* @param {string} businessId
|
|
@@ -28942,42 +29183,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
28942
29183
|
options: localVarRequestOptions,
|
|
28943
29184
|
};
|
|
28944
29185
|
},
|
|
28945
|
-
/**
|
|
28946
|
-
* Creates a new Viva payment intent.
|
|
28947
|
-
* @summary Create Viva payment
|
|
28948
|
-
* @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
|
|
28949
|
-
* @param {*} [options] Override http request option.
|
|
28950
|
-
* @throws {RequiredError}
|
|
28951
|
-
*/
|
|
28952
|
-
createVivaPaymentV3: async (vivaCreatePaymentDto: VivaCreatePaymentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28953
|
-
// verify required parameter 'vivaCreatePaymentDto' is not null or undefined
|
|
28954
|
-
assertParamExists('createVivaPaymentV3', 'vivaCreatePaymentDto', vivaCreatePaymentDto)
|
|
28955
|
-
const localVarPath = `/api/v3/payment/viva/createPayment`;
|
|
28956
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28957
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28958
|
-
let baseOptions;
|
|
28959
|
-
if (configuration) {
|
|
28960
|
-
baseOptions = configuration.baseOptions;
|
|
28961
|
-
}
|
|
28962
|
-
|
|
28963
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28964
|
-
const localVarHeaderParameter = {} as any;
|
|
28965
|
-
const localVarQueryParameter = {} as any;
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28970
|
-
|
|
28971
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28972
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28973
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28974
|
-
localVarRequestOptions.data = serializeDataIfNeeded(vivaCreatePaymentDto, localVarRequestOptions, configuration)
|
|
28975
|
-
|
|
28976
|
-
return {
|
|
28977
|
-
url: toPathString(localVarUrlObj),
|
|
28978
|
-
options: localVarRequestOptions,
|
|
28979
|
-
};
|
|
28980
|
-
},
|
|
28981
29186
|
/**
|
|
28982
29187
|
* Retrieves the refund reference for a specific transaction.
|
|
28983
29188
|
* @summary Get refund reference for a transaction
|
|
@@ -29417,17 +29622,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
29417
29622
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createNetsRefundTransaction(createRefundDto, options);
|
|
29418
29623
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29419
29624
|
},
|
|
29420
|
-
/**
|
|
29421
|
-
* Creates a new Viva payment intent.
|
|
29422
|
-
* @summary Create Viva payment
|
|
29423
|
-
* @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
|
|
29424
|
-
* @param {*} [options] Override http request option.
|
|
29425
|
-
* @throws {RequiredError}
|
|
29426
|
-
*/
|
|
29427
|
-
async createVivaPaymentV3(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaPaymentIntent>> {
|
|
29428
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createVivaPaymentV3(vivaCreatePaymentDto, options);
|
|
29429
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29430
|
-
},
|
|
29431
29625
|
/**
|
|
29432
29626
|
* Retrieves the refund reference for a specific transaction.
|
|
29433
29627
|
* @summary Get refund reference for a transaction
|
|
@@ -29589,16 +29783,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
29589
29783
|
createNetsRefundTransaction(createRefundDto: CreateRefundDto, options?: any): AxiosPromise<CreateNetsRefundResponseDto> {
|
|
29590
29784
|
return localVarFp.createNetsRefundTransaction(createRefundDto, options).then((request) => request(axios, basePath));
|
|
29591
29785
|
},
|
|
29592
|
-
/**
|
|
29593
|
-
* Creates a new Viva payment intent.
|
|
29594
|
-
* @summary Create Viva payment
|
|
29595
|
-
* @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
|
|
29596
|
-
* @param {*} [options] Override http request option.
|
|
29597
|
-
* @throws {RequiredError}
|
|
29598
|
-
*/
|
|
29599
|
-
createVivaPaymentV3(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: any): AxiosPromise<VivaPaymentIntent> {
|
|
29600
|
-
return localVarFp.createVivaPaymentV3(vivaCreatePaymentDto, options).then((request) => request(axios, basePath));
|
|
29601
|
-
},
|
|
29602
29786
|
/**
|
|
29603
29787
|
* Retrieves the refund reference for a specific transaction.
|
|
29604
29788
|
* @summary Get refund reference for a transaction
|
|
@@ -29748,16 +29932,6 @@ export interface PaymentApiInterface {
|
|
|
29748
29932
|
*/
|
|
29749
29933
|
createNetsRefundTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig): AxiosPromise<CreateNetsRefundResponseDto>;
|
|
29750
29934
|
|
|
29751
|
-
/**
|
|
29752
|
-
* Creates a new Viva payment intent.
|
|
29753
|
-
* @summary Create Viva payment
|
|
29754
|
-
* @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
|
|
29755
|
-
* @param {*} [options] Override http request option.
|
|
29756
|
-
* @throws {RequiredError}
|
|
29757
|
-
* @memberof PaymentApiInterface
|
|
29758
|
-
*/
|
|
29759
|
-
createVivaPaymentV3(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentIntent>;
|
|
29760
|
-
|
|
29761
29935
|
/**
|
|
29762
29936
|
* Retrieves the refund reference for a specific transaction.
|
|
29763
29937
|
* @summary Get refund reference for a transaction
|
|
@@ -29913,18 +30087,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
29913
30087
|
return PaymentApiFp(this.configuration).createNetsRefundTransaction(createRefundDto, options).then((request) => request(this.axios, this.basePath));
|
|
29914
30088
|
}
|
|
29915
30089
|
|
|
29916
|
-
/**
|
|
29917
|
-
* Creates a new Viva payment intent.
|
|
29918
|
-
* @summary Create Viva payment
|
|
29919
|
-
* @param {VivaCreatePaymentDto} vivaCreatePaymentDto Viva payment creation payload
|
|
29920
|
-
* @param {*} [options] Override http request option.
|
|
29921
|
-
* @throws {RequiredError}
|
|
29922
|
-
* @memberof PaymentApi
|
|
29923
|
-
*/
|
|
29924
|
-
public createVivaPaymentV3(vivaCreatePaymentDto: VivaCreatePaymentDto, options?: AxiosRequestConfig) {
|
|
29925
|
-
return PaymentApiFp(this.configuration).createVivaPaymentV3(vivaCreatePaymentDto, options).then((request) => request(this.axios, this.basePath));
|
|
29926
|
-
}
|
|
29927
|
-
|
|
29928
30090
|
/**
|
|
29929
30091
|
* Retrieves the refund reference for a specific transaction.
|
|
29930
30092
|
* @summary Get refund reference for a transaction
|