@pisell/private-materials 6.11.49 → 6.11.51
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/index.d.ts +37 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/dashboard/serve.d.ts +2 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/hooks/usePromotion.js +25 -20
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.js +11 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +3 -26
- package/es/components/booking/info/service2/Group/utils.js +0 -8
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +19 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/model/index.d.ts +1 -0
- package/es/components/booking/info2/model/strategy/adapter/index.d.ts +7 -0
- package/es/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +185 -0
- package/es/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +420 -0
- package/es/components/booking/info2/model/strategy/adapter/type.d.ts +28 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +4 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +32 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +1 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +165 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +50 -0
- package/es/components/booking/info2/model/strategy/index.d.ts +107 -0
- package/es/components/booking/info2/model/strategy/strategy-example.d.ts +5 -0
- package/es/components/booking/info2/model/strategy/type.d.ts +228 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +23 -2
- package/es/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/es/components/booking/locales.d.ts +1586 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/locales.d.ts +856 -0
- package/es/components/checkout/styles.d.ts +67 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/cupList/const.d.ts +144 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/locales.d.ts +608 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/locales.d.ts +43 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/locales.d.ts +108 -0
- package/es/components/list/types.d.ts +181 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/index.d.ts +19 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +88 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/hooks.d.ts +15 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/types/index.d.ts +81 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/locales.d.ts +511 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/locales.d.ts +93 -0
- package/es/components/shoppingCart/mock.d.ts +54 -0
- package/es/components/shoppingCart/type.d.ts +58 -0
- package/es/components/subTotal/locales.d.ts +71 -0
- package/es/components/systemSettings/registry/locales.d.ts +525 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +139 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +29 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +340 -0
- package/es/components/ticketBooking/utils/edit.d.ts +1 -0
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/noteModal/locales.d.ts +53 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +173 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/utils.d.ts +49 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/productSelect/ProductList/index.d.ts +22 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/locales.d.ts +38 -0
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +53 -0
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +445 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/locales.d.ts +92 -0
- package/es/plus/webPosLogin/types.d.ts +288 -0
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Login2.0/locales.d.ts +903 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/locales.d.ts +58 -0
- package/es/pro/Selector/types.d.ts +223 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/es/pro/skuDetailModal/locales.d.ts +159 -0
- package/es/pro/skuDetailModal/types.d.ts +395 -0
- package/es/pro/skuDetailModal/utils.d.ts +4 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/index.d.ts +37 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/dashboard/serve.d.ts +2 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/hooks/usePromotion.js +16 -13
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.js +11 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +6 -29
- package/lib/components/booking/info/service2/Group/utils.js +0 -8
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +19 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/model/index.d.ts +1 -0
- package/lib/components/booking/info2/model/strategy/adapter/index.d.ts +7 -0
- package/lib/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +185 -0
- package/lib/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +420 -0
- package/lib/components/booking/info2/model/strategy/adapter/type.d.ts +28 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +4 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +32 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +1 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +165 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +50 -0
- package/lib/components/booking/info2/model/strategy/index.d.ts +107 -0
- package/lib/components/booking/info2/model/strategy/strategy-example.d.ts +5 -0
- package/lib/components/booking/info2/model/strategy/type.d.ts +228 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +22 -8
- package/lib/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/lib/components/booking/locales.d.ts +1586 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/locales.d.ts +856 -0
- package/lib/components/checkout/styles.d.ts +67 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/cupList/const.d.ts +144 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/locales.d.ts +608 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +43 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/locales.d.ts +108 -0
- package/lib/components/list/types.d.ts +181 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/index.d.ts +19 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +88 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/hooks.d.ts +15 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/types/index.d.ts +81 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/locales.d.ts +511 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/locales.d.ts +93 -0
- package/lib/components/shoppingCart/mock.d.ts +54 -0
- package/lib/components/shoppingCart/type.d.ts +58 -0
- package/lib/components/subTotal/locales.d.ts +71 -0
- package/lib/components/systemSettings/registry/locales.d.ts +525 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +139 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +29 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +340 -0
- package/lib/components/ticketBooking/utils/edit.d.ts +1 -0
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/noteModal/locales.d.ts +53 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +173 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/utils.d.ts +49 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/locales.d.ts +38 -0
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +53 -0
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +445 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/locales.d.ts +92 -0
- package/lib/plus/webPosLogin/types.d.ts +288 -0
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Login2.0/locales.d.ts +903 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/locales.d.ts +58 -0
- package/lib/pro/Selector/types.d.ts +223 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/lib/pro/skuDetailModal/locales.d.ts +159 -0
- package/lib/pro/skuDetailModal/types.d.ts +395 -0
- package/lib/pro/skuDetailModal/utils.d.ts +4 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/** 杯子信息 */
|
|
2
|
+
export interface ICup {
|
|
3
|
+
/** 杯子id */
|
|
4
|
+
id: string;
|
|
5
|
+
/** 杯子编码 */
|
|
6
|
+
code: string;
|
|
7
|
+
/** 杯子id,客户下返回的杯子信息为该字段 */
|
|
8
|
+
eco_cup_id: string;
|
|
9
|
+
/** 杯子编码,客户下返回的杯子信息为该字段 */
|
|
10
|
+
eco_cup_code?: string;
|
|
11
|
+
/** 当前归属店铺 */
|
|
12
|
+
current_shop?: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
/** 当前归属店铺id */
|
|
17
|
+
current_shop_id?: number;
|
|
18
|
+
/** 借出店铺 */
|
|
19
|
+
rent_shop?: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
/** 借出店铺id */
|
|
24
|
+
rent_shop_id?: number;
|
|
25
|
+
/** 借出时间 */
|
|
26
|
+
rent_time: string;
|
|
27
|
+
/** 用户id */
|
|
28
|
+
customer_id: string;
|
|
29
|
+
/** 用户信息 */
|
|
30
|
+
customer?: ICustomer;
|
|
31
|
+
/** 杯子状态 */
|
|
32
|
+
status: ECupStatus;
|
|
33
|
+
/** 操作时间 */
|
|
34
|
+
operated_at?: string;
|
|
35
|
+
}
|
|
36
|
+
/** 杯子状态 */
|
|
37
|
+
export declare enum ECupStatus {
|
|
38
|
+
/** 在库 */
|
|
39
|
+
IN_STOCK = "in_stock",
|
|
40
|
+
/** 借出 */
|
|
41
|
+
RENT = "rent",
|
|
42
|
+
/** 遗失 */
|
|
43
|
+
MISSING = "missing",
|
|
44
|
+
/** 损坏 */
|
|
45
|
+
BROKEN = "broken"
|
|
46
|
+
}
|
|
47
|
+
/** 用户信息 */
|
|
48
|
+
export interface ICustomer {
|
|
49
|
+
/** 用户id */
|
|
50
|
+
id: string;
|
|
51
|
+
/** 昵称 */
|
|
52
|
+
nickname?: string;
|
|
53
|
+
/** 显示名称 */
|
|
54
|
+
display_name?: string;
|
|
55
|
+
/** 名 */
|
|
56
|
+
first_name?: string;
|
|
57
|
+
/** 姓 */
|
|
58
|
+
last_name?: string;
|
|
59
|
+
/** 电话 */
|
|
60
|
+
phone: string;
|
|
61
|
+
/** 国家区号 */
|
|
62
|
+
country_calling_code: string;
|
|
63
|
+
/** 国家代码 */
|
|
64
|
+
country_code?: string;
|
|
65
|
+
/** 邮箱 */
|
|
66
|
+
email?: string;
|
|
67
|
+
/** 头像 */
|
|
68
|
+
cover?: string;
|
|
69
|
+
/** 会员类型 */
|
|
70
|
+
membership?: string;
|
|
71
|
+
}
|
|
72
|
+
/** 杯子操作类型 */
|
|
73
|
+
export declare enum ECupActionType {
|
|
74
|
+
/** 归还 */
|
|
75
|
+
RETURN = "return",
|
|
76
|
+
/** 遗失 */
|
|
77
|
+
MISSING = "missing",
|
|
78
|
+
/** 损坏 */
|
|
79
|
+
BROKEN = "broken",
|
|
80
|
+
/** 转移 */
|
|
81
|
+
TRANSFER = "transfer"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 扫描杯子后的状态
|
|
85
|
+
*/
|
|
86
|
+
export declare enum ECupScanStatus {
|
|
87
|
+
/** 其他在库 */
|
|
88
|
+
OTHER_IN_STOCK = "other_in_stock",
|
|
89
|
+
/** 其他人借出 */
|
|
90
|
+
OTHER_RENT = "other_rent",
|
|
91
|
+
/** 转移 */
|
|
92
|
+
TRANSFER = "transfer",
|
|
93
|
+
/** 在库 */
|
|
94
|
+
IN_STOCK = "in_stock",
|
|
95
|
+
/** 借出 */
|
|
96
|
+
RENT = "rent",
|
|
97
|
+
/** 遗失 */
|
|
98
|
+
MISSING = "missing",
|
|
99
|
+
/** 损坏 */
|
|
100
|
+
BROKEN = "broken",
|
|
101
|
+
/** 不存在 */
|
|
102
|
+
NOT_FOUND = "not_found"
|
|
103
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare type TCallback = (result: {
|
|
2
|
+
type: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}) => void;
|
|
5
|
+
declare class ScanListener {
|
|
6
|
+
private isInitialized;
|
|
7
|
+
private listeners;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* 初始化外设扫码结果监听
|
|
11
|
+
*/
|
|
12
|
+
initPeripheralsListener(interaction: any): void;
|
|
13
|
+
addListener(interaction: any, key: string, callback: TCallback): void;
|
|
14
|
+
removeListener(key: string): void;
|
|
15
|
+
getActiveListener(): string | null;
|
|
16
|
+
setActiveListener(key: string): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
}
|
|
19
|
+
declare const scanListener: ScanListener;
|
|
20
|
+
export default scanListener;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare enum Eftpos {
|
|
2
|
+
Payo = "payo",
|
|
3
|
+
Tyro = "tyro",
|
|
4
|
+
Windcave = "windcave",
|
|
5
|
+
Stripe = "stripe"
|
|
6
|
+
}
|
|
7
|
+
export declare enum DeviceEnum {
|
|
8
|
+
/** 新增 */
|
|
9
|
+
Add = "add",
|
|
10
|
+
/** 编辑 */
|
|
11
|
+
Edit = "edit",
|
|
12
|
+
/** 重新链接 */
|
|
13
|
+
Repair = "repair"
|
|
14
|
+
}
|
|
15
|
+
export declare type DeviceStatus = `${DeviceEnum}`;
|
|
16
|
+
/** 设备配置信息 */
|
|
17
|
+
export interface DeviceProp {
|
|
18
|
+
/** 设备id */
|
|
19
|
+
id?: string | number;
|
|
20
|
+
/** 设备名称 */
|
|
21
|
+
name: string;
|
|
22
|
+
/** 设备类型(厂商) */
|
|
23
|
+
type: Eftpos.Tyro;
|
|
24
|
+
/** 设备状态 */
|
|
25
|
+
status: "unpaired" | "paired";
|
|
26
|
+
/** 设备设置(商户配置) */
|
|
27
|
+
setting: {
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
} | null;
|
|
30
|
+
/** 设备设置(第三方配置) */
|
|
31
|
+
connection: {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
} | null;
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @title: 获取表单结果数据
|
|
38
|
+
* @description: 获取表单结果数据
|
|
39
|
+
* @param {any} list 表单配置信息
|
|
40
|
+
* @return {*} 表单结果信息
|
|
41
|
+
* @Author: hongbing.wang
|
|
42
|
+
* @Date: 2024-08-19 11:10
|
|
43
|
+
*/
|
|
44
|
+
export declare const getDefaultValue: (list: any) => any;
|
|
45
|
+
/**
|
|
46
|
+
* @title: 构建通用表单配置信息,构建动态表单
|
|
47
|
+
* @description:
|
|
48
|
+
* @param {any} field : array 字段信息 value 结果信息,name 上级字段信息用于嵌套, getComm : 获取字段组件配置信息
|
|
49
|
+
* @return form 表单配置信息
|
|
50
|
+
* @Author: hongbing.wang
|
|
51
|
+
* @Date: 2024-08-19 11:11
|
|
52
|
+
*/
|
|
53
|
+
export declare function getCommByFields({ field, value, name, getComm, }: {
|
|
54
|
+
field: (string | {
|
|
55
|
+
name: string;
|
|
56
|
+
children: string[];
|
|
57
|
+
})[];
|
|
58
|
+
value?: any;
|
|
59
|
+
name?: string[];
|
|
60
|
+
getComm: (params: {
|
|
61
|
+
field: string;
|
|
62
|
+
value?: unknown;
|
|
63
|
+
}, record?: any) => any;
|
|
64
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Eftpos } from './const';
|
|
3
|
+
/**
|
|
4
|
+
* @title: tyro 设备连接
|
|
5
|
+
* @Author: hongbing.wang
|
|
6
|
+
* @Date: 2024-08-20 13:23
|
|
7
|
+
*/
|
|
8
|
+
export declare const usePairTerminalo: (type: Eftpos, params: {
|
|
9
|
+
url?: string;
|
|
10
|
+
version?: string;
|
|
11
|
+
}) => ({ mid, tid, apiKey, posProductData, }: {
|
|
12
|
+
mid: string;
|
|
13
|
+
tid: string;
|
|
14
|
+
apiKey: string;
|
|
15
|
+
posProductData: {
|
|
16
|
+
posProductVendor: string;
|
|
17
|
+
posProductName: string;
|
|
18
|
+
posProductVersion: string;
|
|
19
|
+
siteReference: string;
|
|
20
|
+
};
|
|
21
|
+
}, cb: (...agrn: unknown[]) => void) => Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* @title: 获取 Tyro 资源
|
|
24
|
+
* @description:
|
|
25
|
+
* @param {Eftpos} type 类型
|
|
26
|
+
* @param {string} url 链接
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: hongbing.wang
|
|
29
|
+
* @Date: 2024-08-19 18:36
|
|
30
|
+
*/
|
|
31
|
+
export declare const useTyro: (params: {
|
|
32
|
+
url?: string;
|
|
33
|
+
version?: string;
|
|
34
|
+
}) => readonly [import("react").MutableRefObject<any>, boolean];
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'page.eftpos.text.manufacturer': string;
|
|
4
|
+
'page.eftpos.text.description': string;
|
|
5
|
+
'page.eftpos.text.status': string;
|
|
6
|
+
'page.eftpos.text.operation': string;
|
|
7
|
+
'page.eftpos.text.device': string;
|
|
8
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
9
|
+
'page.eftpos.text.device.list': string;
|
|
10
|
+
'page.eftpos.text.device.name': string;
|
|
11
|
+
'page.eftpos.text.sucahrge': string;
|
|
12
|
+
'page.eftpos.text.paired': string;
|
|
13
|
+
'page.eftpos.text.unpaired': string;
|
|
14
|
+
'page.eftpos.text.repair': string;
|
|
15
|
+
'page.eftpos.text.edit': string;
|
|
16
|
+
'page.eftpos.text.delete': string;
|
|
17
|
+
'page.eftpos.text.save': string;
|
|
18
|
+
'page.eftpos.text.confim.delete': string;
|
|
19
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
20
|
+
'page.eftpos.text.confim.cancel': string;
|
|
21
|
+
'page.eftpos.text.table.name': string;
|
|
22
|
+
'page.eftpos.text.table.status': string;
|
|
23
|
+
'page.eftpos.text.table.surcharge': string;
|
|
24
|
+
'page.eftpos.text.table.opeartion': string;
|
|
25
|
+
'page.eftpos.text.table.del.title': string;
|
|
26
|
+
'page.eftpos.text.table.del.text': string;
|
|
27
|
+
'page.eftpos.text.table.del.delete': string;
|
|
28
|
+
'page.eftpos.text.table.del.cancel': string;
|
|
29
|
+
'page.eftpos.text.log': string;
|
|
30
|
+
'page.eftpos.text.setting': string;
|
|
31
|
+
'page.eftpos.text.setting.tip': string;
|
|
32
|
+
'page.eftpos.text.setting.btn': string;
|
|
33
|
+
};
|
|
34
|
+
'zh-CN': {
|
|
35
|
+
'page.eftpos.text.manufacturer': string;
|
|
36
|
+
'page.eftpos.text.description': string;
|
|
37
|
+
'page.eftpos.text.status': string;
|
|
38
|
+
'page.eftpos.text.operation': string;
|
|
39
|
+
'page.eftpos.text.device': string;
|
|
40
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
41
|
+
'page.eftpos.text.device.list': string;
|
|
42
|
+
'page.eftpos.text.device.name': string;
|
|
43
|
+
'page.eftpos.text.sucahrge': string;
|
|
44
|
+
'page.eftpos.text.paired': string;
|
|
45
|
+
'page.eftpos.text.unpaired': string;
|
|
46
|
+
'page.eftpos.text.repair': string;
|
|
47
|
+
'page.eftpos.text.edit': string;
|
|
48
|
+
'page.eftpos.text.delete': string;
|
|
49
|
+
'page.eftpos.text.save': string;
|
|
50
|
+
'page.eftpos.text.confim.delete': string;
|
|
51
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
52
|
+
'page.eftpos.text.confim.cancel': string;
|
|
53
|
+
'page.eftpos.text.table.name': string;
|
|
54
|
+
'page.eftpos.text.table.status': string;
|
|
55
|
+
'page.eftpos.text.table.surcharge': string;
|
|
56
|
+
'page.eftpos.text.table.opeartion': string;
|
|
57
|
+
'page.eftpos.text.table.del.title': string;
|
|
58
|
+
'page.eftpos.text.table.del.text': string;
|
|
59
|
+
'page.eftpos.text.table.del.delete': string;
|
|
60
|
+
'page.eftpos.text.table.del.cancel': string;
|
|
61
|
+
'page.eftpos.text.log': string;
|
|
62
|
+
'page.eftpos.text.setting': string;
|
|
63
|
+
'page.eftpos.text.setting.tip': string;
|
|
64
|
+
'page.eftpos.text.setting.btn': string;
|
|
65
|
+
};
|
|
66
|
+
'zh-HK': {
|
|
67
|
+
'page.eftpos.text.manufacturer': string;
|
|
68
|
+
'page.eftpos.text.description': string;
|
|
69
|
+
'page.eftpos.text.status': string;
|
|
70
|
+
'page.eftpos.text.operation': string;
|
|
71
|
+
'page.eftpos.text.device': string;
|
|
72
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
73
|
+
'page.eftpos.text.device.list': string;
|
|
74
|
+
'page.eftpos.text.device.name': string;
|
|
75
|
+
'page.eftpos.text.sucahrge': string;
|
|
76
|
+
'page.eftpos.text.paired': string;
|
|
77
|
+
'page.eftpos.text.unpaired': string;
|
|
78
|
+
'page.eftpos.text.repair': string;
|
|
79
|
+
'page.eftpos.text.edit': string;
|
|
80
|
+
'page.eftpos.text.delete': string;
|
|
81
|
+
'page.eftpos.text.save': string;
|
|
82
|
+
'page.eftpos.text.confim.delete': string;
|
|
83
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
84
|
+
'page.eftpos.text.confim.cancel': string;
|
|
85
|
+
'page.eftpos.text.table.name': string;
|
|
86
|
+
'page.eftpos.text.table.status': string;
|
|
87
|
+
'page.eftpos.text.table.surcharge': string;
|
|
88
|
+
'page.eftpos.text.table.opeartion': string;
|
|
89
|
+
'page.eftpos.text.table.del.title': string;
|
|
90
|
+
'page.eftpos.text.table.del.text': string;
|
|
91
|
+
'page.eftpos.text.table.del.delete': string;
|
|
92
|
+
'page.eftpos.text.table.del.cancel': string;
|
|
93
|
+
'page.eftpos.text.log': string;
|
|
94
|
+
'page.eftpos.text.setting': string;
|
|
95
|
+
'page.eftpos.text.setting.tip': string;
|
|
96
|
+
'page.eftpos.text.setting.btn': string;
|
|
97
|
+
};
|
|
98
|
+
ja: {
|
|
99
|
+
'page.eftpos.text.manufacturer': string;
|
|
100
|
+
'page.eftpos.text.description': string;
|
|
101
|
+
'page.eftpos.text.status': string;
|
|
102
|
+
'page.eftpos.text.operation': string;
|
|
103
|
+
'page.eftpos.text.device': string;
|
|
104
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
105
|
+
'page.eftpos.text.device.list': string;
|
|
106
|
+
'page.eftpos.text.device.name': string;
|
|
107
|
+
'page.eftpos.text.sucahrge': string;
|
|
108
|
+
'page.eftpos.text.paired': string;
|
|
109
|
+
'page.eftpos.text.unpaired': string;
|
|
110
|
+
'page.eftpos.text.repair': string;
|
|
111
|
+
'page.eftpos.text.edit': string;
|
|
112
|
+
'page.eftpos.text.delete': string;
|
|
113
|
+
'page.eftpos.text.save': string;
|
|
114
|
+
'page.eftpos.text.confim.delete': string;
|
|
115
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
116
|
+
'page.eftpos.text.confim.cancel': string;
|
|
117
|
+
'page.eftpos.text.table.name': string;
|
|
118
|
+
'page.eftpos.text.table.status': string;
|
|
119
|
+
'page.eftpos.text.table.surcharge': string;
|
|
120
|
+
'page.eftpos.text.table.opeartion': string;
|
|
121
|
+
'page.eftpos.text.table.del.title': string;
|
|
122
|
+
'page.eftpos.text.table.del.text': string;
|
|
123
|
+
'page.eftpos.text.table.del.delete': string;
|
|
124
|
+
'page.eftpos.text.table.del.cancel': string;
|
|
125
|
+
'page.eftpos.text.log': string;
|
|
126
|
+
'page.eftpos.text.setting': string;
|
|
127
|
+
'page.eftpos.text.setting.tip': string;
|
|
128
|
+
'page.eftpos.text.setting.btn': string;
|
|
129
|
+
};
|
|
130
|
+
pt: {
|
|
131
|
+
'page.eftpos.text.manufacturer': string;
|
|
132
|
+
'page.eftpos.text.description': string;
|
|
133
|
+
'page.eftpos.text.status': string;
|
|
134
|
+
'page.eftpos.text.operation': string;
|
|
135
|
+
'page.eftpos.text.device': string;
|
|
136
|
+
'page.eftpos.text.device.add': (status?: string, name?: string) => string;
|
|
137
|
+
'page.eftpos.text.device.list': string;
|
|
138
|
+
'page.eftpos.text.device.name': string;
|
|
139
|
+
'page.eftpos.text.sucahrge': string;
|
|
140
|
+
'page.eftpos.text.paired': string;
|
|
141
|
+
'page.eftpos.text.unpaired': string;
|
|
142
|
+
'page.eftpos.text.repair': string;
|
|
143
|
+
'page.eftpos.text.edit': string;
|
|
144
|
+
'page.eftpos.text.delete': string;
|
|
145
|
+
'page.eftpos.text.save': string;
|
|
146
|
+
'page.eftpos.text.confim.delete': string;
|
|
147
|
+
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
148
|
+
'page.eftpos.text.confim.cancel': string;
|
|
149
|
+
'page.eftpos.text.table.name': string;
|
|
150
|
+
'page.eftpos.text.table.status': string;
|
|
151
|
+
'page.eftpos.text.table.surcharge': string;
|
|
152
|
+
'page.eftpos.text.table.opeartion': string;
|
|
153
|
+
'page.eftpos.text.table.del.title': string;
|
|
154
|
+
'page.eftpos.text.table.del.text': string;
|
|
155
|
+
'page.eftpos.text.table.del.delete': string;
|
|
156
|
+
'page.eftpos.text.table.del.cancel': string;
|
|
157
|
+
'page.eftpos.text.log': string;
|
|
158
|
+
'page.eftpos.text.setting': string;
|
|
159
|
+
'page.eftpos.text.setting.tip': string;
|
|
160
|
+
'page.eftpos.text.setting.btn': string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export default _default;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import PaymentMethod from './utils/payment';
|
|
2
|
+
export declare enum EVisibleButtonType {
|
|
3
|
+
/** 取消按钮 */
|
|
4
|
+
CancelButton = "CancelButton",
|
|
5
|
+
/** 等待按钮 */
|
|
6
|
+
WaitButton = "WaitButton"
|
|
7
|
+
}
|
|
8
|
+
export declare enum EActionStatus {
|
|
9
|
+
/** 空 */
|
|
10
|
+
Empty = "Empty",
|
|
11
|
+
/** 取消 */
|
|
12
|
+
Cancel = "Cancel",
|
|
13
|
+
/** 取消中 */
|
|
14
|
+
CancelWaiting = "CancelWaiting",
|
|
15
|
+
/** 签名 */
|
|
16
|
+
Signature = "Signature",
|
|
17
|
+
/** 签名等待中 */
|
|
18
|
+
SignatureWaiting = "SignatureWaiting"
|
|
19
|
+
}
|
|
20
|
+
export declare const QUERY_START_DELAY: number;
|
|
21
|
+
export declare const GLOBAL_TIMEOUT: number;
|
|
22
|
+
export declare const REQUEST_TIMEOUT: number;
|
|
23
|
+
export declare const QUERY_INTERVAL: number;
|
|
24
|
+
/**
|
|
25
|
+
* 聚合支付初始化参数
|
|
26
|
+
*/
|
|
27
|
+
export interface PaymentMethodOptions {
|
|
28
|
+
/** 支付类型 */
|
|
29
|
+
paymentCode: string;
|
|
30
|
+
/** 交易号 */
|
|
31
|
+
paymentNum: string;
|
|
32
|
+
/** 订单ID */
|
|
33
|
+
orderId?: string | number;
|
|
34
|
+
/** 设备ID */
|
|
35
|
+
deviceId?: string | number;
|
|
36
|
+
/** 统一回调函数 */
|
|
37
|
+
callback: PaymentCallback;
|
|
38
|
+
/** 检查是否应该继续处理结果 */
|
|
39
|
+
shouldContinue?: () => boolean;
|
|
40
|
+
/** 配置 */
|
|
41
|
+
config?: PaymentMethodConfig;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 聚合支付操作类型
|
|
45
|
+
*/
|
|
46
|
+
export declare enum ActionType {
|
|
47
|
+
/** 支付 */
|
|
48
|
+
Pay = "pay",
|
|
49
|
+
/** 支付查询 */
|
|
50
|
+
PayQuery = "payQuery",
|
|
51
|
+
/** 支付行为 */
|
|
52
|
+
PayAction = "payAction",
|
|
53
|
+
/** 退款 */
|
|
54
|
+
Refund = "refund",
|
|
55
|
+
/** 退款查询 */
|
|
56
|
+
RefundQuery = "refundQuery",
|
|
57
|
+
/** 退款行为 */
|
|
58
|
+
RefundAction = "refundAction"
|
|
59
|
+
}
|
|
60
|
+
/** 回调事件 */
|
|
61
|
+
export interface CallbackEvent {
|
|
62
|
+
/** 事件类型:成功、失败、进度 */
|
|
63
|
+
status: EPaymentStatus;
|
|
64
|
+
/** 操作类型 */
|
|
65
|
+
actionType: ActionType;
|
|
66
|
+
/** 数据:成功时是结果,失败时是错误信息,进度时是进度数据 */
|
|
67
|
+
data: any;
|
|
68
|
+
}
|
|
69
|
+
/** 统一回调函数 */
|
|
70
|
+
export declare type PaymentCallback = (instance: PaymentMethod, event: CallbackEvent) => void;
|
|
71
|
+
/**
|
|
72
|
+
* 执行操作参数
|
|
73
|
+
*/
|
|
74
|
+
export interface RunOptions {
|
|
75
|
+
/** 操作类型 */
|
|
76
|
+
actionType: ActionType;
|
|
77
|
+
/** 请求参数 */
|
|
78
|
+
params?: Record<string, any>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 聚合支付配置参数
|
|
82
|
+
*/
|
|
83
|
+
export interface PaymentMethodConfig {
|
|
84
|
+
/** 是否需要轮询间隔 */
|
|
85
|
+
hasQueryInterval?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* 支付状态
|
|
89
|
+
*/
|
|
90
|
+
export declare enum EPaymentStatus {
|
|
91
|
+
/** 支付中 */
|
|
92
|
+
Processing = "processing",
|
|
93
|
+
/** 支付成功 */
|
|
94
|
+
Success = "success",
|
|
95
|
+
/** 支付失败 */
|
|
96
|
+
Failed = "failed"
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 执行操作参数
|
|
100
|
+
*/
|
|
101
|
+
export interface HooksRunParams {
|
|
102
|
+
/** 付款码 */
|
|
103
|
+
authCode?: string | number;
|
|
104
|
+
/** 订单支付ID */
|
|
105
|
+
orderPaymentId?: string | number;
|
|
106
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 聚合支付方法类
|
|
3
|
+
* 核心点:
|
|
4
|
+
* 1.发起支付/退款,在十秒钟后发起轮询操作,两个接口谁先返回成功用谁的结果,如果返回的失败是存在明确code信息的则全部失败
|
|
5
|
+
* 2.轮询操作总查询时间2分钟,超时直接失败,单次轮询超时时间5秒,超时直接abort本次请求,间隔两秒后发起新的请求
|
|
6
|
+
* 3.最终成功或者失败都需要把定时器给清理掉,并将未完成的接口abort掉
|
|
7
|
+
*/
|
|
8
|
+
import { PaymentMethodOptions } from '../types';
|
|
9
|
+
declare class PaymentMethod {
|
|
10
|
+
/** 初始化参数 */
|
|
11
|
+
private initOptions;
|
|
12
|
+
private paymentNum;
|
|
13
|
+
private orderId?;
|
|
14
|
+
private deviceId?;
|
|
15
|
+
private callback;
|
|
16
|
+
private shouldContinue;
|
|
17
|
+
private config;
|
|
18
|
+
private controller;
|
|
19
|
+
private queryController;
|
|
20
|
+
private queryStartTimer;
|
|
21
|
+
private globalTimeoutTimer;
|
|
22
|
+
private requestTimeoutTimer;
|
|
23
|
+
private queryIntervalTimer;
|
|
24
|
+
private isFinished;
|
|
25
|
+
private isQuerying;
|
|
26
|
+
private currentActionType;
|
|
27
|
+
private currentQueryId;
|
|
28
|
+
private currentRunId;
|
|
29
|
+
private currentQueryApi;
|
|
30
|
+
constructor(options: PaymentMethodOptions);
|
|
31
|
+
/**
|
|
32
|
+
* 判断请求是否需要等待轮询结果
|
|
33
|
+
* 1. 有明确错误code且不是超时和支付超时,则直接失败
|
|
34
|
+
* @param code 错误码
|
|
35
|
+
*/
|
|
36
|
+
private isRequestFailed;
|
|
37
|
+
/**
|
|
38
|
+
* 清理定时器和请求控制器
|
|
39
|
+
*/
|
|
40
|
+
private cleanupTimersAndControllers;
|
|
41
|
+
/**
|
|
42
|
+
* 清理资源并重置状态
|
|
43
|
+
* @param markAsFinished 是否标记为已完成(true: 操作完成; false: 准备新操作)
|
|
44
|
+
*/
|
|
45
|
+
private clean;
|
|
46
|
+
/**
|
|
47
|
+
* 开始新的操作流程(统一的流程初始化)
|
|
48
|
+
* @param actionType 操作类型
|
|
49
|
+
* @returns 本次流程的唯一ID
|
|
50
|
+
*/
|
|
51
|
+
private startNewOperation;
|
|
52
|
+
/**
|
|
53
|
+
* 处理操作过程
|
|
54
|
+
*/
|
|
55
|
+
private handleOperationProcess;
|
|
56
|
+
/**
|
|
57
|
+
* 处理成功结果
|
|
58
|
+
*/
|
|
59
|
+
private handleOperationSuccess;
|
|
60
|
+
/**
|
|
61
|
+
* 处理错误(最终失败)
|
|
62
|
+
* @param error 错误信息
|
|
63
|
+
*/
|
|
64
|
+
private handleOperationError;
|
|
65
|
+
/**
|
|
66
|
+
* 处理接口响应
|
|
67
|
+
*/
|
|
68
|
+
private handleResponse;
|
|
69
|
+
/**
|
|
70
|
+
* 创建超时 Promise
|
|
71
|
+
*/
|
|
72
|
+
private createTimeoutPromise;
|
|
73
|
+
/**
|
|
74
|
+
* 单次查询请求
|
|
75
|
+
*/
|
|
76
|
+
private performQuery;
|
|
77
|
+
/**
|
|
78
|
+
* 安排下一次查询
|
|
79
|
+
*/
|
|
80
|
+
private scheduleNextQuery;
|
|
81
|
+
/**
|
|
82
|
+
* 开始轮询
|
|
83
|
+
*/
|
|
84
|
+
private startQuery;
|
|
85
|
+
/**
|
|
86
|
+
* 获取操作API和查询API
|
|
87
|
+
*/
|
|
88
|
+
private getActionApi;
|
|
89
|
+
/**
|
|
90
|
+
* 执行纯查询操作(不需要先调用支付/退款接口)
|
|
91
|
+
*/
|
|
92
|
+
private runQuery;
|
|
93
|
+
/**
|
|
94
|
+
* 执行操作的核心方法
|
|
95
|
+
*/
|
|
96
|
+
private run;
|
|
97
|
+
/**
|
|
98
|
+
* 执行操作
|
|
99
|
+
*/
|
|
100
|
+
private runAction;
|
|
101
|
+
/**
|
|
102
|
+
* 支付
|
|
103
|
+
* @param params 支付参数
|
|
104
|
+
*/
|
|
105
|
+
pay(params: Record<string, any>): void;
|
|
106
|
+
/**
|
|
107
|
+
* 支付取消
|
|
108
|
+
* @param params 取消参数
|
|
109
|
+
*/
|
|
110
|
+
payAction(params: Record<string, any>): void;
|
|
111
|
+
/**
|
|
112
|
+
* 退款
|
|
113
|
+
* @param params 退款参数
|
|
114
|
+
*/
|
|
115
|
+
refund(params: Record<string, any>): void;
|
|
116
|
+
/**
|
|
117
|
+
* 退款取消
|
|
118
|
+
* @param params 取消参数
|
|
119
|
+
*/
|
|
120
|
+
refundAction(params: Record<string, any>): void;
|
|
121
|
+
/**
|
|
122
|
+
* 支付查询(直接查询,带2分钟超时和轮询机制)
|
|
123
|
+
*/
|
|
124
|
+
payQuery(): void;
|
|
125
|
+
/**
|
|
126
|
+
* 退款查询(直接查询,带2分钟超时和轮询机制)
|
|
127
|
+
*/
|
|
128
|
+
refundQuery(): void;
|
|
129
|
+
/**
|
|
130
|
+
* 停止操作,后续依然可以重新发起操作
|
|
131
|
+
*/
|
|
132
|
+
stop(): void;
|
|
133
|
+
/**
|
|
134
|
+
* 销毁实例(完全清理并上传日志)
|
|
135
|
+
* 注意:销毁后实例不可再使用
|
|
136
|
+
*/
|
|
137
|
+
destroy(): void;
|
|
138
|
+
}
|
|
139
|
+
export default PaymentMethod;
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|