@munchi_oy/core 1.5.5 → 1.5.7

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/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
@@ -2053,11 +2129,85 @@ export interface CashSessionResponseDto {
2053
2129
  'activeSession': CashSessionResponseDtoActiveSession | null;
2054
2130
  }
2055
2131
  /**
2056
- * @type CashSessionResponseDtoActiveSession
2057
- * The currently open cash session for the business, or null if none.
2132
+ * The currently open cash session for the business. Returns null when no session is open.
2058
2133
  * @export
2134
+ * @interface CashSessionResponseDtoActiveSession
2059
2135
  */
2060
- export type CashSessionResponseDtoActiveSession = CashSessionDto | Null;
2136
+ export interface CashSessionResponseDtoActiveSession {
2137
+ /**
2138
+ * Session ID
2139
+ * @type {string}
2140
+ * @memberof CashSessionResponseDtoActiveSession
2141
+ */
2142
+ 'id': string;
2143
+ /**
2144
+ * Business ID
2145
+ * @type {string}
2146
+ * @memberof CashSessionResponseDtoActiveSession
2147
+ */
2148
+ 'businessId': string;
2149
+ /**
2150
+ *
2151
+ * @type {string}
2152
+ * @memberof CashSessionResponseDtoActiveSession
2153
+ */
2154
+ 'currency': string;
2155
+ /**
2156
+ *
2157
+ * @type {CashSessionStatus}
2158
+ * @memberof CashSessionResponseDtoActiveSession
2159
+ */
2160
+ 'status': CashSessionStatus;
2161
+ /**
2162
+ * ID of staff who opened
2163
+ * @type {string}
2164
+ * @memberof CashSessionResponseDtoActiveSession
2165
+ */
2166
+ 'openedBy'?: string | null;
2167
+ /**
2168
+ *
2169
+ * @type {string}
2170
+ * @memberof CashSessionResponseDtoActiveSession
2171
+ */
2172
+ 'openedAt': string;
2173
+ /**
2174
+ * ID of staff who closed
2175
+ * @type {string}
2176
+ * @memberof CashSessionResponseDtoActiveSession
2177
+ */
2178
+ 'closedBy'?: string | null;
2179
+ /**
2180
+ *
2181
+ * @type {string}
2182
+ * @memberof CashSessionResponseDtoActiveSession
2183
+ */
2184
+ 'closedAt'?: string;
2185
+ /**
2186
+ * Initial float amount
2187
+ * @type {number}
2188
+ * @memberof CashSessionResponseDtoActiveSession
2189
+ */
2190
+ 'openingBalance': number;
2191
+ /**
2192
+ *
2193
+ * @type {CashSessionTotalsDto}
2194
+ * @memberof CashSessionResponseDtoActiveSession
2195
+ */
2196
+ 'totals': CashSessionTotalsDto;
2197
+ /**
2198
+ *
2199
+ * @type {CashSessionDtoClosing}
2200
+ * @memberof CashSessionResponseDtoActiveSession
2201
+ */
2202
+ 'closing'?: CashSessionDtoClosing;
2203
+ /**
2204
+ * Optional label for the stage/shift
2205
+ * @type {string}
2206
+ * @memberof CashSessionResponseDtoActiveSession
2207
+ */
2208
+ 'currentStageLabel'?: string;
2209
+ }
2210
+
2061
2211
 
2062
2212
  /**
2063
2213
  *
@@ -12907,7 +13057,6 @@ export type RefundMode = typeof RefundMode[keyof typeof RefundMode];
12907
13057
  export const RefundOverallStatus = {
12908
13058
  Pending: 'PENDING',
12909
13059
  InProgress: 'IN_PROGRESS',
12910
- Processing: 'PROCESSING',
12911
13060
  ChoiceRequired: 'CHOICE_REQUIRED',
12912
13061
  Completed: 'COMPLETED',
12913
13062
  Failed: 'FAILED'
@@ -13202,7 +13351,6 @@ export type RefundStatusEnum = typeof RefundStatusEnum[keyof typeof RefundStatus
13202
13351
  export const RefundStepStatus = {
13203
13352
  Pending: 'PENDING',
13204
13353
  InProgress: 'IN_PROGRESS',
13205
- Processing: 'PROCESSING',
13206
13354
  Failed: 'FAILED',
13207
13355
  Completed: 'COMPLETED'
13208
13356
  } as const;
@@ -13292,6 +13440,20 @@ export interface RejectOrderDto {
13292
13440
  }
13293
13441
 
13294
13442
 
13443
+ /**
13444
+ *
13445
+ * @export
13446
+ * @enum {string}
13447
+ */
13448
+
13449
+ export const ReportLanguage = {
13450
+ Fi: 'fi',
13451
+ En: 'en'
13452
+ } as const;
13453
+
13454
+ export type ReportLanguage = typeof ReportLanguage[keyof typeof ReportLanguage];
13455
+
13456
+
13295
13457
  /**
13296
13458
  *
13297
13459
  * @export
@@ -13579,7 +13741,15 @@ export interface SendReportEmailDto {
13579
13741
  * @memberof SendReportEmailDto
13580
13742
  */
13581
13743
  'email'?: string;
13744
+ /**
13745
+ *
13746
+ * @type {ReportLanguage}
13747
+ * @memberof SendReportEmailDto
13748
+ */
13749
+ 'language'?: ReportLanguage;
13582
13750
  }
13751
+
13752
+
13583
13753
  /**
13584
13754
  *
13585
13755
  * @export
@@ -14081,10 +14251,10 @@ export interface SubcategoryDto {
14081
14251
  'description': string | null;
14082
14252
  /**
14083
14253
  * Products in this subcategory
14084
- * @type {Array<OrderingCoProductDto>}
14254
+ * @type {Array<ExtendedProductDto>}
14085
14255
  * @memberof SubcategoryDto
14086
14256
  */
14087
- 'products': Array<OrderingCoProductDto>;
14257
+ 'products': Array<ExtendedProductDto>;
14088
14258
  }
14089
14259
  /**
14090
14260
  *
@@ -17070,69 +17240,6 @@ export interface VivaConfigDto {
17070
17240
  */
17071
17241
  'additionalAmount'?: number;
17072
17242
  }
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
17243
  /**
17137
17244
  *
17138
17245
  * @export
@@ -17659,10 +17766,16 @@ export interface VivaPaymentIntent {
17659
17766
  'showReceipt': boolean;
17660
17767
  /**
17661
17768
  *
17662
- * @type {VivaPaymentIntentIsvDetails}
17769
+ * @type {VivaPaymentResultDtoIsvDetails}
17770
+ * @memberof VivaPaymentIntent
17771
+ */
17772
+ 'isvDetails'?: VivaPaymentResultDtoIsvDetails;
17773
+ /**
17774
+ * Whether to skip applying a surcharge to the transaction.
17775
+ * @type {boolean}
17663
17776
  * @memberof VivaPaymentIntent
17664
17777
  */
17665
- 'isvDetails'?: VivaPaymentIntentIsvDetails;
17778
+ 'skipSurcharge': boolean;
17666
17779
  }
17667
17780
 
17668
17781
  export const CurrencyCodeEnum = {
@@ -17705,43 +17818,6 @@ export const CurrencyCodeEnum = {
17705
17818
 
17706
17819
  export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
17707
17820
 
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
17821
  /**
17746
17822
  *
17747
17823
  * @export
@@ -18021,10 +18097,10 @@ export interface VivaPaymentMessageDtoData {
18021
18097
  'bankId': string;
18022
18098
  /**
18023
18099
  *
18024
- * @type {VivaPaymentIntentIsvDetails}
18100
+ * @type {VivaPaymentResultDtoIsvDetails}
18025
18101
  * @memberof VivaPaymentMessageDtoData
18026
18102
  */
18027
- 'isvDetails'?: VivaPaymentIntentIsvDetails;
18103
+ 'isvDetails'?: VivaPaymentResultDtoIsvDetails;
18028
18104
  /**
18029
18105
  * AADE (Greek Tax Authority) specific transaction ID.
18030
18106
  * @type {object}
@@ -18282,10 +18358,10 @@ export interface VivaPaymentResultDto {
18282
18358
  'bankId': string;
18283
18359
  /**
18284
18360
  *
18285
- * @type {VivaPaymentIntentIsvDetails}
18361
+ * @type {VivaPaymentResultDtoIsvDetails}
18286
18362
  * @memberof VivaPaymentResultDto
18287
18363
  */
18288
- 'isvDetails'?: VivaPaymentIntentIsvDetails;
18364
+ 'isvDetails'?: VivaPaymentResultDtoIsvDetails;
18289
18365
  /**
18290
18366
  * AADE (Greek Tax Authority) specific transaction ID.
18291
18367
  * @type {object}
@@ -18313,6 +18389,43 @@ export interface VivaPaymentResultDto {
18313
18389
  }
18314
18390
 
18315
18391
 
18392
+ /**
18393
+ * ISV (Independent Software Vendor) specific details.
18394
+ * @export
18395
+ * @interface VivaPaymentResultDtoIsvDetails
18396
+ */
18397
+ export interface VivaPaymentResultDtoIsvDetails {
18398
+ /**
18399
+ * The amount related to the ISV (Independent Software Vendor).
18400
+ * @type {number}
18401
+ * @memberof VivaPaymentResultDtoIsvDetails
18402
+ */
18403
+ 'amount'?: number;
18404
+ /**
18405
+ * The terminal merchant ID associated with the ISV.
18406
+ * @type {string}
18407
+ * @memberof VivaPaymentResultDtoIsvDetails
18408
+ */
18409
+ 'terminalMerchantId'?: string;
18410
+ /**
18411
+ * The source code for the ISV.
18412
+ * @type {string}
18413
+ * @memberof VivaPaymentResultDtoIsvDetails
18414
+ */
18415
+ 'sourceCode'?: string;
18416
+ /**
18417
+ * The merchant ID for the ISV.
18418
+ * @type {string}
18419
+ * @memberof VivaPaymentResultDtoIsvDetails
18420
+ */
18421
+ 'merchantId'?: string;
18422
+ /**
18423
+ * The merchant source code for the ISV.
18424
+ * @type {string}
18425
+ * @memberof VivaPaymentResultDtoIsvDetails
18426
+ */
18427
+ 'merchantSourceCode'?: string;
18428
+ }
18316
18429
  /**
18317
18430
  *
18318
18431
  * @export
@@ -20684,6 +20797,50 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
20684
20797
 
20685
20798
 
20686
20799
 
20800
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20801
+
20802
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20803
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20804
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20805
+ localVarRequestOptions.data = serializeDataIfNeeded(businessCategoryBodyDto, localVarRequestOptions, configuration)
20806
+
20807
+ return {
20808
+ url: toPathString(localVarUrlObj),
20809
+ options: localVarRequestOptions,
20810
+ };
20811
+ },
20812
+ /**
20813
+ *
20814
+ * @summary Get business menu categories V3
20815
+ * @param {string} businessId
20816
+ * @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
20817
+ * @param {*} [options] Override http request option.
20818
+ * @throws {RequiredError}
20819
+ */
20820
+ getBusinessCategoriesByMenuIdV3: async (businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20821
+ // verify required parameter 'businessId' is not null or undefined
20822
+ assertParamExists('getBusinessCategoriesByMenuIdV3', 'businessId', businessId)
20823
+ // verify required parameter 'businessCategoryBodyDto' is not null or undefined
20824
+ assertParamExists('getBusinessCategoriesByMenuIdV3', 'businessCategoryBodyDto', businessCategoryBodyDto)
20825
+ const localVarPath = `/api/v3/business/{businessId}/menu/categories`
20826
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
20827
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20828
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20829
+ let baseOptions;
20830
+ if (configuration) {
20831
+ baseOptions = configuration.baseOptions;
20832
+ }
20833
+
20834
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20835
+ const localVarHeaderParameter = {} as any;
20836
+ const localVarQueryParameter = {} as any;
20837
+
20838
+ // authentication JWT-auth required
20839
+ // http bearer authentication required
20840
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20841
+
20842
+
20843
+
20687
20844
  localVarHeaderParameter['Content-Type'] = 'application/json';
20688
20845
 
20689
20846
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -21539,6 +21696,18 @@ export const BusinessApiFp = function(configuration?: Configuration) {
21539
21696
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessCategoriesByMenuIdV2(businessId, businessCategoryBodyDto, options);
21540
21697
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21541
21698
  },
21699
+ /**
21700
+ *
21701
+ * @summary Get business menu categories V3
21702
+ * @param {string} businessId
21703
+ * @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
21704
+ * @param {*} [options] Override http request option.
21705
+ * @throws {RequiredError}
21706
+ */
21707
+ async getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExtendedCategoryDto>>> {
21708
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBusinessCategoriesByMenuIdV3(businessId, businessCategoryBodyDto, options);
21709
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21710
+ },
21542
21711
  /**
21543
21712
  *
21544
21713
  * @param {string} businessId Id of the business
@@ -21804,6 +21973,17 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
21804
21973
  getBusinessCategoriesByMenuIdV2(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: any): AxiosPromise<Array<ExtendedCategoryDto>> {
21805
21974
  return localVarFp.getBusinessCategoriesByMenuIdV2(businessId, businessCategoryBodyDto, options).then((request) => request(axios, basePath));
21806
21975
  },
21976
+ /**
21977
+ *
21978
+ * @summary Get business menu categories V3
21979
+ * @param {string} businessId
21980
+ * @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
21981
+ * @param {*} [options] Override http request option.
21982
+ * @throws {RequiredError}
21983
+ */
21984
+ getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: any): AxiosPromise<Array<ExtendedCategoryDto>> {
21985
+ return localVarFp.getBusinessCategoriesByMenuIdV3(businessId, businessCategoryBodyDto, options).then((request) => request(axios, basePath));
21986
+ },
21807
21987
  /**
21808
21988
  *
21809
21989
  * @param {string} businessId Id of the business
@@ -22049,6 +22229,17 @@ export interface BusinessApiInterface {
22049
22229
  */
22050
22230
  getBusinessCategoriesByMenuIdV2(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig): AxiosPromise<Array<ExtendedCategoryDto>>;
22051
22231
 
22232
+ /**
22233
+ *
22234
+ * @summary Get business menu categories V3
22235
+ * @param {string} businessId
22236
+ * @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
22237
+ * @param {*} [options] Override http request option.
22238
+ * @throws {RequiredError}
22239
+ * @memberof BusinessApiInterface
22240
+ */
22241
+ getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig): AxiosPromise<Array<ExtendedCategoryDto>>;
22242
+
22052
22243
  /**
22053
22244
  *
22054
22245
  * @param {string} businessId Id of the business
@@ -22302,6 +22493,19 @@ export class BusinessApi extends BaseAPI implements BusinessApiInterface {
22302
22493
  return BusinessApiFp(this.configuration).getBusinessCategoriesByMenuIdV2(businessId, businessCategoryBodyDto, options).then((request) => request(this.axios, this.basePath));
22303
22494
  }
22304
22495
 
22496
+ /**
22497
+ *
22498
+ * @summary Get business menu categories V3
22499
+ * @param {string} businessId
22500
+ * @param {BusinessCategoryBodyDto} businessCategoryBodyDto Example body
22501
+ * @param {*} [options] Override http request option.
22502
+ * @throws {RequiredError}
22503
+ * @memberof BusinessApi
22504
+ */
22505
+ public getBusinessCategoriesByMenuIdV3(businessId: string, businessCategoryBodyDto: BusinessCategoryBodyDto, options?: AxiosRequestConfig) {
22506
+ return BusinessApiFp(this.configuration).getBusinessCategoriesByMenuIdV3(businessId, businessCategoryBodyDto, options).then((request) => request(this.axios, this.basePath));
22507
+ }
22508
+
22305
22509
  /**
22306
22510
  *
22307
22511
  * @param {string} businessId Id of the business
@@ -22580,6 +22784,72 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
22580
22784
  options: localVarRequestOptions,
22581
22785
  };
22582
22786
  },
22787
+ /**
22788
+ *
22789
+ * @summary
22790
+ * @param {string} businessId
22791
+ * @param {string} timezone
22792
+ * @param {TimeSpan} [timeSpan] Time span
22793
+ * @param {string} [start] Start date
22794
+ * @param {string} [end] End date
22795
+ * @param {number} [page] Page number
22796
+ * @param {number} [rowPerPage] Rows per page
22797
+ * @param {*} [options] Override http request option.
22798
+ * @throws {RequiredError}
22799
+ */
22800
+ getCashLogs: async (businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
22801
+ // verify required parameter 'businessId' is not null or undefined
22802
+ assertParamExists('getCashLogs', 'businessId', businessId)
22803
+ // verify required parameter 'timezone' is not null or undefined
22804
+ assertParamExists('getCashLogs', 'timezone', timezone)
22805
+ const localVarPath = `/api/v1/cash-management/{businessId}/logs`
22806
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
22807
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22808
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22809
+ let baseOptions;
22810
+ if (configuration) {
22811
+ baseOptions = configuration.baseOptions;
22812
+ }
22813
+
22814
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
22815
+ const localVarHeaderParameter = {} as any;
22816
+ const localVarQueryParameter = {} as any;
22817
+
22818
+ if (timeSpan !== undefined) {
22819
+ localVarQueryParameter['timeSpan'] = timeSpan;
22820
+ }
22821
+
22822
+ if (start !== undefined) {
22823
+ localVarQueryParameter['start'] = start;
22824
+ }
22825
+
22826
+ if (end !== undefined) {
22827
+ localVarQueryParameter['end'] = end;
22828
+ }
22829
+
22830
+ if (page !== undefined) {
22831
+ localVarQueryParameter['page'] = page;
22832
+ }
22833
+
22834
+ if (rowPerPage !== undefined) {
22835
+ localVarQueryParameter['rowPerPage'] = rowPerPage;
22836
+ }
22837
+
22838
+ if (timezone !== undefined) {
22839
+ localVarQueryParameter['timezone'] = timezone;
22840
+ }
22841
+
22842
+
22843
+
22844
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22845
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22846
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22847
+
22848
+ return {
22849
+ url: toPathString(localVarUrlObj),
22850
+ options: localVarRequestOptions,
22851
+ };
22852
+ },
22583
22853
  /**
22584
22854
  *
22585
22855
  * @param {string} businessId
@@ -22753,6 +23023,23 @@ export const CashManagementApiFp = function(configuration?: Configuration) {
22753
23023
  const localVarAxiosArgs = await localVarAxiosParamCreator.create(businessId, cashSessionDto, options);
22754
23024
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22755
23025
  },
23026
+ /**
23027
+ *
23028
+ * @summary
23029
+ * @param {string} businessId
23030
+ * @param {string} timezone
23031
+ * @param {TimeSpan} [timeSpan] Time span
23032
+ * @param {string} [start] Start date
23033
+ * @param {string} [end] End date
23034
+ * @param {number} [page] Page number
23035
+ * @param {number} [rowPerPage] Rows per page
23036
+ * @param {*} [options] Override http request option.
23037
+ * @throws {RequiredError}
23038
+ */
23039
+ 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>> {
23040
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCashLogs(businessId, timezone, timeSpan, start, end, page, rowPerPage, options);
23041
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
23042
+ },
22756
23043
  /**
22757
23044
  *
22758
23045
  * @param {string} businessId
@@ -22817,6 +23104,22 @@ export const CashManagementApiFactory = function (configuration?: Configuration,
22817
23104
  create(businessId: string, cashSessionDto: CashSessionDto, options?: any): AxiosPromise<CashSessionDto> {
22818
23105
  return localVarFp.create(businessId, cashSessionDto, options).then((request) => request(axios, basePath));
22819
23106
  },
23107
+ /**
23108
+ *
23109
+ * @summary
23110
+ * @param {string} businessId
23111
+ * @param {string} timezone
23112
+ * @param {TimeSpan} [timeSpan] Time span
23113
+ * @param {string} [start] Start date
23114
+ * @param {string} [end] End date
23115
+ * @param {number} [page] Page number
23116
+ * @param {number} [rowPerPage] Rows per page
23117
+ * @param {*} [options] Override http request option.
23118
+ * @throws {RequiredError}
23119
+ */
23120
+ getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: any): AxiosPromise<CashLogsPaginatedDto> {
23121
+ return localVarFp.getCashLogs(businessId, timezone, timeSpan, start, end, page, rowPerPage, options).then((request) => request(axios, basePath));
23122
+ },
22820
23123
  /**
22821
23124
  *
22822
23125
  * @param {string} businessId
@@ -22876,6 +23179,22 @@ export interface CashManagementApiInterface {
22876
23179
  */
22877
23180
  create(businessId: string, cashSessionDto: CashSessionDto, options?: AxiosRequestConfig): AxiosPromise<CashSessionDto>;
22878
23181
 
23182
+ /**
23183
+ *
23184
+ * @summary
23185
+ * @param {string} businessId
23186
+ * @param {string} timezone
23187
+ * @param {TimeSpan} [timeSpan] Time span
23188
+ * @param {string} [start] Start date
23189
+ * @param {string} [end] End date
23190
+ * @param {number} [page] Page number
23191
+ * @param {number} [rowPerPage] Rows per page
23192
+ * @param {*} [options] Override http request option.
23193
+ * @throws {RequiredError}
23194
+ * @memberof CashManagementApiInterface
23195
+ */
23196
+ getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: AxiosRequestConfig): AxiosPromise<CashLogsPaginatedDto>;
23197
+
22879
23198
  /**
22880
23199
  *
22881
23200
  * @param {string} businessId
@@ -22937,6 +23256,24 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
22937
23256
  return CashManagementApiFp(this.configuration).create(businessId, cashSessionDto, options).then((request) => request(this.axios, this.basePath));
22938
23257
  }
22939
23258
 
23259
+ /**
23260
+ *
23261
+ * @summary
23262
+ * @param {string} businessId
23263
+ * @param {string} timezone
23264
+ * @param {TimeSpan} [timeSpan] Time span
23265
+ * @param {string} [start] Start date
23266
+ * @param {string} [end] End date
23267
+ * @param {number} [page] Page number
23268
+ * @param {number} [rowPerPage] Rows per page
23269
+ * @param {*} [options] Override http request option.
23270
+ * @throws {RequiredError}
23271
+ * @memberof CashManagementApi
23272
+ */
23273
+ public getCashLogs(businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options?: AxiosRequestConfig) {
23274
+ return CashManagementApiFp(this.configuration).getCashLogs(businessId, timezone, timeSpan, start, end, page, rowPerPage, options).then((request) => request(this.axios, this.basePath));
23275
+ }
23276
+
22940
23277
  /**
22941
23278
  *
22942
23279
  * @param {string} businessId
@@ -28942,42 +29279,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
28942
29279
  options: localVarRequestOptions,
28943
29280
  };
28944
29281
  },
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
29282
  /**
28982
29283
  * Retrieves the refund reference for a specific transaction.
28983
29284
  * @summary Get refund reference for a transaction
@@ -29417,17 +29718,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
29417
29718
  const localVarAxiosArgs = await localVarAxiosParamCreator.createNetsRefundTransaction(createRefundDto, options);
29418
29719
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29419
29720
  },
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
29721
  /**
29432
29722
  * Retrieves the refund reference for a specific transaction.
29433
29723
  * @summary Get refund reference for a transaction
@@ -29589,16 +29879,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
29589
29879
  createNetsRefundTransaction(createRefundDto: CreateRefundDto, options?: any): AxiosPromise<CreateNetsRefundResponseDto> {
29590
29880
  return localVarFp.createNetsRefundTransaction(createRefundDto, options).then((request) => request(axios, basePath));
29591
29881
  },
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
29882
  /**
29603
29883
  * Retrieves the refund reference for a specific transaction.
29604
29884
  * @summary Get refund reference for a transaction
@@ -29748,16 +30028,6 @@ export interface PaymentApiInterface {
29748
30028
  */
29749
30029
  createNetsRefundTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig): AxiosPromise<CreateNetsRefundResponseDto>;
29750
30030
 
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
30031
  /**
29762
30032
  * Retrieves the refund reference for a specific transaction.
29763
30033
  * @summary Get refund reference for a transaction
@@ -29913,18 +30183,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
29913
30183
  return PaymentApiFp(this.configuration).createNetsRefundTransaction(createRefundDto, options).then((request) => request(this.axios, this.basePath));
29914
30184
  }
29915
30185
 
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
30186
  /**
29929
30187
  * Retrieves the refund reference for a specific transaction.
29930
30188
  * @summary Get refund reference for a transaction