@pisell/private-materials 6.8.28 → 6.8.30
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/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -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/footer/utils.js +2 -2
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +0 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -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 +1 -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/utils.d.ts +106 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -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/serviceList/index.d.ts +1 -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/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/utils/confirmHolderModal.js +3 -4
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/booking/utils.js +7 -1
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/es/components/eftposPay/const.d.ts +190 -0
- package/es/components/eftposPay/device.d.ts +25 -0
- package/es/components/eftposPay/hooks.d.ts +35 -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/locales.d.ts +330 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -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/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/list/hooks/index.d.ts +5 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/locales.d.ts +54 -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/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +32 -0
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -2
- 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/utils/index.d.ts +101 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/locales.d.ts +105 -0
- package/es/plus/clinetSearch/types.d.ts +61 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -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/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/skuDetailModal/index.js +17 -2
- package/es/pro/skuDetailModal/index.less +1 -1
- package/es/test/setup.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -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/footer/utils.js +2 -2
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +0 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -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 +1 -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/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -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/serviceList/index.d.ts +1 -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/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/utils/confirmHolderModal.js +0 -1
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/booking/utils.js +5 -1
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/lib/components/eftposPay/const.d.ts +190 -0
- package/lib/components/eftposPay/device.d.ts +25 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -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/locales.d.ts +330 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -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/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/list/hooks/index.d.ts +5 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/locales.d.ts +54 -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/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +32 -0
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -3
- 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/utils/index.d.ts +101 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/locales.d.ts +105 -0
- package/lib/plus/clinetSearch/types.d.ts +61 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -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/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/skuDetailModal/index.js +13 -2
- package/lib/pro/skuDetailModal/index.less +1 -1
- package/lib/test/setup.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/checkout/plugin.d.ts +0 -2
- package/lib/components/checkout/plugin.d.ts +0 -2
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare enum EftposEnum {
|
|
3
|
+
/** 后端支付 - 仅支付 */
|
|
4
|
+
Payo = "payo",
|
|
5
|
+
/** 前端支付 */
|
|
6
|
+
Tyro = "tyro",
|
|
7
|
+
/** 后端支付 - 支付 + 退款 */
|
|
8
|
+
Windcave = "windcave",
|
|
9
|
+
Stripe = "stripe",
|
|
10
|
+
Linkly = "linkly"
|
|
11
|
+
}
|
|
12
|
+
export declare enum StatusEnum {
|
|
13
|
+
Loading = "loading",
|
|
14
|
+
Warn = "warn",
|
|
15
|
+
Fail = "fail",
|
|
16
|
+
Success = "success",
|
|
17
|
+
Pedding = "pedding",
|
|
18
|
+
Resove = "resove",
|
|
19
|
+
Reject = "reject",
|
|
20
|
+
Question = "question"
|
|
21
|
+
}
|
|
22
|
+
export declare enum ModeEnum {
|
|
23
|
+
/** 支付 */
|
|
24
|
+
Pay = "pay",
|
|
25
|
+
/** 完整支付 */
|
|
26
|
+
FullPay = "fullPay",
|
|
27
|
+
/** 退款 */
|
|
28
|
+
Refund = "refund",
|
|
29
|
+
/** 查询 */
|
|
30
|
+
Query = "query"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 崩溃恢复
|
|
34
|
+
*/
|
|
35
|
+
export declare enum RestoreEumn {
|
|
36
|
+
/** 常规 */
|
|
37
|
+
Normal = "normal",
|
|
38
|
+
/** 恢复 */
|
|
39
|
+
Restore = "restore"
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 订单状态
|
|
43
|
+
*/
|
|
44
|
+
export declare enum OrderEumn {
|
|
45
|
+
/** 恢复 */
|
|
46
|
+
Restore = "restore",
|
|
47
|
+
/** 常规 */
|
|
48
|
+
Normal = "normal",
|
|
49
|
+
/** 成功 */
|
|
50
|
+
Succeed = "succeed",
|
|
51
|
+
/** 失败 */
|
|
52
|
+
Failed = "failed",
|
|
53
|
+
/** 等待 */
|
|
54
|
+
Pending = "pending",
|
|
55
|
+
/** 没有订单状态 */
|
|
56
|
+
Null = "null"
|
|
57
|
+
}
|
|
58
|
+
export declare enum ClientEnum {
|
|
59
|
+
/** 用户端 */
|
|
60
|
+
User = "user",
|
|
61
|
+
/** 商家端 */
|
|
62
|
+
Merchant = "merchant"
|
|
63
|
+
}
|
|
64
|
+
export declare enum RouteEnum {
|
|
65
|
+
/** 改价页 */
|
|
66
|
+
Amount = "amount",
|
|
67
|
+
/** 门店列表页 */
|
|
68
|
+
DeviceList = "deviceList",
|
|
69
|
+
/**支付页 */
|
|
70
|
+
Pay = "pay"
|
|
71
|
+
}
|
|
72
|
+
export declare enum PayRouteEnum {
|
|
73
|
+
Step = "step",
|
|
74
|
+
Unset = "unset"
|
|
75
|
+
}
|
|
76
|
+
export declare type RouteType = `${RouteEnum}`;
|
|
77
|
+
export declare type PayRouteType = `${PayRouteEnum}`;
|
|
78
|
+
export declare type DeviceStatusType = `${EftposEnum}`;
|
|
79
|
+
export declare type StatusType = `${StatusEnum}`;
|
|
80
|
+
export declare type ModeType = `${ModeEnum}`;
|
|
81
|
+
export interface PosProps {
|
|
82
|
+
/** 厂商类型 */
|
|
83
|
+
type: DeviceStatusType;
|
|
84
|
+
getApi: () => {
|
|
85
|
+
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
86
|
+
};
|
|
87
|
+
params: {
|
|
88
|
+
[key: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
/** 回调 */
|
|
91
|
+
onChangeStatus: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page' | 'print' | 'mark_tx_processed', params?: {
|
|
92
|
+
[keys: string]: unknown;
|
|
93
|
+
} | string, other?: any) => void;
|
|
94
|
+
onChangeParams(...agrn: unknown[]): void;
|
|
95
|
+
terminal: {
|
|
96
|
+
network: boolean;
|
|
97
|
+
};
|
|
98
|
+
device?: {
|
|
99
|
+
[key: string]: unknown;
|
|
100
|
+
};
|
|
101
|
+
mode: ModeEnum;
|
|
102
|
+
tyroUrl?: string;
|
|
103
|
+
tyroVersion?: string;
|
|
104
|
+
source: 'normal' | 'restore';
|
|
105
|
+
styles?: {
|
|
106
|
+
device?: CSSProperties;
|
|
107
|
+
[key: string]: CSSProperties | undefined;
|
|
108
|
+
};
|
|
109
|
+
isWebPos?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface PayProps {
|
|
112
|
+
api: ReturnType<PosProps['getApi']>;
|
|
113
|
+
onChange: PosProps['onChangeStatus'];
|
|
114
|
+
className?: string;
|
|
115
|
+
}
|
|
116
|
+
export declare type Amount = {
|
|
117
|
+
name: string;
|
|
118
|
+
/** 订单金额 */
|
|
119
|
+
money: number;
|
|
120
|
+
/** 上一轮操作订单金额 */
|
|
121
|
+
amount: number;
|
|
122
|
+
/** 金额单位 */
|
|
123
|
+
symbol: string;
|
|
124
|
+
/** 手续费-百分率 */
|
|
125
|
+
surRate: number;
|
|
126
|
+
/** 手续费-是否开启 */
|
|
127
|
+
surMoney: number;
|
|
128
|
+
/** 手续费-是否存在 */
|
|
129
|
+
surcharge: boolean;
|
|
130
|
+
/** 是否使用原始手续费 */
|
|
131
|
+
useOriginSurcharge: boolean;
|
|
132
|
+
};
|
|
133
|
+
export declare type PayAmount = {
|
|
134
|
+
/** 手续费-百分比-带百分号 例: 1% =》 数据为 0.01 */
|
|
135
|
+
surPercentRate: string;
|
|
136
|
+
/** 手续费-百分比-不带百分号 例:1% =》 数据为 1 */
|
|
137
|
+
surRate: string;
|
|
138
|
+
/** 手续费-比例金额 amount * surPercentRate */
|
|
139
|
+
surRateMoney: string;
|
|
140
|
+
/** 手续费-固定金额 */
|
|
141
|
+
surMoney: string;
|
|
142
|
+
/** 手续费 = surPercentRate + surMoney */
|
|
143
|
+
surcharge: string;
|
|
144
|
+
/** 支付金额 (不包含手续费) */
|
|
145
|
+
amount: string;
|
|
146
|
+
/** 支付总金额 = amount + surcharge */
|
|
147
|
+
total: string;
|
|
148
|
+
/** 订单金额 */
|
|
149
|
+
sourceAmount: string;
|
|
150
|
+
/** 支付总金额带单位 + 单位 */
|
|
151
|
+
totalUnit: string;
|
|
152
|
+
};
|
|
153
|
+
export declare enum PayStatus {
|
|
154
|
+
'Success' = "200",
|
|
155
|
+
/** 未生成交易记录 */
|
|
156
|
+
'NoPay' = "4004",
|
|
157
|
+
/** 配对失效 */
|
|
158
|
+
'PairingFailure' = "606020",
|
|
159
|
+
/** 支付失败 */
|
|
160
|
+
'Unknown' = "701000",
|
|
161
|
+
/** 交易请求超时 */
|
|
162
|
+
'Timeout' = "701001",
|
|
163
|
+
/** 繁忙 EFTPOS终端暂时不可用,因为EFTPOS正在处理另一个请求。 */
|
|
164
|
+
'PayOtherEftposFailed' = "701003",
|
|
165
|
+
/** 购物者没有出示卡片/卡片金额不足/在线拒绝/卡已过期/卡被锁定 */
|
|
166
|
+
'PayCardErrorFailed' = "701004",
|
|
167
|
+
/** 断网 向EFTPOS发送消息失败。可能有网络问题,也可能没有连接websocket。 */
|
|
168
|
+
'NoNetWork' = "701005",
|
|
169
|
+
/** 交易等待超时 */
|
|
170
|
+
'PayTimeout' = "701006",
|
|
171
|
+
/** 连接失败 */
|
|
172
|
+
'SocketError' = "701007",
|
|
173
|
+
/** 银行拒绝 */
|
|
174
|
+
'PayBankRefuses' = "701008",
|
|
175
|
+
/** 签名拒绝 */
|
|
176
|
+
'SignatureDeclined' = "701009",
|
|
177
|
+
/** 配置参数错误 */
|
|
178
|
+
'UserConfigError' = "701010"
|
|
179
|
+
}
|
|
180
|
+
export interface ActionProps {
|
|
181
|
+
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}` | 'page', params?: {
|
|
182
|
+
[key: string]: unknown;
|
|
183
|
+
} | string) => void;
|
|
184
|
+
api: {
|
|
185
|
+
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
186
|
+
};
|
|
187
|
+
className?: string;
|
|
188
|
+
isMobile?: boolean;
|
|
189
|
+
formatAmount: (amount: number | string, precision: number, symbol: string) => string;
|
|
190
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { PayProps, PosProps } from './const';
|
|
3
|
+
import './device.less';
|
|
4
|
+
/**
|
|
5
|
+
* @title: 设备选择页
|
|
6
|
+
* @description: 选择设备信息,无设备增加提示;仅有一条,默认选中跳走;多条记录则停留等待用户选择
|
|
7
|
+
* @return React.Element
|
|
8
|
+
* @Author: hongbing.wang
|
|
9
|
+
* @Date: 2024-08-12 11:40
|
|
10
|
+
*/
|
|
11
|
+
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
|
+
api: PayProps['api'];
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
|
+
[keys: string]: unknown;
|
|
16
|
+
} | undefined, other?: any) => void) | undefined;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
device_number?: string | number | undefined;
|
|
19
|
+
isMobile: boolean;
|
|
20
|
+
net: boolean;
|
|
21
|
+
client: string;
|
|
22
|
+
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
23
|
+
containerStyle: CSSProperties;
|
|
24
|
+
}) => JSX.Element;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PayStatus } from './const';
|
|
3
|
+
import { ModeEnum, ClientEnum } from './const';
|
|
4
|
+
export declare const useStoreRef: <T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
} = {
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}, U extends {
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
} = {
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}>() => {
|
|
13
|
+
readonly deviceRef: React.MutableRefObject<T>;
|
|
14
|
+
readonly payRef: React.MutableRefObject<U>;
|
|
15
|
+
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
|
+
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
|
+
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
|
+
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
|
+
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
|
+
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
|
|
23
|
+
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
|
+
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @title: 通用失败处理
|
|
28
|
+
* @description: 固定步骤 错误处理逻辑
|
|
29
|
+
* @return null
|
|
30
|
+
* @Author: hongbing.wang
|
|
31
|
+
* @Date: 2024-08-12 11:54
|
|
32
|
+
*/
|
|
33
|
+
export declare const useFail: (index: number) => (res: {
|
|
34
|
+
code?: `${PayStatus}`;
|
|
35
|
+
}, isMark?: boolean) => void;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
4
|
+
'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
|
|
5
|
+
'page.eftpos-pay.text.surcharge': string;
|
|
6
|
+
'page.eftpos-pay.text.card': string;
|
|
7
|
+
'page.eftpos-pay.text.account': string;
|
|
8
|
+
'page.eftpos-pay.text.pin': string;
|
|
9
|
+
'page.eftpos-pay.text.receipt': string;
|
|
10
|
+
'page.eftpos-pay.text.receipt.again.title': string;
|
|
11
|
+
'page.eftpos-pay.text.receipt.again.text': string;
|
|
12
|
+
'page.eftpos-pay.text.signature.title': string;
|
|
13
|
+
'page.eftpos-pay.text.signature.text': (mode: string) => "Decline will cause payment failure, need to pay again." | "Decline will cause refund failure; a refund needs to be processed again.";
|
|
14
|
+
'page.eftpos-pay.text.timedout.title': string;
|
|
15
|
+
'page.eftpos-pay.text.timedout.text': (mode: string) => "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." | "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
|
|
16
|
+
'page.eftpos-pay.text.request.title': (mode: string) => string;
|
|
17
|
+
'page.eftpos-pay.text.request.text': (mode: string) => "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." | "Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.";
|
|
18
|
+
'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
|
|
19
|
+
'page.eftpos-pay.text.request.unknown.text': (mode: string) => "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." | "Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.";
|
|
20
|
+
'page.eftpos-pay.text.interrupted': string;
|
|
21
|
+
'page.eftpos-pay.text.reconnect': string;
|
|
22
|
+
'page.eftpos-pay.text.waiting.pay': (mode: string) => "If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip." | "If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.";
|
|
23
|
+
'page.eftpos-pay.text.restored': string;
|
|
24
|
+
'page.eftpos-pay.text.disconnected': string;
|
|
25
|
+
'page.eftpos-pay.text.waiting.network': string;
|
|
26
|
+
'page.eftpos-pay.text.waiting.wifi.title': string;
|
|
27
|
+
'page.eftpos-pay.text.waiting.wifi.connection': string;
|
|
28
|
+
'page.eftpos-pay.text.waiting.wifi.router': string;
|
|
29
|
+
'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
|
|
30
|
+
'page.eftpos-pay.text.accept': string;
|
|
31
|
+
'page.eftpos-pay.text.decline': string;
|
|
32
|
+
'page.eftpos-pay.text.manual.marking': string;
|
|
33
|
+
'page.eftpos-pay.text.manual.title': string;
|
|
34
|
+
'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
|
|
35
|
+
'page.eftpos-pay.text.manual.confirm': string;
|
|
36
|
+
'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
|
|
37
|
+
'page.eftpos-pay.text.manual.diff': string;
|
|
38
|
+
'page.eftpos-pay.text.manual.tip': string;
|
|
39
|
+
'page.eftpos-pay.text.manual.cancel': string;
|
|
40
|
+
'page.eftpos-pay.text.manual.print_receipt': string;
|
|
41
|
+
'page.eftpos-pay.text.modify.payment.info': (mode: string) => "Modify payment info" | "Modify refund information";
|
|
42
|
+
'page.eftpos-pay.text.successful': (mode: string) => string;
|
|
43
|
+
'page.eftpos-pay.text.failed': (mode: string) => string;
|
|
44
|
+
'page.eftpos-pay.text.confirm': string;
|
|
45
|
+
'page.eftpos-pay.text.confirm.decline': string;
|
|
46
|
+
'page.eftpos-pay.text.back': string;
|
|
47
|
+
'page.eftpos-pay.text.cancel': string;
|
|
48
|
+
'page.eftpos-pay.text.waiting.processing': string;
|
|
49
|
+
'page.eftpos-pay.text.waiting.signature': string;
|
|
50
|
+
'page.eftpos-pay.text.waiting.decline': string;
|
|
51
|
+
'page.eftpos-pay.text.processing': string;
|
|
52
|
+
'page.eftpos-pay.text.transaction.processing': string;
|
|
53
|
+
'page.eftpos-pay.text.retry': string;
|
|
54
|
+
'page.eftpos-pay.text.sure': string;
|
|
55
|
+
'page.eftpos-pay.text.device': string;
|
|
56
|
+
'page.eftpos-pay.text.leave': string;
|
|
57
|
+
'page.eftpos-pay.text.latest.success': string;
|
|
58
|
+
'page.eftpos-pay.text.latest.amount': string;
|
|
59
|
+
'page.eftpos-pay.text.latest.surcharge': string;
|
|
60
|
+
'page.eftpos-pay.text.latest.time': string;
|
|
61
|
+
'page.eftpos-pay.text.latest.confirm': string;
|
|
62
|
+
'page.eftpos-pay.text.amount.to.pay': string;
|
|
63
|
+
'page.eftpos-pay.text.surcharge.percentage': string;
|
|
64
|
+
'page.eftpos-pay.text.surcharge.fixed': string;
|
|
65
|
+
'page.eftpos-pay.text.surcharge.percentage-fixed': string;
|
|
66
|
+
'page.eftpos-pay.text.surcharge.edit.title': string;
|
|
67
|
+
'page.eftpos-pay.text.input.title': (name: string) => string;
|
|
68
|
+
'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
|
|
69
|
+
'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
|
|
70
|
+
'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
|
|
71
|
+
'page.eftpos-pay.text.surcharge.edit.rate': string;
|
|
72
|
+
'page.eftpos-pay.text.surcharge.edit.surcharge': string;
|
|
73
|
+
'page.eftpos-pay.text.transaction.end': string;
|
|
74
|
+
'page.eftpos-pay.text.transaction.user.declined.title': string;
|
|
75
|
+
'page.eftpos-pay.text.transaction.user.declined.text': string;
|
|
76
|
+
'page.eftpos-pay.text.transaction.user.config.title': string;
|
|
77
|
+
'page.eftpos-pay.text.transaction.user.config.text': string;
|
|
78
|
+
'page.eftpos-pay.text.transaction.back.declined.title': string;
|
|
79
|
+
'page.eftpos-pay.text.transaction.back.declined.text': string;
|
|
80
|
+
'page.eftpos-pay.text.transaction.fail': string;
|
|
81
|
+
'page.eftpos-pay.text.transaction.fail.timeout': string;
|
|
82
|
+
'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
|
|
83
|
+
'page.eftpos-pay.text.transaction.fail.terminal.title': string;
|
|
84
|
+
'page.eftpos-pay.text.transaction.fail.terminal': string;
|
|
85
|
+
'page.eftpos-pay.text.transaction.fail.cancel.title': string;
|
|
86
|
+
'page.eftpos-pay.text.transaction.fail.cancel': string;
|
|
87
|
+
'page.eftpos-pay.text.transaction.fail.socket': string;
|
|
88
|
+
'page.eftpos-pay.text.transaction.eftpos.fail': string;
|
|
89
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
|
|
90
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
|
|
91
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
|
|
92
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
|
|
93
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "If you have confirmed the payment status of this order, please click on Manual marking." | "If you have confirmed the refund status of this order, please click on Manual Marking.";
|
|
94
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
|
|
95
|
+
'page.eftpos-pay.text.application': string;
|
|
96
|
+
'page.eftpos-pay.text.approved': string;
|
|
97
|
+
'page.eftpos-pay.text.device.no.title': string;
|
|
98
|
+
'page.eftpos-pay.text.device.no.add': string;
|
|
99
|
+
'page.eftpos-pay.text.device.no.web': string;
|
|
100
|
+
'page.eftpos-pay.text.device.no.terminal': string;
|
|
101
|
+
'page.eftpos-pay.text.waiting.decline.signature': string;
|
|
102
|
+
'page.eftpos-pay.text.unknown.title': (mode: string) => string;
|
|
103
|
+
'page.eftpos-pay.text.unknown.text': (mode: string) => string;
|
|
104
|
+
'page.eftpos-pay.text.reconnecting': string;
|
|
105
|
+
'page.eftpos-pay.text.reconnect.network': string;
|
|
106
|
+
'page.eftpos-pay.text.network.disconnected': string;
|
|
107
|
+
'page.eftpos-pay.text.not.connected': string;
|
|
108
|
+
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
109
|
+
'page.eftpos-pay.text.tyro': (key: string) => string;
|
|
110
|
+
};
|
|
111
|
+
'zh-CN': {
|
|
112
|
+
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
113
|
+
'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
|
|
114
|
+
'page.eftpos-pay.text.surcharge': string;
|
|
115
|
+
'page.eftpos-pay.text.card': string;
|
|
116
|
+
'page.eftpos-pay.text.account': string;
|
|
117
|
+
'page.eftpos-pay.text.pin': string;
|
|
118
|
+
'page.eftpos-pay.text.receipt': string;
|
|
119
|
+
'page.eftpos-pay.text.receipt.again.title': string;
|
|
120
|
+
'page.eftpos-pay.text.receipt.again.text': string;
|
|
121
|
+
'page.eftpos-pay.text.signature.title': string;
|
|
122
|
+
'page.eftpos-pay.text.signature.text': (mode: string) => "拒绝将导致支付失败,需重新支付。" | "拒绝将导致退款失败;需要重新退款";
|
|
123
|
+
'page.eftpos-pay.text.timedout.title': string;
|
|
124
|
+
'page.eftpos-pay.text.timedout.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。";
|
|
125
|
+
'page.eftpos-pay.text.request.title': (mode: string) => string;
|
|
126
|
+
'page.eftpos-pay.text.request.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。";
|
|
127
|
+
'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
|
|
128
|
+
'page.eftpos-pay.text.request.unknown.text': (mode: string) => "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" | "请您根据刷卡机上的退款状态,手动标记退款结果,以确保交易的准确性。";
|
|
129
|
+
'page.eftpos-pay.text.interrupted': string;
|
|
130
|
+
'page.eftpos-pay.text.reconnect': string;
|
|
131
|
+
'page.eftpos-pay.text.waiting.pay': (mode: string) => "如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。" | "如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。";
|
|
132
|
+
'page.eftpos-pay.text.restored': string;
|
|
133
|
+
'page.eftpos-pay.text.disconnected': string;
|
|
134
|
+
'page.eftpos-pay.text.waiting.network': string;
|
|
135
|
+
'page.eftpos-pay.text.waiting.wifi.title': string;
|
|
136
|
+
'page.eftpos-pay.text.waiting.wifi.connection': string;
|
|
137
|
+
'page.eftpos-pay.text.waiting.wifi.router': string;
|
|
138
|
+
'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
|
|
139
|
+
'page.eftpos-pay.text.accept': string;
|
|
140
|
+
'page.eftpos-pay.text.decline': string;
|
|
141
|
+
'page.eftpos-pay.text.manual.marking': string;
|
|
142
|
+
'page.eftpos-pay.text.manual.title': string;
|
|
143
|
+
'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
|
|
144
|
+
'page.eftpos-pay.text.manual.confirm': string;
|
|
145
|
+
'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
|
|
146
|
+
'page.eftpos-pay.text.manual.diff': string;
|
|
147
|
+
'page.eftpos-pay.text.manual.tip': string;
|
|
148
|
+
'page.eftpos-pay.text.manual.cancel': string;
|
|
149
|
+
'page.eftpos-pay.text.manual.print_receipt': string;
|
|
150
|
+
'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
|
|
151
|
+
'page.eftpos-pay.text.successful': (mode: string) => string;
|
|
152
|
+
'page.eftpos-pay.text.failed': (mode: string) => string;
|
|
153
|
+
'page.eftpos-pay.text.confirm': string;
|
|
154
|
+
'page.eftpos-pay.text.confirm.decline': string;
|
|
155
|
+
'page.eftpos-pay.text.back': string;
|
|
156
|
+
'page.eftpos-pay.text.cancel': string;
|
|
157
|
+
'page.eftpos-pay.text.waiting.processing': string;
|
|
158
|
+
'page.eftpos-pay.text.waiting.signature': string;
|
|
159
|
+
'page.eftpos-pay.text.waiting.decline': string;
|
|
160
|
+
'page.eftpos-pay.text.processing': string;
|
|
161
|
+
'page.eftpos-pay.text.transaction.processing': string;
|
|
162
|
+
'page.eftpos-pay.text.retry': string;
|
|
163
|
+
'page.eftpos-pay.text.sure': string;
|
|
164
|
+
'page.eftpos-pay.text.device': string;
|
|
165
|
+
'page.eftpos-pay.text.leave': string;
|
|
166
|
+
'page.eftpos-pay.text.latest.success': string;
|
|
167
|
+
'page.eftpos-pay.text.latest.amount': string;
|
|
168
|
+
'page.eftpos-pay.text.latest.surcharge': string;
|
|
169
|
+
'page.eftpos-pay.text.latest.time': string;
|
|
170
|
+
'page.eftpos-pay.text.latest.confirm': string;
|
|
171
|
+
'page.eftpos-pay.text.amount.to.pay': string;
|
|
172
|
+
'page.eftpos-pay.text.surcharge.percentage': string;
|
|
173
|
+
'page.eftpos-pay.text.surcharge.fixed': string;
|
|
174
|
+
'page.eftpos-pay.text.surcharge.percentage-fixed': string;
|
|
175
|
+
'page.eftpos-pay.text.surcharge.edit.title': string;
|
|
176
|
+
'page.eftpos-pay.text.input.title': (name: string) => string;
|
|
177
|
+
'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
|
|
178
|
+
'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
|
|
179
|
+
'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
|
|
180
|
+
'page.eftpos-pay.text.surcharge.edit.rate': string;
|
|
181
|
+
'page.eftpos-pay.text.surcharge.edit.surcharge': string;
|
|
182
|
+
'page.eftpos-pay.text.transaction.end': string;
|
|
183
|
+
'page.eftpos-pay.text.transaction.user.declined.title': string;
|
|
184
|
+
'page.eftpos-pay.text.transaction.user.declined.text': string;
|
|
185
|
+
'page.eftpos-pay.text.transaction.user.config.title': string;
|
|
186
|
+
'page.eftpos-pay.text.transaction.user.config.text': string;
|
|
187
|
+
'page.eftpos-pay.text.transaction.back.declined.title': string;
|
|
188
|
+
'page.eftpos-pay.text.transaction.back.declined.text': string;
|
|
189
|
+
'page.eftpos-pay.text.transaction.fail': string;
|
|
190
|
+
'page.eftpos-pay.text.transaction.fail.timeout': string;
|
|
191
|
+
'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
|
|
192
|
+
'page.eftpos-pay.text.transaction.fail.terminal.title': string;
|
|
193
|
+
'page.eftpos-pay.text.transaction.fail.terminal': string;
|
|
194
|
+
'page.eftpos-pay.text.transaction.fail.cancel.title': string;
|
|
195
|
+
'page.eftpos-pay.text.transaction.fail.cancel': string;
|
|
196
|
+
'page.eftpos-pay.text.transaction.fail.socket': string;
|
|
197
|
+
'page.eftpos-pay.text.transaction.eftpos.fail': string;
|
|
198
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
|
|
199
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
|
|
200
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
|
|
201
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
|
|
202
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "如果您已确认此交易的付款状态,请点击手动标记" | "如果您已确认此订单的退款状态,请点击手动标记。";
|
|
203
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
|
|
204
|
+
'page.eftpos-pay.text.application': string;
|
|
205
|
+
'page.eftpos-pay.text.approved': string;
|
|
206
|
+
'page.eftpos-pay.text.device.no.title': string;
|
|
207
|
+
'page.eftpos-pay.text.device.no.add': string;
|
|
208
|
+
'page.eftpos-pay.text.device.no.web': string;
|
|
209
|
+
'page.eftpos-pay.text.device.no.terminal': string;
|
|
210
|
+
'page.eftpos-pay.text.waiting.decline.signature': string;
|
|
211
|
+
'page.eftpos-pay.text.unknown.title': (mode: string) => string;
|
|
212
|
+
'page.eftpos-pay.text.unknown.text': (mode: string) => string;
|
|
213
|
+
'page.eftpos-pay.text.reconnecting': string;
|
|
214
|
+
'page.eftpos-pay.text.reconnect.network': string;
|
|
215
|
+
'page.eftpos-pay.text.network.disconnected': string;
|
|
216
|
+
'page.eftpos-pay.text.not.connected': string;
|
|
217
|
+
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
218
|
+
'page.eftpos-pay.text.tyro': (key: string) => string | string[];
|
|
219
|
+
};
|
|
220
|
+
'zh-HK': {
|
|
221
|
+
'page.eftpos-pay.text.loading': (mode: string) => string;
|
|
222
|
+
'page.eftpos-pay.text.wait': (val: string, mode: string) => string;
|
|
223
|
+
'page.eftpos-pay.text.surcharge': string;
|
|
224
|
+
'page.eftpos-pay.text.card': string;
|
|
225
|
+
'page.eftpos-pay.text.account': string;
|
|
226
|
+
'page.eftpos-pay.text.pin': string;
|
|
227
|
+
'page.eftpos-pay.text.receipt': string;
|
|
228
|
+
'page.eftpos-pay.text.receipt.again.title': string;
|
|
229
|
+
'page.eftpos-pay.text.receipt.again.text': string;
|
|
230
|
+
'page.eftpos-pay.text.signature.title': string;
|
|
231
|
+
'page.eftpos-pay.text.signature.text': (mode: string) => "拒絕將導致支付失敗,需重新支付。" | "拒絕將導致退款失敗;需要重新退款";
|
|
232
|
+
'page.eftpos-pay.text.timedout.title': string;
|
|
233
|
+
'page.eftpos-pay.text.timedout.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。";
|
|
234
|
+
'page.eftpos-pay.text.request.title': (mode: string) => string;
|
|
235
|
+
'page.eftpos-pay.text.request.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。";
|
|
236
|
+
'page.eftpos-pay.text.request.unknown.title': (mode: string) => string;
|
|
237
|
+
'page.eftpos-pay.text.request.unknown.text': (mode: string) => "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" | "請您根據刷卡機上的退款狀態,手動標記退款結果,以確保交易的準確性。";
|
|
238
|
+
'page.eftpos-pay.text.interrupted': string;
|
|
239
|
+
'page.eftpos-pay.text.reconnect': string;
|
|
240
|
+
'page.eftpos-pay.text.waiting.pay': (mode: string) => "如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。" | "如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。";
|
|
241
|
+
'page.eftpos-pay.text.restored': string;
|
|
242
|
+
'page.eftpos-pay.text.disconnected': string;
|
|
243
|
+
'page.eftpos-pay.text.waiting.network': string;
|
|
244
|
+
'page.eftpos-pay.text.waiting.wifi.title': string;
|
|
245
|
+
'page.eftpos-pay.text.waiting.wifi.connection': string;
|
|
246
|
+
'page.eftpos-pay.text.waiting.wifi.router': string;
|
|
247
|
+
'page.eftpos-pay.text.waiting.wifi.forget.reconnect': string;
|
|
248
|
+
'page.eftpos-pay.text.accept': string;
|
|
249
|
+
'page.eftpos-pay.text.decline': string;
|
|
250
|
+
'page.eftpos-pay.text.manual.marking': string;
|
|
251
|
+
'page.eftpos-pay.text.manual.title': string;
|
|
252
|
+
'page.eftpos-pay.text.manual.subtitle': (money: string) => string;
|
|
253
|
+
'page.eftpos-pay.text.manual.confirm': string;
|
|
254
|
+
'page.eftpos-pay.text.manual.btn.confirm': (money: string) => string;
|
|
255
|
+
'page.eftpos-pay.text.manual.diff': string;
|
|
256
|
+
'page.eftpos-pay.text.manual.tip': string;
|
|
257
|
+
'page.eftpos-pay.text.manual.cancel': string;
|
|
258
|
+
'page.eftpos-pay.text.manual.print_receipt': string;
|
|
259
|
+
'page.eftpos-pay.text.modify.payment.info': (mode: string) => "修改支付信息" | "修改退款信息";
|
|
260
|
+
'page.eftpos-pay.text.successful': (mode: string) => string;
|
|
261
|
+
'page.eftpos-pay.text.failed': (mode: string) => string;
|
|
262
|
+
'page.eftpos-pay.text.confirm': string;
|
|
263
|
+
'page.eftpos-pay.text.confirm.decline': string;
|
|
264
|
+
'page.eftpos-pay.text.back': string;
|
|
265
|
+
'page.eftpos-pay.text.cancel': string;
|
|
266
|
+
'page.eftpos-pay.text.waiting.processing': string;
|
|
267
|
+
'page.eftpos-pay.text.waiting.signature': string;
|
|
268
|
+
'page.eftpos-pay.text.waiting.decline': string;
|
|
269
|
+
'page.eftpos-pay.text.processing': string;
|
|
270
|
+
'page.eftpos-pay.text.transaction.processing': string;
|
|
271
|
+
'page.eftpos-pay.text.retry': string;
|
|
272
|
+
'page.eftpos-pay.text.sure': string;
|
|
273
|
+
'page.eftpos-pay.text.device': string;
|
|
274
|
+
'page.eftpos-pay.text.leave': string;
|
|
275
|
+
'page.eftpos-pay.text.latest.success': string;
|
|
276
|
+
'page.eftpos-pay.text.latest.amount': string;
|
|
277
|
+
'page.eftpos-pay.text.latest.surcharge': string;
|
|
278
|
+
'page.eftpos-pay.text.latest.time': string;
|
|
279
|
+
'page.eftpos-pay.text.latest.confirm': string;
|
|
280
|
+
'page.eftpos-pay.text.amount.to.pay': string;
|
|
281
|
+
'page.eftpos-pay.text.surcharge.percentage': string;
|
|
282
|
+
'page.eftpos-pay.text.surcharge.fixed': string;
|
|
283
|
+
'page.eftpos-pay.text.surcharge.percentage-fixed': string;
|
|
284
|
+
'page.eftpos-pay.text.surcharge.edit.title': string;
|
|
285
|
+
'page.eftpos-pay.text.input.title': (name: string) => string;
|
|
286
|
+
'page.eftpos-pay.text.amount.cash.left.pay.paid': (money: string) => string;
|
|
287
|
+
'page.eftpos-pay.text.surcharge.edit.actual.pay': string;
|
|
288
|
+
'page.eftpos-pay.text.surcharge.edit.inc.surcharge': string;
|
|
289
|
+
'page.eftpos-pay.text.surcharge.edit.rate': string;
|
|
290
|
+
'page.eftpos-pay.text.surcharge.edit.surcharge': string;
|
|
291
|
+
'page.eftpos-pay.text.transaction.end': string;
|
|
292
|
+
'page.eftpos-pay.text.transaction.user.declined.title': string;
|
|
293
|
+
'page.eftpos-pay.text.transaction.user.declined.text': string;
|
|
294
|
+
'page.eftpos-pay.text.transaction.user.config.title': string;
|
|
295
|
+
'page.eftpos-pay.text.transaction.user.config.text': string;
|
|
296
|
+
'page.eftpos-pay.text.transaction.back.declined.title': string;
|
|
297
|
+
'page.eftpos-pay.text.transaction.back.declined.text': string;
|
|
298
|
+
'page.eftpos-pay.text.transaction.fail': string;
|
|
299
|
+
'page.eftpos-pay.text.transaction.fail.timeout': string;
|
|
300
|
+
'page.eftpos-pay.text.transaction.pay.fail.timeout': string;
|
|
301
|
+
'page.eftpos-pay.text.transaction.fail.terminal.title': string;
|
|
302
|
+
'page.eftpos-pay.text.transaction.fail.terminal': string;
|
|
303
|
+
'page.eftpos-pay.text.transaction.fail.cancel.title': string;
|
|
304
|
+
'page.eftpos-pay.text.transaction.fail.cancel': string;
|
|
305
|
+
'page.eftpos-pay.text.transaction.fail.socket': string;
|
|
306
|
+
'page.eftpos-pay.text.transaction.eftpos.fail': string;
|
|
307
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.title': string;
|
|
308
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.power': string;
|
|
309
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.device': string;
|
|
310
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.network': string;
|
|
311
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.if': (mode: string) => "如果您已確認此交易的付款狀態,請點擊手動標記" | "如果您已確認此訂單的退款狀態,請點擊手動標記。";
|
|
312
|
+
'page.eftpos-pay.text.transaction.eftpos.fail.other': string;
|
|
313
|
+
'page.eftpos-pay.text.application': string;
|
|
314
|
+
'page.eftpos-pay.text.approved': string;
|
|
315
|
+
'page.eftpos-pay.text.device.no.title': string;
|
|
316
|
+
'page.eftpos-pay.text.device.no.add': string;
|
|
317
|
+
'page.eftpos-pay.text.device.no.web': string;
|
|
318
|
+
'page.eftpos-pay.text.device.no.terminal': string;
|
|
319
|
+
'page.eftpos-pay.text.waiting.decline.signature': string;
|
|
320
|
+
'page.eftpos-pay.text.unknown.title': (mode: string) => string;
|
|
321
|
+
'page.eftpos-pay.text.unknown.text': (mode: string) => string;
|
|
322
|
+
'page.eftpos-pay.text.reconnecting': string;
|
|
323
|
+
'page.eftpos-pay.text.reconnect.network': string;
|
|
324
|
+
'page.eftpos-pay.text.network.disconnected': string;
|
|
325
|
+
'page.eftpos-pay.text.not.connected': string;
|
|
326
|
+
'page.eftpos-pay.text.tyro-btn': (key: string) => string;
|
|
327
|
+
'page.eftpos-pay.text.tyro': (key: string) => string | string[];
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { State } from './store';
|
|
2
|
+
export { getAmonunt } from './helper';
|
|
3
|
+
export { default as Payo } from './payo';
|
|
4
|
+
export { default as Windcave } from './windcave/windcave';
|
|
5
|
+
export { default as Tyro } from './tyro';
|
|
6
|
+
export { default as Linkly } from './linkly';
|
|
7
|
+
export declare const getInitState: (type: string, params?: any) => State;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PayProps } from './const';
|
|
2
|
+
import './index.less';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 支付组件
|
|
5
|
+
* @description:
|
|
6
|
+
* @Author: hongbing.wang
|
|
7
|
+
* @Date: 2024-08-20 14:59
|
|
8
|
+
*/
|
|
9
|
+
declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
|
|
10
|
+
terminal: {
|
|
11
|
+
network: boolean;
|
|
12
|
+
};
|
|
13
|
+
net: boolean;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
tyroUrl?: string | undefined;
|
|
16
|
+
tyroVersion?: string | undefined;
|
|
17
|
+
formatAmount(amount: number | string, precision: number, symbol: string): string;
|
|
18
|
+
client: string;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
export default Pay;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StatusEnum } from '../const';
|
|
2
|
+
export declare const POS: ({ api, onChange, }: {
|
|
3
|
+
api: {
|
|
4
|
+
[key: string]: (...agrn: unknown[]) => Promise<unknown>;
|
|
5
|
+
};
|
|
6
|
+
onChange: (status: `${StatusEnum.Success}` | `${StatusEnum.Fail}`, params?: {
|
|
7
|
+
[keys: string]: unknown;
|
|
8
|
+
} | undefined) => void;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export declare const Action: ({ onChange }: {
|
|
11
|
+
onChange: any;
|
|
12
|
+
}) => JSX.Element;
|