@afosto/checkout-ui 0.0.1-alpha.1 → 0.0.1-alpha.11
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 +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 +2 -2
- 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 +2 -2
- package/dist/CheckoutAddressFields/CheckoutAddressFields.d.ts.map +1 -1
- package/dist/CheckoutAddressFields/CheckoutAddressFields.js +8 -8
- 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 +2 -2
- 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 +52 -44
- 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 +1 -0
- package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.d.ts.map +1 -1
- package/dist/CheckoutContactInformationSection/CheckoutContactInformationSection.js +50 -40
- 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 +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 +6 -6
- package/dist/CheckoutForm/CheckoutForm.d.ts.map +1 -1
- package/dist/CheckoutForm/CheckoutForm.js +142 -120
- 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 +48 -40
- 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 +3 -1
- package/dist/CheckoutProvider/CheckoutProvider.d.ts.map +1 -1
- package/dist/CheckoutProvider/CheckoutProvider.js +76 -69
- 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/CheckoutThemeProvider.js +35 -36
- 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/CheckoutSummaryFees.js +24 -24
- 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/CheckoutSummaryGroup.js +3 -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/CheckoutSummaryPaymentFees.js +28 -20
- 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/CheckoutSummaryShippingFees.js +34 -24
- 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/CheckoutSummaryTotalBreakdown.js +54 -53
- 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 +65 -21
- package/dist/constants/analyticsEvents.d.ts.map +1 -1
- package/dist/constants/analyticsEvents.js +153 -3
- 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 +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 +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 +1 -0
- package/dist/hooks/useCheckoutAnalytics.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAnalytics.js +25 -19
- package/dist/hooks/useCheckoutAuth.d.ts +2 -0
- package/dist/hooks/useCheckoutAuth.d.ts.map +1 -1
- package/dist/hooks/useCheckoutAuth.js +40 -39
- package/dist/hooks/useCheckoutAutocompleteAddress.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.d.ts +66 -37
- package/dist/hooks/useCheckoutCart.d.ts.map +1 -1
- package/dist/hooks/useCheckoutCart.js +131 -122
- package/dist/hooks/useCheckoutForm.d.ts +20 -3
- package/dist/hooks/useCheckoutForm.d.ts.map +1 -1
- package/dist/hooks/useCheckoutForm.js +55 -44
- package/dist/hooks/useCheckoutOrder.d.ts +67 -38
- package/dist/hooks/useCheckoutOrder.d.ts.map +1 -1
- package/dist/hooks/useCheckoutOrder.js +85 -72
- 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 +177 -88
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +502 -500
- 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 +10 -0
- package/dist/mutations/addShippingMethodToCart.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToCart.js +12 -2
- package/dist/mutations/addShippingMethodToOrder.d.ts +10 -0
- package/dist/mutations/addShippingMethodToOrder.d.ts.map +1 -1
- package/dist/mutations/addShippingMethodToOrder.js +15 -5
- 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/authOperations.js +10 -2
- package/dist/operations/cartOperations.d.ts.map +1 -1
- package/dist/operations/cartOperations.js +141 -128
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/orderOperations.d.ts.map +1 -1
- package/dist/operations/orderOperations.js +241 -225
- 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 +1 -0
- package/dist/steps/informationStep.d.ts.map +1 -1
- package/dist/steps/informationStep.js +96 -94
- package/dist/steps/paymentStep.d.ts.map +1 -1
- package/dist/steps/paymentStep.js +1 -1
- package/dist/steps/reviewStep.d.ts.map +1 -1
- package/dist/steps/shippingStep.d.ts.map +1 -1
- package/dist/steps/shippingStep.js +1 -1
- package/dist/types.d.ts +30 -2
- 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 +15 -15
- package/dist/utils/colorManipulator.d.ts.map +1 -1
- package/dist/utils/colorManipulator.js +86 -75
- 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/formatEcommerceDataLayerItems.d.ts +11 -0
- package/dist/utils/formatEcommerceDataLayerItems.d.ts.map +1 -0
- package/dist/utils/formatEcommerceDataLayerItems.js +26 -0
- 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 +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 +5 -105
|
@@ -1,135 +1,142 @@
|
|
|
1
|
-
import { getOrderInitialCheckoutDataQuery as
|
|
2
|
-
import { getOrderInitialPaymentStepQuery as
|
|
3
|
-
import { initialAddCustomerToOrderMutation as
|
|
4
|
-
import { addCustomerToOrderMutation as
|
|
5
|
-
import { addCustomerCountryCodeToOrderMutation as
|
|
6
|
-
import { addInformationToOrderMutation as
|
|
7
|
-
import { addNoteToOrderMutation as
|
|
8
|
-
import { addPaymentMethodToOrderMutation as
|
|
9
|
-
import { addPickupPointToOrderMutation as
|
|
10
|
-
import { addShippingMethodToOrderMutation as
|
|
11
|
-
import { getOrderPaymentMethodsQuery as
|
|
12
|
-
import { getOrderPickupPointsQuery as
|
|
13
|
-
import { getOrderReviewCheckoutDataQuery as
|
|
14
|
-
import { getOrderShippingMethodsQuery as
|
|
15
|
-
import { getOrderProceedingOptionsQuery as
|
|
16
|
-
import { setAgreementTemplateForOrderMutation as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
const mr = {
|
|
1
|
+
import { getOrderInitialCheckoutDataQuery as b } from "../queries/getOrderInitialCheckoutDataQuery.js";
|
|
2
|
+
import { getOrderInitialPaymentStepQuery as v } from "../queries/getOrderInitialPaymentStepQuery.js";
|
|
3
|
+
import { initialAddCustomerToOrderMutation as w } from "../mutations/initialAddCustomerToOrder.js";
|
|
4
|
+
import { addCustomerToOrderMutation as Q } from "../mutations/addCustomerToOrder.js";
|
|
5
|
+
import { addCustomerCountryCodeToOrderMutation as E } from "../mutations/addCustomerCountryCodeToOrder.js";
|
|
6
|
+
import { addInformationToOrderMutation as B } from "../mutations/addInformationToOrder.js";
|
|
7
|
+
import { addNoteToOrderMutation as N } from "../mutations/addNoteToOrder.js";
|
|
8
|
+
import { addPaymentMethodToOrderMutation as x } from "../mutations/addPaymentMethodToOrder.js";
|
|
9
|
+
import { addPickupPointToOrderMutation as G } from "../mutations/addPickupPointToOrder.js";
|
|
10
|
+
import { addShippingMethodToOrderMutation as U } from "../mutations/addShippingMethodToOrder.js";
|
|
11
|
+
import { getOrderPaymentMethodsQuery as V } from "../queries/getOrderPaymentMethodsQuery.js";
|
|
12
|
+
import { getOrderPickupPointsQuery as H } from "../queries/getOrderPickupPointsQuery.js";
|
|
13
|
+
import { getOrderReviewCheckoutDataQuery as j } from "../queries/getOrderReviewCheckoutDataQuery.js";
|
|
14
|
+
import { getOrderShippingMethodsQuery as z } from "../queries/getOrderShippingMethodsQuery.js";
|
|
15
|
+
import { getOrderProceedingOptionsQuery as J } from "../queries/getOrderProceedingOptionsQuery.js";
|
|
16
|
+
import { setAgreementTemplateForOrderMutation as K } from "../mutations/setAgreementTemplateForOrder.js";
|
|
17
|
+
import { createAddressValidationSchema as M } from "../utils/createAddressValidationSchema.js";
|
|
18
|
+
import { formatAddressOptionsRules as D } from "../utils/formatAddressOptionsRules.js";
|
|
19
|
+
import { isDefined as k } from "@afosto/utils";
|
|
20
|
+
const pe = {
|
|
22
21
|
initial: {
|
|
23
|
-
queryFn: async ({ id:
|
|
24
|
-
const { storefront: t } =
|
|
25
|
-
return t.query(
|
|
22
|
+
queryFn: async ({ id: r }, e) => {
|
|
23
|
+
const { storefront: t } = e || {};
|
|
24
|
+
return t.query(b, { 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
31
|
operations: n,
|
|
33
|
-
settings:
|
|
34
|
-
} =
|
|
32
|
+
settings: i
|
|
33
|
+
} = e || {}, { isAccountEnabled: d, isB2bExcluded: O, isSharedOrganisationRequired: h } = i || {}, {
|
|
35
34
|
order: g,
|
|
36
|
-
addressOptions:
|
|
37
|
-
...
|
|
38
|
-
} =
|
|
39
|
-
let
|
|
40
|
-
const { contact:
|
|
41
|
-
if (
|
|
35
|
+
addressOptions: S,
|
|
36
|
+
...q
|
|
37
|
+
} = r || {};
|
|
38
|
+
let l = null, c = g, m = !1;
|
|
39
|
+
const { contact: p, organisation: y } = g?.customer || {};
|
|
40
|
+
if (d) {
|
|
42
41
|
const a = o();
|
|
43
42
|
if (s && a) {
|
|
44
|
-
let f =
|
|
45
|
-
if (a.organisation?.id && a.organisation?.id !== f && (f = a.organisation?.id), a.id !==
|
|
46
|
-
const
|
|
43
|
+
let f = y?.id;
|
|
44
|
+
if (a.organisation?.id && a.organisation?.id !== f && (f = a.organisation?.id), a.id !== p?.id || f !== y?.id) {
|
|
45
|
+
const u = await n.initialAddCustomer.queryFn(
|
|
47
46
|
{
|
|
48
|
-
orderId:
|
|
47
|
+
orderId: c.id,
|
|
49
48
|
customer: {
|
|
50
49
|
contactId: a.id,
|
|
51
50
|
...f ? { organisationId: f } : {}
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
|
-
|
|
53
|
+
e
|
|
55
54
|
);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
))?.order,
|
|
55
|
+
c = (await n.initialAddCustomer.formatter(
|
|
56
|
+
u,
|
|
57
|
+
e
|
|
58
|
+
))?.order, m = !0;
|
|
60
59
|
}
|
|
61
|
-
if (
|
|
62
|
-
const [
|
|
63
|
-
|
|
60
|
+
if (l = await t().catch(() => null), !h && !O && !a.organisation?.id && !y?.id) {
|
|
61
|
+
const [u] = l?.organisations || [];
|
|
62
|
+
u && (c.customer.organisation = u);
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
} else !s && (
|
|
64
|
+
h && !a?.organisation?.id && (m = !0);
|
|
65
|
+
} else !s && (h || p && !p.isGuest) && (m = !0);
|
|
67
66
|
}
|
|
68
|
-
const { shipping:
|
|
67
|
+
const { shipping: R } = c?.options || {}, C = R?.countries || [], P = (c?.payments || []).find(
|
|
69
68
|
(a) => !!a.details?.express
|
|
70
69
|
);
|
|
71
70
|
return {
|
|
72
|
-
...
|
|
73
|
-
account:
|
|
74
|
-
addressOptions:
|
|
75
|
-
availableShippingCountryCodes:
|
|
76
|
-
expressPayment:
|
|
77
|
-
order:
|
|
78
|
-
skipCheckCompletedSteps:
|
|
71
|
+
...q,
|
|
72
|
+
account: l,
|
|
73
|
+
addressOptions: S,
|
|
74
|
+
availableShippingCountryCodes: C,
|
|
75
|
+
expressPayment: P,
|
|
76
|
+
order: c,
|
|
77
|
+
skipCheckCompletedSteps: m
|
|
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: n,
|
|
86
|
+
setCurrentOrganisation: i,
|
|
87
|
+
setHasSharedOrganisations: d,
|
|
88
|
+
setSessionExpired: O,
|
|
89
|
+
setShippingAddressValidationSchema: h,
|
|
90
|
+
setShowAccountSelection: g,
|
|
91
|
+
setShowSignIn: S,
|
|
92
|
+
setSummary: q,
|
|
93
|
+
settings: l,
|
|
94
|
+
track: c
|
|
95
|
+
} = e || {}, { isAccountEnabled: m, isB2bExcluded: p, isSharedOrganisationRequired: y } = l || {}, R = o(), {
|
|
96
|
+
account: C,
|
|
97
|
+
addressOptions: P,
|
|
98
|
+
order: a,
|
|
99
|
+
...f
|
|
100
|
+
} = r || {}, { contact: u } = a?.customer || {};
|
|
101
|
+
q(t(a || {}));
|
|
100
102
|
try {
|
|
101
|
-
const { options:
|
|
102
|
-
|
|
103
|
-
),
|
|
104
|
-
|
|
103
|
+
const { options: A } = a?.billing?.address || {}, { options: F } = a?.delivery?.address || {}, T = D(
|
|
104
|
+
A ?? P
|
|
105
|
+
), I = D(
|
|
106
|
+
F ?? P
|
|
105
107
|
);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
),
|
|
109
|
-
|
|
108
|
+
n(
|
|
109
|
+
M(T)
|
|
110
|
+
), h(
|
|
111
|
+
M(I)
|
|
110
112
|
);
|
|
111
113
|
} catch {
|
|
112
114
|
}
|
|
113
|
-
|
|
115
|
+
p || i(a?.customer?.organisation || null), !p && (C?.sharedOrganisations || []).length > 0 && d(!0), s && y && !R?.organisation?.id && g(!0), m && !s && (y || u && !u?.isGuest) && (O(!!u && !u?.isGuest), S(!0)), c("beginCheckout", {
|
|
116
|
+
...f,
|
|
117
|
+
...a,
|
|
118
|
+
account: C,
|
|
119
|
+
addressOptions: P
|
|
120
|
+
});
|
|
114
121
|
},
|
|
115
122
|
error: () => {
|
|
116
123
|
}
|
|
117
124
|
},
|
|
118
125
|
initialAddCustomer: {
|
|
119
|
-
queryFn: async ({ orderId:
|
|
126
|
+
queryFn: async ({ orderId: r, customer: e }, t) => {
|
|
120
127
|
const { storefront: o } = t || {};
|
|
121
|
-
return o.query(
|
|
128
|
+
return o.query(w, {
|
|
122
129
|
addCustomerToOrderPayload: {
|
|
123
|
-
orderId:
|
|
124
|
-
customer:
|
|
130
|
+
orderId: r,
|
|
131
|
+
customer: e
|
|
125
132
|
}
|
|
126
133
|
});
|
|
127
134
|
},
|
|
128
|
-
formatter: (
|
|
129
|
-
const { order:
|
|
135
|
+
formatter: (r) => {
|
|
136
|
+
const { order: e, ...t } = r?.addCustomerToOrder || {};
|
|
130
137
|
return {
|
|
131
138
|
...t,
|
|
132
|
-
order:
|
|
139
|
+
order: e
|
|
133
140
|
};
|
|
134
141
|
},
|
|
135
142
|
success: () => {
|
|
@@ -138,15 +145,15 @@ const mr = {
|
|
|
138
145
|
}
|
|
139
146
|
},
|
|
140
147
|
initialPaymentStep: {
|
|
141
|
-
queryFn: async ({ id:
|
|
142
|
-
const { storefront: t } =
|
|
143
|
-
return t.query(
|
|
148
|
+
queryFn: async ({ id: r }, e) => {
|
|
149
|
+
const { storefront: t } = e || {};
|
|
150
|
+
return t.query(v, { id: r });
|
|
144
151
|
},
|
|
145
|
-
formatter: (
|
|
146
|
-
const { order:
|
|
152
|
+
formatter: (r) => {
|
|
153
|
+
const { order: e, ...t } = r || {}, o = e?.options?.payment?.agreements || [], s = e?.checkout?.agreement || null, n = e?.options?.payment?.methods || [];
|
|
147
154
|
return {
|
|
148
155
|
...t,
|
|
149
|
-
order:
|
|
156
|
+
order: e,
|
|
150
157
|
agreementOptions: o,
|
|
151
158
|
agreementTemplate: s,
|
|
152
159
|
paymentMethods: n
|
|
@@ -158,112 +165,112 @@ const mr = {
|
|
|
158
165
|
}
|
|
159
166
|
},
|
|
160
167
|
addCustomer: {
|
|
161
|
-
queryFn: async ({ orderId:
|
|
168
|
+
queryFn: async ({ orderId: r, customer: e }, t) => {
|
|
162
169
|
const { storefront: o } = t || {};
|
|
163
|
-
return o.query(
|
|
170
|
+
return o.query(Q, {
|
|
164
171
|
addCustomerToOrderPayload: {
|
|
165
|
-
orderId:
|
|
166
|
-
customer:
|
|
172
|
+
orderId: r,
|
|
173
|
+
customer: e
|
|
167
174
|
}
|
|
168
175
|
});
|
|
169
176
|
},
|
|
170
|
-
formatter: (
|
|
171
|
-
const { order:
|
|
177
|
+
formatter: (r) => {
|
|
178
|
+
const { order: e, ...t } = r?.addCustomerToOrder || {};
|
|
172
179
|
return {
|
|
173
180
|
...t,
|
|
174
|
-
order:
|
|
181
|
+
order: e
|
|
175
182
|
};
|
|
176
183
|
},
|
|
177
|
-
success: (
|
|
178
|
-
const {
|
|
179
|
-
|
|
184
|
+
success: (r, e) => {
|
|
185
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
186
|
+
o(s || {});
|
|
180
187
|
},
|
|
181
188
|
error: () => {
|
|
182
189
|
}
|
|
183
190
|
},
|
|
184
191
|
addCustomerCountryCode: {
|
|
185
|
-
queryFn: async ({ orderId:
|
|
192
|
+
queryFn: async ({ orderId: r, countryCode: e }, t) => {
|
|
186
193
|
const { storefront: o } = t || {};
|
|
187
|
-
return o.query(
|
|
194
|
+
return o.query(E, {
|
|
188
195
|
countryCodePayload: {
|
|
189
|
-
orderId:
|
|
190
|
-
countryCode:
|
|
196
|
+
orderId: r,
|
|
197
|
+
countryCode: e
|
|
191
198
|
}
|
|
192
199
|
});
|
|
193
200
|
},
|
|
194
|
-
formatter: (
|
|
195
|
-
const { order:
|
|
201
|
+
formatter: (r) => {
|
|
202
|
+
const { order: e, ...t } = r?.setCountryCodeForOrder || {};
|
|
196
203
|
return {
|
|
197
204
|
...t,
|
|
198
|
-
order:
|
|
205
|
+
order: e
|
|
199
206
|
};
|
|
200
207
|
},
|
|
201
|
-
success: (
|
|
202
|
-
const {
|
|
203
|
-
|
|
208
|
+
success: (r, e) => {
|
|
209
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
210
|
+
o(s || {});
|
|
204
211
|
},
|
|
205
212
|
error: () => {
|
|
206
213
|
}
|
|
207
214
|
},
|
|
208
215
|
addInformation: {
|
|
209
|
-
queryFn: async ({ orderId:
|
|
210
|
-
const { storefront:
|
|
211
|
-
return
|
|
212
|
-
|
|
213
|
-
addPhoneNumber:
|
|
216
|
+
queryFn: async ({ orderId: r, billingAddress: e, customer: t, phoneNumber: o, shippingAddress: s }, n) => {
|
|
217
|
+
const { storefront: i } = n || {};
|
|
218
|
+
return i.query(
|
|
219
|
+
B({
|
|
220
|
+
addPhoneNumber: k(o)
|
|
214
221
|
}),
|
|
215
222
|
{
|
|
216
223
|
customerInput: {
|
|
217
|
-
orderId:
|
|
224
|
+
orderId: r,
|
|
218
225
|
customer: t
|
|
219
226
|
},
|
|
220
|
-
...
|
|
227
|
+
...k(o) ? {
|
|
221
228
|
phoneNumberInput: {
|
|
222
|
-
orderId:
|
|
229
|
+
orderId: r,
|
|
223
230
|
phoneNumber: o
|
|
224
231
|
}
|
|
225
232
|
} : {},
|
|
226
233
|
billingAddressInput: {
|
|
227
|
-
orderId:
|
|
228
|
-
address:
|
|
234
|
+
orderId: r,
|
|
235
|
+
address: e
|
|
229
236
|
},
|
|
230
237
|
shippingAddressInput: {
|
|
231
|
-
orderId:
|
|
238
|
+
orderId: r,
|
|
232
239
|
address: s,
|
|
233
240
|
type: "ADDRESS"
|
|
234
241
|
}
|
|
235
242
|
}
|
|
236
243
|
);
|
|
237
244
|
},
|
|
238
|
-
formatter: (
|
|
239
|
-
const { order:
|
|
245
|
+
formatter: (r) => {
|
|
246
|
+
const { order: e, ...t } = r?.addBillingAddressToOrder || {};
|
|
240
247
|
return {
|
|
241
248
|
...t,
|
|
242
|
-
order:
|
|
249
|
+
order: e
|
|
243
250
|
};
|
|
244
251
|
},
|
|
245
|
-
success: (
|
|
246
|
-
const {
|
|
247
|
-
|
|
252
|
+
success: (r, e) => {
|
|
253
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
254
|
+
o(s || {});
|
|
248
255
|
},
|
|
249
256
|
error: () => {
|
|
250
257
|
}
|
|
251
258
|
},
|
|
252
259
|
addNote: {
|
|
253
|
-
queryFn: async ({ orderId:
|
|
260
|
+
queryFn: async ({ orderId: r, note: e }, t) => {
|
|
254
261
|
const { storefront: o } = t || {};
|
|
255
|
-
return o.query(
|
|
262
|
+
return o.query(N, {
|
|
256
263
|
notePayload: {
|
|
257
|
-
orderId:
|
|
258
|
-
note:
|
|
264
|
+
orderId: r,
|
|
265
|
+
note: e
|
|
259
266
|
}
|
|
260
267
|
});
|
|
261
268
|
},
|
|
262
|
-
formatter: (
|
|
263
|
-
const { order:
|
|
269
|
+
formatter: (r) => {
|
|
270
|
+
const { order: e, ...t } = r?.setNoteForOrder || {};
|
|
264
271
|
return {
|
|
265
272
|
...t,
|
|
266
|
-
order:
|
|
273
|
+
order: e
|
|
267
274
|
};
|
|
268
275
|
},
|
|
269
276
|
success: () => {
|
|
@@ -272,89 +279,98 @@ const mr = {
|
|
|
272
279
|
}
|
|
273
280
|
},
|
|
274
281
|
addPaymentMethod: {
|
|
275
|
-
queryFn: async ({ orderId:
|
|
282
|
+
queryFn: async ({ orderId: r, methodId: e, issuerId: t, terminalId: o }, s) => {
|
|
276
283
|
const { storefront: n } = s || {};
|
|
277
|
-
return n.query(
|
|
284
|
+
return n.query(x, {
|
|
278
285
|
paymentMethodPayload: {
|
|
279
|
-
orderId:
|
|
280
|
-
methodId:
|
|
286
|
+
orderId: r,
|
|
287
|
+
methodId: e,
|
|
281
288
|
issuerId: t || "",
|
|
282
289
|
terminalId: o || ""
|
|
283
290
|
}
|
|
284
291
|
});
|
|
285
292
|
},
|
|
286
|
-
formatter: (
|
|
287
|
-
const { order:
|
|
293
|
+
formatter: (r) => {
|
|
294
|
+
const { order: e, ...t } = r?.addPaymentMethodToOrder || {};
|
|
288
295
|
return {
|
|
289
296
|
...t,
|
|
290
|
-
order:
|
|
297
|
+
order: e
|
|
291
298
|
};
|
|
292
299
|
},
|
|
293
|
-
success: (
|
|
294
|
-
const {
|
|
295
|
-
|
|
300
|
+
success: (r, e) => {
|
|
301
|
+
const { createSummary: t, setSummary: o, track: s } = e || {}, { order: n, ...i } = r || {}, d = t(r.order || {});
|
|
302
|
+
o(d || {}), s("addPaymentInfo", {
|
|
303
|
+
...i,
|
|
304
|
+
...n
|
|
305
|
+
});
|
|
296
306
|
},
|
|
297
307
|
error: () => {
|
|
298
308
|
}
|
|
299
309
|
},
|
|
300
310
|
addPickupPoint: {
|
|
301
|
-
queryFn: async ({ orderId:
|
|
311
|
+
queryFn: async ({ orderId: r, pickupPointId: e }, t) => {
|
|
302
312
|
const { storefront: o } = t || {};
|
|
303
|
-
return o.query(
|
|
313
|
+
return o.query(G, {
|
|
304
314
|
pickupPointPayload: {
|
|
305
|
-
orderId:
|
|
306
|
-
spid:
|
|
315
|
+
orderId: r,
|
|
316
|
+
spid: e
|
|
307
317
|
}
|
|
308
318
|
});
|
|
309
319
|
},
|
|
310
|
-
formatter: (
|
|
311
|
-
const { order:
|
|
320
|
+
formatter: (r) => {
|
|
321
|
+
const { order: e, ...t } = r?.addPickUpPointToOrder || {};
|
|
312
322
|
return {
|
|
313
323
|
...t,
|
|
314
|
-
order:
|
|
324
|
+
order: e
|
|
315
325
|
};
|
|
316
326
|
},
|
|
317
|
-
success: (
|
|
318
|
-
const {
|
|
319
|
-
|
|
327
|
+
success: (r, e) => {
|
|
328
|
+
const { createSummary: t, setSummary: o, track: s } = e || {}, { order: n, ...i } = r || {}, d = t(r.order || {});
|
|
329
|
+
o(d || {}), s("addShippingInfo", {
|
|
330
|
+
...i,
|
|
331
|
+
...n
|
|
332
|
+
});
|
|
320
333
|
},
|
|
321
334
|
error: () => {
|
|
322
335
|
}
|
|
323
336
|
},
|
|
324
337
|
addShippingMethod: {
|
|
325
|
-
queryFn: async ({ orderId:
|
|
338
|
+
queryFn: async ({ orderId: r, methodId: e }, t) => {
|
|
326
339
|
const { storefront: o } = t || {};
|
|
327
|
-
return o.query(
|
|
340
|
+
return o.query(U, {
|
|
328
341
|
shippingMethodPayload: {
|
|
329
|
-
orderId:
|
|
330
|
-
methodId:
|
|
342
|
+
orderId: r,
|
|
343
|
+
methodId: e
|
|
331
344
|
}
|
|
332
345
|
});
|
|
333
346
|
},
|
|
334
|
-
formatter: (
|
|
335
|
-
const { order:
|
|
347
|
+
formatter: (r) => {
|
|
348
|
+
const { order: e, ...t } = r?.addShippingMethodToOrder || {};
|
|
336
349
|
return {
|
|
337
350
|
...t,
|
|
338
|
-
order:
|
|
351
|
+
order: e
|
|
339
352
|
};
|
|
340
353
|
},
|
|
341
|
-
success: (
|
|
342
|
-
const {
|
|
343
|
-
|
|
354
|
+
success: (r, e) => {
|
|
355
|
+
const { createSummary: t, setSummary: o, track: s } = e || {}, { order: n, ...i } = r || {}, d = t(r.order || {});
|
|
356
|
+
o(d || {}), s("addShippingInfo", {
|
|
357
|
+
...i,
|
|
358
|
+
...n
|
|
359
|
+
});
|
|
344
360
|
},
|
|
345
361
|
error: () => {
|
|
346
362
|
}
|
|
347
363
|
},
|
|
348
364
|
checkout: {
|
|
349
|
-
queryFn: async ({ id:
|
|
350
|
-
const { storefront: t } =
|
|
351
|
-
return t.query(
|
|
365
|
+
queryFn: async ({ id: r }, e) => {
|
|
366
|
+
const { storefront: t } = e || {};
|
|
367
|
+
return t.query(J, { id: r });
|
|
352
368
|
},
|
|
353
|
-
formatter: (
|
|
354
|
-
const { order:
|
|
369
|
+
formatter: (r) => {
|
|
370
|
+
const { order: e, ...t } = r || {};
|
|
355
371
|
return {
|
|
356
372
|
...t,
|
|
357
|
-
order:
|
|
373
|
+
order: e
|
|
358
374
|
};
|
|
359
375
|
},
|
|
360
376
|
success: () => {
|
|
@@ -363,15 +379,15 @@ const mr = {
|
|
|
363
379
|
}
|
|
364
380
|
},
|
|
365
381
|
getPaymentMethods: {
|
|
366
|
-
queryFn: async ({ id:
|
|
367
|
-
const { storefront: t } =
|
|
368
|
-
return t.query(
|
|
382
|
+
queryFn: async ({ id: r }, e) => {
|
|
383
|
+
const { storefront: t } = e || {};
|
|
384
|
+
return t.query(V, { id: r });
|
|
369
385
|
},
|
|
370
|
-
formatter: (
|
|
371
|
-
const { order:
|
|
386
|
+
formatter: (r) => {
|
|
387
|
+
const { order: e, ...t } = r || {}, o = e?.billing?.payment?.method || null, s = e?.options?.payment?.methods || [], n = e?.payments || [];
|
|
372
388
|
return {
|
|
373
389
|
...t,
|
|
374
|
-
order:
|
|
390
|
+
order: e,
|
|
375
391
|
currentPaymentMethod: o,
|
|
376
392
|
paymentMethods: s,
|
|
377
393
|
payments: n
|
|
@@ -383,16 +399,16 @@ const mr = {
|
|
|
383
399
|
}
|
|
384
400
|
},
|
|
385
401
|
getPickupPoints: {
|
|
386
|
-
queryFn: async ({ id:
|
|
402
|
+
queryFn: async ({ id: r, countryCode: e, postalCode: t }, o) => {
|
|
387
403
|
const { storefront: s } = o || {};
|
|
388
|
-
return s.query(
|
|
389
|
-
id:
|
|
390
|
-
countryCode:
|
|
404
|
+
return s.query(H, {
|
|
405
|
+
id: r,
|
|
406
|
+
countryCode: e,
|
|
391
407
|
postalCode: t
|
|
392
408
|
});
|
|
393
409
|
},
|
|
394
|
-
formatter: (
|
|
395
|
-
const { order:
|
|
410
|
+
formatter: (r) => {
|
|
411
|
+
const { order: e, ...t } = r || {}, o = e?.delivery?.method?.pickupPoints || [];
|
|
396
412
|
return {
|
|
397
413
|
...t,
|
|
398
414
|
pickupPoints: o
|
|
@@ -404,34 +420,34 @@ const mr = {
|
|
|
404
420
|
}
|
|
405
421
|
},
|
|
406
422
|
getReviewCheckoutData: {
|
|
407
|
-
queryFn: async ({ id:
|
|
408
|
-
const { storefront: t } =
|
|
409
|
-
return t.query(
|
|
410
|
-
},
|
|
411
|
-
formatter: (
|
|
412
|
-
const { order:
|
|
413
|
-
address:
|
|
414
|
-
method:
|
|
415
|
-
pickupPoint:
|
|
416
|
-
} =
|
|
423
|
+
queryFn: async ({ id: r }, e) => {
|
|
424
|
+
const { storefront: t } = e || {};
|
|
425
|
+
return t.query(j, { id: r });
|
|
426
|
+
},
|
|
427
|
+
formatter: (r) => {
|
|
428
|
+
const { order: e, ...t } = r || {}, { agreements: o = [] } = e?.acceptance || {}, s = e?.checkout?.agreement || null, { contact: n, notes: i = "", organisation: d } = e?.customer || {}, { address: O, payment: h } = e?.billing || {}, { issuer: g, method: S } = h || {}, q = e?.phoneNumber || null, {
|
|
429
|
+
address: l,
|
|
430
|
+
method: c,
|
|
431
|
+
pickupPoint: m
|
|
432
|
+
} = e?.delivery || {}, p = e?.currency, y = e?.items || [];
|
|
417
433
|
return {
|
|
418
434
|
...t,
|
|
419
|
-
order:
|
|
435
|
+
order: e,
|
|
420
436
|
agreements: o,
|
|
421
437
|
agreementTemplate: s,
|
|
422
438
|
amountCovered: 0,
|
|
423
|
-
billingAddress:
|
|
439
|
+
billingAddress: O,
|
|
424
440
|
contact: n,
|
|
425
|
-
currency:
|
|
441
|
+
currency: p,
|
|
426
442
|
issuer: g,
|
|
427
|
-
items:
|
|
428
|
-
notes:
|
|
429
|
-
organisation:
|
|
430
|
-
paymentMethod:
|
|
431
|
-
phoneNumber:
|
|
432
|
-
pickupPoint:
|
|
433
|
-
shippingAddress:
|
|
434
|
-
shippingMethod:
|
|
443
|
+
items: y,
|
|
444
|
+
notes: i,
|
|
445
|
+
organisation: d,
|
|
446
|
+
paymentMethod: S,
|
|
447
|
+
phoneNumber: q,
|
|
448
|
+
pickupPoint: m,
|
|
449
|
+
shippingAddress: l,
|
|
450
|
+
shippingMethod: c
|
|
435
451
|
};
|
|
436
452
|
},
|
|
437
453
|
success: () => {
|
|
@@ -440,19 +456,19 @@ const mr = {
|
|
|
440
456
|
}
|
|
441
457
|
},
|
|
442
458
|
getShippingMethods: {
|
|
443
|
-
queryFn: async ({ id:
|
|
459
|
+
queryFn: async ({ id: r, countryCode: e, postalCode: t }, o) => {
|
|
444
460
|
const { storefront: s } = o || {};
|
|
445
|
-
return s.query(
|
|
446
|
-
id:
|
|
447
|
-
countryCode:
|
|
461
|
+
return s.query(z, {
|
|
462
|
+
id: r,
|
|
463
|
+
countryCode: e,
|
|
448
464
|
postalCode: t
|
|
449
465
|
});
|
|
450
466
|
},
|
|
451
|
-
formatter: (
|
|
452
|
-
const { order:
|
|
467
|
+
formatter: (r) => {
|
|
468
|
+
const { order: e, ...t } = r || {}, o = e?.delivery?.method || null, s = e?.options?.shipping?.methods || [];
|
|
453
469
|
return {
|
|
454
470
|
...t,
|
|
455
|
-
order:
|
|
471
|
+
order: e,
|
|
456
472
|
currentShippingMethod: o,
|
|
457
473
|
shippingMethods: s
|
|
458
474
|
};
|
|
@@ -463,27 +479,27 @@ const mr = {
|
|
|
463
479
|
}
|
|
464
480
|
},
|
|
465
481
|
setAgreementTemplate: {
|
|
466
|
-
queryFn: async ({ orderId:
|
|
482
|
+
queryFn: async ({ orderId: r, agreementId: e }, t) => {
|
|
467
483
|
const { storefront: o } = t || {};
|
|
468
|
-
return o.query(
|
|
469
|
-
input: { orderId:
|
|
484
|
+
return o.query(K, {
|
|
485
|
+
input: { orderId: r, agreementId: e }
|
|
470
486
|
});
|
|
471
487
|
},
|
|
472
|
-
formatter: (
|
|
473
|
-
const { order:
|
|
488
|
+
formatter: (r) => {
|
|
489
|
+
const { order: e, ...t } = r?.setAgreementTemplateForOrder || {};
|
|
474
490
|
return {
|
|
475
491
|
...t,
|
|
476
|
-
order:
|
|
492
|
+
order: e
|
|
477
493
|
};
|
|
478
494
|
},
|
|
479
|
-
success: (
|
|
480
|
-
const {
|
|
481
|
-
|
|
495
|
+
success: (r, e) => {
|
|
496
|
+
const { createSummary: t, setSummary: o } = e || {}, s = t(r.order || {});
|
|
497
|
+
o(s || {});
|
|
482
498
|
},
|
|
483
499
|
error: () => {
|
|
484
500
|
}
|
|
485
501
|
}
|
|
486
502
|
};
|
|
487
503
|
export {
|
|
488
|
-
|
|
504
|
+
pe as orderOperations
|
|
489
505
|
};
|