@pisell/private-materials 3.4.93 → 3.4.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +145 -426
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.js +10 -10
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +4 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +0 -1
- package/es/components/eftposPay/linkly/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +52 -44
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +51 -43
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +51 -43
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +24 -15
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +19 -19
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +32 -27
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +17 -16
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +47 -42
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +18 -1
- package/es/components/pay/toC/PaymentMethods/index.js +116 -90
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/index.js +4 -1
- package/es/components/pay/toC/locales.d.ts +5 -0
- package/es/components/pay/toC/locales.js +5 -0
- package/es/components/pay/toC/payGroup.d.ts +14 -3
- package/es/components/pay/toC/payGroup.js +174 -15
- package/es/components/pay/toC/serve.d.ts +13 -0
- package/es/components/pay/toC/serve.js +30 -0
- package/es/components/pay/toC/utils.d.ts +3 -0
- package/es/components/pay/toC/utils.js +5 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/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/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/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/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/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/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/orderList/components/HandleActions.d.ts +1 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/es/plus/orderList/components/Reset.d.ts +1 -0
- package/es/plus/orderList/components/Toolbar.d.ts +1 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +5 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +0 -1
- package/lib/components/eftposPay/linkly/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +7 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +7 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +7 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +19 -7
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +15 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +3 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +10 -6
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +3 -3
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +3 -3
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +16 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +12 -7
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/index.js +5 -1
- package/lib/components/pay/toC/locales.d.ts +5 -0
- package/lib/components/pay/toC/locales.js +5 -0
- package/lib/components/pay/toC/payGroup.d.ts +14 -3
- package/lib/components/pay/toC/payGroup.js +60 -4
- package/lib/components/pay/toC/serve.d.ts +13 -0
- package/lib/components/pay/toC/serve.js +12 -2
- package/lib/components/pay/toC/utils.d.ts +3 -0
- package/lib/components/pay/toC/utils.js +5 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/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/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/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/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/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/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/lib/plus/orderList/components/Reset.d.ts +1 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -40,18 +40,22 @@ var import_serve = require("./serve");
|
|
|
40
40
|
var import_model = require("../../model");
|
|
41
41
|
var import_payGroup = require("../../payGroup");
|
|
42
42
|
var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
|
|
43
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
43
44
|
var import_index = require("./index.less");
|
|
44
45
|
var GlobePayAliPayH5 = (props, ref) => {
|
|
45
|
-
var _a;
|
|
46
|
+
var _a, _b;
|
|
46
47
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
47
48
|
const { onChange } = props;
|
|
48
49
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
49
50
|
const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
|
|
51
|
+
const context = (0, import_useEngineContext.default)();
|
|
52
|
+
const { token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
50
53
|
const paymentLogger = (0, import_usePaymentLogger.default)({
|
|
51
|
-
orderId: ((
|
|
54
|
+
orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
|
|
52
55
|
step: "2"
|
|
53
56
|
});
|
|
54
57
|
const init = async ({ payGroup }) => {
|
|
58
|
+
var _a2;
|
|
55
59
|
paymentLogger.addLog({
|
|
56
60
|
key: "GlobePayAliPayH5初始化开始",
|
|
57
61
|
value: ""
|
|
@@ -88,7 +92,7 @@ var GlobePayAliPayH5 = (props, ref) => {
|
|
|
88
92
|
key: "GlobePayAliPayH5获取支付链接成功",
|
|
89
93
|
value: ""
|
|
90
94
|
});
|
|
91
|
-
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
|
95
|
+
await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token));
|
|
92
96
|
paymentLogger.addLog({
|
|
93
97
|
key: "GlobePayAliPayH5准备跳转支付宝",
|
|
94
98
|
value: ""
|
|
@@ -40,17 +40,21 @@ var import_serve = require("./serve");
|
|
|
40
40
|
var import_model = require("../../model");
|
|
41
41
|
var import_payGroup = require("../../payGroup");
|
|
42
42
|
var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
|
|
43
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
43
44
|
var import_index = require("./index.less");
|
|
44
45
|
var GlobePayPaypalH5 = (props, ref) => {
|
|
45
|
-
var _a;
|
|
46
|
+
var _a, _b;
|
|
46
47
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
47
48
|
const { onChange } = props;
|
|
48
49
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
50
|
+
const context = (0, import_useEngineContext.default)();
|
|
51
|
+
const { token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
49
52
|
const paymentLogger = (0, import_usePaymentLogger.default)({
|
|
50
|
-
orderId: ((
|
|
53
|
+
orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
|
|
51
54
|
step: "2"
|
|
52
55
|
});
|
|
53
56
|
const init = async ({ payGroup }) => {
|
|
57
|
+
var _a2;
|
|
54
58
|
paymentLogger.addLog({
|
|
55
59
|
key: "GlobePayPaypalH5初始化开始",
|
|
56
60
|
value: ""
|
|
@@ -87,7 +91,7 @@ var GlobePayPaypalH5 = (props, ref) => {
|
|
|
87
91
|
key: "GlobePayPaypalH5获取支付链接成功",
|
|
88
92
|
value: ""
|
|
89
93
|
});
|
|
90
|
-
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
|
94
|
+
await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token));
|
|
91
95
|
paymentLogger.addLog({
|
|
92
96
|
key: "GlobePayPaypalH5准备跳转Paypal",
|
|
93
97
|
value: ""
|
|
@@ -40,17 +40,21 @@ var import_serve = require("./serve");
|
|
|
40
40
|
var import_model = require("../../model");
|
|
41
41
|
var import_payGroup = require("../../payGroup");
|
|
42
42
|
var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
|
|
43
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
43
44
|
var import_index = require("./index.less");
|
|
44
45
|
var GlobePayWxH5 = (props, ref) => {
|
|
45
|
-
var _a;
|
|
46
|
+
var _a, _b;
|
|
46
47
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
47
48
|
const { onChange } = props;
|
|
48
49
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
50
|
+
const context = (0, import_useEngineContext.default)();
|
|
51
|
+
const { token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
49
52
|
const paymentLogger = (0, import_usePaymentLogger.default)({
|
|
50
|
-
orderId: ((
|
|
53
|
+
orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
|
|
51
54
|
step: "2"
|
|
52
55
|
});
|
|
53
56
|
const init = async ({ payGroup }) => {
|
|
57
|
+
var _a2;
|
|
54
58
|
paymentLogger.addLog({
|
|
55
59
|
key: "GlobePayWxH5初始化开始",
|
|
56
60
|
value: ""
|
|
@@ -87,7 +91,7 @@ var GlobePayWxH5 = (props, ref) => {
|
|
|
87
91
|
key: "GlobePayWxH5获取支付链接成功",
|
|
88
92
|
value: ""
|
|
89
93
|
});
|
|
90
|
-
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
|
94
|
+
await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token));
|
|
91
95
|
paymentLogger.addLog({
|
|
92
96
|
key: "GlobePayWxH5准备跳转微信",
|
|
93
97
|
value: ""
|
|
@@ -42,13 +42,17 @@ var import_model = require("../../../model");
|
|
|
42
42
|
var import_payGroup = require("../../../payGroup");
|
|
43
43
|
var import_index = require("./index.less");
|
|
44
44
|
var import_utils = require("@pisell/utils");
|
|
45
|
+
var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
|
|
45
46
|
var TDSPay = (props, ref) => {
|
|
47
|
+
var _a;
|
|
46
48
|
const { onChange, closeAll } = props;
|
|
47
49
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
48
50
|
const [showCloseConfirm, setShowCloseConfirm] = (0, import_react.useState)(false);
|
|
49
51
|
const sessionIdRef = (0, import_react.useRef)(0);
|
|
50
52
|
const payingRef = (0, import_react.useRef)(false);
|
|
51
53
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
54
|
+
const engineContext = (0, import_useEngineContext.default)();
|
|
55
|
+
const { token } = ((_a = engineContext.appHelper) == null ? void 0 : _a.utils) || {};
|
|
52
56
|
(0, import_react.useEffect)(() => {
|
|
53
57
|
return () => {
|
|
54
58
|
sessionIdRef.current += 1;
|
|
@@ -64,6 +68,7 @@ var TDSPay = (props, ref) => {
|
|
|
64
68
|
onChange == null ? void 0 : onChange(res);
|
|
65
69
|
};
|
|
66
70
|
const init = async (res, order, preCheckData) => {
|
|
71
|
+
var _a2;
|
|
67
72
|
if (payingRef.current) return;
|
|
68
73
|
payingRef.current = true;
|
|
69
74
|
sessionIdRef.current += 1;
|
|
@@ -73,7 +78,10 @@ var TDSPay = (props, ref) => {
|
|
|
73
78
|
const isCancelled = () => sessionIdRef.current !== session;
|
|
74
79
|
const callback = createSessionCallback(session);
|
|
75
80
|
if (preCheckData) {
|
|
76
|
-
(0, import_tds2.startPayment)(
|
|
81
|
+
(0, import_tds2.startPayment)(
|
|
82
|
+
{ payData: preCheckData },
|
|
83
|
+
{ callback, isCancelled, stashAuthToken: (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token) }
|
|
84
|
+
);
|
|
77
85
|
return;
|
|
78
86
|
}
|
|
79
87
|
if (res.id) {
|
|
@@ -98,10 +106,10 @@ var TDSPay = (props, ref) => {
|
|
|
98
106
|
onChange == null ? void 0 : onChange({ key: "cancel" });
|
|
99
107
|
};
|
|
100
108
|
const _fastPayNew = async (res, callback, isCancelled) => {
|
|
101
|
-
var
|
|
109
|
+
var _a2, _b, _c, _d;
|
|
102
110
|
try {
|
|
103
111
|
const params = (0, import_payGroup.getPayGroupParamsFromStorage)(
|
|
104
|
-
(
|
|
112
|
+
(_a2 = state.payGroup) == null ? void 0 : _a2.order_id,
|
|
105
113
|
{ card_id: res.id }
|
|
106
114
|
);
|
|
107
115
|
if (!params) {
|
|
@@ -120,7 +128,11 @@ var TDSPay = (props, ref) => {
|
|
|
120
128
|
params
|
|
121
129
|
});
|
|
122
130
|
if (isCancelled()) return;
|
|
123
|
-
(0, import_payGroup.setPayNumber)(
|
|
131
|
+
await (0, import_payGroup.setPayNumber)(
|
|
132
|
+
(_c = state.payGroup) == null ? void 0 : _c.order_id,
|
|
133
|
+
data == null ? void 0 : data.pay_number,
|
|
134
|
+
(_d = token == null ? void 0 : token.get) == null ? void 0 : _d.call(token)
|
|
135
|
+
);
|
|
124
136
|
if ((data == null ? void 0 : data.type) === "token") {
|
|
125
137
|
callback({ key: "success", data });
|
|
126
138
|
}
|
|
@@ -139,7 +151,7 @@ var TDSPay = (props, ref) => {
|
|
|
139
151
|
}
|
|
140
152
|
};
|
|
141
153
|
const newCardPay = (res, callback, isCancelled) => {
|
|
142
|
-
var
|
|
154
|
+
var _a2, _b, _c;
|
|
143
155
|
let _cardInfo = {
|
|
144
156
|
card_name: res.card_name,
|
|
145
157
|
card_number: res.card_number,
|
|
@@ -149,7 +161,7 @@ var TDSPay = (props, ref) => {
|
|
|
149
161
|
is_save: res.is_save ? 1 : 0
|
|
150
162
|
};
|
|
151
163
|
_cardInfo = (0, import_payGroup.getPayGroupParamsFromStorage)(
|
|
152
|
-
(
|
|
164
|
+
(_a2 = state.payGroup) == null ? void 0 : _a2.order_id,
|
|
153
165
|
_cardInfo
|
|
154
166
|
);
|
|
155
167
|
if (!_cardInfo) {
|
|
@@ -165,7 +177,7 @@ var TDSPay = (props, ref) => {
|
|
|
165
177
|
}
|
|
166
178
|
(0, import_tds2.startPayment)(
|
|
167
179
|
{ orderId: (_b = state.payGroup) == null ? void 0 : _b.order_id, cardInfo: _cardInfo },
|
|
168
|
-
{ callback, isCancelled }
|
|
180
|
+
{ callback, isCancelled, stashAuthToken: (_c = token == null ? void 0 : token.get) == null ? void 0 : _c.call(token) }
|
|
169
181
|
);
|
|
170
182
|
};
|
|
171
183
|
(0, import_react.useImperativeHandle)(
|
|
@@ -51,6 +51,7 @@ var MWCreditCard = (props, ref) => {
|
|
|
51
51
|
const TDSPayRef2 = (0, import_react.useRef)();
|
|
52
52
|
const context = (0, import_useEngineContext.default)();
|
|
53
53
|
const utils = context.appHelper.utils || {};
|
|
54
|
+
const { token } = utils;
|
|
54
55
|
const [order, setOrder] = (0, import_react.useState)(null);
|
|
55
56
|
const [tdsErrorVisible, setTdsErrorVisible] = (0, import_react.useState)(false);
|
|
56
57
|
const [bankVerifyFailVisible, setBankVerifyFailVisible] = (0, import_react.useState)(false);
|
|
@@ -67,7 +68,7 @@ var MWCreditCard = (props, ref) => {
|
|
|
67
68
|
(_b = AddMWCreditCardRef2.current) == null ? void 0 : _b.close();
|
|
68
69
|
};
|
|
69
70
|
const fastPay = async (card) => {
|
|
70
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
71
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
71
72
|
try {
|
|
72
73
|
setLoading(true);
|
|
73
74
|
(_b = (_a = utils == null ? void 0 : utils.Toast) == null ? void 0 : _a.loading) == null ? void 0 : _b.call(_a, import_utils.locales.getText("tocPay.text.checkingCard"), 0, void 0, true);
|
|
@@ -90,13 +91,17 @@ var MWCreditCard = (props, ref) => {
|
|
|
90
91
|
order_id: (_e = state.payGroup) == null ? void 0 : _e.order_id,
|
|
91
92
|
params
|
|
92
93
|
});
|
|
93
|
-
(0, import_payGroup.setPayNumber)(
|
|
94
|
+
await (0, import_payGroup.setPayNumber)(
|
|
95
|
+
(_f = state.payGroup) == null ? void 0 : _f.order_id,
|
|
96
|
+
data == null ? void 0 : data.pay_number,
|
|
97
|
+
(_g = token == null ? void 0 : token.get) == null ? void 0 : _g.call(token)
|
|
98
|
+
);
|
|
94
99
|
if ((data == null ? void 0 : data.type) === "token") {
|
|
95
|
-
(
|
|
100
|
+
(_h = TDSPayRef2.current) == null ? void 0 : _h.init(card, order, data);
|
|
96
101
|
return;
|
|
97
102
|
}
|
|
98
103
|
if ((data == null ? void 0 : data.type) === "3ds") {
|
|
99
|
-
(
|
|
104
|
+
(_i = TDSPayRef2.current) == null ? void 0 : _i.init(card, order, data);
|
|
100
105
|
return;
|
|
101
106
|
}
|
|
102
107
|
} catch (e) {
|
|
@@ -107,11 +112,11 @@ var MWCreditCard = (props, ref) => {
|
|
|
107
112
|
}
|
|
108
113
|
} finally {
|
|
109
114
|
setLoading(false);
|
|
110
|
-
(
|
|
115
|
+
(_k = (_j = utils == null ? void 0 : utils.Toast) == null ? void 0 : _j.hide) == null ? void 0 : _k.call(_j);
|
|
111
116
|
}
|
|
112
117
|
};
|
|
113
118
|
const onCreate = async (res) => {
|
|
114
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
119
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
115
120
|
try {
|
|
116
121
|
setLoading(true);
|
|
117
122
|
(_b = (_a = utils == null ? void 0 : utils.Toast) == null ? void 0 : _a.loading) == null ? void 0 : _b.call(_a, import_utils.locales.getText("tocPay.text.checkingCard"), 0, void 0, true);
|
|
@@ -140,9 +145,10 @@ var MWCreditCard = (props, ref) => {
|
|
|
140
145
|
}
|
|
141
146
|
const preCheckData = await (0, import_tds2.preCheckEnrollment)(
|
|
142
147
|
(_e = state.payGroup) == null ? void 0 : _e.order_id,
|
|
143
|
-
_cardInfo
|
|
148
|
+
_cardInfo,
|
|
149
|
+
(_f = token == null ? void 0 : token.get) == null ? void 0 : _f.call(token)
|
|
144
150
|
);
|
|
145
|
-
(
|
|
151
|
+
(_g = TDSPayRef2.current) == null ? void 0 : _g.init(res, order, preCheckData);
|
|
146
152
|
} catch (e) {
|
|
147
153
|
if ((e == null ? void 0 : e.code) === 700500) {
|
|
148
154
|
setTdsErrorVisible(true);
|
|
@@ -151,7 +157,7 @@ var MWCreditCard = (props, ref) => {
|
|
|
151
157
|
}
|
|
152
158
|
} finally {
|
|
153
159
|
setLoading(false);
|
|
154
|
-
(
|
|
160
|
+
(_i = (_h = utils == null ? void 0 : utils.Toast) == null ? void 0 : _h.hide) == null ? void 0 : _i.call(_h);
|
|
155
161
|
}
|
|
156
162
|
};
|
|
157
163
|
const handleTDSPayChange = (res) => {
|
|
@@ -7,6 +7,8 @@ export declare const cancelCurrentPayment: () => void;
|
|
|
7
7
|
interface PaymentOptions {
|
|
8
8
|
callback?: (res: any) => void;
|
|
9
9
|
isCancelled?: () => boolean;
|
|
10
|
+
/** 引擎 token.get(),供 setPayNumber 写入 stash */
|
|
11
|
+
stashAuthToken?: string;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* @title: 点击支付
|
|
@@ -25,7 +27,7 @@ export declare const startPayment: ({ orderId, cardInfo, payData }: any, options
|
|
|
25
27
|
* @param {any} cardInfo 卡信息
|
|
26
28
|
* @return {Promise<any>} 返回后端数据(含 pay_info),失败则 throw
|
|
27
29
|
*/
|
|
28
|
-
export declare const preCheckEnrollment: (orderId: string, cardInfo: any) => Promise<any>;
|
|
30
|
+
export declare const preCheckEnrollment: (orderId: string, cardInfo: any, stashAuthToken?: string) => Promise<any>;
|
|
29
31
|
/*******
|
|
30
32
|
* @title: 步骤2
|
|
31
33
|
* @description: 提交卡信息到后端
|
|
@@ -93,7 +93,7 @@ var getCurrentTime = () => {
|
|
|
93
93
|
return (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
94
94
|
};
|
|
95
95
|
var startPayment = async ({ orderId, cardInfo, payData }, options) => {
|
|
96
|
-
const { callback, isCancelled } = options || {};
|
|
96
|
+
const { callback, isCancelled, stashAuthToken } = options || {};
|
|
97
97
|
let paymentInfo2 = {
|
|
98
98
|
amount: 0,
|
|
99
99
|
order_id: 0
|
|
@@ -110,7 +110,11 @@ var startPayment = async ({ orderId, cardInfo, payData }, options) => {
|
|
|
110
110
|
payDataOrderId: payData == null ? void 0 : payData.order_id,
|
|
111
111
|
payDataPayNumber: payData == null ? void 0 : payData.pay_number
|
|
112
112
|
});
|
|
113
|
-
const step2 = payData ? payData : await checkEnrollment(orderId, cardInfo, {
|
|
113
|
+
const step2 = payData ? payData : await checkEnrollment(orderId, cardInfo, {
|
|
114
|
+
callback,
|
|
115
|
+
isCancelled,
|
|
116
|
+
stashAuthToken
|
|
117
|
+
});
|
|
114
118
|
if (isCancelled == null ? void 0 : isCancelled()) {
|
|
115
119
|
closeIframe();
|
|
116
120
|
return;
|
|
@@ -238,12 +242,12 @@ var startPayment = async ({ orderId, cardInfo, payData }, options) => {
|
|
|
238
242
|
return false;
|
|
239
243
|
}
|
|
240
244
|
};
|
|
241
|
-
var preCheckEnrollment = async (orderId, cardInfo) => {
|
|
245
|
+
var preCheckEnrollment = async (orderId, cardInfo, stashAuthToken) => {
|
|
242
246
|
try {
|
|
243
247
|
const { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/" + orderId, {
|
|
244
248
|
...cardInfo
|
|
245
249
|
});
|
|
246
|
-
(0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number);
|
|
250
|
+
await (0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number, stashAuthToken);
|
|
247
251
|
if (!(data == null ? void 0 : data.pay_info)) {
|
|
248
252
|
throw new Error("Card does not support 3DS verification");
|
|
249
253
|
}
|
|
@@ -260,13 +264,13 @@ var preCheckEnrollment = async (orderId, cardInfo) => {
|
|
|
260
264
|
}
|
|
261
265
|
};
|
|
262
266
|
var checkEnrollment = async (orderId, cardInfo, options) => {
|
|
263
|
-
const { callback, isCancelled } = options || {};
|
|
267
|
+
const { callback, isCancelled, stashAuthToken } = options || {};
|
|
264
268
|
try {
|
|
265
269
|
let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/" + orderId, {
|
|
266
270
|
...cardInfo
|
|
267
271
|
});
|
|
268
272
|
if (isCancelled == null ? void 0 : isCancelled()) return 0;
|
|
269
|
-
(0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number);
|
|
273
|
+
await (0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number, stashAuthToken);
|
|
270
274
|
if (!(data == null ? void 0 : data.pay_info)) {
|
|
271
275
|
return null;
|
|
272
276
|
}
|
|
@@ -53,7 +53,7 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
53
53
|
const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
|
|
54
54
|
const [statePayNumber, setStatePayNumber] = (0, import_react.useState)("");
|
|
55
55
|
const context = (0, import_useEngineContext.default)();
|
|
56
|
-
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
56
|
+
const { interaction, token } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
57
57
|
const paymentLogger = (0, import_usePaymentLogger.default)({
|
|
58
58
|
orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
|
|
59
59
|
step: "2"
|
|
@@ -63,7 +63,7 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
63
63
|
paymentType: "aliPay"
|
|
64
64
|
});
|
|
65
65
|
const init = async ({ payGroup }) => {
|
|
66
|
-
var _a2, _b2;
|
|
66
|
+
var _a2, _b2, _c2;
|
|
67
67
|
paymentLogger.addLog({
|
|
68
68
|
key: "SuperPayAliPayH5初始化开始",
|
|
69
69
|
value: ""
|
|
@@ -108,7 +108,7 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
108
108
|
key: "SuperPayAliPayH5获取支付链接成功",
|
|
109
109
|
value: ""
|
|
110
110
|
});
|
|
111
|
-
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
|
111
|
+
await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_c2 = token == null ? void 0 : token.get) == null ? void 0 : _c2.call(token));
|
|
112
112
|
setStatePayNumber(data == null ? void 0 : data.pay_number);
|
|
113
113
|
setShowSuccessBackButton(true);
|
|
114
114
|
paymentLogger.addLog({
|
|
@@ -48,13 +48,13 @@ var SuperPayWxPayH5 = (props, ref) => {
|
|
|
48
48
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
49
49
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
50
50
|
const context = (0, import_useEngineContext.default)();
|
|
51
|
-
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
51
|
+
const { interaction, token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
52
52
|
const paymentLogger = (0, import_usePaymentLogger.default)({
|
|
53
53
|
orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
|
|
54
54
|
step: "2"
|
|
55
55
|
});
|
|
56
56
|
const init = async ({ payGroup }) => {
|
|
57
|
-
var _a2, _b2;
|
|
57
|
+
var _a2, _b2, _c;
|
|
58
58
|
paymentLogger.addLog({
|
|
59
59
|
key: "SuperPayWxPayH5初始化开始",
|
|
60
60
|
value: ""
|
|
@@ -94,7 +94,7 @@ var SuperPayWxPayH5 = (props, ref) => {
|
|
|
94
94
|
key: "SuperPayWxPayH5获取支付链接成功",
|
|
95
95
|
value: ""
|
|
96
96
|
});
|
|
97
|
-
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
|
97
|
+
await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_c = token == null ? void 0 : token.get) == null ? void 0 : _c.call(token));
|
|
98
98
|
paymentLogger.addLog({
|
|
99
99
|
key: "SuperPayWxPayH5准备跳转微信支付",
|
|
100
100
|
value: ""
|
|
@@ -282,7 +282,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
|
|
|
282
282
|
changeWalletPass(cards);
|
|
283
283
|
};
|
|
284
284
|
const handleRedeem = () => {
|
|
285
|
-
onWalletPassChange == null ? void 0 : onWalletPassChange(currentWalletPass);
|
|
285
|
+
onWalletPassChange == null ? void 0 : onWalletPassChange((0, import_utils2.formatWalletPassWithUniquePaymentNumber)(currentWalletPass));
|
|
286
286
|
setOpen(false);
|
|
287
287
|
};
|
|
288
288
|
const handleWalletClose = () => {
|
|
@@ -7,3 +7,10 @@ export declare const getDataByIds: (arr: any[], ids: number[]) => any[];
|
|
|
7
7
|
* @returns
|
|
8
8
|
*/
|
|
9
9
|
export declare const getIsWalletCode: (val: string) => boolean;
|
|
10
|
+
export declare const formatWalletPassWithUniquePaymentNumber: (currentWalletPass: {
|
|
11
|
+
cards: any[];
|
|
12
|
+
amount: number;
|
|
13
|
+
}) => {
|
|
14
|
+
cards: any[];
|
|
15
|
+
amount: number;
|
|
16
|
+
};
|
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var utils_exports = {};
|
|
21
21
|
__export(utils_exports, {
|
|
22
22
|
formatMachineCodeServer2CardList: () => formatMachineCodeServer2CardList,
|
|
23
|
+
formatWalletPassWithUniquePaymentNumber: () => formatWalletPassWithUniquePaymentNumber,
|
|
23
24
|
getDataByIds: () => getDataByIds,
|
|
24
25
|
getIsWalletCode: () => getIsWalletCode
|
|
25
26
|
});
|
|
@@ -70,9 +71,24 @@ var getDataByIds = (arr, ids) => {
|
|
|
70
71
|
var getIsWalletCode = (val) => {
|
|
71
72
|
return val.startsWith("WL");
|
|
72
73
|
};
|
|
74
|
+
var formatWalletPassWithUniquePaymentNumber = (currentWalletPass) => {
|
|
75
|
+
return {
|
|
76
|
+
...currentWalletPass,
|
|
77
|
+
cards: ((currentWalletPass == null ? void 0 : currentWalletPass.cards) || []).map((item) => {
|
|
78
|
+
return {
|
|
79
|
+
...item,
|
|
80
|
+
metadata: {
|
|
81
|
+
...item.metadata || {},
|
|
82
|
+
unique_payment_number: (0, import_utils.getUniqueId)()
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
};
|
|
73
88
|
// Annotate the CommonJS export names for ESM import in node:
|
|
74
89
|
0 && (module.exports = {
|
|
75
90
|
formatMachineCodeServer2CardList,
|
|
91
|
+
formatWalletPassWithUniquePaymentNumber,
|
|
76
92
|
getDataByIds,
|
|
77
93
|
getIsWalletCode
|
|
78
94
|
});
|
|
@@ -81,7 +81,7 @@ var PaymentMethods = (props, ref) => {
|
|
|
81
81
|
const GlobePayWxH5Ref2 = (0, import_react.useRef)(null);
|
|
82
82
|
const GlobePayQrcodeRef2 = (0, import_react.useRef)(null);
|
|
83
83
|
const context = (0, import_useEngineContext.default)();
|
|
84
|
-
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
84
|
+
const { interaction, token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
85
85
|
const dvaStore = (_e = (_d = (_c = (_b = context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getState();
|
|
86
86
|
const shop = ((_g = (_f = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _f.core) == null ? void 0 : _g.shop) || {};
|
|
87
87
|
const shopName = (shop == null ? void 0 : shop.name) || "";
|
|
@@ -103,6 +103,7 @@ var PaymentMethods = (props, ref) => {
|
|
|
103
103
|
if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
|
|
104
104
|
try {
|
|
105
105
|
await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
|
|
106
|
+
await (0, import_payGroup.clearStashPayGroup)(payGroup.order_id);
|
|
106
107
|
(0, import_payGroup.syncPayGroupToStorage)({
|
|
107
108
|
...payGroup,
|
|
108
109
|
walletPass: {
|
|
@@ -133,6 +134,7 @@ var PaymentMethods = (props, ref) => {
|
|
|
133
134
|
if (waitAmount <= 0) {
|
|
134
135
|
try {
|
|
135
136
|
(0, import_payGroup.removePayGroupFromStorage)(payGroup.order_id);
|
|
137
|
+
await (0, import_payGroup.clearStashPayGroup)(payGroup.order_id);
|
|
136
138
|
props.payCallback({ key: "success" });
|
|
137
139
|
} catch (err) {
|
|
138
140
|
(0, import_utils2.sendWarningLog)({
|
|
@@ -157,12 +159,15 @@ var PaymentMethods = (props, ref) => {
|
|
|
157
159
|
if (!(0, import_utils2.isJson)(strResult)) return;
|
|
158
160
|
const result = JSON.parse(strResult);
|
|
159
161
|
const { type, pay_number, order_id } = result;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
void (async () => {
|
|
163
|
+
var _a3;
|
|
164
|
+
if (type && order_id && pay_number) {
|
|
165
|
+
await (0, import_payGroup.setPayNumber)(order_id, pay_number, (_a3 = token == null ? void 0 : token.get) == null ? void 0 : _a3.call(token));
|
|
166
|
+
}
|
|
167
|
+
props.payCallback({
|
|
168
|
+
key: "success"
|
|
169
|
+
});
|
|
170
|
+
})();
|
|
166
171
|
});
|
|
167
172
|
}
|
|
168
173
|
}, []);
|
|
@@ -197,7 +197,11 @@ var ToCPay = (props, ref) => {
|
|
|
197
197
|
(item) => {
|
|
198
198
|
return {
|
|
199
199
|
...item,
|
|
200
|
-
customer_id: customer_id || item.customer_id
|
|
200
|
+
customer_id: customer_id || item.customer_id,
|
|
201
|
+
metadata: {
|
|
202
|
+
...item.metadata || {},
|
|
203
|
+
unique_payment_number: (0, import_utils.getUniqueId)()
|
|
204
|
+
}
|
|
201
205
|
};
|
|
202
206
|
}
|
|
203
207
|
);
|
|
@@ -53,6 +53,7 @@ declare const _default: {
|
|
|
53
53
|
'tocPay.text.continuePay': string;
|
|
54
54
|
'tocPay.text.leave': string;
|
|
55
55
|
'tocPay.text.getParamsFail': string;
|
|
56
|
+
'tocPay.text.payGroupStashFail': string;
|
|
56
57
|
'tocPay.text.checkingCard': string;
|
|
57
58
|
'tocPay.text.processingPayment': string;
|
|
58
59
|
'tocPay.text.securityCheckRequired': string;
|
|
@@ -178,6 +179,7 @@ declare const _default: {
|
|
|
178
179
|
'tocPay.text.continuePay': string;
|
|
179
180
|
'tocPay.text.leave': string;
|
|
180
181
|
'tocPay.text.getParamsFail': string;
|
|
182
|
+
'tocPay.text.payGroupStashFail': string;
|
|
181
183
|
'tocPay.text.checkingCard': string;
|
|
182
184
|
'tocPay.text.processingPayment': string;
|
|
183
185
|
'tocPay.text.securityCheckRequired': string;
|
|
@@ -302,6 +304,7 @@ declare const _default: {
|
|
|
302
304
|
'tocPay.text.continuePay': string;
|
|
303
305
|
'tocPay.text.leave': string;
|
|
304
306
|
'tocPay.text.getParamsFail': string;
|
|
307
|
+
'tocPay.text.payGroupStashFail': string;
|
|
305
308
|
'tocPay.text.checkingCard': string;
|
|
306
309
|
'tocPay.text.processingPayment': string;
|
|
307
310
|
'tocPay.text.securityCheckRequired': string;
|
|
@@ -426,6 +429,7 @@ declare const _default: {
|
|
|
426
429
|
'tocPay.text.continuePay': string;
|
|
427
430
|
'tocPay.text.leave': string;
|
|
428
431
|
'tocPay.text.getParamsFail': string;
|
|
432
|
+
'tocPay.text.payGroupStashFail': string;
|
|
429
433
|
'tocPay.text.checkingCard': string;
|
|
430
434
|
'tocPay.text.processingPayment': string;
|
|
431
435
|
'tocPay.text.securityCheckRequired': string;
|
|
@@ -551,6 +555,7 @@ declare const _default: {
|
|
|
551
555
|
'tocPay.text.continuePay': string;
|
|
552
556
|
'tocPay.text.leave': string;
|
|
553
557
|
'tocPay.text.getParamsFail': string;
|
|
558
|
+
'tocPay.text.payGroupStashFail': string;
|
|
554
559
|
'tocPay.text.checkingCard': string;
|
|
555
560
|
'tocPay.text.processingPayment': string;
|
|
556
561
|
'tocPay.text.securityCheckRequired': string;
|