@munchi_oy/core 1.9.98 → 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.
@@ -6813,12 +6813,6 @@ export interface InitiateVivaA2aSessionDto {
6813
6813
  * @memberof InitiateVivaA2aSessionDto
6814
6814
  */
6815
6815
  'splitContext'?: CreateManualSessionDtoSplitContext;
6816
- /**
6817
- * Pay-terminal chargeId (from the pay-terminal-protocol relay) for this attempt. Stamped onto the session\'s metadata so the charge-status fallback can address this exact attempt directly, even when other charges are concurrently in flight on the same order (e.g. a split payment dispatched to a different paired terminal).
6818
- * @type {string}
6819
- * @memberof InitiateVivaA2aSessionDto
6820
- */
6821
- 'chargeId'?: string;
6822
6816
  }
6823
6817
  /**
6824
6818
  *
@@ -9921,6 +9915,91 @@ export interface MunchiGiftCardDataItemDto {
9921
9915
  */
9922
9916
  'createdAt': string;
9923
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
+ }
9924
10003
  /**
9925
10004
  *
9926
10005
  * @export
@@ -19302,6 +19381,25 @@ export interface RefundedItemDto {
19302
19381
  */
19303
19382
  'amount': number;
19304
19383
  }
19384
+ /**
19385
+ *
19386
+ * @export
19387
+ * @interface RegisterChargeMappingDto
19388
+ */
19389
+ export interface RegisterChargeMappingDto {
19390
+ /**
19391
+ * POS-generated id for this charge attempt (from the pay-terminal Ably relay).
19392
+ * @type {string}
19393
+ * @memberof RegisterChargeMappingDto
19394
+ */
19395
+ 'chargeId': string;
19396
+ /**
19397
+ * The Viva app-to-app session\'s sessionId (== clientTransactionId). Known on the paying device once the SDK\'s onRequiresInput callback fires, right after the session is created and before the card is tapped. Globally unique per attempt, so this mapping can\'t collide with a concurrent charge on the same order (e.g. a split payment on another terminal).
19398
+ * @type {string}
19399
+ * @memberof RegisterChargeMappingDto
19400
+ */
19401
+ 'sessionId': string;
19402
+ }
19305
19403
  /**
19306
19404
  *
19307
19405
  * @export
@@ -24826,6 +24924,69 @@ export interface VideoBackgroundConfig {
24826
24924
  */
24827
24925
  'loop'?: boolean;
24828
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
+ }
24829
24990
  /**
24830
24991
  *
24831
24992
  * @export
@@ -35448,13 +35609,21 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
35448
35609
  */
35449
35610
  initiateWorldlineSession: (initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35450
35611
  /**
35451
- * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity. chargeId is stamped onto the session\'s own metadata at /viva/a2a initiate time, so this addresses one specific charge attempt even when other charges are concurrently in flight on the same order (e.g. a split payment across multiple paired terminals).
35612
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
35452
35613
  * @summary Poll a charge\'s outcome by chargeId.
35453
35614
  * @param {string} chargeId
35454
35615
  * @param {*} [options] Override http request option.
35455
35616
  * @throws {RequiredError}
35456
35617
  */
35457
35618
  paymentSessionGetChargeStatus: (chargeId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35619
+ /**
35620
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) once the Viva app-to-app session is created (sessionId known via the SDK\'s onRequiresInput callback), so the POS can fall back to polling if the Ably charge_result message never arrives.
35621
+ * @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
35622
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
35623
+ * @param {*} [options] Override http request option.
35624
+ * @throws {RequiredError}
35625
+ */
35626
+ paymentSessionRegisterChargeMapping: (registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35458
35627
  /**
35459
35628
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
35460
35629
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -35603,13 +35772,21 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
35603
35772
  */
35604
35773
  initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateWorldlineSessionResponseDto>>;
35605
35774
  /**
35606
- * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity. chargeId is stamped onto the session\'s own metadata at /viva/a2a initiate time, so this addresses one specific charge attempt even when other charges are concurrently in flight on the same order (e.g. a split payment across multiple paired terminals).
35775
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
35607
35776
  * @summary Poll a charge\'s outcome by chargeId.
35608
35777
  * @param {string} chargeId
35609
35778
  * @param {*} [options] Override http request option.
35610
35779
  * @throws {RequiredError}
35611
35780
  */
35612
35781
  paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargeStatusResponseDto>>;
35782
+ /**
35783
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) once the Viva app-to-app session is created (sessionId known via the SDK\'s onRequiresInput callback), so the POS can fall back to polling if the Ably charge_result message never arrives.
35784
+ * @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
35785
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
35786
+ * @param {*} [options] Override http request option.
35787
+ * @throws {RequiredError}
35788
+ */
35789
+ paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
35613
35790
  /**
35614
35791
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
35615
35792
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -35758,13 +35935,21 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
35758
35935
  */
35759
35936
  initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateWorldlineSessionResponseDto>;
35760
35937
  /**
35761
- * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity. chargeId is stamped onto the session\'s own metadata at /viva/a2a initiate time, so this addresses one specific charge attempt even when other charges are concurrently in flight on the same order (e.g. a split payment across multiple paired terminals).
35938
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
35762
35939
  * @summary Poll a charge\'s outcome by chargeId.
35763
35940
  * @param {string} chargeId
35764
35941
  * @param {*} [options] Override http request option.
35765
35942
  * @throws {RequiredError}
35766
35943
  */
35767
35944
  paymentSessionGetChargeStatus(chargeId: string, options?: any): AxiosPromise<ChargeStatusResponseDto>;
35945
+ /**
35946
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) once the Viva app-to-app session is created (sessionId known via the SDK\'s onRequiresInput callback), so the POS can fall back to polling if the Ably charge_result message never arrives.
35947
+ * @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
35948
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
35949
+ * @param {*} [options] Override http request option.
35950
+ * @throws {RequiredError}
35951
+ */
35952
+ paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: any): AxiosPromise<void>;
35768
35953
  /**
35769
35954
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
35770
35955
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -35921,7 +36106,7 @@ export interface PaymentSessionApiInterface {
35921
36106
  */
35922
36107
  initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateWorldlineSessionResponseDto>;
35923
36108
  /**
35924
- * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity. chargeId is stamped onto the session\'s own metadata at /viva/a2a initiate time, so this addresses one specific charge attempt even when other charges are concurrently in flight on the same order (e.g. a split payment across multiple paired terminals).
36109
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
35925
36110
  * @summary Poll a charge\'s outcome by chargeId.
35926
36111
  * @param {string} chargeId
35927
36112
  * @param {*} [options] Override http request option.
@@ -35929,6 +36114,15 @@ export interface PaymentSessionApiInterface {
35929
36114
  * @memberof PaymentSessionApiInterface
35930
36115
  */
35931
36116
  paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): AxiosPromise<ChargeStatusResponseDto>;
36117
+ /**
36118
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) once the Viva app-to-app session is created (sessionId known via the SDK\'s onRequiresInput callback), so the POS can fall back to polling if the Ably charge_result message never arrives.
36119
+ * @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
36120
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
36121
+ * @param {*} [options] Override http request option.
36122
+ * @throws {RequiredError}
36123
+ * @memberof PaymentSessionApiInterface
36124
+ */
36125
+ paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): AxiosPromise<void>;
35932
36126
  /**
35933
36127
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
35934
36128
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -36096,7 +36290,7 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
36096
36290
  */
36097
36291
  initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateWorldlineSessionResponseDto, any, {}>>;
36098
36292
  /**
36099
- * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity. chargeId is stamped onto the session\'s own metadata at /viva/a2a initiate time, so this addresses one specific charge attempt even when other charges are concurrently in flight on the same order (e.g. a split payment across multiple paired terminals).
36293
+ * Fallback for when the pay-terminal Ably charge_result message is lost to a flaky connection. Returns \'pending\' until the backend observes the underlying PaymentSession reach a terminal state, regardless of either device\'s connectivity.
36100
36294
  * @summary Poll a charge\'s outcome by chargeId.
36101
36295
  * @param {string} chargeId
36102
36296
  * @param {*} [options] Override http request option.
@@ -36104,6 +36298,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
36104
36298
  * @memberof PaymentSessionApi
36105
36299
  */
36106
36300
  paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChargeStatusResponseDto, any, {}>>;
36301
+ /**
36302
+ * Called by the paying device (e.g. a paired Munchi Pay terminal) once the Viva app-to-app session is created (sessionId known via the SDK\'s onRequiresInput callback), so the POS can fall back to polling if the Ably charge_result message never arrives.
36303
+ * @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
36304
+ * @param {RegisterChargeMappingDto} registerChargeMappingDto
36305
+ * @param {*} [options] Override http request option.
36306
+ * @throws {RequiredError}
36307
+ * @memberof PaymentSessionApi
36308
+ */
36309
+ paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
36107
36310
  /**
36108
36311
  * Called by a Cloud Task (not the client). Holds the request open and long-polls Viva by sessionId for up to ~45s. As soon as the transaction is terminal it updates the session status and, on success, triggers order reconciliation — guarded by a CAS claim (tryClose) so a late webhook never double-writes the paymentEvent — so the order closes even if the webhook never arrives.
36109
36312
  * @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
@@ -39625,6 +39828,33 @@ export declare const VivaApiAxiosParamCreator: (configuration?: Configuration) =
39625
39828
  * @throws {RequiredError}
39626
39829
  */
39627
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>;
39628
39858
  };
39629
39859
  /**
39630
39860
  * VivaApi - functional programming interface
@@ -39639,6 +39869,33 @@ export declare const VivaApiFp: (configuration?: Configuration) => {
39639
39869
  * @throws {RequiredError}
39640
39870
  */
39641
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>>;
39642
39899
  };
39643
39900
  /**
39644
39901
  * VivaApi - factory interface
@@ -39653,6 +39910,33 @@ export declare const VivaApiFactory: (configuration?: Configuration, basePath?:
39653
39910
  * @throws {RequiredError}
39654
39911
  */
39655
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>;
39656
39940
  };
39657
39941
  /**
39658
39942
  * VivaApi - interface
@@ -39669,6 +39953,36 @@ export interface VivaApiInterface {
39669
39953
  * @memberof VivaApiInterface
39670
39954
  */
39671
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>;
39672
39986
  }
39673
39987
  /**
39674
39988
  * VivaApi - object-oriented interface
@@ -39686,6 +40000,36 @@ export declare class VivaApi extends BaseAPI implements VivaApiInterface {
39686
40000
  * @memberof VivaApi
39687
40001
  */
39688
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, {}>>;
39689
40033
  }
39690
40034
  /**
39691
40035
  * WebhookApi - axios parameter creator