@pisell/private-materials 6.3.86 → 6.3.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/es/components/eftpos/PairModal/hooks.js +67 -0
- package/es/components/eftpos/PairModal/index.d.ts +11 -0
- package/es/components/{ecocup/components/AddCustomerModal → eftpos/PairModal}/index.js +189 -159
- package/es/components/eftpos/PairModal/index.less +70 -0
- package/es/components/eftpos/assets/mx51SCI.svg +15 -0
- package/es/components/eftpos/const.d.ts +3 -1
- package/es/components/eftpos/const.js +2 -0
- package/es/components/eftpos/device.d.ts +3 -1
- package/es/components/eftpos/device.js +5 -3
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +7 -0
- package/es/components/eftpos/hooks.js +20 -0
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.js +118 -14
- package/es/components/eftpos/index.less +26 -1
- package/es/components/eftpos/locales.d.ts +24 -0
- package/es/components/eftpos/locales.js +91 -7
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +70 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +96 -0
- package/es/components/eftposPay/aggregatePayment/types.js +61 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1127 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- 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 +6 -1
- package/es/components/eftposPay/const.js +2 -0
- package/es/components/eftposPay/hooks.d.ts +2 -1
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/linkly/index.js +1 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/mx51/Action.d.ts +6 -0
- package/es/components/eftposPay/mx51/Action.js +91 -0
- package/es/components/eftposPay/mx51/const.d.ts +5 -0
- package/es/components/eftposPay/mx51/const.js +69 -0
- package/es/components/eftposPay/mx51/index.d.ts +6 -0
- package/es/components/eftposPay/mx51/index.js +362 -0
- package/es/components/eftposPay/mx51/types.d.ts +136 -0
- package/es/components/eftposPay/mx51/types.js +29 -0
- package/es/components/eftposPay/mx51/utils.d.ts +10 -0
- package/es/components/eftposPay/mx51/utils.js +120 -0
- package/es/components/eftposPay/pay.js +7 -2
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/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/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/index.d.ts +1 -5
- package/es/index.js +1 -5
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +4 -8
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/NumericStepper/index.d.ts +3 -28
- package/es/pro/NumericStepper/index.js +107 -175
- package/es/pro/NumericStepper/index.less +143 -295
- package/es/pro/Selector/Selector.js +26 -33
- package/es/pro/Selector/components/Card/index.js +3 -2
- package/es/pro/Selector/components/Card/index.less +4 -11
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/es/pro/Selector/components/Indicator/index.js +1 -2
- package/es/pro/Selector/components/Indicator/index.less +1 -4
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +6 -60
- package/es/pro/Selector/selector.less +64 -0
- package/es/pro/Selector/types.d.ts +0 -40
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/lib/components/eftpos/PairModal/hooks.js +70 -0
- package/lib/components/eftpos/PairModal/index.d.ts +11 -0
- package/lib/components/eftpos/PairModal/index.js +197 -0
- package/lib/components/eftpos/PairModal/index.less +70 -0
- package/lib/components/eftpos/assets/mx51SCI.svg +15 -0
- package/lib/components/eftpos/const.d.ts +3 -1
- package/lib/components/eftpos/const.js +2 -0
- package/lib/components/eftpos/device.d.ts +3 -1
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +7 -0
- package/lib/components/eftpos/hooks.js +19 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.js +73 -7
- package/lib/components/eftpos/index.less +26 -1
- package/lib/components/eftpos/locales.d.ts +24 -0
- package/lib/components/eftpos/locales.js +88 -4
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/{ecocup/customerList/hooks → eftposPay/aggregatePayment}/index.js +10 -10
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +96 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +746 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- 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 +6 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -1
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/linkly/index.js +1 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
- package/lib/components/eftposPay/mx51/Action.js +127 -0
- package/lib/components/eftposPay/mx51/const.d.ts +5 -0
- package/lib/components/eftposPay/mx51/const.js +85 -0
- package/lib/components/eftposPay/mx51/index.d.ts +6 -0
- package/lib/components/eftposPay/mx51/index.js +330 -0
- package/lib/components/eftposPay/mx51/types.d.ts +136 -0
- package/lib/components/{ecocup/cupList/hooks/index.js → eftposPay/mx51/types.js} +17 -17
- package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
- package/lib/components/eftposPay/mx51/utils.js +114 -0
- package/lib/components/eftposPay/pay.js +4 -2
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/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/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/index.d.ts +1 -5
- package/lib/index.js +1 -13
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +3 -7
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/NumericStepper/index.d.ts +3 -28
- package/lib/pro/NumericStepper/index.js +88 -176
- package/lib/pro/NumericStepper/index.less +143 -295
- package/lib/pro/Selector/Selector.js +16 -27
- package/lib/pro/Selector/components/Card/index.js +1 -9
- package/lib/pro/Selector/components/Card/index.less +4 -11
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/lib/pro/Selector/components/Indicator/index.js +1 -1
- package/lib/pro/Selector/components/Indicator/index.less +1 -4
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
- package/lib/pro/Selector/selector.less +64 -0
- package/lib/pro/Selector/types.d.ts +0 -40
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/package.json +6 -6
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -12
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -147
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/es/components/ecocup/components/CustomerCard/index.js +0 -34
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/es/components/ecocup/components/PageHeader/index.js +0 -37
- package/es/components/ecocup/components/PageHeader/index.less +0 -19
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/es/components/ecocup/components/SearchBar/index.js +0 -218
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/cupList/const.d.ts +0 -133
- package/es/components/ecocup/cupList/const.js +0 -306
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -168
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -172
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -40
- package/es/components/ecocup/cupList/index.d.ts +0 -6
- package/es/components/ecocup/cupList/index.js +0 -220
- package/es/components/ecocup/cupList/index.less +0 -113
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -27
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -103
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -49
- package/es/components/ecocup/hooks.js +0 -151
- package/es/components/ecocup/locales.d.ts +0 -339
- package/es/components/ecocup/locales.js +0 -372
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -861
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -5
- package/es/plus/orderList/components/HandleActions.js +0 -24
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -7
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -6
- package/es/plus/orderList/components/Toolbar.js +0 -57
- package/es/plus/orderList/config.d.ts +0 -154
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -9
- package/es/plus/orderList/index.js +0 -128
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -372
- package/es/plus/orderList/locales.js +0 -459
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/es/pro/comprehensiveSearch/components/index.js +0 -2
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -140
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -14
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -7
- package/es/pro/comprehensiveSearch/index.js +0 -207
- package/es/pro/comprehensiveSearch/index.less +0 -196
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/locales.js +0 -14
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -24
- package/es/pro/keyboards/locales.js +0 -35
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -8
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -13
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -140
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -35
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -16
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -7
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -48
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/lib/components/ecocup/components/MoreDropdown/index.js +0 -68
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -6
- package/lib/components/ecocup/components/PageHeader/index.js +0 -59
- package/lib/components/ecocup/components/PageHeader/index.less +0 -19
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -12
- package/lib/components/ecocup/components/SearchBar/index.js +0 -213
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/cupList/const.d.ts +0 -133
- package/lib/components/ecocup/cupList/const.js +0 -326
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -202
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -32
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -112
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -75
- package/lib/components/ecocup/cupList/index.d.ts +0 -6
- package/lib/components/ecocup/cupList/index.js +0 -208
- package/lib/components/ecocup/cupList/index.less +0 -113
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -58
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -126
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -49
- package/lib/components/ecocup/hooks.js +0 -155
- package/lib/components/ecocup/locales.d.ts +0 -339
- package/lib/components/ecocup/locales.js +0 -389
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -584
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -5
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -7
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -6
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -154
- package/lib/plus/orderList/config.js +0 -764
- package/lib/plus/orderList/index.d.ts +0 -9
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -372
- package/lib/plus/orderList/locales.js +0 -471
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/lib/pro/comprehensiveSearch/components/index.js +0 -42
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -153
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -38
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
- package/lib/pro/comprehensiveSearch/index.js +0 -190
- package/lib/pro/comprehensiveSearch/index.less +0 -196
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/locales.js +0 -38
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -24
- package/lib/pro/keyboards/locales.js +0 -47
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lowcode/eco-cup-list/meta.ts +0 -63
- package/lowcode/eco-customer-list/meta.ts +0 -63
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import { useEffect, useRef } from 'react';
|
|
8
|
+
import PaymentMethod from "../utils/payment";
|
|
9
|
+
import { ModeEnum } from "../../const";
|
|
10
|
+
import { useStoreRef } from "../../hooks";
|
|
11
|
+
import { getUuid } from "../../helper";
|
|
12
|
+
import { useDispatch, updateState } from "../../store";
|
|
13
|
+
import { useContextData } from "../../store";
|
|
14
|
+
export var usePayment = function usePayment(options) {
|
|
15
|
+
var _useContextData = useContextData(),
|
|
16
|
+
custom = _useContextData.custom;
|
|
17
|
+
var _useStoreRef = useStoreRef(),
|
|
18
|
+
modeRef = _useStoreRef.modeRef,
|
|
19
|
+
payRef = _useStoreRef.payRef,
|
|
20
|
+
orderIdRef = _useStoreRef.orderIdRef,
|
|
21
|
+
eftposRef = _useStoreRef.eftposRef,
|
|
22
|
+
deviceRef = _useStoreRef.deviceRef,
|
|
23
|
+
dataRef = _useStoreRef.dataRef,
|
|
24
|
+
amountRef = _useStoreRef.amountRef;
|
|
25
|
+
var paymentMethodRef = useRef(null);
|
|
26
|
+
var dispatch = useDispatch();
|
|
27
|
+
var uniquePaymentNumberRef = useRef(null);
|
|
28
|
+
var isPay = modeRef.current === ModeEnum.Pay || modeRef.current === ModeEnum.FullPay;
|
|
29
|
+
useEffect(function () {
|
|
30
|
+
if (!paymentMethodRef.current) {
|
|
31
|
+
var _deviceRef$current;
|
|
32
|
+
// 如果不存在交易号需要先创建一个交易号
|
|
33
|
+
if (!options.paymentNum) {
|
|
34
|
+
var paymentNum = getUuid();
|
|
35
|
+
dispatch(updateState({
|
|
36
|
+
number: paymentNum
|
|
37
|
+
}));
|
|
38
|
+
options.paymentNum = paymentNum;
|
|
39
|
+
uniquePaymentNumberRef.current = paymentNum;
|
|
40
|
+
} else {
|
|
41
|
+
uniquePaymentNumberRef.current = options.paymentNum;
|
|
42
|
+
}
|
|
43
|
+
options.orderId = orderIdRef.current;
|
|
44
|
+
options.deviceId = (_deviceRef$current = deviceRef.current) === null || _deviceRef$current === void 0 ? void 0 : _deviceRef$current.id;
|
|
45
|
+
paymentMethodRef.current = new PaymentMethod(options);
|
|
46
|
+
}
|
|
47
|
+
return function () {
|
|
48
|
+
var _paymentMethodRef$cur, _paymentMethodRef$cur2;
|
|
49
|
+
// 卸载组件时,如果paymentMethodRef存在需要先执行销毁,再清空
|
|
50
|
+
(_paymentMethodRef$cur = paymentMethodRef.current) === null || _paymentMethodRef$cur === void 0 || (_paymentMethodRef$cur2 = _paymentMethodRef$cur.destroy) === null || _paymentMethodRef$cur2 === void 0 || _paymentMethodRef$cur2.call(_paymentMethodRef$cur);
|
|
51
|
+
paymentMethodRef.current = null;
|
|
52
|
+
};
|
|
53
|
+
}, []);
|
|
54
|
+
var run = function run() {
|
|
55
|
+
var _payRef$current, _deviceRef$current2;
|
|
56
|
+
var params = {
|
|
57
|
+
order_id: orderIdRef.current,
|
|
58
|
+
unique_payment_number: uniquePaymentNumberRef.current,
|
|
59
|
+
payment_code: options.paymentCode,
|
|
60
|
+
amount: isPay ? (_payRef$current = payRef.current) === null || _payRef$current === void 0 ? void 0 : _payRef$current.total : amountRef.current,
|
|
61
|
+
operator_id: custom === null || custom === void 0 ? void 0 : custom.operator_id,
|
|
62
|
+
operator_type: custom === null || custom === void 0 ? void 0 : custom.operator_type,
|
|
63
|
+
platform: custom === null || custom === void 0 ? void 0 : custom.platform,
|
|
64
|
+
eftpos: {
|
|
65
|
+
card_reader_type: eftposRef.current,
|
|
66
|
+
card_reader_id: (_deviceRef$current2 = deviceRef.current) === null || _deviceRef$current2 === void 0 ? void 0 : _deviceRef$current2.id,
|
|
67
|
+
pay_param_base64: encodeURIComponent(btoa(encodeURIComponent(JSON.stringify(_objectSpread(_objectSpread({}, dataRef.current), {}, {
|
|
68
|
+
number: uniquePaymentNumberRef.current
|
|
69
|
+
})))))
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
if (isPay) {
|
|
73
|
+
var _payRef$current2, _payRef$current3, _payRef$current4, _paymentMethodRef$cur3;
|
|
74
|
+
params.payment = {
|
|
75
|
+
original_amount: (_payRef$current2 = payRef.current) === null || _payRef$current2 === void 0 ? void 0 : _payRef$current2.amount,
|
|
76
|
+
order_payment_type: 'normal',
|
|
77
|
+
// TODO: 需要使用方提供
|
|
78
|
+
custom_payment_id: custom === null || custom === void 0 ? void 0 : custom.custom_payment_id,
|
|
79
|
+
custom_payment_code: custom === null || custom === void 0 ? void 0 : custom.custom_payment_code,
|
|
80
|
+
custom_payment_name: custom === null || custom === void 0 ? void 0 : custom.custom_payment_name,
|
|
81
|
+
custom_payment_type: custom === null || custom === void 0 ? void 0 : custom.custom_payment_type,
|
|
82
|
+
service_charge: {
|
|
83
|
+
amount: (_payRef$current3 = payRef.current) === null || _payRef$current3 === void 0 ? void 0 : _payRef$current3.surMoney,
|
|
84
|
+
percentage: (_payRef$current4 = payRef.current) === null || _payRef$current4 === void 0 ? void 0 : _payRef$current4.surPercentRate
|
|
85
|
+
},
|
|
86
|
+
metadata: {
|
|
87
|
+
unique_payment_number: uniquePaymentNumberRef.current
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
(_paymentMethodRef$cur3 = paymentMethodRef.current) === null || _paymentMethodRef$cur3 === void 0 || _paymentMethodRef$cur3.pay(params);
|
|
91
|
+
} else {
|
|
92
|
+
var _paymentMethodRef$cur4;
|
|
93
|
+
(_paymentMethodRef$cur4 = paymentMethodRef.current) === null || _paymentMethodRef$cur4 === void 0 || _paymentMethodRef$cur4.refund(params);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
var query = function query() {
|
|
97
|
+
if (isPay) {
|
|
98
|
+
var _paymentMethodRef$cur5;
|
|
99
|
+
(_paymentMethodRef$cur5 = paymentMethodRef.current) === null || _paymentMethodRef$cur5 === void 0 || _paymentMethodRef$cur5.payQuery();
|
|
100
|
+
} else {
|
|
101
|
+
var _paymentMethodRef$cur6;
|
|
102
|
+
(_paymentMethodRef$cur6 = paymentMethodRef.current) === null || _paymentMethodRef$cur6 === void 0 || _paymentMethodRef$cur6.refundQuery();
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var action = function action(data) {
|
|
106
|
+
var params = {
|
|
107
|
+
order_id: orderIdRef.current,
|
|
108
|
+
unique_payment_number: uniquePaymentNumberRef.current,
|
|
109
|
+
payment_code: options.paymentCode,
|
|
110
|
+
data: data
|
|
111
|
+
};
|
|
112
|
+
if (isPay) {
|
|
113
|
+
var _paymentMethodRef$cur7;
|
|
114
|
+
(_paymentMethodRef$cur7 = paymentMethodRef.current) === null || _paymentMethodRef$cur7 === void 0 || _paymentMethodRef$cur7.payAction(params);
|
|
115
|
+
} else {
|
|
116
|
+
var _paymentMethodRef$cur8;
|
|
117
|
+
(_paymentMethodRef$cur8 = paymentMethodRef.current) === null || _paymentMethodRef$cur8 === void 0 || _paymentMethodRef$cur8.refundAction(params);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
return {
|
|
121
|
+
run: run,
|
|
122
|
+
query: query,
|
|
123
|
+
action: action
|
|
124
|
+
};
|
|
125
|
+
};
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
export declare const version1: {
|
|
2
|
+
code: number;
|
|
3
|
+
message: string;
|
|
4
|
+
data: {
|
|
5
|
+
external_unified_response: {
|
|
6
|
+
external_unified_status: string;
|
|
7
|
+
external_unified_message: string;
|
|
8
|
+
transaction: {
|
|
9
|
+
id: string;
|
|
10
|
+
version: number;
|
|
11
|
+
status: string;
|
|
12
|
+
message: string;
|
|
13
|
+
merchant_receipt: null;
|
|
14
|
+
customer_receipt: null;
|
|
15
|
+
result_amounts: null;
|
|
16
|
+
result_financial_status: null;
|
|
17
|
+
pos_instructions: {
|
|
18
|
+
auto_actions: null;
|
|
19
|
+
action_form: {
|
|
20
|
+
layout: null;
|
|
21
|
+
properties: null;
|
|
22
|
+
details: {
|
|
23
|
+
'Pairing ID': string;
|
|
24
|
+
TID: string;
|
|
25
|
+
'Transaction ID': string;
|
|
26
|
+
'Transaction Version': string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const version2: {
|
|
35
|
+
code: number;
|
|
36
|
+
message: string;
|
|
37
|
+
data: {
|
|
38
|
+
external_unified_response: {
|
|
39
|
+
external_unified_status: string;
|
|
40
|
+
external_unified_message: string;
|
|
41
|
+
transaction: {
|
|
42
|
+
id: string;
|
|
43
|
+
version: number;
|
|
44
|
+
status: string;
|
|
45
|
+
message: string;
|
|
46
|
+
merchant_receipt: null;
|
|
47
|
+
customer_receipt: null;
|
|
48
|
+
result_amounts: null;
|
|
49
|
+
result_financial_status: null;
|
|
50
|
+
pos_instructions: {
|
|
51
|
+
auto_actions: null;
|
|
52
|
+
action_form: {
|
|
53
|
+
layout: {
|
|
54
|
+
type: string;
|
|
55
|
+
elements: {
|
|
56
|
+
label: string;
|
|
57
|
+
key: string;
|
|
58
|
+
}[];
|
|
59
|
+
}[];
|
|
60
|
+
properties: {
|
|
61
|
+
cancel_transaction: {
|
|
62
|
+
type: string;
|
|
63
|
+
submit_url: string;
|
|
64
|
+
action: null;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
details: {
|
|
68
|
+
'Pairing ID': string;
|
|
69
|
+
TID: string;
|
|
70
|
+
'Transaction ID': string;
|
|
71
|
+
'Transaction Version': string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export declare const version3: {
|
|
80
|
+
code: number;
|
|
81
|
+
message: string;
|
|
82
|
+
data: {
|
|
83
|
+
external_unified_response: {
|
|
84
|
+
external_unified_status: string;
|
|
85
|
+
external_unified_message: string;
|
|
86
|
+
transaction: {
|
|
87
|
+
id: string;
|
|
88
|
+
version: number;
|
|
89
|
+
status: string;
|
|
90
|
+
message: string;
|
|
91
|
+
merchant_receipt: null;
|
|
92
|
+
customer_receipt: null;
|
|
93
|
+
result_amounts: null;
|
|
94
|
+
result_financial_status: null;
|
|
95
|
+
pos_instructions: {
|
|
96
|
+
auto_actions: null;
|
|
97
|
+
action_form: {
|
|
98
|
+
layout: {
|
|
99
|
+
type: string;
|
|
100
|
+
elements: {
|
|
101
|
+
label: string;
|
|
102
|
+
key: string;
|
|
103
|
+
}[];
|
|
104
|
+
}[];
|
|
105
|
+
properties: {
|
|
106
|
+
cancel_transaction: {
|
|
107
|
+
type: string;
|
|
108
|
+
submit_url: string;
|
|
109
|
+
action: null;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
details: {
|
|
113
|
+
'Pairing ID': string;
|
|
114
|
+
TID: string;
|
|
115
|
+
'Transaction ID': string;
|
|
116
|
+
'Transaction Version': string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export declare const version4: {
|
|
125
|
+
code: number;
|
|
126
|
+
message: string;
|
|
127
|
+
data: {
|
|
128
|
+
external_unified_response: {
|
|
129
|
+
external_unified_status: string;
|
|
130
|
+
external_unified_message: string;
|
|
131
|
+
transaction: {
|
|
132
|
+
id: string;
|
|
133
|
+
version: number;
|
|
134
|
+
status: string;
|
|
135
|
+
message: string;
|
|
136
|
+
merchant_receipt: null;
|
|
137
|
+
customer_receipt: null;
|
|
138
|
+
result_amounts: null;
|
|
139
|
+
result_financial_status: null;
|
|
140
|
+
pos_instructions: {
|
|
141
|
+
auto_actions: null;
|
|
142
|
+
action_form: {
|
|
143
|
+
layout: {
|
|
144
|
+
type: string;
|
|
145
|
+
elements: {
|
|
146
|
+
label: string;
|
|
147
|
+
key: string;
|
|
148
|
+
}[];
|
|
149
|
+
}[];
|
|
150
|
+
properties: {
|
|
151
|
+
cancel_transaction: {
|
|
152
|
+
type: string;
|
|
153
|
+
submit_url: string;
|
|
154
|
+
action: null;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
details: {
|
|
158
|
+
'Pairing ID': string;
|
|
159
|
+
TID: string;
|
|
160
|
+
'Transaction ID': string;
|
|
161
|
+
'Transaction Version': string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export declare const version5: {
|
|
170
|
+
code: number;
|
|
171
|
+
message: string;
|
|
172
|
+
data: {
|
|
173
|
+
external_unified_response: {
|
|
174
|
+
external_unified_status: string;
|
|
175
|
+
external_unified_message: string;
|
|
176
|
+
transaction: {
|
|
177
|
+
id: string;
|
|
178
|
+
version: number;
|
|
179
|
+
status: string;
|
|
180
|
+
message: string;
|
|
181
|
+
merchant_receipt: null;
|
|
182
|
+
customer_receipt: null;
|
|
183
|
+
result_amounts: null;
|
|
184
|
+
result_financial_status: null;
|
|
185
|
+
pos_instructions: {
|
|
186
|
+
auto_actions: null;
|
|
187
|
+
action_form: {
|
|
188
|
+
layout: {
|
|
189
|
+
type: string;
|
|
190
|
+
elements: {
|
|
191
|
+
label: string;
|
|
192
|
+
key: string;
|
|
193
|
+
}[];
|
|
194
|
+
}[];
|
|
195
|
+
properties: {
|
|
196
|
+
cancel_transaction: {
|
|
197
|
+
type: string;
|
|
198
|
+
submit_url: string;
|
|
199
|
+
action: null;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
details: {
|
|
203
|
+
'Pairing ID': string;
|
|
204
|
+
TID: string;
|
|
205
|
+
'Transaction ID': string;
|
|
206
|
+
'Transaction Version': string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
export declare const version_singnature: {
|
|
215
|
+
code: number;
|
|
216
|
+
message: string;
|
|
217
|
+
data: {
|
|
218
|
+
external_unified_response: {
|
|
219
|
+
external_unified_status: string;
|
|
220
|
+
external_unified_message: string;
|
|
221
|
+
action: string;
|
|
222
|
+
transaction: {
|
|
223
|
+
id: string;
|
|
224
|
+
version: number;
|
|
225
|
+
status: string;
|
|
226
|
+
message: string;
|
|
227
|
+
merchant_receipt: string;
|
|
228
|
+
customer_receipt: null;
|
|
229
|
+
result_amounts: null;
|
|
230
|
+
result_financial_status: null;
|
|
231
|
+
pos_instructions: {
|
|
232
|
+
auto_actions: null;
|
|
233
|
+
action_form: {
|
|
234
|
+
layout: {
|
|
235
|
+
type: string;
|
|
236
|
+
elements: {
|
|
237
|
+
label: string;
|
|
238
|
+
key: string;
|
|
239
|
+
}[];
|
|
240
|
+
}[];
|
|
241
|
+
properties: {
|
|
242
|
+
approve_signature: {
|
|
243
|
+
type: string;
|
|
244
|
+
submit_url: string;
|
|
245
|
+
action: null;
|
|
246
|
+
};
|
|
247
|
+
decline_signature: {
|
|
248
|
+
type: string;
|
|
249
|
+
submit_url: string;
|
|
250
|
+
action: null;
|
|
251
|
+
};
|
|
252
|
+
helper_text: {
|
|
253
|
+
type: string;
|
|
254
|
+
text: string;
|
|
255
|
+
};
|
|
256
|
+
print_merchant_receipt: {
|
|
257
|
+
type: string;
|
|
258
|
+
submit_url: null;
|
|
259
|
+
action: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
details: {
|
|
263
|
+
'Pairing ID': string;
|
|
264
|
+
TID: string;
|
|
265
|
+
'Transaction ID': string;
|
|
266
|
+
'Transaction Version': string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
export declare const version_success: {
|
|
275
|
+
code: number;
|
|
276
|
+
message: string;
|
|
277
|
+
data: {
|
|
278
|
+
external_unified_response: {
|
|
279
|
+
external_unified_status: string;
|
|
280
|
+
external_unified_message: string;
|
|
281
|
+
transaction: {
|
|
282
|
+
id: string;
|
|
283
|
+
version: number;
|
|
284
|
+
status: string;
|
|
285
|
+
message: string;
|
|
286
|
+
merchant_receipt: string;
|
|
287
|
+
customer_receipt: string;
|
|
288
|
+
result_amounts: {
|
|
289
|
+
purchase_amount: number;
|
|
290
|
+
tip_amount: number;
|
|
291
|
+
surcharge_amount: number;
|
|
292
|
+
cashout_amount: number;
|
|
293
|
+
refund_amount: number;
|
|
294
|
+
moto_amount: number;
|
|
295
|
+
};
|
|
296
|
+
result_financial_status: string;
|
|
297
|
+
pos_instructions: {
|
|
298
|
+
auto_actions: null;
|
|
299
|
+
action_form: {
|
|
300
|
+
layout: {
|
|
301
|
+
type: string;
|
|
302
|
+
elements: {
|
|
303
|
+
label: string;
|
|
304
|
+
key: string;
|
|
305
|
+
}[];
|
|
306
|
+
}[];
|
|
307
|
+
properties: {
|
|
308
|
+
print_customer_receipt: {
|
|
309
|
+
type: string;
|
|
310
|
+
submit_url: null;
|
|
311
|
+
action: string;
|
|
312
|
+
};
|
|
313
|
+
print_merchant_receipt: {
|
|
314
|
+
type: string;
|
|
315
|
+
submit_url: null;
|
|
316
|
+
action: string;
|
|
317
|
+
};
|
|
318
|
+
transaction_complete: {
|
|
319
|
+
type: string;
|
|
320
|
+
submit_url: null;
|
|
321
|
+
action: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
details: {
|
|
325
|
+
'Pairing ID': string;
|
|
326
|
+
TID: string;
|
|
327
|
+
'Transaction ID': string;
|
|
328
|
+
'Transaction Version': string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
export declare const version_fail: {
|
|
337
|
+
code: number;
|
|
338
|
+
message: string;
|
|
339
|
+
data: {
|
|
340
|
+
external_unified_response: {
|
|
341
|
+
external_unified_status: string;
|
|
342
|
+
external_unified_message: string;
|
|
343
|
+
transaction: {
|
|
344
|
+
id: string;
|
|
345
|
+
version: number;
|
|
346
|
+
status: string;
|
|
347
|
+
message: string;
|
|
348
|
+
merchant_receipt: null;
|
|
349
|
+
customer_receipt: null;
|
|
350
|
+
result_amounts: {
|
|
351
|
+
purchase_amount: number;
|
|
352
|
+
tip_amount: number;
|
|
353
|
+
surcharge_amount: number;
|
|
354
|
+
cashout_amount: number;
|
|
355
|
+
refund_amount: number;
|
|
356
|
+
moto_amount: number;
|
|
357
|
+
};
|
|
358
|
+
result_financial_status: string;
|
|
359
|
+
pos_instructions: {
|
|
360
|
+
auto_actions: null;
|
|
361
|
+
action_form: {
|
|
362
|
+
layout: {
|
|
363
|
+
type: string;
|
|
364
|
+
elements: {
|
|
365
|
+
label: string;
|
|
366
|
+
key: string;
|
|
367
|
+
}[];
|
|
368
|
+
}[];
|
|
369
|
+
properties: {
|
|
370
|
+
retry_transaction: {
|
|
371
|
+
type: string;
|
|
372
|
+
submit_url: null;
|
|
373
|
+
action: string;
|
|
374
|
+
};
|
|
375
|
+
transaction_complete: {
|
|
376
|
+
type: string;
|
|
377
|
+
submit_url: null;
|
|
378
|
+
action: string;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
details: {
|
|
382
|
+
'Pairing ID': string;
|
|
383
|
+
TID: string;
|
|
384
|
+
'Transaction ID': string;
|
|
385
|
+
'Transaction Version': string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
export declare const version_final: {
|
|
394
|
+
code: number;
|
|
395
|
+
message: string;
|
|
396
|
+
data: {
|
|
397
|
+
external_unified_response: {
|
|
398
|
+
message: string;
|
|
399
|
+
response_code: number;
|
|
400
|
+
action: string;
|
|
401
|
+
external_service_fee: string;
|
|
402
|
+
external_unified_status: string;
|
|
403
|
+
transaction: {
|
|
404
|
+
id: string;
|
|
405
|
+
version: number;
|
|
406
|
+
status: string;
|
|
407
|
+
message: string;
|
|
408
|
+
merchant_receipt: string;
|
|
409
|
+
customer_receipt: null;
|
|
410
|
+
result_amounts: null;
|
|
411
|
+
result_financial_status: null;
|
|
412
|
+
pos_instructions: {
|
|
413
|
+
auto_actions: string[];
|
|
414
|
+
action_form: {
|
|
415
|
+
layout: ({
|
|
416
|
+
type: string;
|
|
417
|
+
elements: {
|
|
418
|
+
label: string;
|
|
419
|
+
key: string;
|
|
420
|
+
}[];
|
|
421
|
+
} | {
|
|
422
|
+
type: string;
|
|
423
|
+
elements: {
|
|
424
|
+
label: null;
|
|
425
|
+
key: string;
|
|
426
|
+
}[];
|
|
427
|
+
})[];
|
|
428
|
+
properties: {
|
|
429
|
+
approve_signature: {
|
|
430
|
+
type: string;
|
|
431
|
+
submit_url: string;
|
|
432
|
+
action: null;
|
|
433
|
+
};
|
|
434
|
+
call_test_function: {
|
|
435
|
+
type: string;
|
|
436
|
+
submit_url: null;
|
|
437
|
+
action: string;
|
|
438
|
+
};
|
|
439
|
+
decline_signature: {
|
|
440
|
+
type: string;
|
|
441
|
+
submit_url: string;
|
|
442
|
+
action: null;
|
|
443
|
+
};
|
|
444
|
+
helper_text: {
|
|
445
|
+
type: string;
|
|
446
|
+
text: string;
|
|
447
|
+
};
|
|
448
|
+
image_1: {
|
|
449
|
+
type: string;
|
|
450
|
+
mime: string;
|
|
451
|
+
encoding: string;
|
|
452
|
+
data: string;
|
|
453
|
+
};
|
|
454
|
+
input_1: {
|
|
455
|
+
type: string;
|
|
456
|
+
name: string;
|
|
457
|
+
};
|
|
458
|
+
input_2: {
|
|
459
|
+
type: string;
|
|
460
|
+
name: string;
|
|
461
|
+
};
|
|
462
|
+
submit_to_api: {
|
|
463
|
+
type: string;
|
|
464
|
+
submit_url: string;
|
|
465
|
+
action: null;
|
|
466
|
+
};
|
|
467
|
+
text_1: {
|
|
468
|
+
type: string;
|
|
469
|
+
text: string;
|
|
470
|
+
};
|
|
471
|
+
text_2: {
|
|
472
|
+
type: string;
|
|
473
|
+
text: string;
|
|
474
|
+
};
|
|
475
|
+
text_without_label: {
|
|
476
|
+
type: string;
|
|
477
|
+
text: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
details: {
|
|
481
|
+
'Label 1': string;
|
|
482
|
+
'Label 2': string;
|
|
483
|
+
'Label 3': string;
|
|
484
|
+
'Pairing ID': string;
|
|
485
|
+
TID: string;
|
|
486
|
+
'Transaction ID': string;
|
|
487
|
+
'Transaction Version': string;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
request_version: string;
|
|
494
|
+
};
|
|
495
|
+
};
|