@munchi_oy/core 1.9.98 → 1.9.99
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 +66 -11
- 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/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +103 -11
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -19302,6 +19296,25 @@ export interface RefundedItemDto {
|
|
|
19302
19296
|
*/
|
|
19303
19297
|
'amount': number;
|
|
19304
19298
|
}
|
|
19299
|
+
/**
|
|
19300
|
+
*
|
|
19301
|
+
* @export
|
|
19302
|
+
* @interface RegisterChargeMappingDto
|
|
19303
|
+
*/
|
|
19304
|
+
export interface RegisterChargeMappingDto {
|
|
19305
|
+
/**
|
|
19306
|
+
* POS-generated id for this charge attempt (from the pay-terminal Ably relay).
|
|
19307
|
+
* @type {string}
|
|
19308
|
+
* @memberof RegisterChargeMappingDto
|
|
19309
|
+
*/
|
|
19310
|
+
'chargeId': string;
|
|
19311
|
+
/**
|
|
19312
|
+
* 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).
|
|
19313
|
+
* @type {string}
|
|
19314
|
+
* @memberof RegisterChargeMappingDto
|
|
19315
|
+
*/
|
|
19316
|
+
'sessionId': string;
|
|
19317
|
+
}
|
|
19305
19318
|
/**
|
|
19306
19319
|
*
|
|
19307
19320
|
* @export
|
|
@@ -35448,13 +35461,21 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
|
|
|
35448
35461
|
*/
|
|
35449
35462
|
initiateWorldlineSession: (initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35450
35463
|
/**
|
|
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.
|
|
35464
|
+
* 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
35465
|
* @summary Poll a charge\'s outcome by chargeId.
|
|
35453
35466
|
* @param {string} chargeId
|
|
35454
35467
|
* @param {*} [options] Override http request option.
|
|
35455
35468
|
* @throws {RequiredError}
|
|
35456
35469
|
*/
|
|
35457
35470
|
paymentSessionGetChargeStatus: (chargeId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35471
|
+
/**
|
|
35472
|
+
* 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.
|
|
35473
|
+
* @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
|
|
35474
|
+
* @param {RegisterChargeMappingDto} registerChargeMappingDto
|
|
35475
|
+
* @param {*} [options] Override http request option.
|
|
35476
|
+
* @throws {RequiredError}
|
|
35477
|
+
*/
|
|
35478
|
+
paymentSessionRegisterChargeMapping: (registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35458
35479
|
/**
|
|
35459
35480
|
* 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
35481
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -35603,13 +35624,21 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
|
|
|
35603
35624
|
*/
|
|
35604
35625
|
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateWorldlineSessionResponseDto>>;
|
|
35605
35626
|
/**
|
|
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.
|
|
35627
|
+
* 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
35628
|
* @summary Poll a charge\'s outcome by chargeId.
|
|
35608
35629
|
* @param {string} chargeId
|
|
35609
35630
|
* @param {*} [options] Override http request option.
|
|
35610
35631
|
* @throws {RequiredError}
|
|
35611
35632
|
*/
|
|
35612
35633
|
paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargeStatusResponseDto>>;
|
|
35634
|
+
/**
|
|
35635
|
+
* 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.
|
|
35636
|
+
* @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
|
|
35637
|
+
* @param {RegisterChargeMappingDto} registerChargeMappingDto
|
|
35638
|
+
* @param {*} [options] Override http request option.
|
|
35639
|
+
* @throws {RequiredError}
|
|
35640
|
+
*/
|
|
35641
|
+
paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
35613
35642
|
/**
|
|
35614
35643
|
* 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
35644
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -35758,13 +35787,21 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
|
|
|
35758
35787
|
*/
|
|
35759
35788
|
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: any): AxiosPromise<InitiateWorldlineSessionResponseDto>;
|
|
35760
35789
|
/**
|
|
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.
|
|
35790
|
+
* 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
35791
|
* @summary Poll a charge\'s outcome by chargeId.
|
|
35763
35792
|
* @param {string} chargeId
|
|
35764
35793
|
* @param {*} [options] Override http request option.
|
|
35765
35794
|
* @throws {RequiredError}
|
|
35766
35795
|
*/
|
|
35767
35796
|
paymentSessionGetChargeStatus(chargeId: string, options?: any): AxiosPromise<ChargeStatusResponseDto>;
|
|
35797
|
+
/**
|
|
35798
|
+
* 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.
|
|
35799
|
+
* @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
|
|
35800
|
+
* @param {RegisterChargeMappingDto} registerChargeMappingDto
|
|
35801
|
+
* @param {*} [options] Override http request option.
|
|
35802
|
+
* @throws {RequiredError}
|
|
35803
|
+
*/
|
|
35804
|
+
paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: any): AxiosPromise<void>;
|
|
35768
35805
|
/**
|
|
35769
35806
|
* 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
35807
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -35921,7 +35958,7 @@ export interface PaymentSessionApiInterface {
|
|
|
35921
35958
|
*/
|
|
35922
35959
|
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): AxiosPromise<InitiateWorldlineSessionResponseDto>;
|
|
35923
35960
|
/**
|
|
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.
|
|
35961
|
+
* 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
35962
|
* @summary Poll a charge\'s outcome by chargeId.
|
|
35926
35963
|
* @param {string} chargeId
|
|
35927
35964
|
* @param {*} [options] Override http request option.
|
|
@@ -35929,6 +35966,15 @@ export interface PaymentSessionApiInterface {
|
|
|
35929
35966
|
* @memberof PaymentSessionApiInterface
|
|
35930
35967
|
*/
|
|
35931
35968
|
paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): AxiosPromise<ChargeStatusResponseDto>;
|
|
35969
|
+
/**
|
|
35970
|
+
* 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.
|
|
35971
|
+
* @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
|
|
35972
|
+
* @param {RegisterChargeMappingDto} registerChargeMappingDto
|
|
35973
|
+
* @param {*} [options] Override http request option.
|
|
35974
|
+
* @throws {RequiredError}
|
|
35975
|
+
* @memberof PaymentSessionApiInterface
|
|
35976
|
+
*/
|
|
35977
|
+
paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
35932
35978
|
/**
|
|
35933
35979
|
* 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
35980
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|
|
@@ -36096,7 +36142,7 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
36096
36142
|
*/
|
|
36097
36143
|
initiateWorldlineSession(initiateWorldlineSessionDto: InitiateWorldlineSessionDto, xIdempotencyKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateWorldlineSessionResponseDto, any, {}>>;
|
|
36098
36144
|
/**
|
|
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.
|
|
36145
|
+
* 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
36146
|
* @summary Poll a charge\'s outcome by chargeId.
|
|
36101
36147
|
* @param {string} chargeId
|
|
36102
36148
|
* @param {*} [options] Override http request option.
|
|
@@ -36104,6 +36150,15 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
|
|
|
36104
36150
|
* @memberof PaymentSessionApi
|
|
36105
36151
|
*/
|
|
36106
36152
|
paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChargeStatusResponseDto, any, {}>>;
|
|
36153
|
+
/**
|
|
36154
|
+
* 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.
|
|
36155
|
+
* @summary Register a POS-generated chargeId against a Viva session so its outcome can be polled.
|
|
36156
|
+
* @param {RegisterChargeMappingDto} registerChargeMappingDto
|
|
36157
|
+
* @param {*} [options] Override http request option.
|
|
36158
|
+
* @throws {RequiredError}
|
|
36159
|
+
* @memberof PaymentSessionApi
|
|
36160
|
+
*/
|
|
36161
|
+
paymentSessionRegisterChargeMapping(registerChargeMappingDto: RegisterChargeMappingDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
36107
36162
|
/**
|
|
36108
36163
|
* 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
36164
|
* @summary Internal: long-poll Viva for a stuck payment session (Cloud Task callback)
|