@managesome/eposmatic-toolkit 0.2.648 → 0.2.649
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.
|
@@ -34,6 +34,7 @@ export declare const WORKER_ENDPOINTS: {
|
|
|
34
34
|
readonly SYNC_SWITCHPAY_PAYMENT_SUCCESS: "/sync-switchpay-payment-success";
|
|
35
35
|
readonly SYNC_SWITCHPAY_PAYMENT_STATUS: "/sync-switchpay-payment-status";
|
|
36
36
|
readonly SYNC_ASAANBILL_PAYMENT_STATUS: "/sync-asaanbill-payment-status";
|
|
37
|
+
readonly REGEN_ASAANBILL_DQRC_AMOUNT: "/regen-asaanbill-dqrc-amount";
|
|
37
38
|
readonly PROCESS_STRIPE_PAYMENT_POLLING: "/process-stripe-payment-polling";
|
|
38
39
|
readonly SYNC_STRIPE_PAYMENT_SUCCESS: "/sync-stripe-payment-success";
|
|
39
40
|
readonly UPDATE_ORDER_STATUS_ON_DELIVERY_STATUS_UPDATE: "/update-order-status-on-delivery-status-update";
|
|
@@ -42,6 +42,7 @@ exports.WORKER_ENDPOINTS = {
|
|
|
42
42
|
SYNC_SWITCHPAY_PAYMENT_STATUS: '/sync-switchpay-payment-status',
|
|
43
43
|
// ========================>> Payment (AsaanBill) <<======================= //
|
|
44
44
|
SYNC_ASAANBILL_PAYMENT_STATUS: '/sync-asaanbill-payment-status',
|
|
45
|
+
REGEN_ASAANBILL_DQRC_AMOUNT: '/regen-asaanbill-dqrc-amount',
|
|
45
46
|
// ========================>> Payment (Stripe) <<======================= //
|
|
46
47
|
PROCESS_STRIPE_PAYMENT_POLLING: '/process-stripe-payment-polling',
|
|
47
48
|
SYNC_STRIPE_PAYMENT_SUCCESS: '/sync-stripe-payment-success',
|
|
@@ -228,6 +228,30 @@ export interface IWorker_SyncAsaanBillPaymentStatus {
|
|
|
228
228
|
account_title?: string;
|
|
229
229
|
iban?: string;
|
|
230
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* Regenerates a pending RAAST (AsaanBill DQRC) payment for a NEW amount.
|
|
233
|
+
*
|
|
234
|
+
* AsaanBill has no update-amount API — updating means re-adding with the SAME
|
|
235
|
+
* identifier (`order_payment:<order_id>:<payment_id>`, stable because
|
|
236
|
+
* payment_id is unchanged), which DISCARDs the previous unpaid QR and returns a
|
|
237
|
+
* fresh id/psid/qrString. The worker patches the new amount + QR onto the same
|
|
238
|
+
* payment row and emits an updated-order event so the POS refreshes in realtime.
|
|
239
|
+
*/
|
|
240
|
+
export interface IWorker_RegenAsaanBillDqrcAmount {
|
|
241
|
+
order_id: string;
|
|
242
|
+
tenant_id: string;
|
|
243
|
+
/** The order payment row _id — keeps the AsaanBill identifier stable across regens. */
|
|
244
|
+
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
|
+
/** Tenant display name used in the AsaanBill payment title/description. */
|
|
250
|
+
tenant_name: string;
|
|
251
|
+
order_number?: number | null;
|
|
252
|
+
longitude?: number;
|
|
253
|
+
latitude?: number;
|
|
254
|
+
}
|
|
231
255
|
export interface IWorker_UpdateTenantInventoryOnCreateOrder {
|
|
232
256
|
order: IOrder;
|
|
233
257
|
isInventoryEnabled: boolean;
|