@munchi_oy/core 1.9.97 → 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.
@@ -19309,17 +19309,11 @@ export interface RegisterChargeMappingDto {
19309
19309
  */
19310
19310
  'chargeId': string;
19311
19311
  /**
19312
- * The order this charge belongs to (matches the Viva session\'s referenceId).
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
19313
  * @type {string}
19314
19314
  * @memberof RegisterChargeMappingDto
19315
19315
  */
19316
- 'orderId': string;
19317
- /**
19318
- * The business the order belongs to.
19319
- * @type {number}
19320
- * @memberof RegisterChargeMappingDto
19321
- */
19322
- 'businessId': number;
19316
+ 'sessionId': string;
19323
19317
  }
19324
19318
  /**
19325
19319
  *
@@ -35475,8 +35469,8 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
35475
35469
  */
35476
35470
  paymentSessionGetChargeStatus: (chargeId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35477
35471
  /**
35478
- * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
35479
- * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
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.
35480
35474
  * @param {RegisterChargeMappingDto} registerChargeMappingDto
35481
35475
  * @param {*} [options] Override http request option.
35482
35476
  * @throws {RequiredError}
@@ -35638,8 +35632,8 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
35638
35632
  */
35639
35633
  paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargeStatusResponseDto>>;
35640
35634
  /**
35641
- * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
35642
- * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
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.
35643
35637
  * @param {RegisterChargeMappingDto} registerChargeMappingDto
35644
35638
  * @param {*} [options] Override http request option.
35645
35639
  * @throws {RequiredError}
@@ -35801,8 +35795,8 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
35801
35795
  */
35802
35796
  paymentSessionGetChargeStatus(chargeId: string, options?: any): AxiosPromise<ChargeStatusResponseDto>;
35803
35797
  /**
35804
- * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
35805
- * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
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.
35806
35800
  * @param {RegisterChargeMappingDto} registerChargeMappingDto
35807
35801
  * @param {*} [options] Override http request option.
35808
35802
  * @throws {RequiredError}
@@ -35973,8 +35967,8 @@ export interface PaymentSessionApiInterface {
35973
35967
  */
35974
35968
  paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): AxiosPromise<ChargeStatusResponseDto>;
35975
35969
  /**
35976
- * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
35977
- * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
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.
35978
35972
  * @param {RegisterChargeMappingDto} registerChargeMappingDto
35979
35973
  * @param {*} [options] Override http request option.
35980
35974
  * @throws {RequiredError}
@@ -36157,8 +36151,8 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
36157
36151
  */
36158
36152
  paymentSessionGetChargeStatus(chargeId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ChargeStatusResponseDto, any, {}>>;
36159
36153
  /**
36160
- * Called by the paying device (e.g. a paired Munchi Pay terminal) right as it starts a charge relayed from the POS over Ably, so the POS can fall back to polling if the Ably charge_result message never arrives.
36161
- * @summary Register a POS-generated chargeId against an order so its outcome can be polled.
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.
36162
36156
  * @param {RegisterChargeMappingDto} registerChargeMappingDto
36163
36157
  * @param {*} [options] Override http request option.
36164
36158
  * @throws {RequiredError}