@munchi_oy/core 1.9.99 → 1.9.100

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.
@@ -9915,6 +9915,91 @@ export interface MunchiGiftCardDataItemDto {
9915
9915
  */
9916
9916
  'createdAt': string;
9917
9917
  }
9918
+ /**
9919
+ *
9920
+ * @export
9921
+ * @interface MunchiPaySessionDto
9922
+ */
9923
+ export interface MunchiPaySessionDto {
9924
+ /**
9925
+ * PaymentSession primary key.
9926
+ * @type {string}
9927
+ * @memberof MunchiPaySessionDto
9928
+ */
9929
+ 'id': string;
9930
+ /**
9931
+ * Internal session ID.
9932
+ * @type {string}
9933
+ * @memberof MunchiPaySessionDto
9934
+ */
9935
+ 'sessionId': string;
9936
+ /**
9937
+ *
9938
+ * @type {ProviderEnum}
9939
+ * @memberof MunchiPaySessionDto
9940
+ */
9941
+ 'channel': ProviderEnum;
9942
+ /**
9943
+ * Business ID (string form of a BigInt).
9944
+ * @type {string}
9945
+ * @memberof MunchiPaySessionDto
9946
+ */
9947
+ 'businessId': string;
9948
+ /**
9949
+ * Order reference. A standalone Munchi Pay charge with no POS order carries a fixed placeholder value.
9950
+ * @type {string}
9951
+ * @memberof MunchiPaySessionDto
9952
+ */
9953
+ 'orderId': string;
9954
+ /**
9955
+ * SALE or REFUND.
9956
+ * @type {string}
9957
+ * @memberof MunchiPaySessionDto
9958
+ */
9959
+ 'purpose': string;
9960
+ /**
9961
+ * Amount in cents.
9962
+ * @type {number}
9963
+ * @memberof MunchiPaySessionDto
9964
+ */
9965
+ 'amount': number;
9966
+ /**
9967
+ * Currency.
9968
+ * @type {string}
9969
+ * @memberof MunchiPaySessionDto
9970
+ */
9971
+ 'currency': string;
9972
+ /**
9973
+ * Session status (state machine).
9974
+ * @type {string}
9975
+ * @memberof MunchiPaySessionDto
9976
+ */
9977
+ 'status': string;
9978
+ /**
9979
+ * Viva transaction ID.
9980
+ * @type {string}
9981
+ * @memberof MunchiPaySessionDto
9982
+ */
9983
+ 'providerTransactionId'?: string | null;
9984
+ /**
9985
+ * Provider-specific metadata.
9986
+ * @type {object}
9987
+ * @memberof MunchiPaySessionDto
9988
+ */
9989
+ 'metadata'?: object;
9990
+ /**
9991
+ *
9992
+ * @type {string}
9993
+ * @memberof MunchiPaySessionDto
9994
+ */
9995
+ 'createdAt': string;
9996
+ /**
9997
+ *
9998
+ * @type {string}
9999
+ * @memberof MunchiPaySessionDto
10000
+ */
10001
+ 'updatedAt': string;
10002
+ }
9918
10003
  /**
9919
10004
  *
9920
10005
  * @export
@@ -24839,6 +24924,69 @@ export interface VideoBackgroundConfig {
24839
24924
  */
24840
24925
  'loop'?: boolean;
24841
24926
  }
24927
+ /**
24928
+ *
24929
+ * @export
24930
+ * @interface VivaA2aRefundDto
24931
+ */
24932
+ export interface VivaA2aRefundDto {
24933
+ /**
24934
+ * The internal business ID.
24935
+ * @type {number}
24936
+ * @memberof VivaA2aRefundDto
24937
+ */
24938
+ 'businessId': number;
24939
+ /**
24940
+ * The Viva transaction ID of the charge to refund.
24941
+ * @type {string}
24942
+ * @memberof VivaA2aRefundDto
24943
+ */
24944
+ 'transactionId': string;
24945
+ /**
24946
+ * Refund amount in the smallest currency unit (e.g., cents).
24947
+ * @type {number}
24948
+ * @memberof VivaA2aRefundDto
24949
+ */
24950
+ 'amount': number;
24951
+ }
24952
+ /**
24953
+ *
24954
+ * @export
24955
+ * @interface VivaA2aSessionDetailResponseDto
24956
+ */
24957
+ export interface VivaA2aSessionDetailResponseDto {
24958
+ /**
24959
+ *
24960
+ * @type {MunchiPaySessionDto}
24961
+ * @memberof VivaA2aSessionDetailResponseDto
24962
+ */
24963
+ 'session': MunchiPaySessionDto;
24964
+ /**
24965
+ * REFUND rows linked back to this session\'s Viva transaction ID.
24966
+ * @type {Array<MunchiPaySessionDto>}
24967
+ * @memberof VivaA2aSessionDetailResponseDto
24968
+ */
24969
+ 'refunds': Array<MunchiPaySessionDto>;
24970
+ }
24971
+ /**
24972
+ *
24973
+ * @export
24974
+ * @interface VivaA2aSessionListResponseDto
24975
+ */
24976
+ export interface VivaA2aSessionListResponseDto {
24977
+ /**
24978
+ *
24979
+ * @type {Array<MunchiPaySessionDto>}
24980
+ * @memberof VivaA2aSessionListResponseDto
24981
+ */
24982
+ 'sessions': Array<MunchiPaySessionDto>;
24983
+ /**
24984
+ *
24985
+ * @type {PaginationDto}
24986
+ * @memberof VivaA2aSessionListResponseDto
24987
+ */
24988
+ 'pagination': PaginationDto;
24989
+ }
24842
24990
  /**
24843
24991
  *
24844
24992
  * @export
@@ -39680,6 +39828,33 @@ export declare const VivaApiAxiosParamCreator: (configuration?: Configuration) =
39680
39828
  * @throws {RequiredError}
39681
39829
  */
39682
39830
  createVivaAppToAppPayment: (createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39831
+ /**
39832
+ *
39833
+ * @summary Get a single Viva payment session, with linked refunds
39834
+ * @param {string} id
39835
+ * @param {*} [options] Override http request option.
39836
+ * @throws {RequiredError}
39837
+ */
39838
+ getVivaSession: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39839
+ /**
39840
+ *
39841
+ * @summary List Viva payment sessions for a business
39842
+ * @param {number} businessId The internal business ID.
39843
+ * @param {number} [page] Page number
39844
+ * @param {number} [rowPerPage] Number of rows per page
39845
+ * @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
39846
+ * @param {*} [options] Override http request option.
39847
+ * @throws {RequiredError}
39848
+ */
39849
+ listVivaSessions: (businessId: number, page?: number, rowPerPage?: number, terminalId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39850
+ /**
39851
+ *
39852
+ * @summary Refund a Viva transaction
39853
+ * @param {VivaA2aRefundDto} vivaA2aRefundDto
39854
+ * @param {*} [options] Override http request option.
39855
+ * @throws {RequiredError}
39856
+ */
39857
+ refundVivaPayment: (vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39683
39858
  };
39684
39859
  /**
39685
39860
  * VivaApi - functional programming interface
@@ -39694,6 +39869,33 @@ export declare const VivaApiFp: (configuration?: Configuration) => {
39694
39869
  * @throws {RequiredError}
39695
39870
  */
39696
39871
  createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaAppToAppInitResponseDto>>;
39872
+ /**
39873
+ *
39874
+ * @summary Get a single Viva payment session, with linked refunds
39875
+ * @param {string} id
39876
+ * @param {*} [options] Override http request option.
39877
+ * @throws {RequiredError}
39878
+ */
39879
+ getVivaSession(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaA2aSessionDetailResponseDto>>;
39880
+ /**
39881
+ *
39882
+ * @summary List Viva payment sessions for a business
39883
+ * @param {number} businessId The internal business ID.
39884
+ * @param {number} [page] Page number
39885
+ * @param {number} [rowPerPage] Number of rows per page
39886
+ * @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
39887
+ * @param {*} [options] Override http request option.
39888
+ * @throws {RequiredError}
39889
+ */
39890
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaA2aSessionListResponseDto>>;
39891
+ /**
39892
+ *
39893
+ * @summary Refund a Viva transaction
39894
+ * @param {VivaA2aRefundDto} vivaA2aRefundDto
39895
+ * @param {*} [options] Override http request option.
39896
+ * @throws {RequiredError}
39897
+ */
39898
+ refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MunchiPaySessionDto>>;
39697
39899
  };
39698
39900
  /**
39699
39901
  * VivaApi - factory interface
@@ -39708,6 +39910,33 @@ export declare const VivaApiFactory: (configuration?: Configuration, basePath?:
39708
39910
  * @throws {RequiredError}
39709
39911
  */
39710
39912
  createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: any): AxiosPromise<VivaAppToAppInitResponseDto>;
39913
+ /**
39914
+ *
39915
+ * @summary Get a single Viva payment session, with linked refunds
39916
+ * @param {string} id
39917
+ * @param {*} [options] Override http request option.
39918
+ * @throws {RequiredError}
39919
+ */
39920
+ getVivaSession(id: string, options?: any): AxiosPromise<VivaA2aSessionDetailResponseDto>;
39921
+ /**
39922
+ *
39923
+ * @summary List Viva payment sessions for a business
39924
+ * @param {number} businessId The internal business ID.
39925
+ * @param {number} [page] Page number
39926
+ * @param {number} [rowPerPage] Number of rows per page
39927
+ * @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
39928
+ * @param {*} [options] Override http request option.
39929
+ * @throws {RequiredError}
39930
+ */
39931
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, options?: any): AxiosPromise<VivaA2aSessionListResponseDto>;
39932
+ /**
39933
+ *
39934
+ * @summary Refund a Viva transaction
39935
+ * @param {VivaA2aRefundDto} vivaA2aRefundDto
39936
+ * @param {*} [options] Override http request option.
39937
+ * @throws {RequiredError}
39938
+ */
39939
+ refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: any): AxiosPromise<MunchiPaySessionDto>;
39711
39940
  };
39712
39941
  /**
39713
39942
  * VivaApi - interface
@@ -39724,6 +39953,36 @@ export interface VivaApiInterface {
39724
39953
  * @memberof VivaApiInterface
39725
39954
  */
39726
39955
  createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig): AxiosPromise<VivaAppToAppInitResponseDto>;
39956
+ /**
39957
+ *
39958
+ * @summary Get a single Viva payment session, with linked refunds
39959
+ * @param {string} id
39960
+ * @param {*} [options] Override http request option.
39961
+ * @throws {RequiredError}
39962
+ * @memberof VivaApiInterface
39963
+ */
39964
+ getVivaSession(id: string, options?: AxiosRequestConfig): AxiosPromise<VivaA2aSessionDetailResponseDto>;
39965
+ /**
39966
+ *
39967
+ * @summary List Viva payment sessions for a business
39968
+ * @param {number} businessId The internal business ID.
39969
+ * @param {number} [page] Page number
39970
+ * @param {number} [rowPerPage] Number of rows per page
39971
+ * @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
39972
+ * @param {*} [options] Override http request option.
39973
+ * @throws {RequiredError}
39974
+ * @memberof VivaApiInterface
39975
+ */
39976
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, options?: AxiosRequestConfig): AxiosPromise<VivaA2aSessionListResponseDto>;
39977
+ /**
39978
+ *
39979
+ * @summary Refund a Viva transaction
39980
+ * @param {VivaA2aRefundDto} vivaA2aRefundDto
39981
+ * @param {*} [options] Override http request option.
39982
+ * @throws {RequiredError}
39983
+ * @memberof VivaApiInterface
39984
+ */
39985
+ refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig): AxiosPromise<MunchiPaySessionDto>;
39727
39986
  }
39728
39987
  /**
39729
39988
  * VivaApi - object-oriented interface
@@ -39741,6 +40000,36 @@ export declare class VivaApi extends BaseAPI implements VivaApiInterface {
39741
40000
  * @memberof VivaApi
39742
40001
  */
39743
40002
  createVivaAppToAppPayment(createTerminalPaymentDto: CreateTerminalPaymentDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VivaAppToAppInitResponseDto, any, {}>>;
40003
+ /**
40004
+ *
40005
+ * @summary Get a single Viva payment session, with linked refunds
40006
+ * @param {string} id
40007
+ * @param {*} [options] Override http request option.
40008
+ * @throws {RequiredError}
40009
+ * @memberof VivaApi
40010
+ */
40011
+ getVivaSession(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VivaA2aSessionDetailResponseDto, any, {}>>;
40012
+ /**
40013
+ *
40014
+ * @summary List Viva payment sessions for a business
40015
+ * @param {number} businessId The internal business ID.
40016
+ * @param {number} [page] Page number
40017
+ * @param {number} [rowPerPage] Number of rows per page
40018
+ * @param {string} [terminalId] Optional terminal identifier filter (same concept as ConnectedTerminal.terminalId).
40019
+ * @param {*} [options] Override http request option.
40020
+ * @throws {RequiredError}
40021
+ * @memberof VivaApi
40022
+ */
40023
+ listVivaSessions(businessId: number, page?: number, rowPerPage?: number, terminalId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VivaA2aSessionListResponseDto, any, {}>>;
40024
+ /**
40025
+ *
40026
+ * @summary Refund a Viva transaction
40027
+ * @param {VivaA2aRefundDto} vivaA2aRefundDto
40028
+ * @param {*} [options] Override http request option.
40029
+ * @throws {RequiredError}
40030
+ * @memberof VivaApi
40031
+ */
40032
+ refundVivaPayment(vivaA2aRefundDto: VivaA2aRefundDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<MunchiPaySessionDto, any, {}>>;
39744
40033
  }
39745
40034
  /**
39746
40035
  * WebhookApi - axios parameter creator