@munchi_oy/core 1.9.40 → 1.9.41

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.
@@ -30673,13 +30673,21 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
30673
30673
  */
30674
30674
  recordManualPayment: (createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30675
30675
  /**
30676
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30677
- * @summary Refund a settled Viva payment session
30676
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30677
+ * @summary Refund a settled Viva payment session (gateway only)
30678
30678
  * @param {ReverseSessionDto} reverseSessionDto
30679
30679
  * @param {*} [options] Override http request option.
30680
30680
  * @throws {RequiredError}
30681
30681
  */
30682
30682
  refundVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30683
+ /**
30684
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30685
+ * @summary Revert (fully reverse) a settled Viva payment session
30686
+ * @param {ReverseSessionDto} reverseSessionDto
30687
+ * @param {*} [options] Override http request option.
30688
+ * @throws {RequiredError}
30689
+ */
30690
+ revertVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30683
30691
  /**
30684
30692
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30685
30693
  * @summary Void a manual payment session
@@ -30728,13 +30736,21 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
30728
30736
  */
30729
30737
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
30730
30738
  /**
30731
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30732
- * @summary Refund a settled Viva payment session
30739
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30740
+ * @summary Refund a settled Viva payment session (gateway only)
30733
30741
  * @param {ReverseSessionDto} reverseSessionDto
30734
30742
  * @param {*} [options] Override http request option.
30735
30743
  * @throws {RequiredError}
30736
30744
  */
30737
30745
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
30746
+ /**
30747
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30748
+ * @summary Revert (fully reverse) a settled Viva payment session
30749
+ * @param {ReverseSessionDto} reverseSessionDto
30750
+ * @param {*} [options] Override http request option.
30751
+ * @throws {RequiredError}
30752
+ */
30753
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
30738
30754
  /**
30739
30755
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30740
30756
  * @summary Void a manual payment session
@@ -30783,13 +30799,21 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
30783
30799
  */
30784
30800
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
30785
30801
  /**
30786
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30787
- * @summary Refund a settled Viva payment session
30802
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30803
+ * @summary Refund a settled Viva payment session (gateway only)
30788
30804
  * @param {ReverseSessionDto} reverseSessionDto
30789
30805
  * @param {*} [options] Override http request option.
30790
30806
  * @throws {RequiredError}
30791
30807
  */
30792
30808
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
30809
+ /**
30810
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30811
+ * @summary Revert (fully reverse) a settled Viva payment session
30812
+ * @param {ReverseSessionDto} reverseSessionDto
30813
+ * @param {*} [options] Override http request option.
30814
+ * @throws {RequiredError}
30815
+ */
30816
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
30793
30817
  /**
30794
30818
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30795
30819
  * @summary Void a manual payment session
@@ -30843,14 +30867,23 @@ export interface PaymentSessionApiInterface {
30843
30867
  */
30844
30868
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
30845
30869
  /**
30846
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30847
- * @summary Refund a settled Viva payment session
30870
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30871
+ * @summary Refund a settled Viva payment session (gateway only)
30848
30872
  * @param {ReverseSessionDto} reverseSessionDto
30849
30873
  * @param {*} [options] Override http request option.
30850
30874
  * @throws {RequiredError}
30851
30875
  * @memberof PaymentSessionApiInterface
30852
30876
  */
30853
30877
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
30878
+ /**
30879
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30880
+ * @summary Revert (fully reverse) a settled Viva payment session
30881
+ * @param {ReverseSessionDto} reverseSessionDto
30882
+ * @param {*} [options] Override http request option.
30883
+ * @throws {RequiredError}
30884
+ * @memberof PaymentSessionApiInterface
30885
+ */
30886
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
30854
30887
  /**
30855
30888
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30856
30889
  * @summary Void a manual payment session
@@ -30906,14 +30939,23 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
30906
30939
  */
30907
30940
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
30908
30941
  /**
30909
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30910
- * @summary Refund a settled Viva payment session
30942
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30943
+ * @summary Refund a settled Viva payment session (gateway only)
30911
30944
  * @param {ReverseSessionDto} reverseSessionDto
30912
30945
  * @param {*} [options] Override http request option.
30913
30946
  * @throws {RequiredError}
30914
30947
  * @memberof PaymentSessionApi
30915
30948
  */
30916
30949
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
30950
+ /**
30951
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30952
+ * @summary Revert (fully reverse) a settled Viva payment session
30953
+ * @param {ReverseSessionDto} reverseSessionDto
30954
+ * @param {*} [options] Override http request option.
30955
+ * @throws {RequiredError}
30956
+ * @memberof PaymentSessionApi
30957
+ */
30958
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
30917
30959
  /**
30918
30960
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30919
30961
  * @summary Void a manual payment session