@afosto/checkout-ui 0.0.1-alpha.3 → 0.0.1-alpha.4
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/dist/Checkout/Checkout.d.ts.map +1 -1
- package/dist/Checkout/index.d.ts.map +1 -1
- package/dist/CheckoutAccountSelection/CheckoutAccountSelection.d.ts.map +1 -1
- package/dist/CheckoutAccountSelection/index.d.ts.map +1 -1
- package/dist/CheckoutAccountSelectionCard/CheckoutAccountSelectionCard.d.ts.map +1 -1
- package/dist/CheckoutAccountSelectionCard/index.d.ts.map +1 -1
- package/dist/CheckoutAddressBlock/CheckoutAddressBlock.d.ts.map +1 -1
- package/dist/CheckoutAddressBlock/index.d.ts.map +1 -1
- package/dist/CheckoutAddressCard/CheckoutAddressCard.d.ts.map +1 -1
- package/dist/CheckoutAddressCard/index.d.ts.map +1 -1
- package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.d.ts +3 -1
- package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.d.ts.map +1 -1
- package/dist/CheckoutAddressCardSkeleton/CheckoutAddressCardSkeleton.js +14 -11
- package/dist/CheckoutAddressCardSkeleton/index.d.ts +1 -0
- package/dist/CheckoutAddressCardSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutAddressFields/CheckoutAddressFields.d.ts.map +1 -1
- package/dist/CheckoutAddressFields/index.d.ts.map +1 -1
- package/dist/CheckoutAddressSection/CheckoutAddressSection.d.ts.map +1 -1
- package/dist/CheckoutAddressSection/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOption/CheckoutAgreementOption.d.ts.map +1 -1
- package/dist/CheckoutAgreementOption/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionCondition/CheckoutAgreementOptionCondition.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionCondition/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsField/CheckoutAgreementOptionsField.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsField/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsSection/CheckoutAgreementOptionsSection.d.ts.map +1 -1
- package/dist/CheckoutAgreementOptionsSection/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementSummaryCard/CheckoutAgreementSummaryCard.d.ts.map +1 -1
- package/dist/CheckoutAgreementSummaryCard/index.d.ts.map +1 -1
- package/dist/CheckoutAgreementsTimeline/CheckoutAgreementsTimeline.d.ts.map +1 -1
- package/dist/CheckoutAgreementsTimeline/index.d.ts.map +1 -1
- package/dist/CheckoutBillingAddressSection/CheckoutBillingAddressSection.d.ts.map +1 -1
- package/dist/CheckoutBillingAddressSection/index.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCard/CheckoutBusinessDetailsCard.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCard/index.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.d.ts +3 -1
- package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.d.ts.map +1 -1
- package/dist/CheckoutBusinessDetailsCardSkeleton/CheckoutBusinessDetailsCardSkeleton.js +6 -3
- package/dist/CheckoutBusinessDetailsCardSkeleton/index.d.ts +1 -0
- package/dist/CheckoutBusinessDetailsCardSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutBusinessInformationSection/CheckoutBusinessInformationSection.d.ts.map +1 -1
- package/dist/CheckoutBusinessInformationSection/index.d.ts.map +1 -1
- package/dist/CheckoutCardRadioField/CheckoutCardRadioField.d.ts.map +1 -1
- package/dist/CheckoutCardRadioField/index.d.ts.map +1 -1
- package/dist/CheckoutCartProvider/CheckoutCartProvider.d.ts +3 -2
- package/dist/CheckoutCartProvider/CheckoutCartProvider.d.ts.map +1 -1
- package/dist/CheckoutCartProvider/CheckoutCartProvider.js +39 -36
- package/dist/CheckoutCartProvider/index.d.ts.map +1 -1
- package/dist/CheckoutCommentField/CheckoutCommentField.d.ts.map +1 -1
- package/dist/CheckoutCommentField/index.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsCard/CheckoutContactDetailsCard.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsCard/index.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.d.ts +3 -1
- package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.d.ts.map +1 -1
- package/dist/CheckoutContactDetailsSkeleton/CheckoutContactDetailsSkeleton.js +13 -10
- package/dist/CheckoutContactDetailsSkeleton/index.d.ts +1 -0
- package/dist/CheckoutContactDetailsSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.d.ts.map +1 -1
- package/dist/CheckoutContactInformationSection/index.d.ts.map +1 -1
- package/dist/CheckoutContainer/CheckoutContainer.d.ts.map +1 -1
- package/dist/CheckoutContainer/CheckoutContainer.styles.d.ts.map +1 -1
- package/dist/CheckoutContainer/index.d.ts.map +1 -1
- package/dist/CheckoutCurrency/CheckoutCurrency.d.ts.map +1 -1
- package/dist/CheckoutCurrency/index.d.ts.map +1 -1
- package/dist/CheckoutDownPaymentAgreementsSummary/CheckoutDownPaymentAgreementsSummary.d.ts.map +1 -1
- package/dist/CheckoutDownPaymentAgreementsSummary/index.d.ts.map +1 -1
- package/dist/CheckoutEmptyMessageAlert/CheckoutEmptyMessageAlert.d.ts.map +1 -1
- package/dist/CheckoutEmptyMessageAlert/index.d.ts.map +1 -1
- package/dist/CheckoutErrorMessageAlert/CheckoutErrorMessageAlert.d.ts.map +1 -1
- package/dist/CheckoutErrorMessageAlert/index.d.ts.map +1 -1
- package/dist/CheckoutExpressButton/CheckoutExpressButton.d.ts.map +1 -1
- package/dist/CheckoutExpressButton/index.d.ts.map +1 -1
- package/dist/CheckoutExpressCheckoutSection/CheckoutExpressCheckoutSection.d.ts.map +1 -1
- package/dist/CheckoutExpressCheckoutSection/index.d.ts.map +1 -1
- package/dist/CheckoutForgotPassword/CheckoutForgotPassword.d.ts.map +1 -1
- package/dist/CheckoutForgotPassword/index.d.ts.map +1 -1
- package/dist/CheckoutForgotPasswordForm/CheckoutForgotPasswordForm.d.ts.map +1 -1
- package/dist/CheckoutForgotPasswordForm/index.d.ts +1 -1
- package/dist/CheckoutForgotPasswordForm/index.d.ts.map +1 -1
- package/dist/CheckoutForgotPasswordForm/validationSchema.d.ts.map +1 -1
- package/dist/CheckoutForm/CheckoutForm.d.ts.map +1 -1
- package/dist/CheckoutForm/index.d.ts.map +1 -1
- package/dist/CheckoutFormSkeleton/CheckoutFormSkeleton.d.ts.map +1 -1
- package/dist/CheckoutFormSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutInformationStep/CheckoutInformationStep.d.ts.map +1 -1
- package/dist/CheckoutInformationStep/index.d.ts.map +1 -1
- package/dist/CheckoutIssuersField/CheckoutIssuersField.d.ts.map +1 -1
- package/dist/CheckoutIssuersField/index.d.ts.map +1 -1
- package/dist/CheckoutItem/CheckoutItem.d.ts.map +1 -1
- package/dist/CheckoutItem/index.d.ts.map +1 -1
- package/dist/CheckoutLayout/CheckoutLayout.d.ts.map +1 -1
- package/dist/CheckoutLayout/index.d.ts.map +1 -1
- package/dist/CheckoutLogo/CheckoutLogo.d.ts.map +1 -1
- package/dist/CheckoutLogo/index.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioField/CheckoutMethodRadioField.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioField/index.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioSkeleton/CheckoutMethodRadioSkeleton.d.ts.map +1 -1
- package/dist/CheckoutMethodRadioSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCard/CheckoutMethodSummaryCard.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCard/index.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCardSkeleton/CheckoutMethodSummaryCardSkeleton.d.ts.map +1 -1
- package/dist/CheckoutMethodSummaryCardSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutMobileStepper/CheckoutMobileStepper.d.ts.map +1 -1
- package/dist/CheckoutMobileStepper/index.d.ts.map +1 -1
- package/dist/CheckoutMobileStepperSkeleton/CheckoutMobileStepperSkeleton.d.ts.map +1 -1
- package/dist/CheckoutMobileStepperSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutNotFoundFeedback/CheckoutNotFoundFeedback.d.ts.map +1 -1
- package/dist/CheckoutNotFoundFeedback/index.d.ts.map +1 -1
- package/dist/CheckoutOrderProvider/CheckoutOrderProvider.d.ts +3 -2
- package/dist/CheckoutOrderProvider/CheckoutOrderProvider.d.ts.map +1 -1
- package/dist/CheckoutOrderProvider/CheckoutOrderProvider.js +39 -36
- package/dist/CheckoutOrderProvider/index.d.ts.map +1 -1
- package/dist/CheckoutPayPalExpressButton/CheckoutPayPalExpressButton.d.ts.map +1 -1
- package/dist/CheckoutPayPalExpressButton/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodOption/CheckoutPaymentMethodOption.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodOption/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodSection/CheckoutPaymentMethodSection.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodSection/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodsField/CheckoutPaymentMethodsField.d.ts.map +1 -1
- package/dist/CheckoutPaymentMethodsField/index.d.ts.map +1 -1
- package/dist/CheckoutPaymentStep/CheckoutPaymentStep.d.ts.map +1 -1
- package/dist/CheckoutPaymentStep/index.d.ts.map +1 -1
- package/dist/CheckoutPhoneNumberCard/CheckoutPhoneNumberCard.d.ts.map +1 -1
- package/dist/CheckoutPhoneNumberCard/index.d.ts.map +1 -1
- package/dist/CheckoutPickupPointOption/CheckoutPickupPointOption.d.ts.map +1 -1
- package/dist/CheckoutPickupPointOption/index.d.ts.map +1 -1
- package/dist/CheckoutPickupPointsField/CheckoutPickupPointsField.d.ts.map +1 -1
- package/dist/CheckoutPickupPointsField/index.d.ts.map +1 -1
- package/dist/CheckoutPoweredBy/CheckoutPoweredBy.d.ts.map +1 -1
- package/dist/CheckoutPoweredBy/index.d.ts.map +1 -1
- package/dist/CheckoutPricingLabel/CheckoutPricingLabel.d.ts.map +1 -1
- package/dist/CheckoutPricingLabel/index.d.ts.map +1 -1
- package/dist/CheckoutProvider/CheckoutProvider.d.ts +2 -1
- package/dist/CheckoutProvider/CheckoutProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/CheckoutProvider.js +66 -62
- package/dist/CheckoutProvider/components/CheckoutInnerProviders/CheckoutInnerProviders.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutQueryClientProvider/CheckoutQueryClientProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutQueryClientProvider/index.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutThemeProvider/CheckoutThemeProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/components/CheckoutThemeProvider/index.d.ts.map +1 -1
- package/dist/CheckoutProvider/index.d.ts.map +1 -1
- package/dist/CheckoutReviewCommentSection/CheckoutReviewCommentSection.d.ts.map +1 -1
- package/dist/CheckoutReviewCommentSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewItemsSection/CheckoutReviewItemsSection.d.ts.map +1 -1
- package/dist/CheckoutReviewItemsSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewOrderSection/CheckoutReviewOrderSection.d.ts.map +1 -1
- package/dist/CheckoutReviewOrderSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewPaymentSection/CheckoutReviewPaymentSection.d.ts.map +1 -1
- package/dist/CheckoutReviewPaymentSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewShippingSection/CheckoutReviewShippingSection.d.ts.map +1 -1
- package/dist/CheckoutReviewShippingSection/index.d.ts.map +1 -1
- package/dist/CheckoutReviewStep/CheckoutReviewStep.d.ts.map +1 -1
- package/dist/CheckoutReviewStep/index.d.ts.map +1 -1
- package/dist/CheckoutSection/CheckoutSection.d.ts.map +1 -1
- package/dist/CheckoutSection/index.d.ts.map +1 -1
- package/dist/CheckoutSectionHeader/CheckoutSectionHeader.d.ts.map +1 -1
- package/dist/CheckoutSectionHeader/index.d.ts.map +1 -1
- package/dist/CheckoutShippingAddressSection/CheckoutShippingAddressSection.d.ts.map +1 -1
- package/dist/CheckoutShippingAddressSection/index.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodOption/CheckoutShippingMethodOption.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodOption/index.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodSection/CheckoutShippingMethodSection.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodSection/index.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodsField/CheckoutShippingMethodsField.d.ts.map +1 -1
- package/dist/CheckoutShippingMethodsField/index.d.ts.map +1 -1
- package/dist/CheckoutShippingStep/CheckoutShippingStep.d.ts.map +1 -1
- package/dist/CheckoutShippingStep/index.d.ts.map +1 -1
- package/dist/CheckoutSignIn/CheckoutSignIn.d.ts.map +1 -1
- package/dist/CheckoutSignIn/index.d.ts.map +1 -1
- package/dist/CheckoutSignInActions/CheckoutSignInActions.d.ts.map +1 -1
- package/dist/CheckoutSignInActions/index.d.ts.map +1 -1
- package/dist/CheckoutSignInForm/CheckoutSignInForm.d.ts.map +1 -1
- package/dist/CheckoutSignInForm/index.d.ts +1 -1
- package/dist/CheckoutSignInForm/index.d.ts.map +1 -1
- package/dist/CheckoutSignInForm/validationSchema.d.ts.map +1 -1
- package/dist/CheckoutSignedInAsMessage/CheckoutSignedInAsMessage.d.ts.map +1 -1
- package/dist/CheckoutSignedInAsMessage/index.d.ts.map +1 -1
- package/dist/CheckoutStateProvider/CheckoutStateProvider.d.ts.map +1 -1
- package/dist/CheckoutStateProvider/CheckoutStateProvider.js +2 -2
- package/dist/CheckoutStateProvider/index.d.ts.map +1 -1
- package/dist/CheckoutStepper/CheckoutStepper.d.ts.map +1 -1
- package/dist/CheckoutStepper/index.d.ts.map +1 -1
- package/dist/CheckoutStepperSkeleton/CheckoutStepperSkeleton.d.ts.map +1 -1
- package/dist/CheckoutStepperSkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutSubmitButton/CheckoutSubmitButton.d.ts.map +1 -1
- package/dist/CheckoutSubmitButton/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/CheckoutSummary.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAdjustments/CheckoutSummaryAdjustments.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAdjustments/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAgreements/CheckoutSummaryAgreements.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryAgreements/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/CheckoutSummaryCoupons.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryCoupons/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryFees/CheckoutSummaryFees.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryFees/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryGroup/CheckoutSummaryGroup.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryGroup/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryItems/CheckoutSummaryItems.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryItems/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/CheckoutSummaryPaymentFees.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryPaymentFees/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryRow/CheckoutSummaryRow.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryRow/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/CheckoutSummaryShippingFees.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryShippingFees/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummarySubtotal/CheckoutSummarySubtotal.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummarySubtotal/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTitle/CheckoutSummaryTitle.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTitle/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotal/CheckoutSummaryTotal.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotal/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/CheckoutSummaryTotalBreakdown.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalBreakdown/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryTotalExcludingVat/CheckoutSummaryTotalExcludingVat.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryVat/CheckoutSummaryVat.d.ts.map +1 -1
- package/dist/CheckoutSummary/components/CheckoutSummaryVat/index.d.ts.map +1 -1
- package/dist/CheckoutSummary/index.d.ts.map +1 -1
- package/dist/CheckoutSummaryDrawer/CheckoutSummaryDrawer.d.ts.map +1 -1
- package/dist/CheckoutSummaryDrawer/CheckoutSummaryDrawer.styles.d.ts.map +1 -1
- package/dist/CheckoutSummaryDrawer/index.d.ts.map +1 -1
- package/dist/CheckoutSummarySkeleton/CheckoutSummarySkeleton.d.ts.map +1 -1
- package/dist/CheckoutSummarySkeleton/index.d.ts.map +1 -1
- package/dist/CheckoutSummaryToggleButton/CheckoutSummaryToggleButton.d.ts.map +1 -1
- package/dist/CheckoutSummaryToggleButton/index.d.ts.map +1 -1
- package/dist/CheckoutTerminalsField/CheckoutTerminalsField.d.ts.map +1 -1
- package/dist/CheckoutTerminalsField/index.d.ts.map +1 -1
- package/dist/CheckoutTermsAndPrivacyMessage/CheckoutTermsAndPrivacyMessage.d.ts.map +1 -1
- package/dist/CheckoutTermsAndPrivacyMessage/index.d.ts.map +1 -1
- package/dist/CheckoutTopBar/CheckoutTopBar.d.ts.map +1 -1
- package/dist/CheckoutTopBar/index.d.ts.map +1 -1
- package/dist/CheckoutTypeSection/CheckoutTypeSection.d.ts.map +1 -1
- package/dist/CheckoutTypeSection/index.d.ts.map +1 -1
- package/dist/constants/addressAutocomplete.d.ts.map +1 -1
- package/dist/constants/addressDefaultValues.d.ts.map +1 -1
- package/dist/constants/addressFields.d.ts.map +1 -1
- package/dist/constants/addressValidationSchema.d.ts.map +1 -1
- package/dist/constants/agreementTypeIconMapping.d.ts.map +1 -1
- package/dist/constants/analyticsEvents.d.ts.map +1 -1
- package/dist/constants/carrierIconMapping.d.ts.map +1 -1
- package/dist/constants/expressPaymentMethods.d.ts.map +1 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/issuerIconMapping.d.ts.map +1 -1
- package/dist/constants/paymentMethodIconMapping.d.ts.map +1 -1
- package/dist/constants/validationTranslations.d.ts.map +1 -1
- package/dist/fragments/CoreAddressFields.d.ts.map +1 -1
- package/dist/fragments/CoreAddressOptionsFields.d.ts.map +1 -1
- package/dist/fragments/CoreCartInitialCheckoutFields.d.ts.map +1 -1
- package/dist/fragments/CoreCartProjectionFields.d.ts.map +1 -1
- package/dist/fragments/CoreOrderInitialCheckoutFields.d.ts.map +1 -1
- package/dist/fragments/CoreOrderProjectionFields.d.ts.map +1 -1
- package/dist/fragments/CorePhoneNumberFields.d.ts.map +1 -1
- package/dist/fragments/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAccountSelection.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAddressFieldFormats.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAddressOptions.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAnalytics.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAuth.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAutocompleteAddress.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.d.ts +35 -34
- package/dist/hooks/useCheckoutCart.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.js +59 -57
- package/dist/hooks/useCheckoutForm.d.ts.map +1 -1
- package/dist/hooks/useCheckoutOrder.d.ts +36 -35
- package/dist/hooks/useCheckoutOrder.d.ts.map +1 -1
- package/dist/hooks/useCheckoutOrder.js +58 -56
- package/dist/hooks/useCheckoutPaymentMethods.d.ts.map +1 -1
- package/dist/hooks/useCheckoutPaymentStep.d.ts.map +1 -1
- package/dist/hooks/useCheckoutReviewStep.d.ts.map +1 -1
- package/dist/hooks/useCheckoutShippingMethods.d.ts.map +1 -1
- package/dist/hooks/useCheckoutState.d.ts.map +1 -1
- package/dist/hooks/useCheckoutSummary.d.ts.map +1 -1
- package/dist/icons/AngleDownRegular.d.ts.map +1 -1
- package/dist/icons/AngleRightLight.d.ts.map +1 -1
- package/dist/icons/AngleRightRegular.d.ts.map +1 -1
- package/dist/icons/CheckSolid.d.ts.map +1 -1
- package/dist/icons/LongArrowLeftSolid.d.ts.map +1 -1
- package/dist/icons/MinusSolid.d.ts.map +1 -1
- package/dist/icons/PayPalExpress.d.ts.map +1 -1
- package/dist/icons/PlusSolid.d.ts.map +1 -1
- package/dist/icons/SearchRegular.d.ts.map +1 -1
- package/dist/icons/ShoppingCartLight.d.ts.map +1 -1
- package/dist/icons/TimesLight.d.ts.map +1 -1
- package/dist/icons/TurnDownRightSolid.d.ts.map +1 -1
- package/dist/icons/carriers/Afosto.d.ts.map +1 -1
- package/dist/icons/carriers/Bpost.d.ts.map +1 -1
- package/dist/icons/carriers/Budbee.d.ts.map +1 -1
- package/dist/icons/carriers/Cycloon.d.ts.map +1 -1
- package/dist/icons/carriers/DeliveryMatch.d.ts.map +1 -1
- package/dist/icons/carriers/Dgo.d.ts.map +1 -1
- package/dist/icons/carriers/Dhl.d.ts.map +1 -1
- package/dist/icons/carriers/Dpd.d.ts.map +1 -1
- package/dist/icons/carriers/Fedex.d.ts.map +1 -1
- package/dist/icons/carriers/Gls.d.ts.map +1 -1
- package/dist/icons/carriers/MondialRelay.d.ts.map +1 -1
- package/dist/icons/carriers/Postnl.d.ts.map +1 -1
- package/dist/icons/carriers/Sendcloud.d.ts.map +1 -1
- package/dist/icons/carriers/Ups.d.ts.map +1 -1
- package/dist/icons/carriers/index.d.ts.map +1 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/issuers/ABNAmro.d.ts.map +1 -1
- package/dist/icons/issuers/ASNBank.d.ts.map +1 -1
- package/dist/icons/issuers/Bunq.d.ts.map +1 -1
- package/dist/icons/issuers/Handelsbanken.d.ts.map +1 -1
- package/dist/icons/issuers/ING.d.ts.map +1 -1
- package/dist/icons/issuers/Knab.d.ts.map +1 -1
- package/dist/icons/issuers/Rabobank.d.ts.map +1 -1
- package/dist/icons/issuers/RegioBank.d.ts.map +1 -1
- package/dist/icons/issuers/Revolut.d.ts.map +1 -1
- package/dist/icons/issuers/SNSBank.d.ts.map +1 -1
- package/dist/icons/issuers/Triodos.d.ts.map +1 -1
- package/dist/icons/issuers/VanLanschot.d.ts.map +1 -1
- package/dist/icons/issuers/index.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Afterpay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Alipay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Amex.d.ts.map +1 -1
- package/dist/icons/paymentMethods/ApplePay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Bacs.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Bancontact.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Bank.d.ts.map +1 -1
- package/dist/icons/paymentMethods/BankTransfer.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Billink.d.ts.map +1 -1
- package/dist/icons/paymentMethods/CarteBleue.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Cash.d.ts.map +1 -1
- package/dist/icons/paymentMethods/CashOnDelivery.d.ts.map +1 -1
- package/dist/icons/paymentMethods/CreditCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/DinersClub.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Discover.d.ts.map +1 -1
- package/dist/icons/paymentMethods/DownPayment.d.ts.map +1 -1
- package/dist/icons/paymentMethods/EPSUberweisung.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Fashioncheque.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Giropay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/GivaCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/GooglePay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Ideal.d.ts.map +1 -1
- package/dist/icons/paymentMethods/In3.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Interac.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Jcb.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Klarna.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Maestro.d.ts.map +1 -1
- package/dist/icons/paymentMethods/ManualCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/ManualGiftCard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Mastercard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Multibanco.d.ts.map +1 -1
- package/dist/icons/paymentMethods/OnAccount.d.ts.map +1 -1
- package/dist/icons/paymentMethods/PayLater.d.ts.map +1 -1
- package/dist/icons/paymentMethods/PayPal.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Payconiq.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Paysafe.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Pin.d.ts.map +1 -1
- package/dist/icons/paymentMethods/PodiumCadeaukaart.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Postepay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Przelewy24.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Riverty.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Sepa.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Sofort.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Spraypay.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Twint.d.ts.map +1 -1
- package/dist/icons/paymentMethods/VVVCadeaukaart.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Visa.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Walley.d.ts.map +1 -1
- package/dist/icons/paymentMethods/WeChat.d.ts.map +1 -1
- package/dist/icons/paymentMethods/WebshopGiftcard.d.ts.map +1 -1
- package/dist/icons/paymentMethods/YourGift.d.ts.map +1 -1
- package/dist/icons/paymentMethods/Zip.d.ts.map +1 -1
- package/dist/icons/paymentMethods/index.d.ts.map +1 -1
- package/dist/index.d.ts +176 -88
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +421 -452
- package/dist/mutations/addCustomerCountryCodeToCart.d.ts.map +1 -1
- package/dist/mutations/addCustomerCountryCodeToOrder.d.ts.map +1 -1
- package/dist/mutations/addCustomerToCart.d.ts.map +1 -1
- package/dist/mutations/addCustomerToOrder.d.ts.map +1 -1
- package/dist/mutations/addInformationToCart.d.ts.map +1 -1
- package/dist/mutations/addInformationToOrder.d.ts.map +1 -1
- package/dist/mutations/addNoteToCart.d.ts.map +1 -1
- package/dist/mutations/addNoteToOrder.d.ts.map +1 -1
- package/dist/mutations/addPaymentMethodToCart.d.ts.map +1 -1
- package/dist/mutations/addPaymentMethodToOrder.d.ts.map +1 -1
- package/dist/mutations/addPickupPointToCart.d.ts.map +1 -1
- package/dist/mutations/addPickupPointToOrder.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToCart.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToOrder.d.ts.map +1 -1
- package/dist/mutations/index.d.ts.map +1 -1
- package/dist/mutations/initialAddCustomerToCart.d.ts.map +1 -1
- package/dist/mutations/initialAddCustomerToOrder.d.ts.map +1 -1
- package/dist/mutations/setAgreementTemplateForCart.d.ts.map +1 -1
- package/dist/mutations/setAgreementTemplateForOrder.d.ts.map +1 -1
- package/dist/operations/authOperations.d.ts.map +1 -1
- package/dist/operations/cartOperations.d.ts.map +1 -1
- package/dist/operations/cartOperations.js +99 -99
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/orderOperations.d.ts.map +1 -1
- package/dist/operations/orderOperations.js +196 -196
- package/dist/queries/getCartInitialCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getCartInitialPaymentStepQuery.d.ts.map +1 -1
- package/dist/queries/getCartPaymentMethodsQuery.d.ts.map +1 -1
- package/dist/queries/getCartPickupPointsQuery.d.ts.map +1 -1
- package/dist/queries/getCartReviewCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getCartShippingMethodsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderInitialCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getOrderInitialPaymentStepQuery.d.ts.map +1 -1
- package/dist/queries/getOrderPaymentMethodsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderPickupPointsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderProceedingOptionsQuery.d.ts.map +1 -1
- package/dist/queries/getOrderReviewCheckoutDataQuery.d.ts.map +1 -1
- package/dist/queries/getOrderShippingMethodsQuery.d.ts.map +1 -1
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/steps/index.d.ts.map +1 -1
- package/dist/steps/informationStep.d.ts.map +1 -1
- package/dist/steps/paymentStep.d.ts.map +1 -1
- package/dist/steps/reviewStep.d.ts.map +1 -1
- package/dist/steps/shippingStep.d.ts.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/calculateBreakpointsForAddressFields.d.ts.map +1 -1
- package/dist/utils/canEditInformation.d.ts.map +1 -1
- package/dist/utils/colorManipulator.d.ts.map +1 -1
- package/dist/utils/createAddressValidationSchema.d.ts.map +1 -1
- package/dist/utils/createSummary.d.ts.map +1 -1
- package/dist/utils/deepMerge.d.ts.map +1 -1
- package/dist/utils/formatAddressOptionsRules.d.ts.map +1 -1
- package/dist/utils/formatAddressPayload.d.ts.map +1 -1
- package/dist/utils/formatAddressResponse.d.ts.map +1 -1
- package/dist/utils/formatDistance.d.ts.map +1 -1
- package/dist/utils/formatInformationStepPayload.d.ts.map +1 -1
- package/dist/utils/formatUpdateAccountInformationPayload.d.ts.map +1 -1
- package/dist/utils/formatUpdateOrganisationOnAccountPayload.d.ts.map +1 -1
- package/dist/utils/getAutocompletedAddress.d.ts.map +1 -1
- package/dist/utils/getErrorMessage.d.ts.map +1 -1
- package/dist/utils/getFullName.d.ts.map +1 -1
- package/dist/utils/getReviewStepTarget.d.ts.map +1 -1
- package/dist/utils/getShortLocale.d.ts.map +1 -1
- package/dist/utils/getValidationErrorMessage.d.ts.map +1 -1
- package/dist/utils/getValueKeysFromString.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/replaceElementsInString.d.ts.map +1 -1
- package/dist/utils/replaceValuesInString.d.ts.map +1 -1
- package/dist/utils/resolveSlotProps.d.ts.map +1 -1
- package/dist/utils/setupCustomValidationRules.d.ts.map +1 -1
- package/package.json +105 -1
|
@@ -14,122 +14,122 @@ import { getOrderReviewCheckoutDataQuery as V } from "../queries/getOrderReviewC
|
|
|
14
14
|
import { getOrderShippingMethodsQuery as H } from "../queries/getOrderShippingMethodsQuery.js";
|
|
15
15
|
import { getOrderProceedingOptionsQuery as j } from "../queries/getOrderProceedingOptionsQuery.js";
|
|
16
16
|
import { setAgreementTemplateForOrderMutation as z } from "../mutations/setAgreementTemplateForOrder.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
const mr = {
|
|
17
|
+
import { createAddressValidationSchema as R } from "../utils/createAddressValidationSchema.js";
|
|
18
|
+
import { formatAddressOptionsRules as D } from "../utils/formatAddressOptionsRules.js";
|
|
19
|
+
import { isDefined as F } from "@afosto/utils";
|
|
20
|
+
const ue = {
|
|
22
21
|
initial: {
|
|
23
|
-
queryFn: async ({ id:
|
|
24
|
-
const { storefront: t } =
|
|
25
|
-
return t.query(k, { id:
|
|
22
|
+
queryFn: async ({ id: r }, e) => {
|
|
23
|
+
const { storefront: t } = e || {};
|
|
24
|
+
return t.query(k, { id: r });
|
|
26
25
|
},
|
|
27
|
-
formatter: async (
|
|
26
|
+
formatter: async (r, e) => {
|
|
28
27
|
const {
|
|
29
28
|
getAccountInformation: t,
|
|
30
29
|
getUser: o,
|
|
31
30
|
isSignedIn: s,
|
|
32
|
-
operations:
|
|
31
|
+
operations: a,
|
|
33
32
|
settings: u
|
|
34
|
-
} =
|
|
35
|
-
order:
|
|
36
|
-
addressOptions:
|
|
37
|
-
...
|
|
38
|
-
} =
|
|
39
|
-
let p = null, i =
|
|
40
|
-
const { contact:
|
|
41
|
-
if (
|
|
42
|
-
const
|
|
43
|
-
if (s &&
|
|
44
|
-
let
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
33
|
+
} = e || {}, { isAccountEnabled: O, isB2bExcluded: S, isSharedOrganisationRequired: m } = u || {}, {
|
|
34
|
+
order: f,
|
|
35
|
+
addressOptions: q,
|
|
36
|
+
...P
|
|
37
|
+
} = r || {};
|
|
38
|
+
let p = null, i = f, d = !1;
|
|
39
|
+
const { contact: c, organisation: y } = f?.customer || {};
|
|
40
|
+
if (O) {
|
|
41
|
+
const n = o();
|
|
42
|
+
if (s && n) {
|
|
43
|
+
let l = y?.id;
|
|
44
|
+
if (n.organisation?.id && n.organisation?.id !== l && (l = n.organisation?.id), n.id !== c?.id || l !== y?.id) {
|
|
45
|
+
const g = await a.initialAddCustomer.queryFn(
|
|
47
46
|
{
|
|
48
47
|
orderId: i.id,
|
|
49
48
|
customer: {
|
|
50
|
-
contactId:
|
|
51
|
-
...
|
|
49
|
+
contactId: n.id,
|
|
50
|
+
...l ? { organisationId: l } : {}
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
|
-
|
|
53
|
+
e
|
|
55
54
|
);
|
|
56
|
-
i = (await
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
i = (await a.initialAddCustomer.formatter(
|
|
56
|
+
g,
|
|
57
|
+
e
|
|
59
58
|
))?.order, d = !0;
|
|
60
59
|
}
|
|
61
|
-
if (p = await t().catch(() => null), !m && !
|
|
62
|
-
const [
|
|
63
|
-
|
|
60
|
+
if (p = await t().catch(() => null), !m && !S && !n.organisation?.id && !y?.id) {
|
|
61
|
+
const [g] = p?.organisations || [];
|
|
62
|
+
g && (i.customer.organisation = g);
|
|
64
63
|
}
|
|
65
|
-
m && !
|
|
66
|
-
} else !s && (m ||
|
|
64
|
+
m && !n?.organisation?.id && (d = !0);
|
|
65
|
+
} else !s && (m || c && !c.isGuest) && (d = !0);
|
|
67
66
|
}
|
|
68
|
-
const { shipping:
|
|
69
|
-
(
|
|
67
|
+
const { shipping: A } = i?.options || {}, C = A?.countries || [], h = (i?.payments || []).find(
|
|
68
|
+
(n) => !!n.details?.express
|
|
70
69
|
);
|
|
71
70
|
return {
|
|
72
|
-
...
|
|
71
|
+
...P,
|
|
73
72
|
account: p,
|
|
74
|
-
addressOptions:
|
|
75
|
-
availableShippingCountryCodes:
|
|
76
|
-
expressPayment:
|
|
73
|
+
addressOptions: q,
|
|
74
|
+
availableShippingCountryCodes: C,
|
|
75
|
+
expressPayment: h,
|
|
77
76
|
order: i,
|
|
78
77
|
skipCheckCompletedSteps: d
|
|
79
78
|
};
|
|
80
79
|
},
|
|
81
|
-
success: (
|
|
80
|
+
success: (r, e) => {
|
|
82
81
|
const {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
82
|
+
createSummary: t,
|
|
83
|
+
getUser: o,
|
|
84
|
+
isSignedIn: s,
|
|
85
|
+
setBillingAddressValidationSchema: a,
|
|
86
|
+
setCurrentOrganisation: u,
|
|
87
|
+
setHasSharedOrganisations: O,
|
|
88
|
+
setSessionExpired: S,
|
|
89
|
+
setShippingAddressValidationSchema: m,
|
|
90
|
+
setShowAccountSelection: f,
|
|
91
|
+
setShowSignIn: q,
|
|
92
|
+
setSummary: P,
|
|
93
|
+
settings: p
|
|
94
|
+
} = e || {}, { isAccountEnabled: i, isB2bExcluded: d, isSharedOrganisationRequired: c } = p || {}, y = o(), {
|
|
95
|
+
account: A,
|
|
96
|
+
addressOptions: C,
|
|
97
|
+
order: h
|
|
98
|
+
} = r || {}, { contact: n } = h?.customer || {};
|
|
99
|
+
P(t(h || {}));
|
|
100
100
|
try {
|
|
101
|
-
const { options:
|
|
102
|
-
|
|
103
|
-
),
|
|
104
|
-
|
|
101
|
+
const { options: l } = h?.billing?.address || {}, { options: g } = h?.delivery?.address || {}, M = D(
|
|
102
|
+
l ?? C
|
|
103
|
+
), T = D(
|
|
104
|
+
g ?? C
|
|
105
105
|
);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
),
|
|
109
|
-
|
|
106
|
+
a(
|
|
107
|
+
R(M)
|
|
108
|
+
), m(
|
|
109
|
+
R(T)
|
|
110
110
|
);
|
|
111
111
|
} catch {
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
d || u(h?.customer?.organisation || null), !d && (A?.sharedOrganisations || []).length > 0 && O(!0), s && c && !y?.organisation?.id && f(!0), i && !s && (c || n && !n?.isGuest) && (S(!!n && !n?.isGuest), q(!0));
|
|
114
114
|
},
|
|
115
115
|
error: () => {
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
initialAddCustomer: {
|
|
119
|
-
queryFn: async ({ orderId:
|
|
119
|
+
queryFn: async ({ orderId: r, customer: e }, t) => {
|
|
120
120
|
const { storefront: o } = t || {};
|
|
121
121
|
return o.query(b, {
|
|
122
122
|
addCustomerToOrderPayload: {
|
|
123
|
-
orderId:
|
|
124
|
-
customer:
|
|
123
|
+
orderId: r,
|
|
124
|
+
customer: e
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
},
|
|
128
|
-
formatter: (
|
|
129
|
-
const { order:
|
|
128
|
+
formatter: (r) => {
|
|
129
|
+
const { order: e, ...t } = r?.addCustomerToOrder || {};
|
|
130
130
|
return {
|
|
131
131
|
...t,
|
|
132
|
-
order:
|
|
132
|
+
order: e
|
|
133
133
|
};
|
|
134
134
|
},
|
|
135
135
|
success: () => {
|
|
@@ -138,18 +138,18 @@ const mr = {
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
initialPaymentStep: {
|
|
141
|
-
queryFn: async ({ id:
|
|
142
|
-
const { storefront: t } =
|
|
143
|
-
return t.query(I, { id:
|
|
141
|
+
queryFn: async ({ id: r }, e) => {
|
|
142
|
+
const { storefront: t } = e || {};
|
|
143
|
+
return t.query(I, { id: r });
|
|
144
144
|
},
|
|
145
|
-
formatter: (
|
|
146
|
-
const { order:
|
|
145
|
+
formatter: (r) => {
|
|
146
|
+
const { order: e, ...t } = r || {}, o = e?.options?.payment?.agreements || [], s = e?.checkout?.agreement || null, a = e?.options?.payment?.methods || [];
|
|
147
147
|
return {
|
|
148
148
|
...t,
|
|
149
|
-
order:
|
|
149
|
+
order: e,
|
|
150
150
|
agreementOptions: o,
|
|
151
151
|
agreementTemplate: s,
|
|
152
|
-
paymentMethods:
|
|
152
|
+
paymentMethods: a
|
|
153
153
|
};
|
|
154
154
|
},
|
|
155
155
|
success: () => {
|
|
@@ -158,112 +158,112 @@ const mr = {
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
addCustomer: {
|
|
161
|
-
queryFn: async ({ orderId:
|
|
161
|
+
queryFn: async ({ orderId: r, customer: e }, t) => {
|
|
162
162
|
const { storefront: o } = t || {};
|
|
163
163
|
return o.query(v, {
|
|
164
164
|
addCustomerToOrderPayload: {
|
|
165
|
-
orderId:
|
|
166
|
-
customer:
|
|
165
|
+
orderId: r,
|
|
166
|
+
customer: e
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
},
|
|
170
|
-
formatter: (
|
|
171
|
-
const { order:
|
|
170
|
+
formatter: (r) => {
|
|
171
|
+
const { order: e, ...t } = r?.addCustomerToOrder || {};
|
|
172
172
|
return {
|
|
173
173
|
...t,
|
|
174
|
-
order:
|
|
174
|
+
order: e
|
|
175
175
|
};
|
|
176
176
|
},
|
|
177
|
-
success: (
|
|
178
|
-
const {
|
|
179
|
-
|
|
177
|
+
success: (r, e) => {
|
|
178
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
179
|
+
o(s || {});
|
|
180
180
|
},
|
|
181
181
|
error: () => {
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
addCustomerCountryCode: {
|
|
185
|
-
queryFn: async ({ orderId:
|
|
185
|
+
queryFn: async ({ orderId: r, countryCode: e }, t) => {
|
|
186
186
|
const { storefront: o } = t || {};
|
|
187
187
|
return o.query(w, {
|
|
188
188
|
countryCodePayload: {
|
|
189
|
-
orderId:
|
|
190
|
-
countryCode:
|
|
189
|
+
orderId: r,
|
|
190
|
+
countryCode: e
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
},
|
|
194
|
-
formatter: (
|
|
195
|
-
const { order:
|
|
194
|
+
formatter: (r) => {
|
|
195
|
+
const { order: e, ...t } = r?.setCountryCodeForOrder || {};
|
|
196
196
|
return {
|
|
197
197
|
...t,
|
|
198
|
-
order:
|
|
198
|
+
order: e
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
|
-
success: (
|
|
202
|
-
const {
|
|
203
|
-
|
|
201
|
+
success: (r, e) => {
|
|
202
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
203
|
+
o(s || {});
|
|
204
204
|
},
|
|
205
205
|
error: () => {
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
addInformation: {
|
|
209
|
-
queryFn: async ({ orderId:
|
|
210
|
-
const { storefront: u } =
|
|
209
|
+
queryFn: async ({ orderId: r, billingAddress: e, customer: t, phoneNumber: o, shippingAddress: s }, a) => {
|
|
210
|
+
const { storefront: u } = a || {};
|
|
211
211
|
return u.query(
|
|
212
212
|
Q({
|
|
213
|
-
addPhoneNumber:
|
|
213
|
+
addPhoneNumber: F(o)
|
|
214
214
|
}),
|
|
215
215
|
{
|
|
216
216
|
customerInput: {
|
|
217
|
-
orderId:
|
|
217
|
+
orderId: r,
|
|
218
218
|
customer: t
|
|
219
219
|
},
|
|
220
|
-
...
|
|
220
|
+
...F(o) ? {
|
|
221
221
|
phoneNumberInput: {
|
|
222
|
-
orderId:
|
|
222
|
+
orderId: r,
|
|
223
223
|
phoneNumber: o
|
|
224
224
|
}
|
|
225
225
|
} : {},
|
|
226
226
|
billingAddressInput: {
|
|
227
|
-
orderId:
|
|
228
|
-
address:
|
|
227
|
+
orderId: r,
|
|
228
|
+
address: e
|
|
229
229
|
},
|
|
230
230
|
shippingAddressInput: {
|
|
231
|
-
orderId:
|
|
231
|
+
orderId: r,
|
|
232
232
|
address: s,
|
|
233
233
|
type: "ADDRESS"
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
|
-
formatter: (
|
|
239
|
-
const { order:
|
|
238
|
+
formatter: (r) => {
|
|
239
|
+
const { order: e, ...t } = r?.addBillingAddressToOrder || {};
|
|
240
240
|
return {
|
|
241
241
|
...t,
|
|
242
|
-
order:
|
|
242
|
+
order: e
|
|
243
243
|
};
|
|
244
244
|
},
|
|
245
|
-
success: (
|
|
246
|
-
const {
|
|
247
|
-
|
|
245
|
+
success: (r, e) => {
|
|
246
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
247
|
+
o(s || {});
|
|
248
248
|
},
|
|
249
249
|
error: () => {
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
252
|
addNote: {
|
|
253
|
-
queryFn: async ({ orderId:
|
|
253
|
+
queryFn: async ({ orderId: r, note: e }, t) => {
|
|
254
254
|
const { storefront: o } = t || {};
|
|
255
255
|
return o.query(E, {
|
|
256
256
|
notePayload: {
|
|
257
|
-
orderId:
|
|
258
|
-
note:
|
|
257
|
+
orderId: r,
|
|
258
|
+
note: e
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
261
|
},
|
|
262
|
-
formatter: (
|
|
263
|
-
const { order:
|
|
262
|
+
formatter: (r) => {
|
|
263
|
+
const { order: e, ...t } = r?.setNoteForOrder || {};
|
|
264
264
|
return {
|
|
265
265
|
...t,
|
|
266
|
-
order:
|
|
266
|
+
order: e
|
|
267
267
|
};
|
|
268
268
|
},
|
|
269
269
|
success: () => {
|
|
@@ -272,89 +272,89 @@ const mr = {
|
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
addPaymentMethod: {
|
|
275
|
-
queryFn: async ({ orderId:
|
|
276
|
-
const { storefront:
|
|
277
|
-
return
|
|
275
|
+
queryFn: async ({ orderId: r, methodId: e, issuerId: t, terminalId: o }, s) => {
|
|
276
|
+
const { storefront: a } = s || {};
|
|
277
|
+
return a.query(B, {
|
|
278
278
|
paymentMethodPayload: {
|
|
279
|
-
orderId:
|
|
280
|
-
methodId:
|
|
279
|
+
orderId: r,
|
|
280
|
+
methodId: e,
|
|
281
281
|
issuerId: t || "",
|
|
282
282
|
terminalId: o || ""
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
},
|
|
286
|
-
formatter: (
|
|
287
|
-
const { order:
|
|
286
|
+
formatter: (r) => {
|
|
287
|
+
const { order: e, ...t } = r?.addPaymentMethodToOrder || {};
|
|
288
288
|
return {
|
|
289
289
|
...t,
|
|
290
|
-
order:
|
|
290
|
+
order: e
|
|
291
291
|
};
|
|
292
292
|
},
|
|
293
|
-
success: (
|
|
294
|
-
const {
|
|
295
|
-
|
|
293
|
+
success: (r, e) => {
|
|
294
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
295
|
+
o(s || {});
|
|
296
296
|
},
|
|
297
297
|
error: () => {
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
addPickupPoint: {
|
|
301
|
-
queryFn: async ({ orderId:
|
|
301
|
+
queryFn: async ({ orderId: r, pickupPointId: e }, t) => {
|
|
302
302
|
const { storefront: o } = t || {};
|
|
303
303
|
return o.query(N, {
|
|
304
304
|
pickupPointPayload: {
|
|
305
|
-
orderId:
|
|
306
|
-
spid:
|
|
305
|
+
orderId: r,
|
|
306
|
+
spid: e
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
},
|
|
310
|
-
formatter: (
|
|
311
|
-
const { order:
|
|
310
|
+
formatter: (r) => {
|
|
311
|
+
const { order: e, ...t } = r?.addPickUpPointToOrder || {};
|
|
312
312
|
return {
|
|
313
313
|
...t,
|
|
314
|
-
order:
|
|
314
|
+
order: e
|
|
315
315
|
};
|
|
316
316
|
},
|
|
317
|
-
success: (
|
|
318
|
-
const {
|
|
319
|
-
|
|
317
|
+
success: (r, e) => {
|
|
318
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
319
|
+
o(s || {});
|
|
320
320
|
},
|
|
321
321
|
error: () => {
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
addShippingMethod: {
|
|
325
|
-
queryFn: async ({ orderId:
|
|
325
|
+
queryFn: async ({ orderId: r, methodId: e }, t) => {
|
|
326
326
|
const { storefront: o } = t || {};
|
|
327
327
|
return o.query(x, {
|
|
328
328
|
shippingMethodPayload: {
|
|
329
|
-
orderId:
|
|
330
|
-
methodId:
|
|
329
|
+
orderId: r,
|
|
330
|
+
methodId: e
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
},
|
|
334
|
-
formatter: (
|
|
335
|
-
const { order:
|
|
334
|
+
formatter: (r) => {
|
|
335
|
+
const { order: e, ...t } = r?.addShippingMethodToOrder || {};
|
|
336
336
|
return {
|
|
337
337
|
...t,
|
|
338
|
-
order:
|
|
338
|
+
order: e
|
|
339
339
|
};
|
|
340
340
|
},
|
|
341
|
-
success: (
|
|
342
|
-
const {
|
|
343
|
-
|
|
341
|
+
success: (r, e) => {
|
|
342
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
343
|
+
o(s || {});
|
|
344
344
|
},
|
|
345
345
|
error: () => {
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
checkout: {
|
|
349
|
-
queryFn: async ({ id:
|
|
350
|
-
const { storefront: t } =
|
|
351
|
-
return t.query(j, { id:
|
|
349
|
+
queryFn: async ({ id: r }, e) => {
|
|
350
|
+
const { storefront: t } = e || {};
|
|
351
|
+
return t.query(j, { id: r });
|
|
352
352
|
},
|
|
353
|
-
formatter: (
|
|
354
|
-
const { order:
|
|
353
|
+
formatter: (r) => {
|
|
354
|
+
const { order: e, ...t } = r || {};
|
|
355
355
|
return {
|
|
356
356
|
...t,
|
|
357
|
-
order:
|
|
357
|
+
order: e
|
|
358
358
|
};
|
|
359
359
|
},
|
|
360
360
|
success: () => {
|
|
@@ -363,18 +363,18 @@ const mr = {
|
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
365
|
getPaymentMethods: {
|
|
366
|
-
queryFn: async ({ id:
|
|
367
|
-
const { storefront: t } =
|
|
368
|
-
return t.query(G, { id:
|
|
366
|
+
queryFn: async ({ id: r }, e) => {
|
|
367
|
+
const { storefront: t } = e || {};
|
|
368
|
+
return t.query(G, { id: r });
|
|
369
369
|
},
|
|
370
|
-
formatter: (
|
|
371
|
-
const { order:
|
|
370
|
+
formatter: (r) => {
|
|
371
|
+
const { order: e, ...t } = r || {}, o = e?.billing?.payment?.method || null, s = e?.options?.payment?.methods || [], a = e?.payments || [];
|
|
372
372
|
return {
|
|
373
373
|
...t,
|
|
374
|
-
order:
|
|
374
|
+
order: e,
|
|
375
375
|
currentPaymentMethod: o,
|
|
376
376
|
paymentMethods: s,
|
|
377
|
-
payments:
|
|
377
|
+
payments: a
|
|
378
378
|
};
|
|
379
379
|
},
|
|
380
380
|
success: () => {
|
|
@@ -383,16 +383,16 @@ const mr = {
|
|
|
383
383
|
}
|
|
384
384
|
},
|
|
385
385
|
getPickupPoints: {
|
|
386
|
-
queryFn: async ({ id:
|
|
386
|
+
queryFn: async ({ id: r, countryCode: e, postalCode: t }, o) => {
|
|
387
387
|
const { storefront: s } = o || {};
|
|
388
388
|
return s.query(U, {
|
|
389
|
-
id:
|
|
390
|
-
countryCode:
|
|
389
|
+
id: r,
|
|
390
|
+
countryCode: e,
|
|
391
391
|
postalCode: t
|
|
392
392
|
});
|
|
393
393
|
},
|
|
394
|
-
formatter: (
|
|
395
|
-
const { order:
|
|
394
|
+
formatter: (r) => {
|
|
395
|
+
const { order: e, ...t } = r || {}, o = e?.delivery?.method?.pickupPoints || [];
|
|
396
396
|
return {
|
|
397
397
|
...t,
|
|
398
398
|
pickupPoints: o
|
|
@@ -404,31 +404,31 @@ const mr = {
|
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
getReviewCheckoutData: {
|
|
407
|
-
queryFn: async ({ id:
|
|
408
|
-
const { storefront: t } =
|
|
409
|
-
return t.query(V, { id:
|
|
407
|
+
queryFn: async ({ id: r }, e) => {
|
|
408
|
+
const { storefront: t } = e || {};
|
|
409
|
+
return t.query(V, { id: r });
|
|
410
410
|
},
|
|
411
|
-
formatter: (
|
|
412
|
-
const { order:
|
|
411
|
+
formatter: (r) => {
|
|
412
|
+
const { order: e, ...t } = r || {}, { agreements: o = [] } = e?.acceptance || {}, s = e?.checkout?.agreement || null, { contact: a, notes: u = "", organisation: O } = e?.customer || {}, { address: S, payment: m } = e?.billing || {}, { issuer: f, method: q } = m || {}, P = e?.phoneNumber || null, {
|
|
413
413
|
address: p,
|
|
414
414
|
method: i,
|
|
415
415
|
pickupPoint: d
|
|
416
|
-
} =
|
|
416
|
+
} = e?.delivery || {}, c = e?.currency, y = e?.items || [];
|
|
417
417
|
return {
|
|
418
418
|
...t,
|
|
419
|
-
order:
|
|
419
|
+
order: e,
|
|
420
420
|
agreements: o,
|
|
421
421
|
agreementTemplate: s,
|
|
422
422
|
amountCovered: 0,
|
|
423
|
-
billingAddress:
|
|
424
|
-
contact:
|
|
425
|
-
currency:
|
|
426
|
-
issuer:
|
|
427
|
-
items:
|
|
423
|
+
billingAddress: S,
|
|
424
|
+
contact: a,
|
|
425
|
+
currency: c,
|
|
426
|
+
issuer: f,
|
|
427
|
+
items: y,
|
|
428
428
|
notes: u,
|
|
429
|
-
organisation:
|
|
430
|
-
paymentMethod:
|
|
431
|
-
phoneNumber:
|
|
429
|
+
organisation: O,
|
|
430
|
+
paymentMethod: q,
|
|
431
|
+
phoneNumber: P,
|
|
432
432
|
pickupPoint: d,
|
|
433
433
|
shippingAddress: p,
|
|
434
434
|
shippingMethod: i
|
|
@@ -440,19 +440,19 @@ const mr = {
|
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
getShippingMethods: {
|
|
443
|
-
queryFn: async ({ id:
|
|
443
|
+
queryFn: async ({ id: r, countryCode: e, postalCode: t }, o) => {
|
|
444
444
|
const { storefront: s } = o || {};
|
|
445
445
|
return s.query(H, {
|
|
446
|
-
id:
|
|
447
|
-
countryCode:
|
|
446
|
+
id: r,
|
|
447
|
+
countryCode: e,
|
|
448
448
|
postalCode: t
|
|
449
449
|
});
|
|
450
450
|
},
|
|
451
|
-
formatter: (
|
|
452
|
-
const { order:
|
|
451
|
+
formatter: (r) => {
|
|
452
|
+
const { order: e, ...t } = r || {}, o = e?.delivery?.method || null, s = e?.options?.shipping?.methods || [];
|
|
453
453
|
return {
|
|
454
454
|
...t,
|
|
455
|
-
order:
|
|
455
|
+
order: e,
|
|
456
456
|
currentShippingMethod: o,
|
|
457
457
|
shippingMethods: s
|
|
458
458
|
};
|
|
@@ -463,27 +463,27 @@ const mr = {
|
|
|
463
463
|
}
|
|
464
464
|
},
|
|
465
465
|
setAgreementTemplate: {
|
|
466
|
-
queryFn: async ({ orderId:
|
|
466
|
+
queryFn: async ({ orderId: r, agreementId: e }, t) => {
|
|
467
467
|
const { storefront: o } = t || {};
|
|
468
468
|
return o.query(z, {
|
|
469
|
-
input: { orderId:
|
|
469
|
+
input: { orderId: r, agreementId: e }
|
|
470
470
|
});
|
|
471
471
|
},
|
|
472
|
-
formatter: (
|
|
473
|
-
const { order:
|
|
472
|
+
formatter: (r) => {
|
|
473
|
+
const { order: e, ...t } = r?.setAgreementTemplateForOrder || {};
|
|
474
474
|
return {
|
|
475
475
|
...t,
|
|
476
|
-
order:
|
|
476
|
+
order: e
|
|
477
477
|
};
|
|
478
478
|
},
|
|
479
|
-
success: (
|
|
480
|
-
const {
|
|
481
|
-
|
|
479
|
+
success: (r, e) => {
|
|
480
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
481
|
+
o(s || {});
|
|
482
482
|
},
|
|
483
483
|
error: () => {
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
487
|
export {
|
|
488
|
-
|
|
488
|
+
ue as orderOperations
|
|
489
489
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCartInitialCheckoutDataQuery.d.ts","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"getCartInitialCheckoutDataQuery.d.ts","sourceRoot":"","sources":["../../src/queries/getCartInitialCheckoutDataQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,4CAA4C,CAAC;AAEpD,MAAM,WAAW,gCAAgC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,kCAAkC;IACjD,cAAc,EAAE,kBAAkB,CAAC;IACnC,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED,eAAO,MAAM,+BAA+B,QAU3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCartInitialPaymentStepQuery.d.ts","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"getCartInitialPaymentStepQuery.d.ts","sourceRoot":"","sources":["../../src/queries/getCartInitialPaymentStepQuery.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,mDAAmD;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0CAA0C;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,mDAAmD,EAAE,CAAC;CACnE;AAED,MAAM,WAAW,8CAA8C;IAC7D,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE;QACJ,QAAQ,EAAE;YACR,SAAS,EAAE,0CAA0C,CAAC;SACvD,CAAC;QACF,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,UAAU,EAAE,0CAA0C,EAAE,CAAC;gBACzD,OAAO,EAAE,8CAA8C,EAAE,CAAC;aAC3D,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,8BAA8B,QA0C1C,CAAC"}
|