@pisell/private-materials 6.3.137 → 6.3.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/utils.d.ts +227 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.d.ts +47 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +1489 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +112 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/amount.d.ts +21 -0
- package/es/components/eftposPay/app.d.ts +11 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/network.d.ts +8 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/es/components/eftposPay/component/manual/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.d.ts +8 -0
- package/es/components/eftposPay/device.d.ts +24 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +5 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +3 -0
- package/es/components/eftposPay/pay.d.ts +21 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +9 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/payLog.d.ts +81 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +22 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +6 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/locales.d.ts +48 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +631 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/payGroup.d.ts +59 -0
- package/es/components/pay/toC/serve.d.ts +87 -0
- package/es/components/pay/toC/utils.d.ts +65 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/scanOrder/components/Content/index.js +251 -69
- package/es/components/scanOrder/context.js +6 -18
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +1 -1
- package/es/components/venueBooking/context.js +32 -6
- package/es/index.d.ts +87 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/pisellSalesProductCard/index.js +16 -1
- package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/NumericStepper/index.d.ts +19 -0
- package/es/pro/NumericStepper/index.js +37 -6
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/utils.d.ts +227 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.d.ts +47 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +1489 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +112 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/amount.d.ts +21 -0
- package/lib/components/eftposPay/app.d.ts +11 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +8 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +8 -0
- package/lib/components/eftposPay/device.d.ts +24 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +5 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +3 -0
- package/lib/components/eftposPay/pay.d.ts +21 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +9 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +22 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +6 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +631 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/payGroup.d.ts +59 -0
- package/lib/components/pay/toC/serve.d.ts +87 -0
- package/lib/components/pay/toC/utils.d.ts +65 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/scanOrder/components/Content/index.js +150 -41
- package/lib/components/scanOrder/context.js +0 -10
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +1 -1
- package/lib/components/venueBooking/context.js +14 -6
- package/lib/index.d.ts +87 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/pisellSalesProductCard/index.js +10 -0
- package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/NumericStepper/index.d.ts +19 -0
- package/lib/pro/NumericStepper/index.js +21 -4
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SkuValue } from '../../plus/skuOptionsSelection/types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
/**
|
|
5
|
+
* @description Kiosk 商品详情(参考 Figma: Kiosk / Launchpad screen)
|
|
6
|
+
* - 默认从 URL query 读取商品 id(productId / product_id / id),内部通过 getProductDetail 拉取详情
|
|
7
|
+
* - 中间区域用 SKUOptionsSelection 做 SKU 选择
|
|
8
|
+
* - 底部用 PisellNumberSelector 做数量编辑
|
|
9
|
+
*/
|
|
10
|
+
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
11
|
+
export default KioskSkuDetail;
|
|
12
|
+
/**
|
|
13
|
+
* @description 从原生回调 payload 中提取 productId
|
|
14
|
+
*/
|
|
15
|
+
export interface KioskSkuDetailProps {
|
|
16
|
+
/** 商品 id(可选:目前默认从 URL 读取,props 仅作为兜底以兼容老用法) */
|
|
17
|
+
productId?: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* 可选:用于商品报价的日期(预约类商品)
|
|
20
|
+
* @deprecated 目前 kiosk 详情暂时固定取当天,这个参数暂不生效
|
|
21
|
+
*/
|
|
22
|
+
scheduleDate?: string;
|
|
23
|
+
/** 自定义类名 */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** 自定义样式 */
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
/** 返回 */
|
|
28
|
+
onBack?: () => void;
|
|
29
|
+
/** 加入购物车 */
|
|
30
|
+
onAddToCart?: (params: {
|
|
31
|
+
product: any;
|
|
32
|
+
skuValue: SkuValue;
|
|
33
|
+
quantity: number;
|
|
34
|
+
unitPrice: number;
|
|
35
|
+
total: number;
|
|
36
|
+
currencySymbol: string;
|
|
37
|
+
bookingConfig?: any;
|
|
38
|
+
}) => void;
|
|
39
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
4
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
5
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
6
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
7
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
8
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
9
|
+
'pisell2.text.kiosk.sku.detail.balance': string;
|
|
10
|
+
};
|
|
11
|
+
'zh-CN': {
|
|
12
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
13
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
14
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
15
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
16
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
17
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
18
|
+
'pisell2.text.kiosk.sku.detail.balance': string;
|
|
19
|
+
};
|
|
20
|
+
'zh-TW': {
|
|
21
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
22
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
23
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
24
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
25
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
26
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
27
|
+
'pisell2.text.kiosk.sku.detail.balance': string;
|
|
28
|
+
};
|
|
29
|
+
ja: {
|
|
30
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
31
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
32
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
33
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
34
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
35
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
36
|
+
'pisell2.text.kiosk.sku.detail.balance': string;
|
|
37
|
+
};
|
|
38
|
+
pt: {
|
|
39
|
+
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
40
|
+
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
41
|
+
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
42
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
43
|
+
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
44
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
45
|
+
'pisell2.text.kiosk.sku.detail.balance': string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface GlobePayAliPayH5Ref {
|
|
4
|
+
init: (res: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface GlobePayAliPayH5Props {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<GlobePayAliPayH5Props & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface GlobePayPaypalH5Ref {
|
|
4
|
+
init: (res: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface GlobePayPaypalH5Props {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<GlobePayPaypalH5Props & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface GlobePayWxH5Ref {
|
|
4
|
+
init: (res: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface GlobePayWxH5Props {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<GlobePayWxH5Props & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TDSPayRef {
|
|
4
|
+
/** 初始化 3DS 支付流程
|
|
5
|
+
* @param res 卡信息(已保存卡含 id,新卡含表单字段)
|
|
6
|
+
* @param order 订单信息
|
|
7
|
+
* @param preCheckData 可选,外部预检查已获取的数据(跳过内部 fastPayNew / checkEnrollment)
|
|
8
|
+
*/
|
|
9
|
+
init: (res: any, order: any, preCheckData?: any) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface TDSPayProps {
|
|
12
|
+
onChange?: (values: any) => void;
|
|
13
|
+
closeAll: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<TDSPayProps & React.RefAttributes<any>>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface MWCreditCardProps {
|
|
4
|
+
/** 店铺名称,用于授权说明文案 */
|
|
5
|
+
shopName?: string;
|
|
6
|
+
/** 商家联系电话(用于 3DS 错误弹窗联系方式) */
|
|
7
|
+
shopPhone?: string;
|
|
8
|
+
/** 商家联系邮箱(用于 3DS 错误弹窗联系方式) */
|
|
9
|
+
shopEmail?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MWCreditCardRef {
|
|
12
|
+
init: (res: any) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.ForwardRefExoticComponent<MWCreditCardProps & React.RefAttributes<unknown>>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 取消当前支付流程中残留的 message 监听器和定时器,
|
|
3
|
+
* 并 reject 挂起的 Promise 使 startPayment 的 await 结束。
|
|
4
|
+
* reject 值为 0,startPayment catch 中 `if (err === 0) return` 会静默处理。
|
|
5
|
+
*/
|
|
6
|
+
export declare const cancelCurrentPayment: () => void;
|
|
7
|
+
interface PaymentOptions {
|
|
8
|
+
callback?: (res: any) => void;
|
|
9
|
+
isCancelled?: () => boolean;
|
|
10
|
+
/** 引擎 token.get(),供 setPayNumber 写入 stash */
|
|
11
|
+
stashAuthToken?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @title: 点击支付
|
|
15
|
+
* @description:
|
|
16
|
+
* @param {any} param1
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: Wzw
|
|
19
|
+
* @Date: 2022-10-22 10:05
|
|
20
|
+
*/
|
|
21
|
+
export declare const startPayment: ({ orderId, cardInfo, payData }: any, options?: PaymentOptions) => Promise<boolean | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* @title: 前置检查 - 提交卡信息到后端(预检查版本)
|
|
24
|
+
* @description: 与 checkEnrollment 调用相同 API,但不包含 Toast/callback/closeIframe 等副作用。
|
|
25
|
+
* 失败时直接 throw error,由调用方(MWCreditCard)捕获并展示 3DS 错误弹窗。
|
|
26
|
+
* @param {string} orderId 订单ID
|
|
27
|
+
* @param {any} cardInfo 卡信息
|
|
28
|
+
* @return {Promise<any>} 返回后端数据(含 pay_info),失败则 throw
|
|
29
|
+
*/
|
|
30
|
+
export declare const preCheckEnrollment: (orderId: string, cardInfo: any, stashAuthToken?: string) => Promise<any>;
|
|
31
|
+
/*******
|
|
32
|
+
* @title: 步骤2
|
|
33
|
+
* @description: 提交卡信息到后端
|
|
34
|
+
* @return {*}
|
|
35
|
+
* @Author: Wzw
|
|
36
|
+
* @Date: 2022-10-18 10:26
|
|
37
|
+
*/
|
|
38
|
+
export declare const checkEnrollment: (orderId: string, cardInfo: any, options?: PaymentOptions) => Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* @title: 步骤3
|
|
41
|
+
* @description: 创建iframe, 监听
|
|
42
|
+
* @param {any} threeDSMethodData
|
|
43
|
+
* @return {*}
|
|
44
|
+
* @Author: Wzw
|
|
45
|
+
* @Date: 2022-10-18 10:36
|
|
46
|
+
*/
|
|
47
|
+
export declare const createThreeDSMethodIframe: (threeDSMethodData: any, callback: any) => Promise<unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* @title: 步骤4
|
|
50
|
+
* @description:
|
|
51
|
+
* @param {any} param1
|
|
52
|
+
* @return {*}
|
|
53
|
+
* @Author: Wzw
|
|
54
|
+
* @Date: 2022-10-18 10:43
|
|
55
|
+
*/
|
|
56
|
+
export declare const checkTDSAuth: (step2: any, step3: any, options?: PaymentOptions) => Promise<any>;
|
|
57
|
+
/**
|
|
58
|
+
* @title: 步骤5
|
|
59
|
+
* @description: 监听
|
|
60
|
+
* @param {any} challengeData
|
|
61
|
+
* @return {*}
|
|
62
|
+
* @Author: Wzw
|
|
63
|
+
* @Date: 2022-10-18 10:45
|
|
64
|
+
*/
|
|
65
|
+
export declare const createChallengeIframe: (challengeData: any, callback?: any) => Promise<unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* @title: 步骤6
|
|
68
|
+
* @description:
|
|
69
|
+
* @param {any} cres
|
|
70
|
+
* @return {*}
|
|
71
|
+
* @Author: Wzw
|
|
72
|
+
* @Date: 2022-10-18 10:48
|
|
73
|
+
*/
|
|
74
|
+
export declare const checkPARes: (step2: any, step4: any, step5: any) => Promise<any>;
|
|
75
|
+
/**
|
|
76
|
+
* @title: 支付结束
|
|
77
|
+
* @description:
|
|
78
|
+
* @return {*}
|
|
79
|
+
* @Author: Wzw
|
|
80
|
+
* @Date: 2022-10-18 14:28
|
|
81
|
+
*/
|
|
82
|
+
export declare const paymentEnd: (props: any, callback: any) => void;
|
|
83
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface SuperPayAliPayH5Ref {
|
|
4
|
+
init: (res: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface SuperPayAliPayH5Props {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<SuperPayAliPayH5Props & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface SuperPayWxPayH5Ref {
|
|
4
|
+
init: (res: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface SuperPayWxPayH5Props {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<SuperPayWxPayH5Props & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PisellWalletPassCardProps } from '@pisell/materials/es/components/pisellWalletPassCard';
|
|
3
|
+
import { MachineCodeListParams, WalletPassDataType } from '../serve';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export interface WalletPassListProps {
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
data?: PisellWalletPassCardProps[];
|
|
8
|
+
onChange?: (val: number[], valDetail: PisellWalletPassCardProps[]) => void;
|
|
9
|
+
value?: number[];
|
|
10
|
+
walletSetting: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
onChangeDebounce?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
onLoadingChange?: (loading: boolean) => void;
|
|
16
|
+
customer_id?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare type WalletPassListRef = {
|
|
19
|
+
init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<WalletPassListProps & React.RefAttributes<WalletPassListRef>>>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WalletPassDataType } from './serve';
|
|
3
|
+
import { PayGroup } from '../../model';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export interface WalletPassRef {
|
|
6
|
+
init: (val?: PayGroup & {
|
|
7
|
+
customer_id?: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface WalletPassProps {
|
|
11
|
+
onWalletPassChange?: (walletPass: {
|
|
12
|
+
cards: WalletPassDataType[];
|
|
13
|
+
amount: number;
|
|
14
|
+
}) => void;
|
|
15
|
+
walletPass: {
|
|
16
|
+
cards: WalletPassDataType[];
|
|
17
|
+
amount: number;
|
|
18
|
+
};
|
|
19
|
+
walletSetting: {
|
|
20
|
+
name: string;
|
|
21
|
+
popup_status: 0 | 1;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<WalletPassProps & React.RefAttributes<WalletPassRef>>>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WalletPassDataType } from './serve';
|
|
2
|
+
export declare const formatMachineCodeServer2CardList: (data: WalletPassDataType[], selectId?: number[]) => any;
|
|
3
|
+
export declare const getDataByIds: (arr: any[], ids: number[]) => any[];
|
|
4
|
+
/**
|
|
5
|
+
* 判断是否是wallet code
|
|
6
|
+
* @param val
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PaymentMethodsRef {
|
|
3
|
+
onPay: (props: any) => void;
|
|
4
|
+
}
|
|
5
|
+
interface PaymentMethodsProps {
|
|
6
|
+
payCallback: (props: any) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<unknown>>;
|
|
9
|
+
export default _default;
|