@zonos/elements 1.3.218 → 1.3.220
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/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-c54d05ce.js → cart-9a9ae4b9.js} +90 -47
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/index.cjs.js +19 -9
- package/dist/cjs/isCollectMobileTablet-7a9413e3.js +175 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-0169b27d.js +738 -0
- package/dist/cjs/{paypal-d36b5dd1.js → paypal-9ee374a0.js} +12 -8
- package/dist/cjs/placeTestOrder-0dfff170.js +93 -0
- package/dist/cjs/{localization-ab7e1902.js → translationStore-0c67178f.js} +1023 -734
- package/dist/cjs/zonos-address_11.cjs.entry.js +116 -74
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +70 -1292
- package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +811 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +23 -5
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +90 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +405 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +71 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +160 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +51 -0
- package/dist/collection/components/store/translationStore/strings.base.js +51 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +51 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +51 -0
- package/dist/collection/components/store/translationStore/strings.french.js +51 -0
- package/dist/collection/components/store/translationStore/strings.german.js +51 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +51 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +51 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +51 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +51 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +51 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +51 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +51 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +29 -4
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +9 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +113 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-bb0ee971.js → cart-b2dd578c.js} +68 -27
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/index.js +19 -9
- package/dist/esm/isCollectMobileTablet-7f9a5e2b.js +168 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-d7125e4e.js +719 -0
- package/dist/esm/{paypal-bd4520eb.js → paypal-555bbf1e.js} +7 -4
- package/dist/esm/placeTestOrder-2d67c1a9.js +90 -0
- package/dist/esm/{localization-d8326254.js → translationStore-13502f49.js} +1023 -718
- package/dist/esm/zonos-address_11.entry.js +85 -43
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +20 -1240
- package/dist/esm/zonos-checkout.entry.js +6 -29
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +802 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +84 -28
- package/dist/esm/zonos-country-flag.entry.js +2 -1
- package/dist/esm/zonos-country-select_4.entry.js +11 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +23 -5
- package/dist/esm/zonos-hello-dialog.entry.js +6 -5
- package/dist/esm/zonos-hello.entry.js +2 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +6 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-b2dd578c.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-7f9a5e2b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-d7125e4e.js +1 -0
- package/dist/esm-es5/paypal-555bbf1e.js +17 -0
- package/dist/esm-es5/placeTestOrder-2d67c1a9.js +1 -0
- package/dist/esm-es5/translationStore-13502f49.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +470 -2
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +50 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +51 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +51 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +3 -1
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +616 -5
- package/dist/types/types/generated/graphql.internal.types.ts +626 -6
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-02667a58.entry.js} +1 -1
- package/dist/zonos-elements/p-031d646e.system.js +1 -0
- package/dist/zonos-elements/p-0e07e1d6.entry.js +1 -0
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-126087a2.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-14f9bc8c.entry.js} +1 -1
- package/dist/zonos-elements/p-27d9abab.js +1 -0
- package/dist/zonos-elements/p-2813d72e.system.js +1 -0
- package/dist/zonos-elements/p-295d9c07.system.entry.js +1 -0
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/p-2a6c964d.js +1 -0
- package/dist/zonos-elements/p-2b3c7c77.system.entry.js +1 -0
- package/dist/zonos-elements/p-2b8897d1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-30432622.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3462e9e4.system.entry.js +1 -0
- package/dist/zonos-elements/p-372c2fc5.entry.js +1 -0
- package/dist/zonos-elements/p-3c1b1be1.system.entry.js +1 -0
- package/dist/zonos-elements/p-40a4266f.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-421dfb66.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-4f8563ad.system.entry.js} +1 -1
- package/dist/zonos-elements/p-52d35358.system.entry.js +1 -0
- package/dist/zonos-elements/p-567f7de7.entry.js +1 -0
- package/dist/zonos-elements/p-5d9410da.entry.js +1 -0
- package/dist/zonos-elements/p-637b22ee.system.entry.js +1 -0
- package/dist/zonos-elements/p-63a42823.entry.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-6b3a0874.entry.js +1 -0
- package/dist/zonos-elements/p-73c1e91f.js +1 -0
- package/dist/zonos-elements/p-759ef3ca.entry.js +1 -0
- package/dist/zonos-elements/p-79d8c3f3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-7c4e7651.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-7d2d2c94.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-7e5bd9af.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7ecbb2cb.entry.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-82e88a33.system.js +1 -0
- package/dist/zonos-elements/p-849b47aa.entry.js +1 -0
- package/dist/zonos-elements/p-8dd47520.system.entry.js +1 -0
- package/dist/zonos-elements/p-932600b7.js +1 -0
- package/dist/zonos-elements/p-960e0ab1.system.entry.js +1 -0
- package/dist/zonos-elements/p-9c5b8239.system.js +1 -0
- package/dist/zonos-elements/{p-d55aec11.system.entry.js → p-9fdd3264.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a08a005d.entry.js +1 -0
- package/dist/zonos-elements/p-a10de7fb.entry.js +1 -0
- package/dist/zonos-elements/p-a49b5e7f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-a5b0a636.entry.js} +1 -1
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-a77ed1b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-a800965d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/p-b3d5bcf9.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-b669050d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b9e9b82f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-ba18c5f5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bbf48b31.entry.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-c4b3c878.entry.js} +1 -1
- package/dist/zonos-elements/p-c7b57886.js +17 -0
- package/dist/zonos-elements/p-c803753e.entry.js +1 -0
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-cbb01de9.entry.js} +1 -1
- package/dist/zonos-elements/p-ce15d62d.system.js +1 -0
- package/dist/zonos-elements/p-d291e964.system.entry.js +1 -0
- package/dist/zonos-elements/p-d3485a03.system.js +1 -0
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-de626806.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e5388438.system.entry.js +1 -0
- package/dist/zonos-elements/p-e77b6e42.entry.js +1 -0
- package/dist/zonos-elements/p-ea8aff21.system.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-eb6a35ce.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-ee6f8c02.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-f4fa8720.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-fa90adb8.entry.js} +1 -1
- package/dist/zonos-elements/p-fe7e2dc4.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-bb0ee971.js +0 -1
- package/dist/esm-es5/localization-d8326254.js +0 -1
- package/dist/esm-es5/paypal-bd4520eb.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0631d2b9.js +0 -1
- package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
- package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
- package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
- package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
- package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
- package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
- package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-674981ad.system.js +0 -1
- package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
- package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
- package/dist/zonos-elements/p-795d223d.entry.js +0 -1
- package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
- package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
- package/dist/zonos-elements/p-88f7256d.js +0 -1
- package/dist/zonos-elements/p-8b083884.entry.js +0 -1
- package/dist/zonos-elements/p-a449940d.entry.js +0 -1
- package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
- package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
- package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
- package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef75da6f.js +0 -17
- package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
- package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
|
@@ -3,7 +3,15 @@ export const accountHolderType = {
|
|
|
3
3
|
Individual: 'INDIVIDUAL',
|
|
4
4
|
};
|
|
5
5
|
export const accountingFeeType = {
|
|
6
|
+
AdditionalTariffLines: 'ADDITIONAL_TARIFF_LINES',
|
|
7
|
+
Advancement: 'ADVANCEMENT',
|
|
8
|
+
BrokerageFee: 'BROKERAGE_FEE',
|
|
6
9
|
BugFix: 'BUG_FIX',
|
|
10
|
+
CarrierBillShipping: 'CARRIER_BILL_SHIPPING',
|
|
11
|
+
Country: 'COUNTRY',
|
|
12
|
+
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
13
|
+
Duty: 'DUTY',
|
|
14
|
+
DutyTax: 'DUTY_TAX',
|
|
7
15
|
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
8
16
|
ExistingConnectAdjustmentCredits: 'EXISTING_CONNECT_ADJUSTMENT_CREDITS',
|
|
9
17
|
ExistingCreditNotes: 'EXISTING_CREDIT_NOTES',
|
|
@@ -17,6 +25,8 @@ export const accountingFeeType = {
|
|
|
17
25
|
PaypalOrder: 'PAYPAL_ORDER',
|
|
18
26
|
PaypalRefund: 'PAYPAL_REFUND',
|
|
19
27
|
Shipping: 'SHIPPING',
|
|
28
|
+
StorageFee: 'STORAGE_FEE',
|
|
29
|
+
Tax: 'TAX',
|
|
20
30
|
Transaction: 'TRANSACTION',
|
|
21
31
|
};
|
|
22
32
|
export const additionalVerificationStatus = {
|
|
@@ -285,6 +295,10 @@ export const cartAdjustmentType = {
|
|
|
285
295
|
PromoCode: 'PROMO_CODE',
|
|
286
296
|
Shipping: 'SHIPPING',
|
|
287
297
|
};
|
|
298
|
+
export const cartType = {
|
|
299
|
+
Checkout: 'CHECKOUT',
|
|
300
|
+
Collect: 'COLLECT',
|
|
301
|
+
};
|
|
288
302
|
export const cashFlowTablesEnumInput = {
|
|
289
303
|
Bill: 'BILL',
|
|
290
304
|
Deposit: 'DEPOSIT',
|
|
@@ -339,6 +353,10 @@ export const checkoutSessionPartyReferenceType = {
|
|
|
339
353
|
Destination: 'DESTINATION',
|
|
340
354
|
Payor: 'PAYOR',
|
|
341
355
|
};
|
|
356
|
+
export const checkoutSessionType = {
|
|
357
|
+
Checkout: 'CHECKOUT',
|
|
358
|
+
Collect: 'COLLECT',
|
|
359
|
+
};
|
|
342
360
|
export const checkoutStatus = {
|
|
343
361
|
Disabled: 'DISABLED',
|
|
344
362
|
Enabled: 'ENABLED',
|
|
@@ -1284,12 +1302,14 @@ export const emailTemplateType = {
|
|
|
1284
1302
|
AbandonedCart: 'ABANDONED_CART',
|
|
1285
1303
|
AccountOrderReceipt: 'ACCOUNT_ORDER_RECEIPT',
|
|
1286
1304
|
CatalogExport: 'CATALOG_EXPORT',
|
|
1305
|
+
CheckoutCollect: 'CHECKOUT_COLLECT',
|
|
1287
1306
|
ClassificationExport: 'CLASSIFICATION_EXPORT',
|
|
1288
1307
|
Custom: 'CUSTOM',
|
|
1289
1308
|
InclusivePriceExport: 'INCLUSIVE_PRICE_EXPORT',
|
|
1290
1309
|
ManualClassificationExport: 'MANUAL_CLASSIFICATION_EXPORT',
|
|
1291
1310
|
MerchantOrderConfirmation: 'MERCHANT_ORDER_CONFIRMATION',
|
|
1292
1311
|
OrderCanceled: 'ORDER_CANCELED',
|
|
1312
|
+
OrderCollectConfirmation: 'ORDER_COLLECT_CONFIRMATION',
|
|
1293
1313
|
OrderConfirmation: 'ORDER_CONFIRMATION',
|
|
1294
1314
|
OrderReceipt: 'ORDER_RECEIPT',
|
|
1295
1315
|
OrderShipped: 'ORDER_SHIPPED',
|
|
@@ -1487,6 +1507,10 @@ export const inclusivePriceCatalogValidationJobComplianceStatus = {
|
|
|
1487
1507
|
NonCompliant: 'NON_COMPLIANT',
|
|
1488
1508
|
Pending: 'PENDING',
|
|
1489
1509
|
};
|
|
1510
|
+
export const inclusivePriceConfigurationStatus = {
|
|
1511
|
+
Disabled: 'DISABLED',
|
|
1512
|
+
Enabled: 'ENABLED',
|
|
1513
|
+
};
|
|
1490
1514
|
export const inclusivePriceExportJobStatus = {
|
|
1491
1515
|
Completed: 'COMPLETED',
|
|
1492
1516
|
Error: 'ERROR',
|
|
@@ -1805,6 +1829,8 @@ export const landedCostBillingRuleDetailCategoryIdCreateType = {
|
|
|
1805
1829
|
CheckoutMerchantProcessing: 'CHECKOUT_MERCHANT_PROCESSING',
|
|
1806
1830
|
CheckoutShippingIglobal: 'CHECKOUT_SHIPPING_IGLOBAL',
|
|
1807
1831
|
CheckoutTransactionPercent: 'CHECKOUT_TRANSACTION_PERCENT',
|
|
1832
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
1833
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
1808
1834
|
GuaranteeOrder: 'GUARANTEE_ORDER',
|
|
1809
1835
|
ShopifyGuaranteeOrder: 'SHOPIFY_GUARANTEE_ORDER',
|
|
1810
1836
|
ShopifyGuaranteeOrderLegacy: 'SHOPIFY_GUARANTEE_ORDER_LEGACY',
|
|
@@ -1831,6 +1857,8 @@ export const landedCostFeeType = {
|
|
|
1831
1857
|
BrokerageFee: 'BROKERAGE_FEE',
|
|
1832
1858
|
Buffer: 'BUFFER',
|
|
1833
1859
|
Cod: 'COD',
|
|
1860
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
1861
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
1834
1862
|
Country: 'COUNTRY',
|
|
1835
1863
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
1836
1864
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
@@ -1855,6 +1883,7 @@ export const landedCostFeeType = {
|
|
|
1855
1883
|
ZonosTransaction: 'ZONOS_TRANSACTION',
|
|
1856
1884
|
};
|
|
1857
1885
|
export const landedCostGuaranteeCode = {
|
|
1886
|
+
CollectRemittance: 'COLLECT_REMITTANCE',
|
|
1858
1887
|
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1859
1888
|
NotApplicable: 'NOT_APPLICABLE',
|
|
1860
1889
|
PostalDdp: 'POSTAL_DDP',
|
|
@@ -1879,6 +1908,7 @@ export const landedCostQuoteType = {
|
|
|
1879
1908
|
Api: 'API',
|
|
1880
1909
|
Auditing: 'AUDITING',
|
|
1881
1910
|
Checkout: 'CHECKOUT',
|
|
1911
|
+
Collect: 'COLLECT',
|
|
1882
1912
|
Hello: 'HELLO',
|
|
1883
1913
|
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1884
1914
|
};
|
|
@@ -2152,6 +2182,11 @@ export const orderTransactionBillingMethod = {
|
|
|
2152
2182
|
BillingDgs: 'BILLING_DGS',
|
|
2153
2183
|
Legacy: 'LEGACY',
|
|
2154
2184
|
};
|
|
2185
|
+
export const orderType = {
|
|
2186
|
+
Api: 'API',
|
|
2187
|
+
Checkout: 'CHECKOUT',
|
|
2188
|
+
Collect: 'COLLECT',
|
|
2189
|
+
};
|
|
2155
2190
|
export const organizationBusinessUnit = {
|
|
2156
2191
|
Ecommerce: 'ECOMMERCE',
|
|
2157
2192
|
SupplyChain: 'SUPPLY_CHAIN',
|
|
@@ -2533,6 +2568,8 @@ export const storeFeeRuleDetailCategoryIdCreateType = {
|
|
|
2533
2568
|
CheckoutGuaranteeOrderLegacy: 'CHECKOUT_GUARANTEE_ORDER_LEGACY',
|
|
2534
2569
|
CheckoutGuaranteePercent: 'CHECKOUT_GUARANTEE_PERCENT',
|
|
2535
2570
|
Cod: 'COD',
|
|
2571
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
2572
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
2536
2573
|
Country: 'COUNTRY',
|
|
2537
2574
|
CrossDockBuffer: 'CROSS_DOCK_BUFFER',
|
|
2538
2575
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
@@ -2721,6 +2758,60 @@ export const unreconciledShipmentStatus = {
|
|
|
2721
2758
|
ChargeApprovedMerchant: 'CHARGE_APPROVED_MERCHANT',
|
|
2722
2759
|
DisputeMerchant: 'DISPUTE_MERCHANT',
|
|
2723
2760
|
};
|
|
2761
|
+
export const upsAdminFeeRateType = {
|
|
2762
|
+
CountrySpecific: 'COUNTRY_SPECIFIC',
|
|
2763
|
+
RestOfWorld: 'REST_OF_WORLD',
|
|
2764
|
+
};
|
|
2765
|
+
export const upsAdminFeeServiceLevelType = {
|
|
2766
|
+
Economy: 'ECONOMY',
|
|
2767
|
+
Standard: 'STANDARD',
|
|
2768
|
+
Worldwide: 'WORLDWIDE',
|
|
2769
|
+
};
|
|
2770
|
+
export const upsBillingCountryCode = {
|
|
2771
|
+
Ar: 'AR',
|
|
2772
|
+
At: 'AT',
|
|
2773
|
+
Au: 'AU',
|
|
2774
|
+
Be: 'BE',
|
|
2775
|
+
Br: 'BR',
|
|
2776
|
+
Ca: 'CA',
|
|
2777
|
+
Ch: 'CH',
|
|
2778
|
+
Cl: 'CL',
|
|
2779
|
+
Cn: 'CN',
|
|
2780
|
+
Co: 'CO',
|
|
2781
|
+
Cr: 'CR',
|
|
2782
|
+
Cz: 'CZ',
|
|
2783
|
+
De: 'DE',
|
|
2784
|
+
Dk: 'DK',
|
|
2785
|
+
Do: 'DO',
|
|
2786
|
+
Es: 'ES',
|
|
2787
|
+
Fi: 'FI',
|
|
2788
|
+
Fr: 'FR',
|
|
2789
|
+
Gb: 'GB',
|
|
2790
|
+
Hk: 'HK',
|
|
2791
|
+
Hu: 'HU',
|
|
2792
|
+
Id: 'ID',
|
|
2793
|
+
Ie: 'IE',
|
|
2794
|
+
In: 'IN',
|
|
2795
|
+
It: 'IT',
|
|
2796
|
+
Jp: 'JP',
|
|
2797
|
+
Kr: 'KR',
|
|
2798
|
+
Lu: 'LU',
|
|
2799
|
+
Mo: 'MO',
|
|
2800
|
+
Mx: 'MX',
|
|
2801
|
+
My: 'MY',
|
|
2802
|
+
Nl: 'NL',
|
|
2803
|
+
No: 'NO',
|
|
2804
|
+
Ph: 'PH',
|
|
2805
|
+
Pl: 'PL',
|
|
2806
|
+
Pr: 'PR',
|
|
2807
|
+
Pt: 'PT',
|
|
2808
|
+
Se: 'SE',
|
|
2809
|
+
Sg: 'SG',
|
|
2810
|
+
Th: 'TH',
|
|
2811
|
+
Tw: 'TW',
|
|
2812
|
+
Us: 'US',
|
|
2813
|
+
Vn: 'VN',
|
|
2814
|
+
};
|
|
2724
2815
|
export const usBankAccountType = {
|
|
2725
2816
|
Checking: 'CHECKING',
|
|
2726
2817
|
Savings: 'SAVINGS',
|
|
@@ -2800,6 +2891,7 @@ export const webhookStatus = {
|
|
|
2800
2891
|
Enabled: 'ENABLED',
|
|
2801
2892
|
};
|
|
2802
2893
|
export const webhookType = {
|
|
2894
|
+
InclusivePriceConfigurationChanged: 'INCLUSIVE_PRICE_CONFIGURATION_CHANGED',
|
|
2803
2895
|
InclusivePriceSyncReady: 'INCLUSIVE_PRICE_SYNC_READY',
|
|
2804
2896
|
InventoryCheck: 'INVENTORY_CHECK',
|
|
2805
2897
|
InventoryRefund: 'INVENTORY_REFUND',
|
|
@@ -2892,6 +2984,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2892
2984
|
checkoutSettings(variables, requestHeaders) {
|
|
2893
2985
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'checkoutSettings', 'query');
|
|
2894
2986
|
},
|
|
2987
|
+
createCollectQuote(variables, requestHeaders) {
|
|
2988
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createCollectQuote', 'mutation');
|
|
2989
|
+
},
|
|
2895
2990
|
createWebhook(variables, requestHeaders) {
|
|
2896
2991
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createWebhook', 'mutation');
|
|
2897
2992
|
},
|
|
@@ -2904,6 +2999,12 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2904
2999
|
fulfillmentCenter(variables, requestHeaders) {
|
|
2905
3000
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'fulfillmentCenter', 'query');
|
|
2906
3001
|
},
|
|
3002
|
+
getCartForCollectReceipt(variables, requestHeaders) {
|
|
3003
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartForCollectReceipt', 'query');
|
|
3004
|
+
},
|
|
3005
|
+
getCartInfo(variables, requestHeaders) {
|
|
3006
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartInfo', 'query');
|
|
3007
|
+
},
|
|
2907
3008
|
getCartOrganizationInfo(variables, requestHeaders) {
|
|
2908
3009
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartOrganizationInfo', 'query');
|
|
2909
3010
|
},
|
|
@@ -2916,6 +3017,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2916
3017
|
getCheckoutSessionAttributes(variables, requestHeaders) {
|
|
2917
3018
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCheckoutSessionAttributes', 'query');
|
|
2918
3019
|
},
|
|
3020
|
+
getCollectCheckoutSession(variables, requestHeaders) {
|
|
3021
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCollectCheckoutSession', 'query');
|
|
3022
|
+
},
|
|
2919
3023
|
getInclusivePriceSettingByCountry(variables, requestHeaders) {
|
|
2920
3024
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getInclusivePriceSettingByCountry', 'query');
|
|
2921
3025
|
},
|
|
@@ -2925,6 +3029,15 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2925
3029
|
getOrders(variables, requestHeaders) {
|
|
2926
3030
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getOrders', 'query');
|
|
2927
3031
|
},
|
|
3032
|
+
getPartyInfoByLandedCostId(variables, requestHeaders) {
|
|
3033
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getPartyInfoByLandedCostId', 'query');
|
|
3034
|
+
},
|
|
3035
|
+
getReceiptCheckoutSession(variables, requestHeaders) {
|
|
3036
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getReceiptCheckoutSession', 'query');
|
|
3037
|
+
},
|
|
3038
|
+
getReceiptOrder(variables, requestHeaders) {
|
|
3039
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getReceiptOrder', 'query');
|
|
3040
|
+
},
|
|
2928
3041
|
getTaxIdByCountry(variables, requestHeaders) {
|
|
2929
3042
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getTaxIdByCountry', 'query');
|
|
2930
3043
|
},
|
|
@@ -6,6 +6,7 @@ export * from './checkout/api/CheckoutSession';
|
|
|
6
6
|
export * from './checkout/api/CreateParty';
|
|
7
7
|
export * from './checkout/api/legacy/InventoryCheck';
|
|
8
8
|
export * from './checkout/api/NormalizedTempCart';
|
|
9
|
+
export * from './checkout/api/PartyInfo';
|
|
9
10
|
export * from './checkout/api/Paypal';
|
|
10
11
|
export * from './checkout/api/PlaceTestOrder';
|
|
11
12
|
export * from './checkout/api/StoreDiscountEnabled';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map the items from tempCart like how we do it in dgs
|
|
3
|
+
* @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L393
|
|
4
|
+
*/
|
|
5
|
+
const buildCartItemsByTempCart = (tempCartData) => {
|
|
6
|
+
const tempCartItems = tempCartData.items.map(item => ({
|
|
7
|
+
amount: item.amount,
|
|
8
|
+
attributes: item.attributes || [],
|
|
9
|
+
countryOfOrigin: item.countryOfOrigin || undefined,
|
|
10
|
+
currencyCode: item.currencyCode,
|
|
11
|
+
description: item.description || '',
|
|
12
|
+
imageUrl: item.imageUrl || '',
|
|
13
|
+
itemType: item.itemType || 'PHYSICAL_GOOD',
|
|
14
|
+
measurements: item.measurements || [],
|
|
15
|
+
name: item.name || item.description || '',
|
|
16
|
+
productId: item.productId || '',
|
|
17
|
+
quantity: item.quantity || 0,
|
|
18
|
+
sku: item.sku || '',
|
|
19
|
+
})) || [];
|
|
20
|
+
return {
|
|
21
|
+
adjustments: tempCartData.adjustments,
|
|
22
|
+
cartItems: tempCartItems,
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { buildCartItemsByTempCart as b };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-c456b933.js';
|
|
2
|
-
import { s as storageStore, l as localizationStore,
|
|
2
|
+
import { s as storageStore, l as localizationStore, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-d7125e4e.js';
|
|
3
|
+
import { t as translate } from './translationStore-13502f49.js';
|
|
3
4
|
import { l as log, f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, d as allLogs, b as logError, j as jsonParse } from './handleFetch-99218189.js';
|
|
4
5
|
import { i as isDarkColor } from './isDarkColor-1f58b6be.js';
|
|
5
6
|
import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
|
|
@@ -753,15 +754,15 @@ const initStripeElements = async (props) => {
|
|
|
753
754
|
JSON.stringify(stripeStore.stripeElementsOptions);
|
|
754
755
|
if (!stripeStore.stripeElements ||
|
|
755
756
|
!stripeStore.stripeElementsForBillingAddress) {
|
|
757
|
+
// init stripe elements for billing address
|
|
758
|
+
stripeStore.stripeElementsForBillingAddress =
|
|
759
|
+
(_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
|
|
760
|
+
log('Stripe elements for billing address initialized');
|
|
756
761
|
// init stripe elements if it doesn't exist
|
|
757
|
-
stripeStore.stripeElements = (
|
|
762
|
+
stripeStore.stripeElements = (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
|
|
758
763
|
// save stripe elements options for later comparison
|
|
759
764
|
stripeStore.stripeElementsOptions = stripeOptions;
|
|
760
765
|
log('Stripe elements initialized');
|
|
761
|
-
// init stripe elements for billing address
|
|
762
|
-
stripeStore.stripeElementsForBillingAddress =
|
|
763
|
-
(_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
|
|
764
|
-
log('Stripe elements for billing address initialized');
|
|
765
766
|
return;
|
|
766
767
|
}
|
|
767
768
|
if (!isSameOptions) {
|
|
@@ -807,7 +808,7 @@ const checkIsAddressOutdatedForAsyncAddressUpdate = () => {
|
|
|
807
808
|
isTaxIdDirty ||
|
|
808
809
|
isCompanyNameDirty);
|
|
809
810
|
};
|
|
810
|
-
const
|
|
811
|
+
const stripeStoreBuildAddressForPartyCreate = ({ address, firstName, lastName, name, phone, }) => {
|
|
811
812
|
const { firstName: _firstName, lastName: _lastName } = extractName({
|
|
812
813
|
firstName,
|
|
813
814
|
lastName,
|
|
@@ -889,7 +890,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
889
890
|
partiesCreated: false,
|
|
890
891
|
};
|
|
891
892
|
}
|
|
892
|
-
const address =
|
|
893
|
+
const address = stripeStoreBuildAddressForPartyCreate({
|
|
893
894
|
address: stripeStore.stripeAddressEventData.value.address,
|
|
894
895
|
firstName: stripeStore.stripeAddressEventData.value.firstName,
|
|
895
896
|
lastName: stripeStore.stripeAddressEventData.value.lastName,
|
|
@@ -898,7 +899,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
898
899
|
});
|
|
899
900
|
const billingAddress = stripeStore.stripeShippingSameAsBilling
|
|
900
901
|
? address
|
|
901
|
-
:
|
|
902
|
+
: stripeStoreBuildAddressForPartyCreate({
|
|
902
903
|
address: stripeStore.stripeBillingAddressEventData.value.address,
|
|
903
904
|
firstName: stripeStore.stripeBillingAddressEventData.value.firstName,
|
|
904
905
|
lastName: stripeStore.stripeBillingAddressEventData.value.lastName,
|
|
@@ -1208,7 +1209,11 @@ const stripeStoreApplyPromoCode = async () => {
|
|
|
1208
1209
|
if (!cheapestServiceLevel || !matchLandedCost) {
|
|
1209
1210
|
return;
|
|
1210
1211
|
}
|
|
1211
|
-
await cartStoreUpdateSelectedShippingOption(
|
|
1212
|
+
await cartStoreUpdateSelectedShippingOption({
|
|
1213
|
+
applySubtotalsOnly: false,
|
|
1214
|
+
landedCostId: matchLandedCost.landedCostId,
|
|
1215
|
+
selectedShippingOption: cheapestServiceLevel,
|
|
1216
|
+
});
|
|
1212
1217
|
};
|
|
1213
1218
|
const stripeStoreResetPromoCode = () => {
|
|
1214
1219
|
cartStore.promoCode = '';
|
|
@@ -1228,6 +1233,7 @@ const stripeStoreRemovePromoCode = async () => {
|
|
|
1228
1233
|
const stripeStoreMessageBasedOnStatus = (status) => {
|
|
1229
1234
|
let messages = [];
|
|
1230
1235
|
let isError = true;
|
|
1236
|
+
const isCollect = window.Zonos.isCollect;
|
|
1231
1237
|
// Inspect the PaymentIntent `status` to indicate the status of the payment
|
|
1232
1238
|
// to your customer.
|
|
1233
1239
|
//
|
|
@@ -1242,6 +1248,13 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
1242
1248
|
'',
|
|
1243
1249
|
translate("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time."),
|
|
1244
1250
|
];
|
|
1251
|
+
if (isCollect) {
|
|
1252
|
+
messages = [
|
|
1253
|
+
translate('Thank you for submitting your payment. We appreciate your prompt attention.'),
|
|
1254
|
+
'',
|
|
1255
|
+
translate('A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.'),
|
|
1256
|
+
];
|
|
1257
|
+
}
|
|
1245
1258
|
isError = false;
|
|
1246
1259
|
break;
|
|
1247
1260
|
}
|
|
@@ -1257,6 +1270,11 @@ const stripeStoreMessageBasedOnStatus = (status) => {
|
|
|
1257
1270
|
messages = [
|
|
1258
1271
|
translate('Payment failed. Please try another payment method.'),
|
|
1259
1272
|
];
|
|
1273
|
+
if (isCollect) {
|
|
1274
|
+
messages = [
|
|
1275
|
+
translate('Payment failed. Please reload the page and try another payment method.'),
|
|
1276
|
+
];
|
|
1277
|
+
}
|
|
1260
1278
|
break;
|
|
1261
1279
|
}
|
|
1262
1280
|
case 'requires_action': {
|
|
@@ -1369,14 +1387,15 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
|
|
|
1369
1387
|
status,
|
|
1370
1388
|
};
|
|
1371
1389
|
};
|
|
1372
|
-
const stripeStoreConfirmPayment = async () => {
|
|
1390
|
+
const stripeStoreConfirmPayment = async (props) => {
|
|
1373
1391
|
var _a, _b;
|
|
1374
1392
|
const stripePaymentReady = !!((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
1375
1393
|
const stripeElements = stripeStore.stripeElements;
|
|
1376
1394
|
const stripe = stripeStore.stripe;
|
|
1377
1395
|
const stripeClientSecret = stripeStore.clientSecret;
|
|
1378
1396
|
stripeStore.customErrorMessage = null;
|
|
1379
|
-
if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)
|
|
1397
|
+
if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id) &&
|
|
1398
|
+
!(props === null || props === void 0 ? void 0 : props.noLandedCostCheck)) {
|
|
1380
1399
|
throw new Error('Attempted to confirm the payment when no landed cost is found in store');
|
|
1381
1400
|
}
|
|
1382
1401
|
// Check if the checkout session is valid before proceeding
|
|
@@ -1437,6 +1456,7 @@ const getCheckoutSessionBody = () => {
|
|
|
1437
1456
|
cartId: window.Zonos.cartId,
|
|
1438
1457
|
currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
|
|
1439
1458
|
customerAuthenticationToken: cartStore.customerAuthenticationToken || undefined,
|
|
1459
|
+
isCollect: window.Zonos.isCollect,
|
|
1440
1460
|
itemsAmount: total,
|
|
1441
1461
|
metadata: [
|
|
1442
1462
|
{
|
|
@@ -2008,8 +2028,12 @@ const cartStoreGetMethod = (landedCost) => {
|
|
|
2008
2028
|
}
|
|
2009
2029
|
return landedCost.method;
|
|
2010
2030
|
};
|
|
2011
|
-
const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption,
|
|
2031
|
+
const cartStoreUpdateSelectedShippingOption = async ({ applySubtotalsOnly, landedCostId, selectedShippingOption, }) => {
|
|
2012
2032
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2033
|
+
log('Updating selected shipping option', 'info', {
|
|
2034
|
+
landedCostId,
|
|
2035
|
+
selectedShippingOption,
|
|
2036
|
+
});
|
|
2013
2037
|
cartStore.selectedShippingOption = selectedShippingOption;
|
|
2014
2038
|
// update shipping transit info
|
|
2015
2039
|
const transitData = cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);
|
|
@@ -2044,16 +2068,33 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption, lan
|
|
|
2044
2068
|
const isAboveDeminimis = !!((_e = (_d = selectedLandedCost === null || selectedLandedCost === void 0 ? void 0 : selectedLandedCost.landedCost) === null || _d === void 0 ? void 0 : _d.deMinimis) === null || _e === void 0 ? void 0 : _e.find(item => ['DUTY', 'TAX'].includes(item.type) && item.threshold === 'ABOVE'));
|
|
2045
2069
|
cartStore.isSelectedShippingAboveDeminimis = isAboveDeminimis;
|
|
2046
2070
|
cartStore.isSelectedShippingGuarantee = isGuarantee;
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2071
|
+
let updateCalculateStatus = false;
|
|
2072
|
+
/**
|
|
2073
|
+
* For collect, we are trying to mimic the behavior that checkout is currently doing, where there is already a checkout session, we already updated with the landed cost.
|
|
2074
|
+
* But we need to call this function so that we can use all of the information that already in place in cartStore, so to avoid latency issue, we only apply subtotals here.
|
|
2075
|
+
*/
|
|
2076
|
+
if (applySubtotalsOnly) {
|
|
2077
|
+
const subtotals = selectedLandedCost.subtotals;
|
|
2078
|
+
cartStoreApplySubtotals({
|
|
2079
|
+
dutiesTaxesFeesEstimate,
|
|
2080
|
+
method: cartStore.landedCostMethod,
|
|
2081
|
+
subtotals,
|
|
2082
|
+
});
|
|
2083
|
+
log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
2084
|
+
updateCalculateStatus = true;
|
|
2085
|
+
}
|
|
2086
|
+
else {
|
|
2087
|
+
// update session with selected landed cost
|
|
2088
|
+
updateCalculateStatus = await cartStoreReCalculateTotal({
|
|
2089
|
+
adjustmentsAmount: cartStore.adjustmentTotal,
|
|
2090
|
+
billToPartyId: stripeStore.partyBillingId,
|
|
2091
|
+
cartId: window.Zonos.cartId,
|
|
2092
|
+
dutiesTaxesFeesEstimate: dutiesTaxesFeesEstimate,
|
|
2093
|
+
landedCostId: (_f = selectedLandedCost.landedCost) === null || _f === void 0 ? void 0 : _f.id,
|
|
2094
|
+
shipToPartyId: stripeStore.partyShippingId,
|
|
2095
|
+
varianceTestInput: storageStore.enabledVariantTestKeys || [],
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2057
2098
|
// update conditionally render pay in USD button
|
|
2058
2099
|
const firstItem = (_g = cartStore.items.find(Boolean)) === null || _g === void 0 ? void 0 : _g.currencyCode;
|
|
2059
2100
|
// Stripe address event data should be available at this point
|
|
@@ -2095,7 +2136,7 @@ const cartStoreResetCartItems = () => {
|
|
|
2095
2136
|
cartStore.items = cartStore.items.map(item => (Object.assign(Object.assign({}, item), { isRestricted: false })));
|
|
2096
2137
|
cartStore.restrictedItems = [];
|
|
2097
2138
|
};
|
|
2098
|
-
const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
|
|
2139
|
+
const cartStoreUpdateItems = async ({ adjustments, cartItems, landedCostId, shouldInitSessionOnFailure = true, }) => {
|
|
2099
2140
|
var _a;
|
|
2100
2141
|
// Update adjustments and items
|
|
2101
2142
|
cartStore.adjustments = adjustments;
|
|
@@ -2119,9 +2160,9 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
|
|
|
2119
2160
|
currency: currency,
|
|
2120
2161
|
dutiesTaxesFeesEstimate: 0,
|
|
2121
2162
|
itemsAmount: total,
|
|
2163
|
+
landedCostId,
|
|
2122
2164
|
shipToPartyId: stripeStore.partyShippingId,
|
|
2123
|
-
|
|
2124
|
-
shouldInitSessionOnFailure: true,
|
|
2165
|
+
shouldInitSessionOnFailure,
|
|
2125
2166
|
varianceTestInput: storageStore.enabledVariantTestKeys || [],
|
|
2126
2167
|
});
|
|
2127
2168
|
stripeStore.isFetchingSession = false;
|
|
@@ -2175,4 +2216,4 @@ const cartStoreResetTabItems = () => {
|
|
|
2175
2216
|
cartStoreResetSelectedShippingOption();
|
|
2176
2217
|
};
|
|
2177
2218
|
|
|
2178
|
-
export {
|
|
2219
|
+
export { stripeStoreOnChange as A, stripeStoreBuildAddressForPartyCreate as B, cartStoreUpdateSelectedShippingOption as C, cartStoreHasOneEligibleItem as D, stripeStoreApplyPromoCode as E, stripeStoreRemovePromoCode as F, stripeStoreResetPromoCode as G, stripeStoreMessageBasedOnStatus as H, stripeStoreTranslateAddressToLatin as I, extractName as J, cartStoreOnChange as K, stripeStoreAsyncAddressUpdate as L, cartStoreGetShippingTransitInfo as M, cartStoreGetMethod as N, sortServiceLevelOptionsByAmount as O, stripeStoreCleanupDomesticShippingSession as a, stripeStoreSaveDomesticShippingSession as b, stripeStore as c, stripeStoreRetrievePayment as d, cartStore as e, cartStoreUpdateItems as f, cartStoreReset as g, cartStoreResetTabItems as h, initStripeElements as i, cartStoreClearCheckoutInterval as j, stripeStoreInitCheckoutSession as k, stripeStoreGetPaymentIntent as l, cartStoreStartCheckoutInterval as m, getCheckoutSessionBody as n, cartStoreUpdateToErrorState as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStoreUpdateCheckoutSessionBaseCurrency as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, validateCheckoutSession as z };
|