@pisell/private-materials 6.6.24 → 6.6.26
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/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +7 -0
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +7 -5
- package/es/components/booking/components/voucher/index.js +6 -0
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/dashboard/index.js +21 -5
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- 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/index.d.ts +0 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/locales.d.ts +951 -0
- package/es/components/checkout/PaymentModal.js +42 -2
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +36 -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/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +322 -194
- package/es/components/checkout/locales.d.ts +513 -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/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.js +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 +366 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- 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/index.d.ts +5 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useListState.d.ts +43 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/locales.d.ts +66 -0
- package/es/components/list/types.d.ts +177 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/index.d.ts +4 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/store/context.d.ts +3 -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 +61 -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/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +66 -27
- package/es/components/pay/toC/locales.d.ts +307 -0
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/status.d.ts +13 -0
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/locales.d.ts +36 -0
- package/es/components/shoppingCart/type.d.ts +50 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- 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 +26 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +198 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/locales.d.ts +27 -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/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +3 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/types.d.ts +134 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/locales.d.ts +108 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- 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/CardWrapper/index.d.ts +0 -1
- 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/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -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 +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -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/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/walletEditor/locales.d.ts +135 -0
- package/es/plus/walletPassGallery/locales.d.ts +285 -0
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -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 +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -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/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/types.d.ts +348 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +9 -0
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +5 -3
- package/lib/components/booking/components/voucher/index.js +6 -0
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/dashboard/index.js +11 -1
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- 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/index.d.ts +0 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/locales.d.ts +951 -0
- package/lib/components/checkout/PaymentModal.js +24 -1
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +36 -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/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +160 -107
- package/lib/components/checkout/locales.d.ts +513 -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/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.js +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 +366 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- 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/index.d.ts +5 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useListState.d.ts +43 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/locales.d.ts +66 -0
- package/lib/components/list/types.d.ts +177 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/index.d.ts +4 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -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 +61 -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/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +52 -11
- package/lib/components/pay/toC/locales.d.ts +307 -0
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/status.d.ts +13 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/locales.d.ts +36 -0
- package/lib/components/shoppingCart/type.d.ts +50 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
- package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- 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 +26 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +198 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/locales.d.ts +27 -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/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +3 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/types.d.ts +134 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/locales.d.ts +108 -0
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- 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/CardWrapper/index.d.ts +0 -1
- 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/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -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 +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -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/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/walletEditor/locales.d.ts +135 -0
- package/lib/plus/walletPassGallery/locales.d.ts +285 -0
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -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 +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -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/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/types.d.ts +348 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/package.json +4 -4
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CurrentOrderInfo {
|
|
3
|
+
/** 订单UUID */
|
|
4
|
+
uuid?: string;
|
|
5
|
+
/** 订单ID */
|
|
6
|
+
orderId?: string;
|
|
7
|
+
/** 订单状态 */
|
|
8
|
+
status?: string;
|
|
9
|
+
/** 当前步骤 */
|
|
10
|
+
step?: string;
|
|
11
|
+
/** 订单总金额 */
|
|
12
|
+
totalAmount?: string;
|
|
13
|
+
/** 待付金额 */
|
|
14
|
+
remainingAmount?: string;
|
|
15
|
+
/** 支付状态 */
|
|
16
|
+
paymentStatus?: string;
|
|
17
|
+
/** 是否为定金订单 */
|
|
18
|
+
isDeposit?: boolean;
|
|
19
|
+
/** 定金金额 */
|
|
20
|
+
depositAmount?: string;
|
|
21
|
+
/** 订单类型 */
|
|
22
|
+
orderType?: 'virtual' | 'appointment_booking';
|
|
23
|
+
/** 平台类型 */
|
|
24
|
+
platform?: 'pc' | 'h5';
|
|
25
|
+
/** 创建时间 */
|
|
26
|
+
createdAt?: string;
|
|
27
|
+
/** 商品数量 */
|
|
28
|
+
itemCount?: number;
|
|
29
|
+
/** 是否有本地订单数据 */
|
|
30
|
+
hasLocalOrderData?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface PaymentData {
|
|
33
|
+
orderId?: string | number;
|
|
34
|
+
totalAmount?: number;
|
|
35
|
+
currency?: string;
|
|
36
|
+
customerId?: string | number;
|
|
37
|
+
customerName?: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
items?: PaymentItem[];
|
|
40
|
+
}
|
|
41
|
+
export interface PaymentItem {
|
|
42
|
+
id: string | number;
|
|
43
|
+
name: string;
|
|
44
|
+
quantity: number;
|
|
45
|
+
price: number;
|
|
46
|
+
total: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ModuleConfig {
|
|
49
|
+
showWalletPass?: boolean;
|
|
50
|
+
showCashPayment?: boolean;
|
|
51
|
+
showAdditionalModule?: boolean;
|
|
52
|
+
showPaymentOptions?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface StatusConfig {
|
|
55
|
+
leftStatus?: string;
|
|
56
|
+
rightStatus?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface PaymentResult {
|
|
59
|
+
type: 'cash' | 'walletpass' | 'etfpos' | 'custom' | 'mx51';
|
|
60
|
+
amount?: number;
|
|
61
|
+
status: 'success' | 'failed' | 'cancelled' | 'pending';
|
|
62
|
+
orderId?: string | number;
|
|
63
|
+
transactionId?: string;
|
|
64
|
+
message?: string;
|
|
65
|
+
timestamp?: number;
|
|
66
|
+
roundingAmount?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface CheckoutCallbacks {
|
|
69
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
70
|
+
onPaymentCancel?: () => void;
|
|
71
|
+
onStatusChange?: (status: string) => void;
|
|
72
|
+
}
|
|
73
|
+
export interface CheckoutProps {
|
|
74
|
+
paymentData?: PaymentData;
|
|
75
|
+
moduleConfig?: ModuleConfig;
|
|
76
|
+
statusConfig?: StatusConfig;
|
|
77
|
+
cashAmountButtons?: number[];
|
|
78
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
79
|
+
onPaymentCancel?: () => void;
|
|
80
|
+
onStatusChange?: (status: string) => void;
|
|
81
|
+
}
|
|
82
|
+
export interface StatusSectionProps {
|
|
83
|
+
config?: StatusConfig;
|
|
84
|
+
onStatusChange?: (status: string) => void;
|
|
85
|
+
}
|
|
86
|
+
export interface AmountSummaryProps {
|
|
87
|
+
orderInfo?: CurrentOrderInfo;
|
|
88
|
+
open_deposit?: boolean;
|
|
89
|
+
customAmount?: string;
|
|
90
|
+
onAmountChange?: (amount: string) => void;
|
|
91
|
+
}
|
|
92
|
+
export interface WalletPassModuleProps {
|
|
93
|
+
orderInfo?: CurrentOrderInfo;
|
|
94
|
+
}
|
|
95
|
+
export interface CashPaymentModuleProps {
|
|
96
|
+
orderInfo?: CurrentOrderInfo;
|
|
97
|
+
onPaymentComplete?: (result: PaymentResult) => void;
|
|
98
|
+
amountButtons?: number[];
|
|
99
|
+
}
|
|
100
|
+
export interface PaymentOptionsModuleProps {
|
|
101
|
+
orderInfo?: CurrentOrderInfo;
|
|
102
|
+
onClick?: (method: PaymentMethod) => void;
|
|
103
|
+
}
|
|
104
|
+
export interface AdditionalModuleProps {
|
|
105
|
+
orderInfo?: CurrentOrderInfo;
|
|
106
|
+
customAmount?: string;
|
|
107
|
+
handleButtonClick: (key: string) => void;
|
|
108
|
+
hasOrderNote?: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface PaymentMethod {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
nameEn?: string;
|
|
114
|
+
surcharge: string;
|
|
115
|
+
surchargeAmount?: number;
|
|
116
|
+
icon?: string;
|
|
117
|
+
iconComponent?: React.ReactNode;
|
|
118
|
+
color?: string;
|
|
119
|
+
enabled?: boolean;
|
|
120
|
+
code: string;
|
|
121
|
+
type: string;
|
|
122
|
+
fixed?: number;
|
|
123
|
+
percentage?: number;
|
|
124
|
+
totalAmount?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface PaymentMethodSelection {
|
|
127
|
+
method: PaymentMethod;
|
|
128
|
+
amount: number;
|
|
129
|
+
totalWithSurcharge: number;
|
|
130
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -8,7 +8,7 @@ import { PosProps } from './const';
|
|
|
8
8
|
*/
|
|
9
9
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
10
10
|
className?: string | undefined;
|
|
11
|
-
onChange?: ((status: "
|
|
11
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
12
12
|
[keys: string]: unknown;
|
|
13
13
|
} | undefined, other?: any) => void) | undefined;
|
|
14
14
|
onClose: () => void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PosProps, RouteType } from './const';
|
|
3
2
|
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
3
|
action: RouteType;
|
|
@@ -67,7 +67,7 @@ var failCustom_default = ({ className = "", isMobile, onChange }) => {
|
|
|
67
67
|
amount,
|
|
68
68
|
order_id
|
|
69
69
|
};
|
|
70
|
-
if (mode
|
|
70
|
+
if (mode !== import_const.ModeEnum.Query) {
|
|
71
71
|
params.number = "";
|
|
72
72
|
}
|
|
73
73
|
dispatch((0, import_store.updateState)((0, import_manufacturer.getInitState)(eftpos, params)));
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare enum EftposEnum {
|
|
3
|
+
/** 后端支付 - 仅支付 */
|
|
4
|
+
Payo = "payo",
|
|
5
|
+
/** 前端支付 */
|
|
6
|
+
Tyro = "tyro",
|
|
7
|
+
/** 后端支付 - 支付 + 退款 */
|
|
8
|
+
Windcave = "windcave",
|
|
9
|
+
Stripe = "stripe",
|
|
10
|
+
Linkly = "linkly",
|
|
11
|
+
/** 汇付天下 */
|
|
12
|
+
Huifu = "huifu"
|
|
13
|
+
}
|
|
14
|
+
export declare enum StatusEnum {
|
|
15
|
+
Init = "init",
|
|
16
|
+
Loading = "loading",
|
|
17
|
+
Warn = "warn",
|
|
18
|
+
Fail = "fail",
|
|
19
|
+
Success = "success",
|
|
20
|
+
Pedding = "pedding",
|
|
21
|
+
Resove = "resove",
|
|
22
|
+
Reject = "reject",
|
|
23
|
+
Question = "question"
|
|
24
|
+
}
|
|
25
|
+
export declare enum ModeEnum {
|
|
26
|
+
/** 支付 */
|
|
27
|
+
Pay = "pay",
|
|
28
|
+
/** 完整支付 */
|
|
29
|
+
FullPay = "fullPay",
|
|
30
|
+
/** 退款 */
|
|
31
|
+
Refund = "refund",
|
|
32
|
+
/** 查询 */
|
|
33
|
+
Query = "query"
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 崩溃恢复
|
|
37
|
+
*/
|
|
38
|
+
export declare enum RestoreEumn {
|
|
39
|
+
/** 常规 */
|
|
40
|
+
Normal = "normal",
|
|
41
|
+
/** 恢复 */
|
|
42
|
+
Restore = "restore"
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 订单状态
|
|
46
|
+
*/
|
|
47
|
+
export declare enum OrderEumn {
|
|
48
|
+
/** 恢复 */
|
|
49
|
+
Restore = "restore",
|
|
50
|
+
/** 常规 */
|
|
51
|
+
Normal = "normal",
|
|
52
|
+
/** 成功 */
|
|
53
|
+
Succeed = "succeed",
|
|
54
|
+
/** 失败 */
|
|
55
|
+
Failed = "failed",
|
|
56
|
+
/** 等待 */
|
|
57
|
+
Pending = "pending",
|
|
58
|
+
/** 没有订单状态 */
|
|
59
|
+
Null = "null"
|
|
60
|
+
}
|
|
61
|
+
export declare enum ClientEnum {
|
|
62
|
+
/** 用户端 */
|
|
63
|
+
User = "user",
|
|
64
|
+
/** 商家端 */
|
|
65
|
+
Merchant = "merchant"
|
|
66
|
+
}
|
|
67
|
+
export declare enum RouteEnum {
|
|
68
|
+
/** 改价页 */
|
|
69
|
+
Amount = "amount",
|
|
70
|
+
/** 门店列表页 */
|
|
71
|
+
DeviceList = "deviceList",
|
|
72
|
+
/**支付页 */
|
|
73
|
+
Pay = "pay"
|
|
74
|
+
}
|
|
75
|
+
export declare enum PayRouteEnum {
|
|
76
|
+
Step = "step",
|
|
77
|
+
Unset = "unset"
|
|
78
|
+
}
|
|
79
|
+
export declare type RouteType = `${RouteEnum}`;
|
|
80
|
+
export declare type PayRouteType = `${PayRouteEnum}`;
|
|
81
|
+
export declare type DeviceStatusType = `${EftposEnum}`;
|
|
82
|
+
export declare type StatusType = `${StatusEnum}`;
|
|
83
|
+
export declare type ModeType = `${ModeEnum}`;
|
|
84
|
+
export interface PosProps {
|
|
85
|
+
/** 厂商类型 */
|
|
86
|
+
type: DeviceStatusType;
|
|
87
|
+
getApi: () => {
|
|
88
|
+
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
89
|
+
};
|
|
90
|
+
params: {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
/** 回调 */
|
|
94
|
+
onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page' | 'print' | 'mark_tx_processed', params?: {
|
|
95
|
+
[keys: string]: unknown;
|
|
96
|
+
} | string, other?: any) => void;
|
|
97
|
+
onChangeParams(...agrn: unknown[]): void;
|
|
98
|
+
terminal: {
|
|
99
|
+
network: boolean;
|
|
100
|
+
};
|
|
101
|
+
device?: {
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
};
|
|
104
|
+
mode: ModeEnum;
|
|
105
|
+
tyroUrl?: string;
|
|
106
|
+
tyroVersion?: string;
|
|
107
|
+
source: 'normal' | 'restore';
|
|
108
|
+
styles?: {
|
|
109
|
+
device?: CSSProperties;
|
|
110
|
+
[key: string]: CSSProperties | undefined;
|
|
111
|
+
};
|
|
112
|
+
isWebPos?: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface PayProps {
|
|
115
|
+
api: ReturnType<PosProps['getApi']>;
|
|
116
|
+
onChange: PosProps['onChangeStatus'];
|
|
117
|
+
className?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare type Amount = {
|
|
120
|
+
name: string;
|
|
121
|
+
/** 订单金额 */
|
|
122
|
+
money: number;
|
|
123
|
+
/** 上一轮操作订单金额 */
|
|
124
|
+
amount: number;
|
|
125
|
+
/** 金额单位 */
|
|
126
|
+
symbol: string;
|
|
127
|
+
/** 手续费-百分率 */
|
|
128
|
+
surRate: number;
|
|
129
|
+
/** 手续费-是否开启 */
|
|
130
|
+
surMoney: number;
|
|
131
|
+
/** 手续费-是否存在 */
|
|
132
|
+
surcharge: boolean;
|
|
133
|
+
/** 是否使用原始手续费 */
|
|
134
|
+
useOriginSurcharge: boolean;
|
|
135
|
+
};
|
|
136
|
+
export declare type PayAmount = {
|
|
137
|
+
/** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
|
|
138
|
+
surPercentRate: string;
|
|
139
|
+
/** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
|
|
140
|
+
surRate: string;
|
|
141
|
+
/** 手续费-比例金额 amount * surPercentRate */
|
|
142
|
+
surRateMoney: string;
|
|
143
|
+
/** 手续费-固定金额 */
|
|
144
|
+
surMoney: string;
|
|
145
|
+
/** 手续费 = surPercentRate + surMoney */
|
|
146
|
+
surcharge: string;
|
|
147
|
+
/** 支付金额 (不包含手续费) */
|
|
148
|
+
amount: string;
|
|
149
|
+
/** 支付总金额 = amount + surcharge */
|
|
150
|
+
total: string;
|
|
151
|
+
/** 订单金额 */
|
|
152
|
+
sourceAmount: string;
|
|
153
|
+
/** 支付总金额带单位 + 单位 */
|
|
154
|
+
totalUnit: string;
|
|
155
|
+
};
|
|
156
|
+
export declare enum PayStatus {
|
|
157
|
+
'Success' = "200",
|
|
158
|
+
/** 未生成交易记录 */
|
|
159
|
+
'NoPay' = "4004",
|
|
160
|
+
/** 配对失效 */
|
|
161
|
+
'PairingFailure' = "606020",
|
|
162
|
+
/** 支付失败 */
|
|
163
|
+
'Unknown' = "701000",
|
|
164
|
+
/** 交易请求超时 */
|
|
165
|
+
'Timeout' = "701001",
|
|
166
|
+
/** 支付失败(汇付天下) */
|
|
167
|
+
'PaymentFailed' = "701002",
|
|
168
|
+
/** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
|
|
169
|
+
'PayOtherEftposFailed' = "701003",
|
|
170
|
+
/** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
|
|
171
|
+
'PayCardErrorFailed' = "701004",
|
|
172
|
+
/** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
|
|
173
|
+
'NoNetWork' = "701005",
|
|
174
|
+
/** 交易等待超时 */
|
|
175
|
+
'PayTimeout' = "701006",
|
|
176
|
+
/** 连接失败 */
|
|
177
|
+
'SocketError' = "701007",
|
|
178
|
+
/** 银行拒绝 */
|
|
179
|
+
'PayBankRefuses' = "701008",
|
|
180
|
+
/** 签名拒绝 */
|
|
181
|
+
'SignatureDeclined' = "701009",
|
|
182
|
+
/** 配置参数错误 */
|
|
183
|
+
'UserConfigError' = "701010"
|
|
184
|
+
}
|
|
185
|
+
export interface ActionProps {
|
|
186
|
+
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
|
|
187
|
+
[key: string]: unknown;
|
|
188
|
+
} | string) => void;
|
|
189
|
+
api: {
|
|
190
|
+
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
191
|
+
};
|
|
192
|
+
className?: string;
|
|
193
|
+
isMobile?: boolean;
|
|
194
|
+
formatAmount: (amount: number | string, precision: number, symbol: string) => string;
|
|
195
|
+
}
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const useTerminal: () => {
|
|
2
|
+
isTerminal: any;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* 获取扫码设备连接状态
|
|
6
|
+
*/
|
|
7
|
+
export declare const useScannerDevice: () => {
|
|
8
|
+
scannerStatus: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 摄像头激活和状态获取
|
|
12
|
+
*/
|
|
13
|
+
export declare const useCameraDevice: () => {
|
|
14
|
+
activeCamera: () => void;
|
|
15
|
+
cameraStatus: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 获取外部设备扫描结果
|
|
19
|
+
*/
|
|
20
|
+
export declare const useScanListener: () => {
|
|
21
|
+
scanResult: {
|
|
22
|
+
type: 'scanner' | 'nfc' | 'camera';
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type Peripherals = {
|
|
2
|
+
scanner: 'none' | 'connected' | 'disconnect';
|
|
3
|
+
nfc: 'none' | 'connected' | 'disconnect';
|
|
4
|
+
};
|
|
5
|
+
export interface HuifuProps {
|
|
6
|
+
isNativeApp?: boolean;
|
|
7
|
+
onChange: (status: any, params: any) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface HuifuActionProps {
|
|
10
|
+
isNativeApp?: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
onPayClick: (scanResult: string) => void;
|
|
13
|
+
onScanCallback: (scanResult: string) => void;
|
|
14
|
+
}
|