@pisell/private-materials 6.8.27 → 6.8.29
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.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- 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/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/index.d.ts +26 -0
- package/es/components/booking/components/actionButtons/index.d.ts +31 -0
- package/es/components/booking/components/footer/amount.d.ts +37 -0
- package/es/components/booking/components/footer/index.js +43 -44
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/components/voucherModal/index.d.ts +19 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/forms.d.ts +30 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.d.ts +0 -1
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.js +0 -1
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service/addService/index.d.ts +11 -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/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/utils.d.ts +219 -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/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +3 -0
- package/es/components/booking/info2/service/editNormalService/index.js +4 -4
- package/es/components/booking/info2/service/editService/index.js +3 -3
- package/es/components/booking/info2/service/editService/utils.js +6 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/es/components/booking/locales.d.ts +951 -0
- package/es/components/booking/notes/addNote/index.d.ts +4 -0
- package/es/components/booking/utils/confirmHolderModal.js +3 -4
- package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/booking/utils.js +7 -1
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +16 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/es/components/checkout/components/SendPaymentLinkModal/index.d.ts +12 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/payment-modal-utils.d.ts +30 -0
- package/es/components/checkout/plugin.js +14 -4
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/eftposPay/EFTPos.d.ts +14 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/const.d.ts +190 -0
- package/es/components/eftposPay/device.d.ts +25 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/serve.d.ts +16 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/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/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/list/ResponsiveWrapper.d.ts +16 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/components/EmptyState/index.d.ts +2 -0
- package/es/components/list/components/Pagination/index.d.ts +1 -0
- package/es/components/list/examples/GroupedListExample.d.ts +3 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/list/index.d.ts +10 -0
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/es/components/pay/toB/components/Card/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +8 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -1
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/EFTPOS/index.d.ts +8 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/components/index.d.ts +5 -0
- package/es/components/pay/toB/index.d.ts +3 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/paymentMethods/index.d.ts +11 -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/store/utils.d.ts +13 -0
- package/es/components/pay/toB/types/index.d.ts +72 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +39 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +10 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -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/useShopDiscountModule.d.ts +6 -0
- package/es/components/ticketBooking/serve.d.ts +288 -0
- package/es/components/ticketBooking/utils/index.d.ts +101 -0
- package/es/components/walletList/index.d.ts +0 -1
- package/es/components/walletList/serve.d.ts +43 -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/index.d.ts +10 -0
- package/es/hooks/useModal.example.d.ts +12 -0
- package/es/hooks/useModal.integration.example.d.ts +15 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/index.d.ts +17 -0
- package/es/plus/clinetSearch/locales.d.ts +105 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/types.d.ts +61 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
- package/es/plus/noteModal/AddTempModal.d.ts +0 -1
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/plus/walletPassGallery/index.d.ts +0 -1
- package/es/plus/walletPassGallery/serve.d.ts +235 -0
- package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/index.d.ts +12 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/service.d.ts +44 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/steps/index.d.ts +19 -0
- package/es/pro/NumberKeyboardPopover/index.d.ts +36 -0
- package/es/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +13 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/skuDetailModal/index.js +17 -2
- package/es/pro/skuDetailModal/index.less +1 -1
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- 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/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/index.d.ts +26 -0
- package/lib/components/booking/components/actionButtons/index.d.ts +31 -0
- package/lib/components/booking/components/footer/amount.d.ts +37 -0
- package/lib/components/booking/components/footer/index.js +9 -12
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/components/voucherModal/index.d.ts +19 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/forms.d.ts +30 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.js +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service/addService/index.d.ts +11 -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/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/utils.d.ts +219 -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/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +4 -4
- package/lib/components/booking/info2/service/editService/index.js +4 -4
- package/lib/components/booking/info2/service/editService/utils.js +4 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/lib/components/booking/locales.d.ts +951 -0
- package/lib/components/booking/notes/addNote/index.d.ts +4 -0
- package/lib/components/booking/utils/confirmHolderModal.js +0 -1
- package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/booking/utils.js +5 -1
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +16 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +0 -1
- package/lib/components/checkout/components/SendPaymentLinkModal/index.d.ts +12 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +0 -1
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/payment-modal-utils.d.ts +30 -0
- package/lib/components/checkout/plugin.js +10 -1
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/eftposPay/EFTPos.d.ts +14 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/const.d.ts +190 -0
- package/lib/components/eftposPay/device.d.ts +25 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/serve.d.ts +16 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/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/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/list/ResponsiveWrapper.d.ts +16 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/components/EmptyState/index.d.ts +2 -0
- package/lib/components/list/components/Pagination/index.d.ts +1 -0
- package/lib/components/list/examples/GroupedListExample.d.ts +3 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/list/index.d.ts +10 -0
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +8 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -1
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/EFTPOS/index.d.ts +8 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/components/index.d.ts +5 -0
- package/lib/components/pay/toB/index.d.ts +3 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/paymentMethods/index.d.ts +11 -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/store/utils.d.ts +13 -0
- package/lib/components/pay/toB/types/index.d.ts +72 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +3 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +39 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +10 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +6 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -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/useShopDiscountModule.d.ts +6 -0
- package/lib/components/ticketBooking/serve.d.ts +288 -0
- package/lib/components/ticketBooking/utils/index.d.ts +101 -0
- package/lib/components/walletList/index.d.ts +0 -1
- package/lib/components/walletList/serve.d.ts +43 -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/index.d.ts +10 -0
- package/lib/hooks/useModal.example.d.ts +12 -0
- package/lib/hooks/useModal.integration.example.d.ts +15 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/index.d.ts +17 -0
- package/lib/plus/clinetSearch/locales.d.ts +105 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/types.d.ts +61 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
- package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/serve.d.ts +235 -0
- package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/index.d.ts +12 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/service.d.ts +44 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/steps/index.d.ts +19 -0
- package/lib/pro/NumberKeyboardPopover/index.d.ts +36 -0
- package/lib/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +13 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -1
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/skuDetailModal/index.js +13 -2
- package/lib/pro/skuDetailModal/index.less +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ListProps, ResponsiveConfig, ResponsiveWrapperProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* ResponsiveWrapper 响应式包装器组件
|
|
5
|
+
* 根据不同设备类型自动选择合适的配置
|
|
6
|
+
*/
|
|
7
|
+
declare const ResponsiveWrapper: React.FC<ResponsiveWrapperProps>;
|
|
8
|
+
/**
|
|
9
|
+
* 用于创建响应式配置的工具函数
|
|
10
|
+
*/
|
|
11
|
+
export declare const createResponsiveConfig: (overrides?: {
|
|
12
|
+
pc?: Partial<ListProps>;
|
|
13
|
+
pad?: Partial<ListProps>;
|
|
14
|
+
mobile?: Partial<ListProps>;
|
|
15
|
+
}) => ResponsiveConfig;
|
|
16
|
+
export default ResponsiveWrapper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Pagination';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useDevice, getUserAgentInfo } from './useDevice';
|
|
2
|
+
export type { DeviceType, DeviceInfo } from './useDevice';
|
|
3
|
+
export { default as useWaterfall } from './useWaterfall';
|
|
4
|
+
export { useListState } from './useListState';
|
|
5
|
+
export type { ListState, ListAction, UseListStateProps, UseListStateReturn } from './useListState';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default } from './List';
|
|
2
|
+
export { default as ResponsiveList, createResponsiveConfig } from './ResponsiveWrapper';
|
|
3
|
+
export { default as TestResponsiveWrapper } from './TestResponsiveWrapper';
|
|
4
|
+
export { default as Pagination } from './components/Pagination';
|
|
5
|
+
export { default as Tab } from './components/Tab';
|
|
6
|
+
export { useDevice, getUserAgentInfo } from './hooks/useDevice';
|
|
7
|
+
export { default as TestList } from './TestResponsiveWrapper';
|
|
8
|
+
export type { ListProps, BaseListItem, EmptyStateConfig, PaginationInfo, LayoutConfig, TabConfig, PaginationConfig, LegacyListProps, TabItem, ResponsiveProps, ResponsiveWrapperProps, DeviceType, DeviceInfo, LoadMoreParams, LoadDataParams, LoadDataTrigger } from './types';
|
|
9
|
+
export type { TabProps } from './components/Tab';
|
|
10
|
+
export type { PaginationProps } from './components/Pagination/Pagination';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PayMethod, PayMethodGroup } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const ToBPayCardGroup: (props: {
|
|
5
|
+
data: PayMethodGroup;
|
|
6
|
+
onChange: (item: PayMethod, type: 'fullPay' | 'pay') => void;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default ToBPayCardGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Order, PayMethod, PayMethodCode } from '../../types';
|
|
2
|
+
export declare const isEftposPay: (code: PayMethodCode) => boolean;
|
|
3
|
+
/**
|
|
4
|
+
* @title: 处理eftpos支付
|
|
5
|
+
* @description: 处理eftpos支付
|
|
6
|
+
* @param {any} action 引擎action
|
|
7
|
+
* @param {any} params 参数
|
|
8
|
+
* @param {any} successCallback 成功回调
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleEftposPay: (action: any, params: {
|
|
11
|
+
payMethod: PayMethod;
|
|
12
|
+
order: Order;
|
|
13
|
+
symbol: string;
|
|
14
|
+
network: any;
|
|
15
|
+
type: string;
|
|
16
|
+
}, successCallback: (res: any) => void) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface EFTPOSProps {
|
|
4
|
+
dynamicMaxHeight?: string;
|
|
5
|
+
isWebPos?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<EFTPOSProps & React.RefAttributes<unknown>>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ToBPayContent } from './Content';
|
|
2
|
+
export { default as ToBPayCard } from './Card';
|
|
3
|
+
export { default as ToBPayCardGroup } from './CardGroup';
|
|
4
|
+
export { default as ConfirmedPayment } from './ConfirmedPayment';
|
|
5
|
+
export { default as ToBPayCache } from './Cache';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'tobPay.text.back': string;
|
|
4
|
+
'tobPay.text.waitPay': string;
|
|
5
|
+
'tobPay.text.card.edit.amount': string;
|
|
6
|
+
'tobPay.text.group.normalPay': string;
|
|
7
|
+
'tobPay.text.group.thirdPay': string;
|
|
8
|
+
'tobPay.text.cancel': string;
|
|
9
|
+
'tobPay.text.submit': string;
|
|
10
|
+
'tobPay.text.confirmed.payment': string;
|
|
11
|
+
'tobPay.text.cash.modal.amount.toPay': string;
|
|
12
|
+
'tobPay.text.cash.modal.input.title': string;
|
|
13
|
+
'tobPay.text.cash.modal.no.change.given': string;
|
|
14
|
+
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
|
15
|
+
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
|
16
|
+
'tobPay.text.cash.modal.ok': string;
|
|
17
|
+
'tobPay.text.payment.with.surcharge': string;
|
|
18
|
+
};
|
|
19
|
+
'zh-CN': {
|
|
20
|
+
'tobPay.text.back': string;
|
|
21
|
+
'tobPay.text.waitPay': string;
|
|
22
|
+
'tobPay.text.card.edit.amount': string;
|
|
23
|
+
'tobPay.text.group.normalPay': string;
|
|
24
|
+
'tobPay.text.group.thirdPay': string;
|
|
25
|
+
'tobPay.text.cancel': string;
|
|
26
|
+
'tobPay.text.submit': string;
|
|
27
|
+
'tobPay.text.confirmed.payment': string;
|
|
28
|
+
'tobPay.text.cash.modal.amount.toPay': string;
|
|
29
|
+
'tobPay.text.cash.modal.input.title': string;
|
|
30
|
+
'tobPay.text.cash.modal.no.change.given': string;
|
|
31
|
+
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
|
32
|
+
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
|
33
|
+
'tobPay.text.cash.modal.ok': string;
|
|
34
|
+
'tobPay.text.payment.with.surcharge': string;
|
|
35
|
+
};
|
|
36
|
+
'zh-HK': {
|
|
37
|
+
'tobPay.text.back': string;
|
|
38
|
+
'tobPay.text.waitPay': string;
|
|
39
|
+
'tobPay.text.card.edit.amount': string;
|
|
40
|
+
'tobPay.text.group.normalPay': string;
|
|
41
|
+
'tobPay.text.group.thirdPay': string;
|
|
42
|
+
'tobPay.text.cancel': string;
|
|
43
|
+
'tobPay.text.submit': string;
|
|
44
|
+
'tobPay.text.confirmed.payment': string;
|
|
45
|
+
'tobPay.text.cash.modal.amount.toPay': string;
|
|
46
|
+
'tobPay.text.cash.modal.input.title': string;
|
|
47
|
+
'tobPay.text.cash.modal.no.change.given': string;
|
|
48
|
+
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
|
49
|
+
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
|
50
|
+
'tobPay.text.cash.modal.ok': string;
|
|
51
|
+
'tobPay.text.payment.with.surcharge': string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ToBPayParams } from '../types';
|
|
3
|
+
export interface PaymentMethodsRef {
|
|
4
|
+
onPay: (type: 'eftpos' | 'mx51', params: ToBPayParams) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface PaymentMethodsProps {
|
|
7
|
+
dynamicMaxHeight?: string;
|
|
8
|
+
isWebPos?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<PaymentMethodsRef>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ToBPayContextType } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 使用商家端支付的Hook
|
|
4
|
+
* @throws {Error} 如果在ToBPayProvider外部使用会抛出错误
|
|
5
|
+
* @returns {ToBPayContextType} 商家端支付上下文
|
|
6
|
+
*/
|
|
7
|
+
export declare const useToBPay: () => ToBPayContextType;
|
|
8
|
+
export declare const useOSPayment: () => any;
|
|
9
|
+
/**
|
|
10
|
+
* 使用OS支付的Hook
|
|
11
|
+
*/
|
|
12
|
+
export declare const useOSPaymentEffect: () => {
|
|
13
|
+
osPaymentEffectOn: () => void;
|
|
14
|
+
osPaymentEffectOff: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PayMethod, PayMethodGroup } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 处理支付方式列表
|
|
4
|
+
* @param payMethodList 支付方式列表
|
|
5
|
+
* @returns 处理后的支付方式列表
|
|
6
|
+
*/
|
|
7
|
+
export declare const handlePayMethodList: (payMethodList: PayMethod[]) => PayMethodGroup[];
|
|
8
|
+
/**
|
|
9
|
+
* inputNumber过滤
|
|
10
|
+
* @param value
|
|
11
|
+
* @returns string
|
|
12
|
+
*/
|
|
13
|
+
export declare const limitDecimals: (value: any) => any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export * from './storeTypes';
|
|
2
|
+
export interface ToBPayParams {
|
|
3
|
+
source?: 'normal' | 'restore';
|
|
4
|
+
data: {
|
|
5
|
+
type?: string;
|
|
6
|
+
payMethod: {
|
|
7
|
+
id: string;
|
|
8
|
+
code: string;
|
|
9
|
+
type: string;
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
params: {
|
|
13
|
+
orderId: string | number;
|
|
14
|
+
symbol?: string;
|
|
15
|
+
amount: string;
|
|
16
|
+
surcharge?: string;
|
|
17
|
+
};
|
|
18
|
+
mode: 'pay' | 'refund';
|
|
19
|
+
};
|
|
20
|
+
callback: ToBPayCallback;
|
|
21
|
+
}
|
|
22
|
+
export declare type ToBPayCallback = (res: {
|
|
23
|
+
status: string;
|
|
24
|
+
data: {
|
|
25
|
+
amount: number;
|
|
26
|
+
surPercentRate?: number;
|
|
27
|
+
surMoney?: number;
|
|
28
|
+
surcharge?: number;
|
|
29
|
+
uniquePaymentNumber?: string;
|
|
30
|
+
};
|
|
31
|
+
msg?: string;
|
|
32
|
+
}) => void;
|
|
33
|
+
/**
|
|
34
|
+
* @title: 支付打开参数
|
|
35
|
+
*/
|
|
36
|
+
export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
|
|
37
|
+
payCallback: (res: EftposPayResult | MX51PayResult) => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @title: eftpos支付结果
|
|
41
|
+
*/
|
|
42
|
+
export interface EftposPayResult {
|
|
43
|
+
status: 'success' | 'fail';
|
|
44
|
+
params: {
|
|
45
|
+
amount: number;
|
|
46
|
+
surPercentRate: number;
|
|
47
|
+
surMoney: number;
|
|
48
|
+
uniquePaymentNumber: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @title: MX51支付结果
|
|
53
|
+
*/
|
|
54
|
+
export interface MX51PayResult {
|
|
55
|
+
result: boolean;
|
|
56
|
+
msg?: string;
|
|
57
|
+
amount: number;
|
|
58
|
+
surcharge: number;
|
|
59
|
+
uniquePaymentNumber: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @title 原生MX51支付结果
|
|
63
|
+
*/
|
|
64
|
+
export interface NativeMX51PayResult {
|
|
65
|
+
code: string;
|
|
66
|
+
msg?: string;
|
|
67
|
+
data: {
|
|
68
|
+
amount: number;
|
|
69
|
+
surcharge: number;
|
|
70
|
+
};
|
|
71
|
+
uuid: string;
|
|
72
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export interface ToBPayContextType {
|
|
2
|
+
/** 订单 */
|
|
3
|
+
order: Order;
|
|
4
|
+
/** 设置订单 */
|
|
5
|
+
setOrder: (order: Order) => void;
|
|
6
|
+
/** 订单信息 */
|
|
7
|
+
orderInfo: OrderInfo;
|
|
8
|
+
/** 设置订单信息 */
|
|
9
|
+
setOrderInfo: (orderInfo: OrderInfo) => void;
|
|
10
|
+
/** 支付方式列表 */
|
|
11
|
+
payMethodGroupList: PayMethodGroup[];
|
|
12
|
+
/** 设置支付方式列表 */
|
|
13
|
+
setPayMethodGroupList: (payMethodGroupList: PayMethodGroup[]) => void;
|
|
14
|
+
/** 获取支付方式列表 */
|
|
15
|
+
getPayMethodList: () => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* OS支付的订单信息
|
|
19
|
+
*/
|
|
20
|
+
export interface Order {
|
|
21
|
+
/** 订单唯一标识 */
|
|
22
|
+
uuid: string;
|
|
23
|
+
/** 订单 id */
|
|
24
|
+
id: number;
|
|
25
|
+
/** 订单信息 */
|
|
26
|
+
order_info: OrderInfo;
|
|
27
|
+
/** 作废的支付项 */
|
|
28
|
+
adjust_offline_payments: any[];
|
|
29
|
+
/** 支付项 */
|
|
30
|
+
payment: Payment[];
|
|
31
|
+
/** 支付状态 */
|
|
32
|
+
payment_status: string;
|
|
33
|
+
/** 税费 */
|
|
34
|
+
tax_fee: string;
|
|
35
|
+
/** 订单总金额 */
|
|
36
|
+
total_amount: string;
|
|
37
|
+
/** 待付金额 */
|
|
38
|
+
expect_amount: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 订单信息
|
|
42
|
+
*/
|
|
43
|
+
export interface OrderInfo {
|
|
44
|
+
/** 订单 id */
|
|
45
|
+
order_id: number;
|
|
46
|
+
/** 订单总金额 */
|
|
47
|
+
total_amount: string;
|
|
48
|
+
/** 是否是定金订单 */
|
|
49
|
+
is_deposit: 0 | 1;
|
|
50
|
+
/** 定金金额 */
|
|
51
|
+
deposit_amount: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 支付方式
|
|
55
|
+
*/
|
|
56
|
+
export interface PayMethod {
|
|
57
|
+
/** 支付方式 id */
|
|
58
|
+
id: number;
|
|
59
|
+
/** 店铺 id */
|
|
60
|
+
shop_id: number;
|
|
61
|
+
/** 支付方式代码 */
|
|
62
|
+
code: PayMethodCode;
|
|
63
|
+
/** 支付方式类型 */
|
|
64
|
+
type: string;
|
|
65
|
+
/** 支付方式名称 */
|
|
66
|
+
name: string;
|
|
67
|
+
/** 支付方式描述 */
|
|
68
|
+
description: string;
|
|
69
|
+
/** 支付方式通道 */
|
|
70
|
+
channel_application: string[];
|
|
71
|
+
/** 支付方式状态 */
|
|
72
|
+
status: 0 | 1;
|
|
73
|
+
/** 是否是附加费用 */
|
|
74
|
+
is_surcharge: 0 | 1;
|
|
75
|
+
/** 是否禁用 */
|
|
76
|
+
disable: 0 | 1;
|
|
77
|
+
/** 支付方式公司 */
|
|
78
|
+
companies: any;
|
|
79
|
+
/** 支付方式额外数据 */
|
|
80
|
+
metadata?: {
|
|
81
|
+
order_rounding_switch: number;
|
|
82
|
+
};
|
|
83
|
+
/** 创建时间 */
|
|
84
|
+
created_at: string;
|
|
85
|
+
/** 更新时间 */
|
|
86
|
+
updated_at: string;
|
|
87
|
+
/** 删除时间 */
|
|
88
|
+
deleted_at: string | null;
|
|
89
|
+
/** 固定费用 */
|
|
90
|
+
fixed: string;
|
|
91
|
+
/** 百分比费用 */
|
|
92
|
+
percentage: string;
|
|
93
|
+
}
|
|
94
|
+
export declare enum PayMethodCode {
|
|
95
|
+
/** 现金支付 */
|
|
96
|
+
CASHMANUAL = "CASHMANUAL",
|
|
97
|
+
/** eftpos payo */
|
|
98
|
+
EFTPOS_PAYO = "EFTPOS_PAYO",
|
|
99
|
+
/** eftpos windcave */
|
|
100
|
+
EFTPOS_WINDCAVE = "EFTPOS_WINDCAVE",
|
|
101
|
+
/** eftpos tyro */
|
|
102
|
+
EFTPOS_TYRO = "EFTPOS_TYRO",
|
|
103
|
+
/** eftpos linkly */
|
|
104
|
+
EFTPOS_LINKLY = "EFTPOS_LINKLY"
|
|
105
|
+
}
|
|
106
|
+
export interface PayMethodGroup {
|
|
107
|
+
title: string;
|
|
108
|
+
list: PayMethod[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 已经支付的信息
|
|
112
|
+
*/
|
|
113
|
+
export interface Payment {
|
|
114
|
+
/** 当前支付项的唯一 ID,用于标记支付项的唯一性 */
|
|
115
|
+
uuid: string;
|
|
116
|
+
/** 当前支付方式付出去多少钱 */
|
|
117
|
+
amount: number;
|
|
118
|
+
/** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
|
119
|
+
code: PayMethodCode;
|
|
120
|
+
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
|
121
|
+
id: number;
|
|
122
|
+
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
|
123
|
+
name: string;
|
|
124
|
+
/** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
|
125
|
+
type: string;
|
|
126
|
+
/** 代金券、充值卡、积分卡 等wallet pass id,通过order/deduction 查出来的,本期都为空 */
|
|
127
|
+
voucher_id?: string | null;
|
|
128
|
+
/** 该支付项是否已经同步给后端 */
|
|
129
|
+
isSynced?: boolean;
|
|
130
|
+
/** 支付时间 */
|
|
131
|
+
created_at?: string;
|
|
132
|
+
/** 支付方式额外数据 */
|
|
133
|
+
metadata?: {
|
|
134
|
+
unique_payment_number: string;
|
|
135
|
+
};
|
|
136
|
+
/** 手续费 */
|
|
137
|
+
service_charge?: {
|
|
138
|
+
/** 手续费百分比 */
|
|
139
|
+
percentage?: number | string;
|
|
140
|
+
/** 手续费固定金额 */
|
|
141
|
+
amount?: number | string;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export declare type MachineCodeListParams = {
|
|
2
|
+
order_id: number | string;
|
|
3
|
+
available: number;
|
|
4
|
+
prepare_payments: {
|
|
5
|
+
voucher_id: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
tag: string;
|
|
8
|
+
}[];
|
|
9
|
+
filter_prepare_wallet_pass: 1 | 0;
|
|
10
|
+
sale_channel: string;
|
|
11
|
+
other_exact_codes?: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare type WalletPassDataType = {
|
|
14
|
+
id: number;
|
|
15
|
+
shop_id: number;
|
|
16
|
+
customer_id: number;
|
|
17
|
+
code: string;
|
|
18
|
+
encoded: string;
|
|
19
|
+
status: string;
|
|
20
|
+
cover: string;
|
|
21
|
+
tag: string;
|
|
22
|
+
relation_type: string;
|
|
23
|
+
product_id: number;
|
|
24
|
+
limit_status: string;
|
|
25
|
+
sales_status: number;
|
|
26
|
+
par_value: string;
|
|
27
|
+
used_par_value: string;
|
|
28
|
+
start_date: string;
|
|
29
|
+
expire_date: string;
|
|
30
|
+
end_time: string;
|
|
31
|
+
start_time: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
product_name: string;
|
|
34
|
+
expire_time: string;
|
|
35
|
+
available_max_par_value: string;
|
|
36
|
+
available_max_amount: string;
|
|
37
|
+
recommended_usage_amount: string;
|
|
38
|
+
custom_expire_status: number;
|
|
39
|
+
wallet_pass_usage_unit: WalletPassUsageUnit;
|
|
40
|
+
custom_order_deduct_exhausted: number;
|
|
41
|
+
available_product_status: number;
|
|
42
|
+
available_product_ids: any[];
|
|
43
|
+
available_product_type: string;
|
|
44
|
+
available_num: number;
|
|
45
|
+
available_product_title: string;
|
|
46
|
+
unified_available_status: number;
|
|
47
|
+
unified_messages: UnifiedMessages;
|
|
48
|
+
external_card: any[];
|
|
49
|
+
product: Product;
|
|
50
|
+
shop: Shop;
|
|
51
|
+
wallet_pass_usage?: any;
|
|
52
|
+
balance_par_value: string;
|
|
53
|
+
custom_schedule_snapshot?: {
|
|
54
|
+
data: any[];
|
|
55
|
+
};
|
|
56
|
+
metadata?: {
|
|
57
|
+
validity_type: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
declare type Shop = {
|
|
61
|
+
id: number;
|
|
62
|
+
name: string;
|
|
63
|
+
default_url: string;
|
|
64
|
+
};
|
|
65
|
+
declare type Product = {
|
|
66
|
+
id: number;
|
|
67
|
+
title: string;
|
|
68
|
+
cover: string;
|
|
69
|
+
is_charge_tax: number;
|
|
70
|
+
};
|
|
71
|
+
declare type UnifiedMessages = {
|
|
72
|
+
title: string;
|
|
73
|
+
desc: string;
|
|
74
|
+
alert: string;
|
|
75
|
+
};
|
|
76
|
+
declare type WalletPassUsageUnit = {
|
|
77
|
+
price: number;
|
|
78
|
+
points: number;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 查询支付识别码列表
|
|
82
|
+
*/
|
|
83
|
+
export declare const getMachineCodeList: (params: MachineCodeListParams) => Promise<WalletPassDataType[]>;
|
|
84
|
+
/**
|
|
85
|
+
* 获取推荐的支付识别码
|
|
86
|
+
*/
|
|
87
|
+
export declare const getRecommendMachineCodeList: (order_id: number) => Promise<WalletPassDataType[]>;
|
|
88
|
+
/**
|
|
89
|
+
* 搜索支付识别码
|
|
90
|
+
*/
|
|
91
|
+
export declare const searchMachineCodeList: (params: {
|
|
92
|
+
order_id: number | string;
|
|
93
|
+
code?: string;
|
|
94
|
+
sale_channel: string;
|
|
95
|
+
prepare_payments: {
|
|
96
|
+
voucher_id: number;
|
|
97
|
+
amount: number;
|
|
98
|
+
tag: string;
|
|
99
|
+
}[];
|
|
100
|
+
filter_prepare_wallet_pass?: 1 | 0;
|
|
101
|
+
customer_pin_key?: string;
|
|
102
|
+
}) => Promise<WalletPassDataType[]>;
|
|
103
|
+
/**
|
|
104
|
+
* walletpass支付
|
|
105
|
+
*/
|
|
106
|
+
export declare const walletPassPay: (params: {
|
|
107
|
+
order_id: number | string;
|
|
108
|
+
payment_group_id: number;
|
|
109
|
+
payments: {
|
|
110
|
+
amount: string;
|
|
111
|
+
wallet_pass_use_value: string;
|
|
112
|
+
voucher_id: number;
|
|
113
|
+
tag: string;
|
|
114
|
+
wallet_pass_usage_unit: {
|
|
115
|
+
price: number;
|
|
116
|
+
points: number;
|
|
117
|
+
};
|
|
118
|
+
}[];
|
|
119
|
+
}) => Promise<WalletPassDataType[]>;
|
|
120
|
+
/**
|
|
121
|
+
* 搜索wallet code
|
|
122
|
+
*/
|
|
123
|
+
export declare const searchWalletCode: (params: {
|
|
124
|
+
code: string;
|
|
125
|
+
with_customer: 1 | 0;
|
|
126
|
+
}) => Promise<{
|
|
127
|
+
code: string;
|
|
128
|
+
id: number;
|
|
129
|
+
status: 'enable' | 'disable' | 'expired';
|
|
130
|
+
expired_at: string;
|
|
131
|
+
customer: Record<string, any>;
|
|
132
|
+
check_max_count: number;
|
|
133
|
+
failed_count: number;
|
|
134
|
+
}>;
|
|
135
|
+
/**
|
|
136
|
+
* 验证pin码
|
|
137
|
+
*/
|
|
138
|
+
export declare const verifyPinCode: (params: {
|
|
139
|
+
wallet_detail_id: number;
|
|
140
|
+
pin: string;
|
|
141
|
+
}) => Promise<{
|
|
142
|
+
status: number;
|
|
143
|
+
customer_id: number;
|
|
144
|
+
msg: string;
|
|
145
|
+
customer_pin_key: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* 获取pin码
|
|
149
|
+
*/
|
|
150
|
+
export declare const getPin: (params: {
|
|
151
|
+
wallet_detail_id: number;
|
|
152
|
+
}) => Promise<{
|
|
153
|
+
pin: string;
|
|
154
|
+
}>;
|
|
155
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PaymentMethodsRef {
|
|
3
|
+
onPay: (props: any) => void;
|
|
4
|
+
}
|
|
5
|
+
interface PaymentMethodsProps {
|
|
6
|
+
payCallback: (props: any) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<unknown>>;
|
|
9
|
+
export default _default;
|