@managesome/eposmatic-toolkit 0.2.650 → 0.2.651
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.
|
@@ -236,16 +236,18 @@ export interface IWorker_SyncAsaanBillPaymentStatus {
|
|
|
236
236
|
* payment_id is unchanged), which DISCARDs the previous unpaid QR and returns a
|
|
237
237
|
* fresh id/psid/qrString. The worker patches the new amount + QR onto the same
|
|
238
238
|
* payment row and emits an updated-order event so the POS refreshes in realtime.
|
|
239
|
+
*
|
|
240
|
+
* The worker derives the rest itself from the saved order: the terminal
|
|
241
|
+
* `register_id` from the payment's `card_details.transaction_id` and the new
|
|
242
|
+
* amount from `getOrderPaymentsDetails(order.grand_total, order.payments)`
|
|
243
|
+
* (unpaid remainder). Items-service just needs to signal that a pending RAAST
|
|
244
|
+
* exists and the grand total changed.
|
|
239
245
|
*/
|
|
240
246
|
export interface IWorker_RegenAsaanBillDqrcAmount {
|
|
241
247
|
order_id: string;
|
|
242
248
|
tenant_id: string;
|
|
243
249
|
/** The order payment row _id — keeps the AsaanBill identifier stable across regens. */
|
|
244
250
|
payment_id: string;
|
|
245
|
-
/** RAAST terminal register_id used for AsaanBill auth + /add. */
|
|
246
|
-
register_id: string;
|
|
247
|
-
/** New QR amount in cents (unpaid remainder). */
|
|
248
|
-
amount_due: number;
|
|
249
251
|
/** Tenant display name used in the AsaanBill payment title/description. */
|
|
250
252
|
tenant_name: string;
|
|
251
253
|
order_number?: number | null;
|