@pisell/private-materials 6.1.1 → 6.2.1
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 +1 -1
- package/build/lowcode/preview.js +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +13 -4
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +171 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +6 -1
- package/es/components/Sales/Checkout/utils.js +15 -4
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +1 -0
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.js +1 -1
- package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Form/utils.js +17 -15
- package/es/components/appointmentBooking/components/Header/index.js +2 -1
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +9 -33
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +47 -18
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/{pay/toB/store/provider.js → booking/components/reloadResourceModal/index.js} +48 -52
- package/es/components/booking/components/reloadResourceModal/index.less +6 -0
- package/es/components/booking/components/voucher/index.js +2 -2
- package/es/components/booking/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/index.js +386 -0
- package/es/components/booking/editBookingModal/index.less +8 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/locales.js +20 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/mock.js +2993 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/serve.js +288 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/type.js +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.js +157 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/client/index.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
- package/es/components/booking/info/index.js +4 -5
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceManager/index.js +4 -4
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +6 -4
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +37 -13
- package/es/components/booking/info2/service/addService/index.js +22 -9
- package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/es/components/booking/info2/service/addService/utils.js +48 -14
- package/es/components/booking/info2/service/addTimeModal/index.js +32 -9
- package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
- package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/es/components/booking/info2/service/editService/index.js +12 -15
- package/es/components/booking/info2/utils.js +13 -16
- package/es/components/booking/info2/utilsByBooking.js +10 -1
- package/es/components/booking/locales.d.ts +12 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/{pay/toB/store/hooks.js → eftposPay/linkly/hooks/useTimeQuery.js} +252 -59
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/payo/config.js +30 -3
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
- package/es/components/eventBooking/index.js +21 -7
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +30 -6
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productSelect/components/pisellPriceText/index.js +2 -3
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- 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/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/utils.d.ts +1 -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/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +19 -9
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +141 -142
- package/es/components/ticketBooking/index.js +4 -3
- package/es/components/ticketBooking/serve.d.ts +0 -1
- package/es/components/ticketBooking/serve.js +0 -26
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/Sales/index.js +22 -8
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +9 -4
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +120 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +6 -1
- package/lib/components/Sales/Checkout/utils.js +7 -3
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +1 -0
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.js +6 -1
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
- package/lib/components/appointmentBooking/components/Header/index.js +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +4 -23
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +27 -7
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
- package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
- package/lib/components/booking/components/voucher/index.js +2 -2
- package/lib/components/booking/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/index.js +363 -0
- package/lib/components/booking/editBookingModal/index.less +8 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/locales.js +44 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/mock.js +3314 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/serve.js +178 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/{pay/toB/store/context.js → booking/editBookingModal/type.js} +3 -18
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.js +158 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/lib/components/booking/info/addServiceVariant/index.js +3 -3
- package/lib/components/booking/info/client/index.js +19 -57
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
- package/lib/components/booking/info/index.js +6 -4
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +3 -3
- package/lib/components/booking/info/service/editService/index.js +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceManager/index.js +3 -3
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +5 -4
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/index.js +54 -20
- package/lib/components/booking/info2/service/addService/index.js +20 -7
- package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/lib/components/booking/info2/service/addService/utils.js +32 -5
- package/lib/components/booking/info2/service/addTimeModal/index.js +26 -10
- package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
- package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/lib/components/booking/info2/service/editService/index.js +25 -28
- package/lib/components/booking/info2/utils.js +0 -15
- package/lib/components/booking/info2/utilsByBooking.js +7 -1
- package/lib/components/booking/locales.d.ts +12 -0
- package/lib/components/booking/locales.js +12 -0
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/{pay/toB/types → eftposPay/linkly/hooks}/index.js +7 -5
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -2
- package/lib/components/eftposPay/payo/config.js +22 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/{pay/toB/components → eventBooking/components/Provider/Cart/Deposit}/index.js +26 -22
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
- package/lib/components/eventBooking/index.js +11 -7
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +30 -6
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productSelect/components/pisellPriceText/index.js +2 -8
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- 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/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -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/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/{pay/toB/components/Content/Header.js → stepController/components/Content/index.js} +9 -9
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/{pay/toB/components/CardGroup → stepController/components/Footer}/index.js +17 -11
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/{pay/toB/store/index.js → stepController/types.js} +3 -13
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +22 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +147 -143
- package/lib/components/ticketBooking/index.js +5 -16
- package/lib/components/ticketBooking/serve.d.ts +0 -1
- package/lib/components/ticketBooking/serve.js +0 -11
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/edit-booking-modal/meta.ts +53 -0
- package/lowcode/step-controller/meta.ts +88 -0
- package/package.json +3 -3
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Cache/index.js +0 -94
- package/es/components/pay/toB/components/Cache/index.less +0 -41
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/Card/index.js +0 -32
- package/es/components/pay/toB/components/Card/index.less +0 -26
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.js +0 -22
- package/es/components/pay/toB/components/CardGroup/index.less +0 -18
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/ConfirmedPayment/index.js +0 -67
- package/es/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Footer.js +0 -36
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/Header.js +0 -12
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.js +0 -277
- package/es/components/pay/toB/components/Content/index.less +0 -9
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/Content/utils.js +0 -76
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/components/index.js +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/hooks.js +0 -30
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/index.js +0 -24
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/locales.js +0 -65
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/context.js +0 -2
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/index.js +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/store/utils.js +0 -66
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/index.js +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/es/components/pay/toB/types/storeTypes.js +0 -24
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Cache/index.js +0 -108
- package/lib/components/pay/toB/components/Cache/index.less +0 -41
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/Card/index.js +0 -66
- package/lib/components/pay/toB/components/Card/index.less +0 -26
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.less +0 -18
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/ConfirmedPayment/index.js +0 -77
- package/lib/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Footer.js +0 -63
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.js +0 -209
- package/lib/components/pay/toB/components/Content/index.less +0 -9
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/Content/utils.js +0 -91
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/hooks.js +0 -60
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/index.js +0 -54
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/locales.js +0 -77
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/hooks.js +0 -85
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/provider.js +0 -70
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/store/utils.js +0 -72
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/lib/components/pay/toB/types/storeTypes.js +0 -36
- package/lowcode/tob-pay/meta.ts +0 -44
@@ -110,6 +110,7 @@ declare const _default: {
|
|
110
110
|
'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
|
111
111
|
'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
|
112
112
|
'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
|
113
|
+
'pisell1.text.resource-error-message-unbound': string;
|
113
114
|
'pisell1.text.no-addons': string;
|
114
115
|
'pisell1.text.no-resource': string;
|
115
116
|
'pisell1.text.no-payments': string;
|
@@ -227,6 +228,9 @@ declare const _default: {
|
|
227
228
|
'pisell2.booking.info.text.create-new': string;
|
228
229
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
229
230
|
'pisell2.booking.info.text.form-agreement-no': string;
|
231
|
+
'pisell2.booking.info.resource.warning-title': string;
|
232
|
+
'pisell2.booking.info.resource.warning-content': string;
|
233
|
+
'pisell2.booking.info.resource.retry': string;
|
230
234
|
'pisell2.text.open.items': string;
|
231
235
|
'pisell2.text.cart.of': (val: any) => string;
|
232
236
|
'pisell2.text.no.selected': string;
|
@@ -389,6 +393,7 @@ declare const _default: {
|
|
389
393
|
'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
|
390
394
|
'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
|
391
395
|
'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
|
396
|
+
'pisell1.text.resource-error-message-unbound': string;
|
392
397
|
'pisell2.text.flexible': string;
|
393
398
|
'pisell2.text.order-discount': string;
|
394
399
|
'pisell2.text.no-product-added': string;
|
@@ -498,6 +503,9 @@ declare const _default: {
|
|
498
503
|
'pisell2.booking.info.text.create-new': string;
|
499
504
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
500
505
|
'pisell2.booking.info.text.form-agreement-no': string;
|
506
|
+
'pisell2.booking.info.resource.warning-title': string;
|
507
|
+
'pisell2.booking.info.resource.warning-content': string;
|
508
|
+
'pisell2.booking.info.resource.retry': string;
|
501
509
|
'pisell2.text.open.items': string;
|
502
510
|
'pisell2.text.cart.of': (val: any) => string;
|
503
511
|
'pisell2.text.no.selected': string;
|
@@ -660,6 +668,7 @@ declare const _default: {
|
|
660
668
|
'pisell1.text.resource-error-message-1': (x: string, y: string) => string;
|
661
669
|
'pisell1.text.resource-error-message-2': (x: string, y: string, z: string) => string;
|
662
670
|
'pisell1.text.resource-error-message-3': (x: string, y: string, z: string) => string;
|
671
|
+
'pisell1.text.resource-error-message-unbound': string;
|
663
672
|
'pisell2.text.flexible': string;
|
664
673
|
'pisell2.text.order-discount': string;
|
665
674
|
'pisell2.text.no-product-added': string;
|
@@ -769,6 +778,9 @@ declare const _default: {
|
|
769
778
|
'pisell2.booking.info.text.create-new': string;
|
770
779
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
771
780
|
'pisell2.booking.info.text.form-agreement-no': string;
|
781
|
+
'pisell2.booking.info.resource.warning-title': string;
|
782
|
+
'pisell2.booking.info.resource.warning-content': string;
|
783
|
+
'pisell2.booking.info.resource.retry': string;
|
772
784
|
'pisell2.text.open.items': string;
|
773
785
|
'pisell2.text.cart.of': (val: any) => string;
|
774
786
|
'pisell2.text.no.selected': string;
|
@@ -128,6 +128,7 @@ export default {
|
|
128
128
|
'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
|
129
129
|
return "".concat(x, " is fully booked between ").concat(y, " and ").concat(z, ", but your team member can still book appointments.");
|
130
130
|
},
|
131
|
+
'pisell1.text.resource-error-message-unbound': 'This booking product is not associated with the target resource.',
|
131
132
|
'pisell1.text.no-addons': 'No addons',
|
132
133
|
'pisell1.text.no-resource': 'No resource',
|
133
134
|
'pisell1.text.no-payments': 'No payments',
|
@@ -262,6 +263,9 @@ export default {
|
|
262
263
|
'pisell2.booking.info.text.create-new': "Create new",
|
263
264
|
'pisell2.booking.info.text.form-agreement-yes': "Yes",
|
264
265
|
'pisell2.booking.info.text.form-agreement-no': "No",
|
266
|
+
'pisell2.booking.info.resource.warning-title': "Resource Loading Failed",
|
267
|
+
'pisell2.booking.info.resource.warning-content': "Failed to load resources due to network issues. You may click 'Retry' to attempt reloading. Otherwise, only normal products can be checkout.",
|
268
|
+
'pisell2.booking.info.resource.retry': "Retry",
|
265
269
|
'pisell2.text.open.items': 'Open items',
|
266
270
|
'pisell2.text.cart.of': function pisell2TextCartOf(val) {
|
267
271
|
return "Cart of ".concat(val);
|
@@ -454,6 +458,7 @@ export default {
|
|
454
458
|
'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
|
455
459
|
return "".concat(x, "\u5728").concat(y, "\u5230").concat(z, "\u4E4B\u95F4\u5DF2\u7EA6\u6EE1\uFF0C\u4F46\u60A8\u7684\u56E2\u961F\u6210\u5458\u4ECD\u7136\u53EF\u4EE5\u9884\u7EA6\u3002");
|
456
460
|
},
|
461
|
+
'pisell1.text.resource-error-message-unbound': '该预约商品未关联目标资源。',
|
457
462
|
'pisell2.text.flexible': "灵活",
|
458
463
|
'pisell2.text.order-discount': "折扣",
|
459
464
|
'pisell2.text.no-product-added': '未添加商品',
|
@@ -580,6 +585,9 @@ export default {
|
|
580
585
|
'pisell2.booking.info.text.create-new': "新建",
|
581
586
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
582
587
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
588
|
+
'pisell2.booking.info.resource.warning-title': "资源加载失败",
|
589
|
+
'pisell2.booking.info.resource.warning-content': "由于网络原因, 获取资源失败! 您可以点击“重试”尝试重新加载, 否则只可以下单普通商品。",
|
590
|
+
'pisell2.booking.info.resource.retry': "重试",
|
583
591
|
'pisell2.text.open.items': '公共购物车',
|
584
592
|
'pisell2.text.cart.of': function pisell2TextCartOf(val) {
|
585
593
|
return "".concat(val, "\u7684\u8D2D\u7269\u8F66");
|
@@ -772,6 +780,7 @@ export default {
|
|
772
780
|
'pisell1.text.resource-error-message-3': function pisell1TextResourceErrorMessage3(x, y, z) {
|
773
781
|
return "".concat(x, "\u5728").concat(y, "\u5230").concat(z, "\u4E4B\u9593\u5DF2\u7D04\u6EFF\uFF0C\u4F46\u60A8\u7684\u5718\u968A\u6210\u54E1\u4ECD\u7136\u53EF\u4EE5\u9810\u7D04\u3002");
|
774
782
|
},
|
783
|
+
'pisell1.text.resource-error-message-unbound': '該預約商品未關聯目標資源。',
|
775
784
|
'pisell2.text.flexible': "靈活",
|
776
785
|
'pisell2.text.order-discount': "折扣",
|
777
786
|
'pisell2.text.no-product-added': '未添加商品',
|
@@ -898,6 +907,9 @@ export default {
|
|
898
907
|
'pisell2.booking.info.text.create-new': "新建",
|
899
908
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
900
909
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
910
|
+
'pisell2.booking.info.resource.warning-title': "資源載入失敗",
|
911
|
+
'pisell2.booking.info.resource.warning-content': "由於網路問題,無法取得資源!您可以點擊「重試」重新載入,否則僅能訂購一般商品。",
|
912
|
+
'pisell2.booking.info.resource.retry': "重試",
|
901
913
|
'pisell2.text.open.items': '公共購物車',
|
902
914
|
'pisell2.text.cart.of': function pisell2TextCartOf(val) {
|
903
915
|
return "".concat(val, "\u7684\u8CFC\u7269\u8ECA");
|
@@ -5,7 +5,8 @@ export declare enum EftposEnum {
|
|
5
5
|
Tyro = "tyro",
|
6
6
|
/** 后端支付 - 支付 + 退款 */
|
7
7
|
Windcave = "windcave",
|
8
|
-
Stripe = "stripe"
|
8
|
+
Stripe = "stripe",
|
9
|
+
Linkly = "linkly"
|
9
10
|
}
|
10
11
|
export declare enum StatusEnum {
|
11
12
|
Loading = "loading",
|
@@ -147,6 +148,8 @@ export declare enum PayStatus {
|
|
147
148
|
'Success' = "200",
|
148
149
|
/** 未生成交易记录 */
|
149
150
|
'NoPay' = "4004",
|
151
|
+
/** 配对失效 */
|
152
|
+
'PairingFailure' = "606020",
|
150
153
|
/** 支付失败 */
|
151
154
|
'Unknown' = "701000",
|
152
155
|
/** 交易请求超时 */
|
@@ -3,8 +3,9 @@ export var EftposEnum = /*#__PURE__*/function (EftposEnum) {
|
|
3
3
|
EftposEnum["Tyro"] = "tyro";
|
4
4
|
EftposEnum["Windcave"] = "windcave";
|
5
5
|
EftposEnum["Stripe"] = "stripe";
|
6
|
+
EftposEnum["Linkly"] = "linkly";
|
6
7
|
return EftposEnum;
|
7
|
-
}({});
|
8
|
+
}({});
|
8
9
|
export var StatusEnum = /*#__PURE__*/function (StatusEnum) {
|
9
10
|
StatusEnum["Loading"] = "loading";
|
10
11
|
StatusEnum["Warn"] = "warn";
|
@@ -64,6 +65,7 @@ export var PayRouteEnum = /*#__PURE__*/function (PayRouteEnum) {
|
|
64
65
|
export var PayStatus = /*#__PURE__*/function (PayStatus) {
|
65
66
|
PayStatus["Success"] = "200";
|
66
67
|
PayStatus["NoPay"] = "4004";
|
68
|
+
PayStatus["PairingFailure"] = "606020";
|
67
69
|
PayStatus["Unknown"] = "701000";
|
68
70
|
PayStatus["Timeout"] = "701001";
|
69
71
|
PayStatus["PayOtherEftposFailed"] = "701003";
|
@@ -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" | "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<"tyro" | "windcave" | "
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -139,6 +139,7 @@ export var useFail = function useFail(index) {
|
|
139
139
|
return;
|
140
140
|
}
|
141
141
|
var code = "".concat(res.code);
|
142
|
+
console.log('code---->>>>>>>', code);
|
142
143
|
if (code === PayStatus.Unknown) {
|
143
144
|
// 前往报错页 不可标记
|
144
145
|
steps[index].title = locales.getText('page.eftpos-pay.text.failed')(modeRef.current);
|
@@ -224,6 +225,7 @@ export var useFail = function useFail(index) {
|
|
224
225
|
dispatch(updateComponent('Fail'));
|
225
226
|
return;
|
226
227
|
}
|
228
|
+
|
227
229
|
// 重新支付 最多到重新发起2次
|
228
230
|
ref.current += 1;
|
229
231
|
dispatch(updateState({
|
@@ -300,7 +302,7 @@ export var useFail = function useFail(index) {
|
|
300
302
|
}));
|
301
303
|
return;
|
302
304
|
}
|
303
|
-
if (code === PayStatus.UserConfigError) {
|
305
|
+
if (code === PayStatus.UserConfigError || code === PayStatus.PairingFailure) {
|
304
306
|
// 前往错误页 不可标记状态
|
305
307
|
steps[index].title = locales.getText('page.eftpos-pay.text.transaction.user.config.title');
|
306
308
|
steps[index].fail = locales.getText('page.eftpos-pay.text.transaction.user.config.text');
|
@@ -163,7 +163,7 @@ export default (function (props) {
|
|
163
163
|
}, [mode, state]);
|
164
164
|
useEffect(function () {
|
165
165
|
document.body.id = 'body';
|
166
|
-
console.log('初始化 ........
|
166
|
+
console.log('初始化 ........112218017777');
|
167
167
|
}, []);
|
168
168
|
|
169
169
|
// console.log('action = ', action);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { State } from '../store';
|
2
|
+
import { ModeEnum } from '../const';
|
3
|
+
export declare const getStep: (mode?: ModeEnum) => State['steps'];
|
4
|
+
declare const _default: (params: any) => State;
|
5
|
+
export default _default;
|
6
|
+
export declare enum EVisibleButtonType {
|
7
|
+
/** 取消按钮 */
|
8
|
+
CancelButton = "CancelButton",
|
9
|
+
/** 等待按钮 */
|
10
|
+
WaitButton = "WaitButton"
|
11
|
+
}
|
12
|
+
export declare enum LinklyActionStatus {
|
13
|
+
/** 空 */
|
14
|
+
Empty = "Empty",
|
15
|
+
/** 取消 */
|
16
|
+
Cancel = "Cancel",
|
17
|
+
/** 取消中 */
|
18
|
+
CancelWaiting = "CancelWaiting",
|
19
|
+
/** 签名 */
|
20
|
+
Signature = "Signature",
|
21
|
+
/** 签名等待中 */
|
22
|
+
SignatureWaiting = "SignatureWaiting"
|
23
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
var _excluded = ["order_id", "name", "symbol", "amount", "mode", "number", "pay", "device", "net", "client"];
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10
|
+
import { locales } from '@pisell/utils';
|
11
|
+
import { ClientEnum, EftposEnum, ModeEnum, PayRouteEnum, StatusEnum } from "../const";
|
12
|
+
export var getStep = function getStep() {
|
13
|
+
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ModeEnum.Pay;
|
14
|
+
return [{
|
15
|
+
key: Date.now(),
|
16
|
+
title: locales.getText('page.eftpos-pay.text.loading')(mode),
|
17
|
+
// 'Payment in process...',
|
18
|
+
text: locales.getText('page.eftpos-pay.text.waiting.processing'),
|
19
|
+
// 'Waiting for the processing...',
|
20
|
+
warn: '',
|
21
|
+
tip: locales.getText('page.eftpos-pay.text.processing'),
|
22
|
+
// 'processing...',
|
23
|
+
status: StatusEnum.Loading
|
24
|
+
}];
|
25
|
+
};
|
26
|
+
export default (function (params) {
|
27
|
+
var _ref = params || {
|
28
|
+
mode: ModeEnum.Pay
|
29
|
+
},
|
30
|
+
order_id = _ref.order_id,
|
31
|
+
name = _ref.name,
|
32
|
+
symbol = _ref.symbol,
|
33
|
+
amount = _ref.amount,
|
34
|
+
mode = _ref.mode,
|
35
|
+
number = _ref.number,
|
36
|
+
pay = _ref.pay,
|
37
|
+
device = _ref.device,
|
38
|
+
net = _ref.net,
|
39
|
+
client = _ref.client,
|
40
|
+
other = _objectWithoutProperties(_ref, _excluded);
|
41
|
+
console.log('params =>>>>>> ', params);
|
42
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
43
|
+
order_id: order_id,
|
44
|
+
name: name,
|
45
|
+
symbol: symbol,
|
46
|
+
amount: amount,
|
47
|
+
mode: mode,
|
48
|
+
eftpos: EftposEnum.Linkly,
|
49
|
+
key: Date.now(),
|
50
|
+
step: 0,
|
51
|
+
type: PayRouteEnum.Step,
|
52
|
+
title: locales.getText('page.eftpos-pay.text.loading')(mode),
|
53
|
+
component: '',
|
54
|
+
status: StatusEnum.Loading,
|
55
|
+
steps: getStep(mode),
|
56
|
+
render: true,
|
57
|
+
client: client !== 'undefined' ? client : ClientEnum.Merchant,
|
58
|
+
warn: '',
|
59
|
+
custom: other || {}
|
60
|
+
}, typeof net !== 'undefined' ? {
|
61
|
+
net: net
|
62
|
+
} : {}), typeof number !== 'undefined' ? {
|
63
|
+
number: number
|
64
|
+
} : {}), typeof pay !== 'undefined' ? {
|
65
|
+
pay: pay
|
66
|
+
} : {}), typeof device !== 'undefined' ? {
|
67
|
+
device: device
|
68
|
+
} : {});
|
69
|
+
});
|
70
|
+
export var EVisibleButtonType = /*#__PURE__*/function (EVisibleButtonType) {
|
71
|
+
EVisibleButtonType["CancelButton"] = "CancelButton";
|
72
|
+
EVisibleButtonType["WaitButton"] = "WaitButton";
|
73
|
+
return EVisibleButtonType;
|
74
|
+
}({});
|
75
|
+
export var LinklyActionStatus = /*#__PURE__*/function (LinklyActionStatus) {
|
76
|
+
LinklyActionStatus["Empty"] = "Empty";
|
77
|
+
LinklyActionStatus["Cancel"] = "Cancel";
|
78
|
+
LinklyActionStatus["CancelWaiting"] = "CancelWaiting";
|
79
|
+
LinklyActionStatus["Signature"] = "Signature";
|
80
|
+
LinklyActionStatus["SignatureWaiting"] = "SignatureWaiting";
|
81
|
+
return LinklyActionStatus;
|
82
|
+
}({});
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* 支付或退款
|
3
|
+
* @param failAction 失败回调
|
4
|
+
*/
|
5
|
+
export declare const useLinklyPayOrRefund: (handleCheck: () => boolean) => {
|
6
|
+
action: {
|
7
|
+
pay: import("ahooks/lib/useRequest/src/types").Result<any, [data: any]>;
|
8
|
+
};
|
9
|
+
payOrRefund: (resultQuery: any, handleLinklySuccess: any) => void;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* @title: 取消支付或退款
|
13
|
+
* @description: 取消支付或退款调用接口后不管成功还是失败都需要调用支付查询接口
|
14
|
+
*/
|
15
|
+
export declare const useLinklyCancel: (handleCheck: () => boolean) => {
|
16
|
+
action: {
|
17
|
+
cancel: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
|
18
|
+
};
|
19
|
+
linklyCancel: (resultQuery: any) => void;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* @title: 支付或退款签名
|
23
|
+
* @description: 支付或退款签名调用接口后不管成功还是失败都需要调用支付查询接口
|
24
|
+
*/
|
25
|
+
export declare const useLinklySignature: (handleCheck: () => boolean) => {
|
26
|
+
action: {
|
27
|
+
signature: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
|
28
|
+
};
|
29
|
+
linklySignature: (status: number, resultQuery: any) => void;
|
30
|
+
};
|