@pisell/private-materials 6.3.117 → 6.3.119
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 +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +4 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/cupList/const.d.ts +140 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +186 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/locales.d.ts +572 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/store/index.d.ts +358 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- 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 +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/locales.d.ts +626 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/locales.d.ts +53 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/locales.d.ts +68 -0
- package/es/components/systemSettings/registry/locales.d.ts +534 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +140 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/locales.d.ts +304 -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/useEngineContext.d.ts +11 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/locales.d.ts +35 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +10 -3
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +6 -2
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -10
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/index.js +2 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/locales.js +10 -5
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +19 -6
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +45 -58
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
- package/es/plus/walletPassGallery/locales.d.ts +483 -0
- package/es/pro/Cards/components/SKUCard/index.js +5 -2
- package/es/pro/Cards/components/SKUCard/index.less +18 -3
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Login2.0/locales.d.ts +908 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +58 -0
- package/es/pro/Selector/types.d.ts +223 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +4 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/cupList/const.d.ts +140 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +186 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/locales.d.ts +572 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/store/index.d.ts +358 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- 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 +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/locales.d.ts +626 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/locales.d.ts +53 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/locales.d.ts +68 -0
- package/lib/components/systemSettings/registry/locales.d.ts +534 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +140 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/locales.d.ts +304 -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/useEngineContext.d.ts +11 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/locales.d.ts +35 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +15 -9
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +3 -3
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -7
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -1
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/locales.js +10 -5
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +15 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +39 -54
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
- package/lib/plus/walletPassGallery/locales.d.ts +483 -0
- package/lib/pro/Cards/components/SKUCard/index.js +4 -7
- package/lib/pro/Cards/components/SKUCard/index.less +18 -3
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Login2.0/locales.d.ts +908 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +58 -0
- package/lib/pro/Selector/types.d.ts +223 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { DeviceStatusType, StatusType, ModeType, RouteType, ClientEnum } from '../const';
|
|
3
|
+
import { ThunkDispatch } from './useThunkReducer';
|
|
4
|
+
export declare enum EActionTypes {
|
|
5
|
+
UPDATE_INIT = "UPDATE_INIT",
|
|
6
|
+
UPDATE_CUSTOM = "UPDATE_CUSTOM",
|
|
7
|
+
UPDATE_KEY = "UPDATE_KEY",
|
|
8
|
+
UPDATE_STEP_KEY = "UPDATE_STEP_KEY",
|
|
9
|
+
UPDATE_DEVICE = "UPDATE_DEVICE",
|
|
10
|
+
UPDATE_NEXT_STEP = "UPDATE_NEXT_STEP",
|
|
11
|
+
UPDATE_STATUS = "UPDATE_STATUS",
|
|
12
|
+
UPDATE_TITLE = "UPDATE_TITLE",
|
|
13
|
+
UPDATE_LOADING = "UPDATE_LOADING",
|
|
14
|
+
UPDATE_COMPONENT = "UPDATE_COMPONENT",
|
|
15
|
+
UPDATE_STEPS = "UPDATE_STEPS",
|
|
16
|
+
UPDATE_STEP_CURRENT_ITEM_CUSTOM = "UPDATE_STEP_CURRENT_ITEM_CUSTOM",
|
|
17
|
+
UPDATE_STEP_ITEM = "UPDATE_STEP_ITEM",
|
|
18
|
+
BACKUP_PRODUCTION = "BACKUP_PRODUCTION",
|
|
19
|
+
BACKUP_FREE = "BACKUP_FREE",
|
|
20
|
+
UPDATE_CLIENT = "UPDATE_CLIENT"
|
|
21
|
+
}
|
|
22
|
+
export declare type State = {
|
|
23
|
+
/** 支付名称 */
|
|
24
|
+
name: string;
|
|
25
|
+
/** 金额单位 */
|
|
26
|
+
symbol: string;
|
|
27
|
+
/** 支付原始金额 */
|
|
28
|
+
amount: string | number;
|
|
29
|
+
/** 模式 */
|
|
30
|
+
mode: ModeType;
|
|
31
|
+
/** 订单号 */
|
|
32
|
+
order_id: string | number;
|
|
33
|
+
/** 厂商 */
|
|
34
|
+
eftpos: DeviceStatusType;
|
|
35
|
+
action?: RouteType;
|
|
36
|
+
/** 用于重置页面特指 =》全部步骤 */
|
|
37
|
+
key: number;
|
|
38
|
+
/** 当前执行到哪一步了 */
|
|
39
|
+
step: number;
|
|
40
|
+
/** 标题 */
|
|
41
|
+
title: string;
|
|
42
|
+
/** 标题 */
|
|
43
|
+
subTitle?: string;
|
|
44
|
+
/** step : 常规步骤页面 ,unset 自定义页面 */
|
|
45
|
+
type: 'step' | 'unset';
|
|
46
|
+
render: boolean;
|
|
47
|
+
/** 网络 */
|
|
48
|
+
net?: boolean;
|
|
49
|
+
/** 上面 unset 自定义页面,这里需要指定到具体页面 */
|
|
50
|
+
component: string;
|
|
51
|
+
form?: string;
|
|
52
|
+
/** 页面状态 */
|
|
53
|
+
status: StatusType;
|
|
54
|
+
/** 警告文案 */
|
|
55
|
+
warn: string;
|
|
56
|
+
steps: {
|
|
57
|
+
/** 用于重置当前步骤 */
|
|
58
|
+
key: number;
|
|
59
|
+
title?: string;
|
|
60
|
+
text?: string;
|
|
61
|
+
warn?: string;
|
|
62
|
+
tip?: string;
|
|
63
|
+
success?: string;
|
|
64
|
+
fail?: string;
|
|
65
|
+
loading?: string;
|
|
66
|
+
/** 步骤状态 */
|
|
67
|
+
status: StatusType;
|
|
68
|
+
custom?: {
|
|
69
|
+
/** 步骤自定义 */
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
}[];
|
|
73
|
+
/** 支付流水号 */
|
|
74
|
+
number?: string | number;
|
|
75
|
+
/** 设备信息 */
|
|
76
|
+
device?: {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
/** 支付信息 */
|
|
80
|
+
pay?: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
custom?: {
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
manual?: {
|
|
87
|
+
title: string;
|
|
88
|
+
text: string;
|
|
89
|
+
status?: boolean;
|
|
90
|
+
money?: number;
|
|
91
|
+
};
|
|
92
|
+
backup?: Omit<State, 'backup'>;
|
|
93
|
+
client: ClientEnum;
|
|
94
|
+
/** 支付原始参数 */
|
|
95
|
+
originalParams?: Record<string, any>;
|
|
96
|
+
};
|
|
97
|
+
export declare type Action = {
|
|
98
|
+
type: EActionTypes;
|
|
99
|
+
payload: Partial<State>;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* @title: 刷新 key
|
|
103
|
+
* @description: 用户重置组件生命周期,
|
|
104
|
+
* @param {number} key
|
|
105
|
+
* @Author: hongbing.wang
|
|
106
|
+
* @Date: 2024-08-19 09:56
|
|
107
|
+
*/
|
|
108
|
+
export declare const updateKey: (key: number) => {
|
|
109
|
+
type: EActionTypes;
|
|
110
|
+
payload: {
|
|
111
|
+
key: number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* @title: 更新设备信息
|
|
116
|
+
* @description: 用户选择设备将回填到此处
|
|
117
|
+
* @param {object} payload
|
|
118
|
+
* @Author: hongbing.wang
|
|
119
|
+
* @Date: 2024-08-19 09:57
|
|
120
|
+
*/
|
|
121
|
+
export declare const updateDevice: (payload: {
|
|
122
|
+
device: State['device'];
|
|
123
|
+
}) => {
|
|
124
|
+
type: EActionTypes;
|
|
125
|
+
payload: {
|
|
126
|
+
device: State['device'];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* @title: 刷新 步骤key
|
|
131
|
+
* @description: 重置某一步生命周期
|
|
132
|
+
* @Author: hongbing.wang
|
|
133
|
+
* @Date: 2024-08-19 09:58
|
|
134
|
+
*/
|
|
135
|
+
export declare const updateStepKey: () => {
|
|
136
|
+
type: EActionTypes;
|
|
137
|
+
payload: {};
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* @title: 更新至下一步
|
|
141
|
+
* @description: 更新至下一步
|
|
142
|
+
* @param {string} warn?: 错误信息
|
|
143
|
+
* @Author: hongbing.wang
|
|
144
|
+
* @Date: 2024-08-19 09:58
|
|
145
|
+
*/
|
|
146
|
+
export declare const updateNextStep: (warn?: string) => {
|
|
147
|
+
type: EActionTypes;
|
|
148
|
+
payload: {
|
|
149
|
+
warn: string;
|
|
150
|
+
} | {
|
|
151
|
+
warn?: undefined;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* @title: 更新自定义信息
|
|
156
|
+
* @description: 更新自定义信息
|
|
157
|
+
* @param {object} payload
|
|
158
|
+
* @Author: hongbing.wang
|
|
159
|
+
* @Date: 2024-08-19 10:03
|
|
160
|
+
*/
|
|
161
|
+
export declare const updateCustom: (payload: {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
}) => {
|
|
164
|
+
type: EActionTypes;
|
|
165
|
+
payload: {
|
|
166
|
+
[key: string]: unknown;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* @title: 更新 全局状态
|
|
171
|
+
* @description: 更新 全局状态
|
|
172
|
+
* @param {string} status : 状态
|
|
173
|
+
* * @Author: hongbing.wang
|
|
174
|
+
* @Date: 2024-08-19 10:03
|
|
175
|
+
*/
|
|
176
|
+
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
177
|
+
type: EActionTypes;
|
|
178
|
+
payload: {
|
|
179
|
+
status: "warn" | "success" | "loading" | "fail" | "question";
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* @title: 更新自定义组件
|
|
184
|
+
* @description: 更新自定义组件
|
|
185
|
+
* @param {string} component 组件名称
|
|
186
|
+
* @param {boolean} render : true : 隐藏 原组件(维持原组件内状态) ;false : 卸载
|
|
187
|
+
* @return {*}
|
|
188
|
+
* @Author: hongbing.wang
|
|
189
|
+
* @Date: 2024-08-19 10:04
|
|
190
|
+
*/
|
|
191
|
+
export declare const updateComponent: (component: string, render?: boolean) => {
|
|
192
|
+
type: EActionTypes;
|
|
193
|
+
payload: {
|
|
194
|
+
readonly component: string;
|
|
195
|
+
readonly type: "unset";
|
|
196
|
+
readonly render: boolean;
|
|
197
|
+
} | {
|
|
198
|
+
readonly type: "step";
|
|
199
|
+
readonly render: boolean;
|
|
200
|
+
component?: undefined;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* @title: 更新步骤信息
|
|
205
|
+
* @description: 更新某一步骤信息
|
|
206
|
+
* @param {State} steps 某一步骤信息
|
|
207
|
+
* @Author: hongbing.wang
|
|
208
|
+
* @Date: 2024-08-19 10:07
|
|
209
|
+
*/
|
|
210
|
+
export declare const updateSteps: (steps: State['steps']) => {
|
|
211
|
+
type: EActionTypes;
|
|
212
|
+
payload: {
|
|
213
|
+
steps: {
|
|
214
|
+
/** 用于重置当前步骤 */
|
|
215
|
+
key: number;
|
|
216
|
+
title?: string | undefined;
|
|
217
|
+
text?: string | undefined;
|
|
218
|
+
warn?: string | undefined;
|
|
219
|
+
tip?: string | undefined;
|
|
220
|
+
success?: string | undefined;
|
|
221
|
+
fail?: string | undefined;
|
|
222
|
+
loading?: string | undefined;
|
|
223
|
+
/** 步骤状态 */
|
|
224
|
+
status: StatusType;
|
|
225
|
+
custom?: {
|
|
226
|
+
[key: string]: unknown;
|
|
227
|
+
} | undefined;
|
|
228
|
+
}[];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* @title: 更新状态管理信息
|
|
233
|
+
* @description: 更新状态管理信息
|
|
234
|
+
* @param {Partial} payload
|
|
235
|
+
* @return {*}
|
|
236
|
+
* @Author: hongbing.wang
|
|
237
|
+
* @Date: 2024-08-19 10:08
|
|
238
|
+
*/
|
|
239
|
+
export declare const updateState: (payload: Partial<State>) => {
|
|
240
|
+
type: EActionTypes;
|
|
241
|
+
payload: Partial<State>;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @title: 更新当前步骤自定义信息
|
|
245
|
+
* @description: 更新当前步骤自定义信息
|
|
246
|
+
* @Author: hongbing.wang
|
|
247
|
+
* @Date: 2024-08-19 10:09
|
|
248
|
+
*/
|
|
249
|
+
export declare const updateCurrentCustomStemItem: (payload: NonNullable<Partial<State['steps'][number]['custom']>>) => {
|
|
250
|
+
type: EActionTypes;
|
|
251
|
+
payload: Partial<{
|
|
252
|
+
[key: string]: unknown;
|
|
253
|
+
}>;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* @title: 更新当前步骤信息
|
|
257
|
+
* @description: 更新当前步骤信息
|
|
258
|
+
* @Author: hongbing.wang
|
|
259
|
+
* @Date: 2024-08-19 10:09
|
|
260
|
+
*/
|
|
261
|
+
export declare const updateCurrentStemItem: (payload: any) => {
|
|
262
|
+
type: EActionTypes;
|
|
263
|
+
payload: any;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* @title: 更新当前步骤信息
|
|
267
|
+
* @description: 更新当前步骤信息
|
|
268
|
+
* @Author: hongbing.wang
|
|
269
|
+
* @Date: 2024-08-19 10:09
|
|
270
|
+
*/
|
|
271
|
+
export declare const updateClient: (payload: ClientEnum) => {
|
|
272
|
+
type: EActionTypes;
|
|
273
|
+
payload: {
|
|
274
|
+
client: ClientEnum;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* @title: 更新备份信息
|
|
279
|
+
* @description: 更新备份信息
|
|
280
|
+
* @Author: hongbing.wang
|
|
281
|
+
* @Date: 2024-08-19 10:25
|
|
282
|
+
*/
|
|
283
|
+
export declare const backUpProduction: (payload: Partial<State>) => {
|
|
284
|
+
type: EActionTypes;
|
|
285
|
+
payload: Partial<State>;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* @title: 释放备份信息
|
|
289
|
+
* @description: 释放备份信息
|
|
290
|
+
* @param {Partial} payload
|
|
291
|
+
* @Author: hongbing.wang
|
|
292
|
+
* @Date: 2024-08-19 10:27
|
|
293
|
+
*/
|
|
294
|
+
export declare const backUpFree: (payload: Partial<State>) => {
|
|
295
|
+
type: EActionTypes;
|
|
296
|
+
payload: {
|
|
297
|
+
name?: string | undefined;
|
|
298
|
+
symbol?: string | undefined;
|
|
299
|
+
amount?: string | number | undefined;
|
|
300
|
+
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
301
|
+
order_id?: string | number | undefined;
|
|
302
|
+
eftpos?: "stripe" | "tyro" | "payo" | "windcave" | "linkly" | undefined;
|
|
303
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
304
|
+
key?: number | undefined;
|
|
305
|
+
step?: number | undefined;
|
|
306
|
+
title?: string | undefined;
|
|
307
|
+
subTitle?: string | undefined;
|
|
308
|
+
type?: "unset" | "step" | undefined;
|
|
309
|
+
render?: boolean | undefined;
|
|
310
|
+
net?: boolean | undefined;
|
|
311
|
+
component?: string | undefined;
|
|
312
|
+
form?: string | undefined;
|
|
313
|
+
status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
314
|
+
warn?: string | undefined;
|
|
315
|
+
steps?: {
|
|
316
|
+
/** 用于重置当前步骤 */
|
|
317
|
+
key: number;
|
|
318
|
+
title?: string | undefined;
|
|
319
|
+
text?: string | undefined;
|
|
320
|
+
warn?: string | undefined;
|
|
321
|
+
tip?: string | undefined;
|
|
322
|
+
success?: string | undefined;
|
|
323
|
+
fail?: string | undefined;
|
|
324
|
+
loading?: string | undefined;
|
|
325
|
+
/** 步骤状态 */
|
|
326
|
+
status: StatusType;
|
|
327
|
+
custom?: {
|
|
328
|
+
[key: string]: unknown;
|
|
329
|
+
} | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
number?: string | number | undefined;
|
|
332
|
+
device?: {
|
|
333
|
+
[key: string]: unknown;
|
|
334
|
+
} | undefined;
|
|
335
|
+
pay?: {
|
|
336
|
+
[key: string]: unknown;
|
|
337
|
+
} | undefined;
|
|
338
|
+
custom?: {
|
|
339
|
+
[key: string]: unknown;
|
|
340
|
+
} | undefined;
|
|
341
|
+
manual?: {
|
|
342
|
+
title: string;
|
|
343
|
+
text: string;
|
|
344
|
+
status?: boolean | undefined;
|
|
345
|
+
money?: number | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
backup?: Omit<State, "backup"> | undefined;
|
|
348
|
+
client?: ClientEnum | undefined;
|
|
349
|
+
originalParams?: Record<string, any> | undefined;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
export declare function reducers(state: State, action: Action): State;
|
|
353
|
+
export declare const Provider: ({ children, state: providerState, }: {
|
|
354
|
+
children: ReactNode;
|
|
355
|
+
state?: State | undefined;
|
|
356
|
+
}) => React.JSX.Element;
|
|
357
|
+
export declare function useContextData(): State;
|
|
358
|
+
export declare function useDispatch(): ThunkDispatch<State, Action>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voucher 组件多语言配置
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
en: {
|
|
6
|
+
'pisell2.voucher.title': string;
|
|
7
|
+
'pisell2.voucher.details': string;
|
|
8
|
+
'pisell2.voucher.login': string;
|
|
9
|
+
'pisell2.voucher.login-tip': string;
|
|
10
|
+
'pisell2.voucher.code': string;
|
|
11
|
+
'pisell2.voucher.enter-code': string;
|
|
12
|
+
'pisell2.voucher.apply': string;
|
|
13
|
+
'pisell2.voucher.code-invalid': string;
|
|
14
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
15
|
+
};
|
|
16
|
+
'zh-CN': {
|
|
17
|
+
'pisell2.voucher.title': string;
|
|
18
|
+
'pisell2.voucher.details': string;
|
|
19
|
+
'pisell2.voucher.login': string;
|
|
20
|
+
'pisell2.voucher.login-tip': string;
|
|
21
|
+
'pisell2.voucher.code': string;
|
|
22
|
+
'pisell2.voucher.enter-code': string;
|
|
23
|
+
'pisell2.voucher.apply': string;
|
|
24
|
+
'pisell2.voucher.code-invalid': string;
|
|
25
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
26
|
+
};
|
|
27
|
+
'zh-HK': {
|
|
28
|
+
'pisell2.voucher.title': string;
|
|
29
|
+
'pisell2.voucher.details': string;
|
|
30
|
+
'pisell2.voucher.login': string;
|
|
31
|
+
'pisell2.voucher.login-tip': string;
|
|
32
|
+
'pisell2.voucher.code': string;
|
|
33
|
+
'pisell2.voucher.enter-code': string;
|
|
34
|
+
'pisell2.voucher.apply': string;
|
|
35
|
+
'pisell2.voucher.code-invalid': string;
|
|
36
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
37
|
+
};
|
|
38
|
+
ja: {
|
|
39
|
+
'pisell2.voucher.title': string;
|
|
40
|
+
'pisell2.voucher.details': string;
|
|
41
|
+
'pisell2.voucher.login': string;
|
|
42
|
+
'pisell2.voucher.login-tip': string;
|
|
43
|
+
'pisell2.voucher.code': string;
|
|
44
|
+
'pisell2.voucher.enter-code': string;
|
|
45
|
+
'pisell2.voucher.apply': string;
|
|
46
|
+
'pisell2.voucher.code-invalid': string;
|
|
47
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
48
|
+
};
|
|
49
|
+
pt: {
|
|
50
|
+
'pisell2.voucher.title': string;
|
|
51
|
+
'pisell2.voucher.details': string;
|
|
52
|
+
'pisell2.voucher.login': string;
|
|
53
|
+
'pisell2.voucher.login-tip': string;
|
|
54
|
+
'pisell2.voucher.code': string;
|
|
55
|
+
'pisell2.voucher.enter-code': string;
|
|
56
|
+
'pisell2.voucher.apply': string;
|
|
57
|
+
'pisell2.voucher.code-invalid': string;
|
|
58
|
+
'pisell2.voucher.code-invalid-cart': string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: visa/master手续费是否一致
|
|
3
|
+
* @param {any} creditCardConfig
|
|
4
|
+
* @return {*}
|
|
5
|
+
*/
|
|
6
|
+
export declare const isCreditCardSurchargeSame: (creditCardConfig: any[]) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @description: 格式化visa/master手续费
|
|
9
|
+
* @param {any} item 支付列表项
|
|
10
|
+
* @param {number} amount 订单金额
|
|
11
|
+
* @param {boolean} isSame 手续费是否一致
|
|
12
|
+
* @return {*}
|
|
13
|
+
*/
|
|
14
|
+
export declare const formatCreditCardSurcharge: (item: any, amount: number, isSame: boolean) => any;
|
|
15
|
+
/**
|
|
16
|
+
* @description: 格式化visa/master手续费列表
|
|
17
|
+
* @param {any} item
|
|
18
|
+
* @param {number} amount
|
|
19
|
+
* @return {*}
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatCreditCardSurchargeList: (item: any, amount: number) => any;
|
|
22
|
+
/**
|
|
23
|
+
* @description: 格式化visa/master手续费文案,只显示百分比区间
|
|
24
|
+
* @return {*}
|
|
25
|
+
*/
|
|
26
|
+
export declare const formatCreditCardSurchargeText: (surcharge_config: any[], surcharge_text: string) => string;
|
|
27
|
+
/**
|
|
28
|
+
* @title: 计算支付列表的手续费
|
|
29
|
+
* @description:
|
|
30
|
+
* @param {any} paymentList
|
|
31
|
+
* @param {number} amount
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: zhiwei.Wang
|
|
34
|
+
* @Date: 2024-08-18 09:30
|
|
35
|
+
*/
|
|
36
|
+
export declare const calculateSurcharge: (paymentList: any[], amount: number) => any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface StripePayRef {
|
|
4
|
+
init: (res: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface StripePayProps {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<StripePayProps & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|