UNPKG

@pisell/pisellos

Version:

一个可扩展的前端模块化SDK框架,支持插件系统

110 lines (108 loc) 5.71 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/modules/Payment/types.ts var types_exports = {}; __export(types_exports, { PaymentHooks: () => PaymentHooks, PaymentMethodType: () => PaymentMethodType, PaymentStatus: () => PaymentStatus, RoundingInterval: () => RoundingInterval, RoundingRule: () => RoundingRule, TaskRunStatus: () => TaskRunStatus, WalletPassHooks: () => WalletPassHooks }); module.exports = __toCommonJS(types_exports); var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => { PaymentMethodType2["Cash"] = "CASHMANUAL"; PaymentMethodType2["Eftpos"] = "EFTPOS"; PaymentMethodType2["Wallet"] = "WALLET"; return PaymentMethodType2; })(PaymentMethodType || {}); var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => { PaymentStatus2["Processing"] = "payment_processing"; PaymentStatus2["Sync"] = "sync"; PaymentStatus2["PartiallyPaid"] = "partially_paid"; PaymentStatus2["Finished"] = "finish"; PaymentStatus2["Voided"] = "voided"; return PaymentStatus2; })(PaymentStatus || {}); var TaskRunStatus = /* @__PURE__ */ ((TaskRunStatus2) => { TaskRunStatus2["Pending"] = "pending"; TaskRunStatus2["Running"] = "running"; TaskRunStatus2["Success"] = "success"; TaskRunStatus2["Failed"] = "failed"; return TaskRunStatus2; })(TaskRunStatus || {}); var RoundingRule = /* @__PURE__ */ ((RoundingRule2) => { RoundingRule2["Standard"] = "standard_rounding"; RoundingRule2["StandardDown"] = "standard_down"; RoundingRule2["AlwaysUp"] = "always_up"; RoundingRule2["AlwaysDown"] = "always_down"; return RoundingRule2; })(RoundingRule || {}); var RoundingInterval = /* @__PURE__ */ ((RoundingInterval2) => { RoundingInterval2[RoundingInterval2["Interval005"] = 0.05] = "Interval005"; RoundingInterval2[RoundingInterval2["Interval01"] = 0.1] = "Interval01"; RoundingInterval2[RoundingInterval2["Interval05"] = 0.5] = "Interval05"; RoundingInterval2[RoundingInterval2["Interval1"] = 1] = "Interval1"; return RoundingInterval2; })(RoundingInterval || {}); var WalletPassHooks = /* @__PURE__ */ ((WalletPassHooks2) => { WalletPassHooks2["OnWalletRecommendListUpdated"] = "wallet:onWalletRecommendListUpdated"; WalletPassHooks2["OnWalletRecommendListCleared"] = "wallet:onWalletRecommendListCleared"; WalletPassHooks2["OnUserIdentificationCodesUpdated"] = "wallet:onUserIdentificationCodesUpdated"; WalletPassHooks2["OnUserIdentificationCodesCleared"] = "wallet:onUserIdentificationCodesCleared"; WalletPassHooks2["OnWalletCacheCleared"] = "wallet:onWalletCacheCleared"; WalletPassHooks2["OnSearchIdentificationCodeCompleted"] = "wallet:onSearchIdentificationCodeCompleted"; WalletPassHooks2["OnWalletInitializationStarted"] = "wallet:onWalletInitializationStarted"; WalletPassHooks2["OnWalletInitializationCompleted"] = "wallet:onWalletInitializationCompleted"; WalletPassHooks2["OnWalletInitializationFailed"] = "wallet:onWalletInitializationFailed"; return WalletPassHooks2; })(WalletPassHooks || {}); var PaymentHooks = /* @__PURE__ */ ((PaymentHooks2) => { PaymentHooks2["OnPaymentMethodsLoaded"] = "payment:onPaymentMethodsLoaded"; PaymentHooks2["OnPaymentMethodsChanged"] = "payment:onPaymentMethodsChanged"; PaymentHooks2["OnOrderChanged"] = "payment:onOrderChanged"; PaymentHooks2["OnOrderAdded"] = "payment:onOrderAdded"; PaymentHooks2["OnOrderUpdated"] = "payment:onOrderUpdated"; PaymentHooks2["OnOrderDeleted"] = "payment:onOrderDeleted"; PaymentHooks2["OnPaymentAdded"] = "payment:onPaymentAdded"; PaymentHooks2["OnPaymentUpdated"] = "payment:onPaymentUpdated"; PaymentHooks2["OnPaymentDeleted"] = "payment:onPaymentDeleted"; PaymentHooks2["OnPaymentSubmitted"] = "payment:onPaymentSubmitted"; PaymentHooks2["OnOrderAmountChanged"] = "payment:onOrderAmountChanged"; PaymentHooks2["OnPaymentSyncError"] = "payment:onPaymentSyncError"; PaymentHooks2["OnPaymentSyncSuccess"] = "payment:onPaymentSyncSuccess"; PaymentHooks2["OnWalletRecommendListUpdated"] = "wallet:onWalletRecommendListUpdated" /* OnWalletRecommendListUpdated */; PaymentHooks2["OnWalletRecommendListCleared"] = "wallet:onWalletRecommendListCleared" /* OnWalletRecommendListCleared */; PaymentHooks2["OnUserIdentificationCodesUpdated"] = "wallet:onUserIdentificationCodesUpdated" /* OnUserIdentificationCodesUpdated */; PaymentHooks2["OnUserIdentificationCodesCleared"] = "wallet:onUserIdentificationCodesCleared" /* OnUserIdentificationCodesCleared */; PaymentHooks2["OnWalletCacheCleared"] = "wallet:onWalletCacheCleared" /* OnWalletCacheCleared */; PaymentHooks2["OnSearchIdentificationCodeCompleted"] = "wallet:onSearchIdentificationCodeCompleted" /* OnSearchIdentificationCodeCompleted */; return PaymentHooks2; })(PaymentHooks || {}); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { PaymentHooks, PaymentMethodType, PaymentStatus, RoundingInterval, RoundingRule, TaskRunStatus, WalletPassHooks });