@zonos/elements 1.3.218 → 1.3.219
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-9a2b32e4.js} +90 -47
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/index.cjs.js +19 -9
- package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-b12edb2a.js +738 -0
- package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
- package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
- package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
- package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
- 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} +73 -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 +810 -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 +15 -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-payment/zonos-checkout-payment.js +3 -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 +84 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -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 +68 -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 +157 -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 +48 -0
- package/dist/collection/components/store/translationStore/strings.base.js +48 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
- package/dist/collection/components/store/translationStore/strings.french.js +48 -0
- package/dist/collection/components/store/translationStore/strings.german.js +48 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -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 +15 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -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 +103 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/index.js +19 -9
- package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-8646f526.js +719 -0
- package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
- package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
- package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
- package/dist/esm/zonos-address_11.entry.js +71 -41
- 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} +23 -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 +801 -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 +15 -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-acf4ebf5.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-b72b81c5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8646f526.js +1 -0
- package/dist/esm-es5/paypal-2fa930eb.js +17 -0
- package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
- package/dist/esm-es5/translationStore-c9743292.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 -3
- 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 +49 -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 +48 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -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 +2 -0
- 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 +431 -9
- package/dist/types/types/generated/graphql.internal.types.ts +428 -10
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
- package/dist/zonos-elements/p-07bea979.system.js +1 -0
- package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
- package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
- package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
- package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
- package/dist/zonos-elements/p-2cc031b3.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
- package/dist/zonos-elements/p-485416ec.js +1 -0
- package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
- package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
- package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
- package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
- package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
- package/dist/zonos-elements/p-6761091e.entry.js +1 -0
- package/dist/zonos-elements/p-6761286d.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-69fd1b88.js +1 -0
- package/dist/zonos-elements/p-6dd63754.system.js +1 -0
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
- package/dist/zonos-elements/p-772ac0b7.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-81e23f30.system.js +1 -0
- package/dist/zonos-elements/p-873b698a.entry.js +1 -0
- package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
- package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
- package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
- package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
- package/dist/zonos-elements/p-986ebccc.js +1 -0
- package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
- package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
- package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
- package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
- package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
- package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
- package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
- package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
- package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d63696ac.system.js +17 -0
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
- package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
- 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-d55aec11.system.entry.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,6 +1302,7 @@ 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',
|
|
@@ -1487,6 +1506,10 @@ export const inclusivePriceCatalogValidationJobComplianceStatus = {
|
|
|
1487
1506
|
NonCompliant: 'NON_COMPLIANT',
|
|
1488
1507
|
Pending: 'PENDING',
|
|
1489
1508
|
};
|
|
1509
|
+
export const inclusivePriceConfigurationStatus = {
|
|
1510
|
+
Disabled: 'DISABLED',
|
|
1511
|
+
Enabled: 'ENABLED',
|
|
1512
|
+
};
|
|
1490
1513
|
export const inclusivePriceExportJobStatus = {
|
|
1491
1514
|
Completed: 'COMPLETED',
|
|
1492
1515
|
Error: 'ERROR',
|
|
@@ -1805,6 +1828,8 @@ export const landedCostBillingRuleDetailCategoryIdCreateType = {
|
|
|
1805
1828
|
CheckoutMerchantProcessing: 'CHECKOUT_MERCHANT_PROCESSING',
|
|
1806
1829
|
CheckoutShippingIglobal: 'CHECKOUT_SHIPPING_IGLOBAL',
|
|
1807
1830
|
CheckoutTransactionPercent: 'CHECKOUT_TRANSACTION_PERCENT',
|
|
1831
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
1832
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
1808
1833
|
GuaranteeOrder: 'GUARANTEE_ORDER',
|
|
1809
1834
|
ShopifyGuaranteeOrder: 'SHOPIFY_GUARANTEE_ORDER',
|
|
1810
1835
|
ShopifyGuaranteeOrderLegacy: 'SHOPIFY_GUARANTEE_ORDER_LEGACY',
|
|
@@ -1831,6 +1856,8 @@ export const landedCostFeeType = {
|
|
|
1831
1856
|
BrokerageFee: 'BROKERAGE_FEE',
|
|
1832
1857
|
Buffer: 'BUFFER',
|
|
1833
1858
|
Cod: 'COD',
|
|
1859
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
1860
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
1834
1861
|
Country: 'COUNTRY',
|
|
1835
1862
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
1836
1863
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
@@ -1855,6 +1882,7 @@ export const landedCostFeeType = {
|
|
|
1855
1882
|
ZonosTransaction: 'ZONOS_TRANSACTION',
|
|
1856
1883
|
};
|
|
1857
1884
|
export const landedCostGuaranteeCode = {
|
|
1885
|
+
CollectRemittance: 'COLLECT_REMITTANCE',
|
|
1858
1886
|
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1859
1887
|
NotApplicable: 'NOT_APPLICABLE',
|
|
1860
1888
|
PostalDdp: 'POSTAL_DDP',
|
|
@@ -1879,6 +1907,7 @@ export const landedCostQuoteType = {
|
|
|
1879
1907
|
Api: 'API',
|
|
1880
1908
|
Auditing: 'AUDITING',
|
|
1881
1909
|
Checkout: 'CHECKOUT',
|
|
1910
|
+
Collect: 'COLLECT',
|
|
1882
1911
|
Hello: 'HELLO',
|
|
1883
1912
|
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
1884
1913
|
};
|
|
@@ -2152,6 +2181,11 @@ export const orderTransactionBillingMethod = {
|
|
|
2152
2181
|
BillingDgs: 'BILLING_DGS',
|
|
2153
2182
|
Legacy: 'LEGACY',
|
|
2154
2183
|
};
|
|
2184
|
+
export const orderType = {
|
|
2185
|
+
Api: 'API',
|
|
2186
|
+
Checkout: 'CHECKOUT',
|
|
2187
|
+
Collect: 'COLLECT',
|
|
2188
|
+
};
|
|
2155
2189
|
export const organizationBusinessUnit = {
|
|
2156
2190
|
Ecommerce: 'ECOMMERCE',
|
|
2157
2191
|
SupplyChain: 'SUPPLY_CHAIN',
|
|
@@ -2533,6 +2567,8 @@ export const storeFeeRuleDetailCategoryIdCreateType = {
|
|
|
2533
2567
|
CheckoutGuaranteeOrderLegacy: 'CHECKOUT_GUARANTEE_ORDER_LEGACY',
|
|
2534
2568
|
CheckoutGuaranteePercent: 'CHECKOUT_GUARANTEE_PERCENT',
|
|
2535
2569
|
Cod: 'COD',
|
|
2570
|
+
CollectOrder: 'COLLECT_ORDER',
|
|
2571
|
+
CollectPercent: 'COLLECT_PERCENT',
|
|
2536
2572
|
Country: 'COUNTRY',
|
|
2537
2573
|
CrossDockBuffer: 'CROSS_DOCK_BUFFER',
|
|
2538
2574
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
@@ -2721,6 +2757,60 @@ export const unreconciledShipmentStatus = {
|
|
|
2721
2757
|
ChargeApprovedMerchant: 'CHARGE_APPROVED_MERCHANT',
|
|
2722
2758
|
DisputeMerchant: 'DISPUTE_MERCHANT',
|
|
2723
2759
|
};
|
|
2760
|
+
export const upsAdminFeeRateType = {
|
|
2761
|
+
CountrySpecific: 'COUNTRY_SPECIFIC',
|
|
2762
|
+
RestOfWorld: 'REST_OF_WORLD',
|
|
2763
|
+
};
|
|
2764
|
+
export const upsAdminFeeServiceLevelType = {
|
|
2765
|
+
Economy: 'ECONOMY',
|
|
2766
|
+
Standard: 'STANDARD',
|
|
2767
|
+
Worldwide: 'WORLDWIDE',
|
|
2768
|
+
};
|
|
2769
|
+
export const upsBillingCountryCode = {
|
|
2770
|
+
Ar: 'AR',
|
|
2771
|
+
At: 'AT',
|
|
2772
|
+
Au: 'AU',
|
|
2773
|
+
Be: 'BE',
|
|
2774
|
+
Br: 'BR',
|
|
2775
|
+
Ca: 'CA',
|
|
2776
|
+
Ch: 'CH',
|
|
2777
|
+
Cl: 'CL',
|
|
2778
|
+
Cn: 'CN',
|
|
2779
|
+
Co: 'CO',
|
|
2780
|
+
Cr: 'CR',
|
|
2781
|
+
Cz: 'CZ',
|
|
2782
|
+
De: 'DE',
|
|
2783
|
+
Dk: 'DK',
|
|
2784
|
+
Do: 'DO',
|
|
2785
|
+
Es: 'ES',
|
|
2786
|
+
Fi: 'FI',
|
|
2787
|
+
Fr: 'FR',
|
|
2788
|
+
Gb: 'GB',
|
|
2789
|
+
Hk: 'HK',
|
|
2790
|
+
Hu: 'HU',
|
|
2791
|
+
Id: 'ID',
|
|
2792
|
+
Ie: 'IE',
|
|
2793
|
+
In: 'IN',
|
|
2794
|
+
It: 'IT',
|
|
2795
|
+
Jp: 'JP',
|
|
2796
|
+
Kr: 'KR',
|
|
2797
|
+
Lu: 'LU',
|
|
2798
|
+
Mo: 'MO',
|
|
2799
|
+
Mx: 'MX',
|
|
2800
|
+
My: 'MY',
|
|
2801
|
+
Nl: 'NL',
|
|
2802
|
+
No: 'NO',
|
|
2803
|
+
Ph: 'PH',
|
|
2804
|
+
Pl: 'PL',
|
|
2805
|
+
Pr: 'PR',
|
|
2806
|
+
Pt: 'PT',
|
|
2807
|
+
Se: 'SE',
|
|
2808
|
+
Sg: 'SG',
|
|
2809
|
+
Th: 'TH',
|
|
2810
|
+
Tw: 'TW',
|
|
2811
|
+
Us: 'US',
|
|
2812
|
+
Vn: 'VN',
|
|
2813
|
+
};
|
|
2724
2814
|
export const usBankAccountType = {
|
|
2725
2815
|
Checking: 'CHECKING',
|
|
2726
2816
|
Savings: 'SAVINGS',
|
|
@@ -2800,6 +2890,7 @@ export const webhookStatus = {
|
|
|
2800
2890
|
Enabled: 'ENABLED',
|
|
2801
2891
|
};
|
|
2802
2892
|
export const webhookType = {
|
|
2893
|
+
InclusivePriceConfigurationChanged: 'INCLUSIVE_PRICE_CONFIGURATION_CHANGED',
|
|
2803
2894
|
InclusivePriceSyncReady: 'INCLUSIVE_PRICE_SYNC_READY',
|
|
2804
2895
|
InventoryCheck: 'INVENTORY_CHECK',
|
|
2805
2896
|
InventoryRefund: 'INVENTORY_REFUND',
|
|
@@ -2892,6 +2983,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2892
2983
|
checkoutSettings(variables, requestHeaders) {
|
|
2893
2984
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'checkoutSettings', 'query');
|
|
2894
2985
|
},
|
|
2986
|
+
createCollectQuote(variables, requestHeaders) {
|
|
2987
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createCollectQuote', 'mutation');
|
|
2988
|
+
},
|
|
2895
2989
|
createWebhook(variables, requestHeaders) {
|
|
2896
2990
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createWebhook', 'mutation');
|
|
2897
2991
|
},
|
|
@@ -2904,6 +2998,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2904
2998
|
fulfillmentCenter(variables, requestHeaders) {
|
|
2905
2999
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'fulfillmentCenter', 'query');
|
|
2906
3000
|
},
|
|
3001
|
+
getCartInfo(variables, requestHeaders) {
|
|
3002
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartInfo', 'query');
|
|
3003
|
+
},
|
|
2907
3004
|
getCartOrganizationInfo(variables, requestHeaders) {
|
|
2908
3005
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCartOrganizationInfo', 'query');
|
|
2909
3006
|
},
|
|
@@ -2916,6 +3013,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2916
3013
|
getCheckoutSessionAttributes(variables, requestHeaders) {
|
|
2917
3014
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCheckoutSessionAttributes', 'query');
|
|
2918
3015
|
},
|
|
3016
|
+
getCollectCheckoutSession(variables, requestHeaders) {
|
|
3017
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCollectCheckoutSession', 'query');
|
|
3018
|
+
},
|
|
2919
3019
|
getInclusivePriceSettingByCountry(variables, requestHeaders) {
|
|
2920
3020
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getInclusivePriceSettingByCountry', 'query');
|
|
2921
3021
|
},
|
|
@@ -2925,6 +3025,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2925
3025
|
getOrders(variables, requestHeaders) {
|
|
2926
3026
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getOrders', 'query');
|
|
2927
3027
|
},
|
|
3028
|
+
getPartyInfoByLandedCostId(variables, requestHeaders) {
|
|
3029
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getPartyInfoByLandedCostId', 'query');
|
|
3030
|
+
},
|
|
2928
3031
|
getTaxIdByCountry(variables, requestHeaders) {
|
|
2929
3032
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getTaxIdByCountry', 'query');
|
|
2930
3033
|
},
|
|
@@ -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-8646f526.js';
|
|
3
|
+
import { t as translate } from './translationStore-c9743292.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 };
|