@pisell/pisellos 0.0.235 → 0.0.237
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/modules/Payment/types.d.ts +46 -1
- package/dist/modules/Payment/types.js +15 -0
- package/dist/modules/Payment/walletpass.js +37 -12
- package/dist/solution/Checkout/index.d.ts +23 -1
- package/dist/solution/Checkout/index.js +1092 -885
- package/dist/solution/Checkout/types.d.ts +11 -1
- package/dist/solution/Checkout/types.js +1 -0
- package/lib/modules/Payment/types.d.ts +46 -1
- package/lib/modules/Payment/types.js +3 -0
- package/lib/modules/Payment/walletpass.js +28 -3
- package/lib/solution/Checkout/index.d.ts +23 -1
- package/lib/solution/Checkout/index.js +334 -121
- package/lib/solution/Checkout/types.d.ts +11 -1
- package/lib/solution/Checkout/types.js +1 -0
- package/package.json +1 -1
|
@@ -391,7 +391,9 @@ export declare enum CheckoutHooks {
|
|
|
391
391
|
/** 商店折扣变更 */
|
|
392
392
|
OnShopDiscountChanged = "checkout:onShopDiscountChanged",
|
|
393
393
|
/** 订单取消 */
|
|
394
|
-
OnOrderCancelled = "checkout:onOrderCancelled"
|
|
394
|
+
OnOrderCancelled = "checkout:onOrderCancelled",
|
|
395
|
+
/** 订单状态已清理 */
|
|
396
|
+
OnOrderCleared = "checkout:onOrderCleared"
|
|
395
397
|
}
|
|
396
398
|
/**
|
|
397
399
|
* 结账状态数据
|
|
@@ -814,4 +816,12 @@ export interface CheckoutEventData {
|
|
|
814
816
|
wasSynced: boolean;
|
|
815
817
|
timestamp: number;
|
|
816
818
|
};
|
|
819
|
+
/** 订单状态清理事件 */
|
|
820
|
+
orderCleared: {
|
|
821
|
+
previousOrder?: {
|
|
822
|
+
uuid: string;
|
|
823
|
+
orderId: string;
|
|
824
|
+
} | null;
|
|
825
|
+
timestamp: number;
|
|
826
|
+
};
|
|
817
827
|
}
|
|
@@ -70,6 +70,7 @@ var CheckoutHooks = /* @__PURE__ */ ((CheckoutHooks2) => {
|
|
|
70
70
|
CheckoutHooks2["OnOrderNoteChanged"] = "checkout:onOrderNoteChanged";
|
|
71
71
|
CheckoutHooks2["OnShopDiscountChanged"] = "checkout:onShopDiscountChanged";
|
|
72
72
|
CheckoutHooks2["OnOrderCancelled"] = "checkout:onOrderCancelled";
|
|
73
|
+
CheckoutHooks2["OnOrderCleared"] = "checkout:onOrderCleared";
|
|
73
74
|
return CheckoutHooks2;
|
|
74
75
|
})(CheckoutHooks || {});
|
|
75
76
|
// Annotate the CommonJS export names for ESM import in node:
|