@munchi_oy/core 1.9.99 → 1.9.101
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 +348 -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/src/version.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +484 -0
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -10201,6 +10201,137 @@ export interface MunchiGiftCardDataItemDto {
|
|
|
10201
10201
|
}
|
|
10202
10202
|
|
|
10203
10203
|
|
|
10204
|
+
/**
|
|
10205
|
+
*
|
|
10206
|
+
* @export
|
|
10207
|
+
* @interface MunchiPayCardDetailDto
|
|
10208
|
+
*/
|
|
10209
|
+
export interface MunchiPayCardDetailDto {
|
|
10210
|
+
/**
|
|
10211
|
+
* Card scheme/brand (e.g. \'Visa Debit\').
|
|
10212
|
+
* @type {string}
|
|
10213
|
+
* @memberof MunchiPayCardDetailDto
|
|
10214
|
+
*/
|
|
10215
|
+
'brand': string;
|
|
10216
|
+
/**
|
|
10217
|
+
* Last 4 digits of the card.
|
|
10218
|
+
* @type {string}
|
|
10219
|
+
* @memberof MunchiPayCardDetailDto
|
|
10220
|
+
*/
|
|
10221
|
+
'last4': string;
|
|
10222
|
+
}
|
|
10223
|
+
/**
|
|
10224
|
+
*
|
|
10225
|
+
* @export
|
|
10226
|
+
* @interface MunchiPaySessionDto
|
|
10227
|
+
*/
|
|
10228
|
+
export interface MunchiPaySessionDto {
|
|
10229
|
+
/**
|
|
10230
|
+
* PaymentSession primary key.
|
|
10231
|
+
* @type {string}
|
|
10232
|
+
* @memberof MunchiPaySessionDto
|
|
10233
|
+
*/
|
|
10234
|
+
'id': string;
|
|
10235
|
+
/**
|
|
10236
|
+
* Internal session ID.
|
|
10237
|
+
* @type {string}
|
|
10238
|
+
* @memberof MunchiPaySessionDto
|
|
10239
|
+
*/
|
|
10240
|
+
'sessionId': string;
|
|
10241
|
+
/**
|
|
10242
|
+
*
|
|
10243
|
+
* @type {ProviderEnum}
|
|
10244
|
+
* @memberof MunchiPaySessionDto
|
|
10245
|
+
*/
|
|
10246
|
+
'channel': ProviderEnum;
|
|
10247
|
+
/**
|
|
10248
|
+
* Business ID (string form of a BigInt).
|
|
10249
|
+
* @type {string}
|
|
10250
|
+
* @memberof MunchiPaySessionDto
|
|
10251
|
+
*/
|
|
10252
|
+
'businessId': string;
|
|
10253
|
+
/**
|
|
10254
|
+
* Order reference. A standalone Munchi Pay charge with no POS order carries a fixed placeholder value.
|
|
10255
|
+
* @type {string}
|
|
10256
|
+
* @memberof MunchiPaySessionDto
|
|
10257
|
+
*/
|
|
10258
|
+
'orderId': string;
|
|
10259
|
+
/**
|
|
10260
|
+
* SALE or REFUND.
|
|
10261
|
+
* @type {string}
|
|
10262
|
+
* @memberof MunchiPaySessionDto
|
|
10263
|
+
*/
|
|
10264
|
+
'purpose': string;
|
|
10265
|
+
/**
|
|
10266
|
+
* Amount in cents.
|
|
10267
|
+
* @type {number}
|
|
10268
|
+
* @memberof MunchiPaySessionDto
|
|
10269
|
+
*/
|
|
10270
|
+
'amount': number;
|
|
10271
|
+
/**
|
|
10272
|
+
* Currency.
|
|
10273
|
+
* @type {string}
|
|
10274
|
+
* @memberof MunchiPaySessionDto
|
|
10275
|
+
*/
|
|
10276
|
+
'currency': string;
|
|
10277
|
+
/**
|
|
10278
|
+
* Session status (state machine).
|
|
10279
|
+
* @type {string}
|
|
10280
|
+
* @memberof MunchiPaySessionDto
|
|
10281
|
+
*/
|
|
10282
|
+
'status': string;
|
|
10283
|
+
/**
|
|
10284
|
+
* Viva transaction ID.
|
|
10285
|
+
* @type {string}
|
|
10286
|
+
* @memberof MunchiPaySessionDto
|
|
10287
|
+
*/
|
|
10288
|
+
'providerTransactionId'?: string | null;
|
|
10289
|
+
/**
|
|
10290
|
+
*
|
|
10291
|
+
* @type {MunchiPaySessionDtoCardDetail}
|
|
10292
|
+
* @memberof MunchiPaySessionDto
|
|
10293
|
+
*/
|
|
10294
|
+
'cardDetail'?: MunchiPaySessionDtoCardDetail | null;
|
|
10295
|
+
/**
|
|
10296
|
+
* Provider-specific metadata.
|
|
10297
|
+
* @type {object}
|
|
10298
|
+
* @memberof MunchiPaySessionDto
|
|
10299
|
+
*/
|
|
10300
|
+
'metadata'?: object;
|
|
10301
|
+
/**
|
|
10302
|
+
*
|
|
10303
|
+
* @type {string}
|
|
10304
|
+
* @memberof MunchiPaySessionDto
|
|
10305
|
+
*/
|
|
10306
|
+
'createdAt': string;
|
|
10307
|
+
/**
|
|
10308
|
+
*
|
|
10309
|
+
* @type {string}
|
|
10310
|
+
* @memberof MunchiPaySessionDto
|
|
10311
|
+
*/
|
|
10312
|
+
'updatedAt': string;
|
|
10313
|
+
}
|
|
10314
|
+
|
|
10315
|
+
|
|
10316
|
+
/**
|
|
10317
|
+
* Card brand and last 4 digits, once captured from Viva (webhook or poll).
|
|
10318
|
+
* @export
|
|
10319
|
+
* @interface MunchiPaySessionDtoCardDetail
|
|
10320
|
+
*/
|
|
10321
|
+
export interface MunchiPaySessionDtoCardDetail {
|
|
10322
|
+
/**
|
|
10323
|
+
* Card scheme/brand (e.g. \'Visa Debit\').
|
|
10324
|
+
* @type {string}
|
|
10325
|
+
* @memberof MunchiPaySessionDtoCardDetail
|
|
10326
|
+
*/
|
|
10327
|
+
'brand': string;
|
|
10328
|
+
/**
|
|
10329
|
+
* Last 4 digits of the card.
|
|
10330
|
+
* @type {string}
|
|
10331
|
+
* @memberof MunchiPaySessionDtoCardDetail
|
|
10332
|
+
*/
|
|
10333
|
+
'last4': string;
|
|
10334
|
+
}
|
|
10204
10335
|
/**
|
|
10205
10336
|
*
|
|
10206
10337
|
* @export
|
|
@@ -25547,6 +25678,69 @@ export interface VideoBackgroundConfig {
|
|
|
25547
25678
|
}
|
|
25548
25679
|
|
|
25549
25680
|
|
|
25681
|
+
/**
|
|
25682
|
+
*
|
|
25683
|
+
* @export
|
|
25684
|
+
* @interface VivaA2aRefundDto
|
|
25685
|
+
*/
|
|
25686
|
+
export interface VivaA2aRefundDto {
|
|
25687
|
+
/**
|
|
25688
|
+
* The internal business ID.
|
|
25689
|
+
* @type {number}
|
|
25690
|
+
* @memberof VivaA2aRefundDto
|
|
25691
|
+
*/
|
|
25692
|
+
'businessId': number;
|
|
25693
|
+
/**
|
|
25694
|
+
* The Viva transaction ID of the charge to refund.
|
|
25695
|
+
* @type {string}
|
|
25696
|
+
* @memberof VivaA2aRefundDto
|
|
25697
|
+
*/
|
|
25698
|
+
'transactionId': string;
|
|
25699
|
+
/**
|
|
25700
|
+
* Refund amount in the smallest currency unit (e.g., cents).
|
|
25701
|
+
* @type {number}
|
|
25702
|
+
* @memberof VivaA2aRefundDto
|
|
25703
|
+
*/
|
|
25704
|
+
'amount': number;
|
|
25705
|
+
}
|
|
25706
|
+
/**
|
|
25707
|
+
*
|
|
25708
|
+
* @export
|
|
25709
|
+
* @interface VivaA2aSessionDetailResponseDto
|
|
25710
|
+
*/
|
|
25711
|
+
export interface VivaA2aSessionDetailResponseDto {
|
|
25712
|
+
/**
|
|
25713
|
+
*
|
|
25714
|
+
* @type {MunchiPaySessionDto}
|
|
25715
|
+
* @memberof VivaA2aSessionDetailResponseDto
|
|
25716
|
+
*/
|
|
25717
|
+
'session': MunchiPaySessionDto;
|
|
25718
|
+
/**
|
|
25719
|
+
* REFUND rows linked back to this session\'s Viva transaction ID.
|
|
25720
|
+
* @type {Array<MunchiPaySessionDto>}
|
|
25721
|
+
* @memberof VivaA2aSessionDetailResponseDto
|
|
25722
|
+
*/
|
|
25723
|
+
'refunds': Array<MunchiPaySessionDto>;
|
|
25724
|
+
}
|
|
25725
|
+
/**
|
|
25726
|
+
*
|
|
25727
|
+
* @export
|
|
25728
|
+
* @interface VivaA2aSessionListResponseDto
|
|
25729
|
+
*/
|
|
25730
|
+
export interface VivaA2aSessionListResponseDto {
|
|
25731
|
+
/**
|
|
25732
|
+
*
|
|
25733
|
+
* @type {Array<MunchiPaySessionDto>}
|
|
25734
|
+
* @memberof VivaA2aSessionListResponseDto
|
|
25735
|
+
*/
|
|
25736
|
+
'sessions': Array<MunchiPaySessionDto>;
|
|
25737
|
+
/**
|
|
25738
|
+
*
|
|
25739
|
+
* @type {PaginationDto}
|
|
25740
|
+
* @memberof VivaA2aSessionListResponseDto
|
|
25741
|
+
*/
|
|
25742
|
+
'pagination': PaginationDto;
|
|
25743
|
+
}
|
|
25550
25744
|
/**
|
|
25551
25745
|
*
|
|
25552
25746
|
* @export
|
|
@@ -51626,6 +51820,143 @@ export const VivaApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
51626
51820
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
51627
51821
|
localVarRequestOptions.data = serializeDataIfNeeded(createTerminalPaymentDto, localVarRequestOptions, configuration)
|
|
51628
51822
|
|
|
51823
|
+
return {
|
|
51824
|
+
url: toPathString(localVarUrlObj),
|
|
51825
|
+
options: localVarRequestOptions,
|
|
51826
|
+
};
|
|
51827
|
+
},
|
|
51828
|
+
/**
|
|
51829
|
+
*
|
|
51830
|
+
* @summary Get a single Viva payment session, with linked refunds
|
|
51831
|
+
* @param {string} id
|
|
51832
|
+
* @param {*} [options] Override http request option.
|
|
51833
|
+
* @throws {RequiredError}
|
|
51834
|
+
*/
|
|
51835
|
+
getVivaSession: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51836
|
+
// verify required parameter 'id' is not null or undefined
|
|
51837
|
+
assertParamExists('getVivaSession', 'id', id)
|
|
51838
|
+
const localVarPath = `/api/v1/viva/sessions/{id}`
|
|
51839
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
51840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51841
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51842
|
+
let baseOptions;
|
|
51843
|
+
if (configuration) {
|
|
51844
|
+
baseOptions = configuration.baseOptions;
|
|
51845
|
+
}
|
|
51846
|
+
|
|
51847
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51848
|
+
const localVarHeaderParameter = {} as any;
|
|
51849
|
+
const localVarQueryParameter = {} as any;
|
|
51850
|
+
|
|
51851
|
+
|
|
51852
|
+
|
|
51853
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51854
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51855
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
51856
|
+
|
|
51857
|
+
return {
|
|
51858
|
+
url: toPathString(localVarUrlObj),
|
|
51859
|
+
options: localVarRequestOptions,
|
|
51860
|
+
};
|
|
51861
|
+
},
|
|
51862
|
+
/**
|
|
51863
|
+
*
|
|
51864
|
+
* @summary List Viva payment sessions for a business
|
|
51865
|
+
* @param {number} businessId The internal business ID.
|
|
51866
|
+
* @param {number} [page] Page number
|
|
51867
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
51868
|
+
* @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
|
|
51869
|
+
* @param {string} [start] Only sessions created on or after this date (ISO 8601).
|
|
51870
|
+
* @param {string} [end] Only sessions created on or before this date (ISO 8601).
|
|
51871
|
+
* @param {string} [search] Free-text search, matched against the provider transaction ID and the card\'s last 4 digits.
|
|
51872
|
+
* @param {*} [options] Override http request option.
|
|
51873
|
+
* @throws {RequiredError}
|
|
51874
|
+
*/
|
|
51875
|
+
listVivaSessions: async (businessId: number, page?: number, rowPerPage?: number, terminalId?: string, start?: string, end?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51876
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
51877
|
+
assertParamExists('listVivaSessions', 'businessId', businessId)
|
|
51878
|
+
const localVarPath = `/api/v1/viva/sessions`;
|
|
51879
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51880
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51881
|
+
let baseOptions;
|
|
51882
|
+
if (configuration) {
|
|
51883
|
+
baseOptions = configuration.baseOptions;
|
|
51884
|
+
}
|
|
51885
|
+
|
|
51886
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51887
|
+
const localVarHeaderParameter = {} as any;
|
|
51888
|
+
const localVarQueryParameter = {} as any;
|
|
51889
|
+
|
|
51890
|
+
if (businessId !== undefined) {
|
|
51891
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
51892
|
+
}
|
|
51893
|
+
|
|
51894
|
+
if (page !== undefined) {
|
|
51895
|
+
localVarQueryParameter['page'] = page;
|
|
51896
|
+
}
|
|
51897
|
+
|
|
51898
|
+
if (rowPerPage !== undefined) {
|
|
51899
|
+
localVarQueryParameter['rowPerPage'] = rowPerPage;
|
|
51900
|
+
}
|
|
51901
|
+
|
|
51902
|
+
if (terminalId !== undefined) {
|
|
51903
|
+
localVarQueryParameter['terminalId'] = terminalId;
|
|
51904
|
+
}
|
|
51905
|
+
|
|
51906
|
+
if (start !== undefined) {
|
|
51907
|
+
localVarQueryParameter['start'] = start;
|
|
51908
|
+
}
|
|
51909
|
+
|
|
51910
|
+
if (end !== undefined) {
|
|
51911
|
+
localVarQueryParameter['end'] = end;
|
|
51912
|
+
}
|
|
51913
|
+
|
|
51914
|
+
if (search !== undefined) {
|
|
51915
|
+
localVarQueryParameter['search'] = search;
|
|
51916
|
+
}
|
|
51917
|
+
|
|
51918
|
+
|
|
51919
|
+
|
|
51920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51922
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
51923
|
+
|
|
51924
|
+
return {
|
|
51925
|
+
url: toPathString(localVarUrlObj),
|
|
51926
|
+
options: localVarRequestOptions,
|
|
51927
|
+
};
|
|
51928
|
+
},
|
|
51929
|
+
/**
|
|
51930
|
+
*
|
|
51931
|
+
* @summary Refund a Viva transaction
|
|
51932
|
+
* @param {VivaA2aRefundDto} vivaA2aRefundDto
|
|
51933
|
+
* @param {*} [options] Override http request option.
|
|
51934
|
+
* @throws {RequiredError}
|
|
51935
|
+
*/
|
|
51936
|
+
refundVivaPayment: async (vivaA2aRefundDto: VivaA2aRefundDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51937
|
+
// verify required parameter 'vivaA2aRefundDto' is not null or undefined
|
|
51938
|
+
assertParamExists('refundVivaPayment', 'vivaA2aRefundDto', vivaA2aRefundDto)
|
|
51939
|
+
const localVarPath = `/api/v1/viva/refund`;
|
|
51940
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51941
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51942
|
+
let baseOptions;
|
|
51943
|
+
if (configuration) {
|
|
51944
|
+
baseOptions = configuration.baseOptions;
|
|
51945
|
+
}
|
|
51946
|
+
|
|
51947
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
51948
|
+
const localVarHeaderParameter = {} as any;
|
|
51949
|
+
const localVarQueryParameter = {} as any;
|
|
51950
|
+
|
|
51951
|
+
|
|
51952
|
+
|
|
51953
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51954
|
+
|
|
51955
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51956
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51957
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
51958
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vivaA2aRefundDto, localVarRequestOptions, configuration)
|
|
51959
|
+
|
|
51629
51960
|
return {
|
|
51630
51961
|
url: toPathString(localVarUrlObj),
|
|
51631
51962
|
options: localVarRequestOptions,
|
|
@@ -51652,6 +51983,45 @@ export const VivaApiFp = function(configuration?: Configuration) {
|
|
|
51652
51983
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createVivaAppToAppPayment(createTerminalPaymentDto, options);
|
|
51653
51984
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
51654
51985
|
},
|
|
51986
|
+
/**
|
|
51987
|
+
*
|
|
51988
|
+
* @summary Get a single Viva payment session, with linked refunds
|
|
51989
|
+
* @param {string} id
|
|
51990
|
+
* @param {*} [options] Override http request option.
|
|
51991
|
+
* @throws {RequiredError}
|
|
51992
|
+
*/
|
|
51993
|
+
async getVivaSession(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaA2aSessionDetailResponseDto>> {
|
|
51994
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVivaSession(id, options);
|
|
51995
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
51996
|
+
},
|
|
51997
|
+
/**
|
|
51998
|
+
*
|
|
51999
|
+
* @summary List Viva payment sessions for a business
|
|
52000
|
+
* @param {number} businessId The internal business ID.
|
|
52001
|
+
* @param {number} [page] Page number
|
|
52002
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
52003
|
+
* @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
|
|
52004
|
+
* @param {string} [start] Only sessions created on or after this date (ISO 8601).
|
|
52005
|
+
* @param {string} [end] Only sessions created on or before this date (ISO 8601).
|
|
52006
|
+
* @param {string} [search] Free-text search, matched against the provider transaction ID and the card\'s last 4 digits.
|
|
52007
|
+
* @param {*} [options] Override http request option.
|
|
52008
|
+
* @throws {RequiredError}
|
|
52009
|
+
*/
|
|
52010
|
+
async listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, start?: string, end?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaA2aSessionListResponseDto>> {
|
|
52011
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listVivaSessions(businessId, page, rowPerPage, terminalId, start, end, search, options);
|
|
52012
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
52013
|
+
},
|
|
52014
|
+
/**
|
|
52015
|
+
*
|
|
52016
|
+
* @summary Refund a Viva transaction
|
|
52017
|
+
* @param {VivaA2aRefundDto} vivaA2aRefundDto
|
|
52018
|
+
* @param {*} [options] Override http request option.
|
|
52019
|
+
* @throws {RequiredError}
|
|
52020
|
+
*/
|
|
52021
|
+
async refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MunchiPaySessionDto>> {
|
|
52022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaPayment(vivaA2aRefundDto, options);
|
|
52023
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
52024
|
+
},
|
|
51655
52025
|
}
|
|
51656
52026
|
};
|
|
51657
52027
|
|
|
@@ -51672,6 +52042,42 @@ export const VivaApiFactory = function (configuration?: Configuration, basePath?
|
|
|
51672
52042
|
createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: any): AxiosPromise<VivaAppToAppInitResponseDto> {
|
|
51673
52043
|
return localVarFp.createVivaAppToAppPayment(createTerminalPaymentDto, options).then((request) => request(axios, basePath));
|
|
51674
52044
|
},
|
|
52045
|
+
/**
|
|
52046
|
+
*
|
|
52047
|
+
* @summary Get a single Viva payment session, with linked refunds
|
|
52048
|
+
* @param {string} id
|
|
52049
|
+
* @param {*} [options] Override http request option.
|
|
52050
|
+
* @throws {RequiredError}
|
|
52051
|
+
*/
|
|
52052
|
+
getVivaSession(id: string, options?: any): AxiosPromise<VivaA2aSessionDetailResponseDto> {
|
|
52053
|
+
return localVarFp.getVivaSession(id, options).then((request) => request(axios, basePath));
|
|
52054
|
+
},
|
|
52055
|
+
/**
|
|
52056
|
+
*
|
|
52057
|
+
* @summary List Viva payment sessions for a business
|
|
52058
|
+
* @param {number} businessId The internal business ID.
|
|
52059
|
+
* @param {number} [page] Page number
|
|
52060
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
52061
|
+
* @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
|
|
52062
|
+
* @param {string} [start] Only sessions created on or after this date (ISO 8601).
|
|
52063
|
+
* @param {string} [end] Only sessions created on or before this date (ISO 8601).
|
|
52064
|
+
* @param {string} [search] Free-text search, matched against the provider transaction ID and the card\'s last 4 digits.
|
|
52065
|
+
* @param {*} [options] Override http request option.
|
|
52066
|
+
* @throws {RequiredError}
|
|
52067
|
+
*/
|
|
52068
|
+
listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, start?: string, end?: string, search?: string, options?: any): AxiosPromise<VivaA2aSessionListResponseDto> {
|
|
52069
|
+
return localVarFp.listVivaSessions(businessId, page, rowPerPage, terminalId, start, end, search, options).then((request) => request(axios, basePath));
|
|
52070
|
+
},
|
|
52071
|
+
/**
|
|
52072
|
+
*
|
|
52073
|
+
* @summary Refund a Viva transaction
|
|
52074
|
+
* @param {VivaA2aRefundDto} vivaA2aRefundDto
|
|
52075
|
+
* @param {*} [options] Override http request option.
|
|
52076
|
+
* @throws {RequiredError}
|
|
52077
|
+
*/
|
|
52078
|
+
refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: any): AxiosPromise<MunchiPaySessionDto> {
|
|
52079
|
+
return localVarFp.refundVivaPayment(vivaA2aRefundDto, options).then((request) => request(axios, basePath));
|
|
52080
|
+
},
|
|
51675
52081
|
};
|
|
51676
52082
|
};
|
|
51677
52083
|
|
|
@@ -51691,6 +52097,42 @@ export interface VivaApiInterface {
|
|
|
51691
52097
|
*/
|
|
51692
52098
|
createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig): AxiosPromise<VivaAppToAppInitResponseDto>;
|
|
51693
52099
|
|
|
52100
|
+
/**
|
|
52101
|
+
*
|
|
52102
|
+
* @summary Get a single Viva payment session, with linked refunds
|
|
52103
|
+
* @param {string} id
|
|
52104
|
+
* @param {*} [options] Override http request option.
|
|
52105
|
+
* @throws {RequiredError}
|
|
52106
|
+
* @memberof VivaApiInterface
|
|
52107
|
+
*/
|
|
52108
|
+
getVivaSession(id: string, options?: AxiosRequestConfig): AxiosPromise<VivaA2aSessionDetailResponseDto>;
|
|
52109
|
+
|
|
52110
|
+
/**
|
|
52111
|
+
*
|
|
52112
|
+
* @summary List Viva payment sessions for a business
|
|
52113
|
+
* @param {number} businessId The internal business ID.
|
|
52114
|
+
* @param {number} [page] Page number
|
|
52115
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
52116
|
+
* @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
|
|
52117
|
+
* @param {string} [start] Only sessions created on or after this date (ISO 8601).
|
|
52118
|
+
* @param {string} [end] Only sessions created on or before this date (ISO 8601).
|
|
52119
|
+
* @param {string} [search] Free-text search, matched against the provider transaction ID and the card\'s last 4 digits.
|
|
52120
|
+
* @param {*} [options] Override http request option.
|
|
52121
|
+
* @throws {RequiredError}
|
|
52122
|
+
* @memberof VivaApiInterface
|
|
52123
|
+
*/
|
|
52124
|
+
listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, start?: string, end?: string, search?: string, options?: AxiosRequestConfig): AxiosPromise<VivaA2aSessionListResponseDto>;
|
|
52125
|
+
|
|
52126
|
+
/**
|
|
52127
|
+
*
|
|
52128
|
+
* @summary Refund a Viva transaction
|
|
52129
|
+
* @param {VivaA2aRefundDto} vivaA2aRefundDto
|
|
52130
|
+
* @param {*} [options] Override http request option.
|
|
52131
|
+
* @throws {RequiredError}
|
|
52132
|
+
* @memberof VivaApiInterface
|
|
52133
|
+
*/
|
|
52134
|
+
refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig): AxiosPromise<MunchiPaySessionDto>;
|
|
52135
|
+
|
|
51694
52136
|
}
|
|
51695
52137
|
|
|
51696
52138
|
/**
|
|
@@ -51711,6 +52153,48 @@ export class VivaApi extends BaseAPI implements VivaApiInterface {
|
|
|
51711
52153
|
public createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig) {
|
|
51712
52154
|
return VivaApiFp(this.configuration).createVivaAppToAppPayment(createTerminalPaymentDto, options).then((request) => request(this.axios, this.basePath));
|
|
51713
52155
|
}
|
|
52156
|
+
|
|
52157
|
+
/**
|
|
52158
|
+
*
|
|
52159
|
+
* @summary Get a single Viva payment session, with linked refunds
|
|
52160
|
+
* @param {string} id
|
|
52161
|
+
* @param {*} [options] Override http request option.
|
|
52162
|
+
* @throws {RequiredError}
|
|
52163
|
+
* @memberof VivaApi
|
|
52164
|
+
*/
|
|
52165
|
+
public getVivaSession(id: string, options?: AxiosRequestConfig) {
|
|
52166
|
+
return VivaApiFp(this.configuration).getVivaSession(id, options).then((request) => request(this.axios, this.basePath));
|
|
52167
|
+
}
|
|
52168
|
+
|
|
52169
|
+
/**
|
|
52170
|
+
*
|
|
52171
|
+
* @summary List Viva payment sessions for a business
|
|
52172
|
+
* @param {number} businessId The internal business ID.
|
|
52173
|
+
* @param {number} [page] Page number
|
|
52174
|
+
* @param {number} [rowPerPage] Number of rows per page
|
|
52175
|
+
* @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
|
|
52176
|
+
* @param {string} [start] Only sessions created on or after this date (ISO 8601).
|
|
52177
|
+
* @param {string} [end] Only sessions created on or before this date (ISO 8601).
|
|
52178
|
+
* @param {string} [search] Free-text search, matched against the provider transaction ID and the card\'s last 4 digits.
|
|
52179
|
+
* @param {*} [options] Override http request option.
|
|
52180
|
+
* @throws {RequiredError}
|
|
52181
|
+
* @memberof VivaApi
|
|
52182
|
+
*/
|
|
52183
|
+
public listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, start?: string, end?: string, search?: string, options?: AxiosRequestConfig) {
|
|
52184
|
+
return VivaApiFp(this.configuration).listVivaSessions(businessId, page, rowPerPage, terminalId, start, end, search, options).then((request) => request(this.axios, this.basePath));
|
|
52185
|
+
}
|
|
52186
|
+
|
|
52187
|
+
/**
|
|
52188
|
+
*
|
|
52189
|
+
* @summary Refund a Viva transaction
|
|
52190
|
+
* @param {VivaA2aRefundDto} vivaA2aRefundDto
|
|
52191
|
+
* @param {*} [options] Override http request option.
|
|
52192
|
+
* @throws {RequiredError}
|
|
52193
|
+
* @memberof VivaApi
|
|
52194
|
+
*/
|
|
52195
|
+
public refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig) {
|
|
52196
|
+
return VivaApiFp(this.configuration).refundVivaPayment(vivaA2aRefundDto, options).then((request) => request(this.axios, this.basePath));
|
|
52197
|
+
}
|
|
51714
52198
|
}
|
|
51715
52199
|
|
|
51716
52200
|
|
package/package.json
CHANGED
package/src/version.ts
CHANGED