@zonos/elements 1.3.246 → 1.3.248
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/ShortAddressCode-bec338b0.js +7 -0
- package/dist/cjs/{cart-52cf3366.js → cart-28310848.js} +37 -6
- package/dist/cjs/getContrastColor-30848800.js +37 -0
- package/dist/cjs/{hasInclusivePrice-dbb82df8.js → hasInclusivePrice-134b0250.js} +1 -1
- package/dist/cjs/index.cjs.js +16 -7
- package/dist/cjs/{invoice-972f1ab3.js → invoice-2e8e5879.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-fd11246c.js → isCollectMobileTablet-bd0f4556.js} +2 -2
- package/dist/cjs/isContrastColor-09f5924a.js +12 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-b1075a8c.js → localization-00e73920.js} +180 -0
- package/dist/cjs/{paypal-e339cc8c.js → paypal-3019ae94.js} +24 -29
- package/dist/cjs/{placeTestOrder-3dfbe3d6.js → placeTestOrder-b0369cfd.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-55056c97.js → renderCheckoutCurrency-9e919b9f.js} +2 -2
- package/dist/cjs/{shouldRenderTaxIdInput-eda13ef8.js → shouldRenderTaxIdInput-b8abf6de.js} +18 -0
- package/dist/cjs/submitGtag-a50ab32e.js +116 -0
- package/dist/cjs/zonos-address-display_9.cjs.entry.js +35 -5
- package/dist/cjs/zonos-address_4.cjs.entry.js +37 -7
- package/dist/cjs/zonos-card_5.cjs.entry.js +5 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +170 -57
- package/dist/cjs/zonos-checkout.cjs.entry.js +31 -9
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +14 -12
- package/dist/cjs/zonos-collect.cjs.entry.js +6 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -12
- package/dist/cjs/zonos-invoice.cjs.entry.js +6 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +18 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +88 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +9 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +26 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +16 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +31 -6
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +5 -5
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +1 -1
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +1 -1
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +35 -4
- package/dist/collection/components/main/zonos-controller.js +4 -1
- package/dist/collection/components/store/checkout/paypal.js +19 -1
- package/dist/collection/components/store/checkout/stripe.js +34 -5
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +53 -3
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +52 -2
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
- package/dist/collection/components/utils/checkout/shouldRenderShortAddressCodeInput.js +16 -0
- package/dist/collection/components/utils/shortAddressCodeValidationResult.js +37 -0
- package/dist/collection/components/utils/submitGtag.js +90 -2
- package/dist/collection/scripts/_zonosBase.js +7 -0
- package/dist/collection/types/analyticsRelay.js +6 -0
- package/dist/collection/types/checkout/ShortAddressCode.js +3 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +135 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/ShortAddressCode-7620e622.js +5 -0
- package/dist/esm/{cart-7f4704dc.js → cart-ba8f3890.js} +37 -6
- package/dist/esm/getContrastColor-28c18704.js +35 -0
- package/dist/esm/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
- package/dist/esm/index.js +15 -7
- package/dist/esm/{invoice-d3d256fb.js → invoice-055bb6e5.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-797cea8b.js} +2 -2
- package/dist/esm/isContrastColor-69778cea.js +10 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-401ec6d4.js → localization-853b48a9.js} +180 -0
- package/dist/esm/{paypal-61270b79.js → paypal-8d8518c0.js} +25 -28
- package/dist/esm/{placeTestOrder-c2180600.js → placeTestOrder-0a74923e.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-bd059ecf.js} +2 -2
- package/dist/esm/{shouldRenderTaxIdInput-d45ceeb4.js → shouldRenderTaxIdInput-2572bf77.js} +18 -1
- package/dist/esm/submitGtag-89d6e9cb.js +113 -0
- package/dist/esm/zonos-address-display_9.entry.js +35 -5
- package/dist/esm/zonos-address_4.entry.js +37 -7
- package/dist/esm/zonos-card_5.entry.js +5 -3
- package/dist/esm/zonos-cart-items_12.entry.js +170 -57
- package/dist/esm/zonos-checkout.entry.js +31 -9
- package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
- package/dist/esm/zonos-collect-finish_6.entry.js +14 -12
- package/dist/esm/zonos-collect.entry.js +6 -4
- package/dist/esm/zonos-controller.entry.js +6 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
- package/dist/esm/zonos-invoice-finish_5.entry.js +14 -12
- package/dist/esm/zonos-invoice.entry.js +6 -4
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +19 -5
- package/dist/esm-es5/ShortAddressCode-7620e622.js +1 -0
- package/dist/esm-es5/cart-ba8f3890.js +1 -0
- package/dist/esm-es5/getContrastColor-28c18704.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-d3d256fb.js → invoice-055bb6e5.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-797cea8b.js} +1 -1
- package/dist/esm-es5/isContrastColor-69778cea.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-853b48a9.js +1 -0
- package/dist/esm-es5/paypal-8d8518c0.js +17 -0
- package/dist/esm-es5/{placeTestOrder-c2180600.js → placeTestOrder-0a74923e.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-bd059ecf.js} +1 -1
- package/dist/esm-es5/shouldRenderTaxIdInput-2572bf77.js +1 -0
- package/dist/esm-es5/submitGtag-89d6e9cb.js +1 -0
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- 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-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/scripts/analyticsRelayOnInit.js +1 -0
- package/dist/scripts/index.d.ts +61 -4
- 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-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +4 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -0
- package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +5 -0
- package/dist/types/components/store/checkout/stripe.d.ts +10 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +8 -0
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +8 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/shouldRenderShortAddressCodeInput.d.ts +6 -0
- package/dist/types/components/utils/shortAddressCodeValidationResult.d.ts +12 -0
- package/dist/types/components/utils/submitGtag.d.ts +32 -2
- package/dist/types/components.d.ts +32 -0
- package/dist/types/scripts/_zonosBase.d.ts +11 -0
- package/dist/types/types/analyticsRelay.d.ts +12 -0
- package/dist/types/types/checkout/ShortAddressCode.d.ts +2 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
- package/dist/types/types/checkout/api/CreateParty.d.ts +1 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +3 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +157 -30
- package/dist/types/types/generated/graphql.internal.types.ts +194 -37
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-002e45f9.system.js +17 -0
- package/dist/zonos-elements/p-0792688d.system.entry.js +1 -0
- package/dist/zonos-elements/p-09aabce0.js +1 -0
- package/dist/zonos-elements/p-0b7beb16.system.entry.js +1 -0
- package/dist/zonos-elements/p-0f787f5d.entry.js +1 -0
- package/dist/zonos-elements/p-0ff93ca6.entry.js +1 -0
- package/dist/zonos-elements/p-14735e9a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-367c13db.system.entry.js → p-1acf0a71.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1d42cd20.js +1 -0
- package/dist/zonos-elements/p-1dbeeab2.entry.js +1 -0
- package/dist/zonos-elements/p-291f7ccb.system.entry.js +1 -0
- package/dist/zonos-elements/{p-67820c21.system.entry.js → p-2f55895c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-37bb5f2d.entry.js +1 -0
- package/dist/zonos-elements/{p-fe699cc5.system.entry.js → p-3908f78d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3972663a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-4d7b82b5.entry.js → p-39fa55c7.entry.js} +1 -1
- package/dist/zonos-elements/p-3e85b9f5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-cee69784.entry.js → p-403b9fca.entry.js} +1 -1
- package/dist/zonos-elements/p-41299ffb.js +1 -0
- package/dist/zonos-elements/p-443e1f30.system.js +1 -0
- package/dist/zonos-elements/p-48475755.entry.js +1 -0
- package/dist/zonos-elements/p-48d55793.system.js +1 -0
- package/dist/zonos-elements/{p-3f46d83e.entry.js → p-58248f03.entry.js} +1 -1
- package/dist/zonos-elements/p-5edef7c3.system.js +1 -0
- package/dist/zonos-elements/p-63a383f4.js +1 -0
- package/dist/zonos-elements/{p-415c2a90.system.js → p-63a3d3b9.system.js} +1 -1
- package/dist/zonos-elements/p-64661dd1.js +1 -0
- package/dist/zonos-elements/p-655ec440.system.js +1 -0
- package/dist/zonos-elements/p-69212d0f.entry.js +1 -0
- package/dist/zonos-elements/{p-4bd8a16c.entry.js → p-69b9b711.entry.js} +1 -1
- package/dist/zonos-elements/p-719403e0.system.js +1 -0
- package/dist/zonos-elements/{p-133e9ce7.system.entry.js → p-71a8d971.system.entry.js} +1 -1
- package/dist/zonos-elements/p-71d855b8.system.entry.js +1 -0
- package/dist/zonos-elements/p-71f10bf0.entry.js +1 -0
- package/dist/zonos-elements/p-72ff005c.entry.js +1 -0
- package/dist/zonos-elements/p-786d1c24.js +1 -0
- package/dist/zonos-elements/{p-87206522.system.entry.js → p-7b400b5f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7dba5f23.system.js +1 -0
- package/dist/zonos-elements/{p-6b9b7cfb.system.entry.js → p-8205ae87.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a88a130.entry.js → p-83377e23.entry.js} +1 -1
- package/dist/zonos-elements/p-85e59f3a.system.entry.js +1 -0
- package/dist/zonos-elements/p-866afec1.js +1 -0
- package/dist/zonos-elements/p-942358eb.system.js +1 -0
- package/dist/zonos-elements/p-94c5fbfc.system.entry.js +1 -0
- package/dist/zonos-elements/p-a12cb7ce.entry.js +1 -0
- package/dist/zonos-elements/p-abf38ed6.js +1 -0
- package/dist/zonos-elements/{p-e0809901.system.js → p-ae16dda9.system.js} +1 -1
- package/dist/zonos-elements/p-ae26aec5.system.js +1 -0
- package/dist/zonos-elements/p-af85846e.system.js +1 -0
- package/dist/zonos-elements/{p-78c8bb58.system.entry.js → p-b54a95ea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a79f3685.js → p-bc4bfa06.js} +1 -1
- package/dist/zonos-elements/p-bf5e47e2.entry.js +1 -0
- package/dist/zonos-elements/p-c027a832.system.js +1 -0
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/p-c2f34b10.system.entry.js +1 -0
- package/dist/zonos-elements/p-c36696f9.js +1 -0
- package/dist/zonos-elements/p-c7311ce5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-faae5eca.entry.js → p-d5b7d3c3.entry.js} +1 -1
- package/dist/zonos-elements/{p-288aab46.js → p-de8899bc.js} +1 -1
- package/dist/zonos-elements/p-e17bbcee.entry.js +1 -0
- package/dist/zonos-elements/p-eea7ac64.js +1 -0
- package/dist/zonos-elements/p-f6c2c743.entry.js +1 -0
- package/dist/zonos-elements/p-fe06c9ea.js +17 -0
- package/dist/zonos-elements/p-fe96e239.system.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-7f4704dc.js +0 -1
- package/dist/esm-es5/localization-401ec6d4.js +0 -1
- package/dist/esm-es5/paypal-61270b79.js +0 -17
- package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +0 -1
- package/dist/zonos-elements/p-01b0a2e2.js +0 -1
- package/dist/zonos-elements/p-095f43ec.entry.js +0 -1
- package/dist/zonos-elements/p-1d91e5d1.entry.js +0 -1
- package/dist/zonos-elements/p-21fb6b39.js +0 -1
- package/dist/zonos-elements/p-2601538e.entry.js +0 -1
- package/dist/zonos-elements/p-276faa43.js +0 -1
- package/dist/zonos-elements/p-27874c22.entry.js +0 -1
- package/dist/zonos-elements/p-2889a485.system.entry.js +0 -1
- package/dist/zonos-elements/p-291b85f7.entry.js +0 -1
- package/dist/zonos-elements/p-2d2c627a.system.js +0 -1
- package/dist/zonos-elements/p-3b1898bc.system.entry.js +0 -1
- package/dist/zonos-elements/p-3f078bf5.system.entry.js +0 -1
- package/dist/zonos-elements/p-518b501c.system.entry.js +0 -1
- package/dist/zonos-elements/p-59ebb8c7.system.entry.js +0 -1
- package/dist/zonos-elements/p-5f956a0d.entry.js +0 -1
- package/dist/zonos-elements/p-6c29de12.entry.js +0 -1
- package/dist/zonos-elements/p-74e258ff.system.js +0 -1
- package/dist/zonos-elements/p-775c1122.system.js +0 -1
- package/dist/zonos-elements/p-7a6ab319.system.entry.js +0 -1
- package/dist/zonos-elements/p-85430ec1.js +0 -1
- package/dist/zonos-elements/p-872f9c22.system.entry.js +0 -1
- package/dist/zonos-elements/p-95524f54.js +0 -1
- package/dist/zonos-elements/p-993723c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-a0a62b7e.js +0 -17
- package/dist/zonos-elements/p-a3411f20.entry.js +0 -1
- package/dist/zonos-elements/p-a556ec07.system.js +0 -17
- package/dist/zonos-elements/p-a6489088.js +0 -1
- package/dist/zonos-elements/p-acc0eee3.system.js +0 -1
- package/dist/zonos-elements/p-bd10e82a.system.entry.js +0 -1
- package/dist/zonos-elements/p-c62b6741.system.entry.js +0 -1
- package/dist/zonos-elements/p-c6aa780e.entry.js +0 -1
- package/dist/zonos-elements/p-d1effb76.system.js +0 -1
- package/dist/zonos-elements/p-e7543082.system.js +0 -1
- package/dist/zonos-elements/p-e7df8394.entry.js +0 -1
- package/dist/zonos-elements/p-e90e9584.entry.js +0 -1
- package/dist/zonos-elements/p-eb9ee025.system.js +0 -1
- package/dist/zonos-elements/p-ebef34e3.entry.js +0 -1
- package/dist/zonos-elements/p-f6c6b6d3.system.entry.js +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { shouldRenderShortAddressCodeInput } from "./checkout/shouldRenderShortAddressCodeInput";
|
|
2
|
+
export const shortAddressCodeValidationResult = ({ shippingCountry, shortAddressCode, }) => {
|
|
3
|
+
// Check to see if we are required to collect short address code for the shipping country or not
|
|
4
|
+
const isShortAddressCodeInputRendered = shouldRenderShortAddressCodeInput({
|
|
5
|
+
countryCode: shippingCountry,
|
|
6
|
+
});
|
|
7
|
+
// If the short address code input is not even rendered, no need to validate anything and allow to proceed. Validate when short address code input is not even rendered would prevent the user from checking out
|
|
8
|
+
if (!isShortAddressCodeInputRendered) {
|
|
9
|
+
return {
|
|
10
|
+
error: null,
|
|
11
|
+
valid: true,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* If the short address code input is rendered, the input should be filled
|
|
16
|
+
*/
|
|
17
|
+
if (!shortAddressCode) {
|
|
18
|
+
return {
|
|
19
|
+
error: 'Short address code is required.',
|
|
20
|
+
valid: false,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (shippingCountry === 'SA') {
|
|
24
|
+
const isValid = /^[A-Za-z]{4}\s*[0-9]{4}$/.test(shortAddressCode);
|
|
25
|
+
if (!isValid) {
|
|
26
|
+
return {
|
|
27
|
+
error: 'Invalid short address code format. Must be 4 letters and 4 numbers.',
|
|
28
|
+
valid: false,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
// Other countries doesn't need to validate short address code in the right format
|
|
33
|
+
return {
|
|
34
|
+
error: null,
|
|
35
|
+
valid: true,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -1,16 +1,104 @@
|
|
|
1
1
|
import { zonosStore } from "../store/zonosStore";
|
|
2
|
+
import { getIsTestMode } from "./checkout/getIsTestMode";
|
|
2
3
|
import { log } from "./logging/log";
|
|
4
|
+
import { RELAY_PING_TYPE, RELAY_READY_TYPE, ZONOS_ANALYTIC_TYPE, } from "../../types/analyticsRelay";
|
|
5
|
+
let parentGtagReady = false;
|
|
6
|
+
let relayListenerAdded = false;
|
|
7
|
+
const queuedEvents = [];
|
|
8
|
+
function flushQueuedEvents() {
|
|
9
|
+
while (queuedEvents.length > 0) {
|
|
10
|
+
const { event, payload } = queuedEvents.shift();
|
|
11
|
+
try {
|
|
12
|
+
window.parent.postMessage({
|
|
13
|
+
event,
|
|
14
|
+
metadata: payload,
|
|
15
|
+
type: ZONOS_ANALYTIC_TYPE,
|
|
16
|
+
}, '*');
|
|
17
|
+
}
|
|
18
|
+
catch (_a) {
|
|
19
|
+
// Ignore postMessage failures
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function ensureRelayListener() {
|
|
24
|
+
if (relayListenerAdded)
|
|
25
|
+
return;
|
|
26
|
+
relayListenerAdded = true;
|
|
27
|
+
window.addEventListener('message', (e) => {
|
|
28
|
+
var _a;
|
|
29
|
+
if (((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) === RELAY_READY_TYPE) {
|
|
30
|
+
parentGtagReady = true;
|
|
31
|
+
if (typeof window.Zonos !== 'undefined') {
|
|
32
|
+
window.Zonos.googleAnalyticReady = true;
|
|
33
|
+
}
|
|
34
|
+
flushQueuedEvents();
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function sendPingToParent() {
|
|
39
|
+
try {
|
|
40
|
+
const googleAnalyticId = typeof window.Zonos !== 'undefined'
|
|
41
|
+
? window.Zonos.googleAnalyticId
|
|
42
|
+
: undefined;
|
|
43
|
+
window.parent.postMessage({ googleAnalyticId, type: RELAY_PING_TYPE }, '*');
|
|
44
|
+
}
|
|
45
|
+
catch (_a) {
|
|
46
|
+
// Ignore postMessage failures
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Sends ping to parent with googleAnalyticId so parent can inject/configure GA and respond with ready.
|
|
51
|
+
* Call after customHTML or custom script sets window.Zonos.googleAnalyticId.
|
|
52
|
+
*/
|
|
53
|
+
export function ensureAnalyticsRelayPing() {
|
|
54
|
+
if (typeof window === 'undefined' ||
|
|
55
|
+
window.parent === window ||
|
|
56
|
+
parentGtagReady) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
ensureRelayListener();
|
|
60
|
+
sendPingToParent();
|
|
61
|
+
}
|
|
3
62
|
/**
|
|
4
63
|
* Submit a gtag event if the gtag function is available.
|
|
64
|
+
* When running inside an iframe, only posts to parent after the parent has
|
|
65
|
+
* confirmed (via analyticsRelayOnInit) that gtag is available.
|
|
5
66
|
*/
|
|
6
|
-
export const submitGtag = (event) => {
|
|
67
|
+
export const submitGtag = ({ event, metadata }) => {
|
|
7
68
|
const googleAnalyticSetting = zonosStore.checkoutSettings.analyticsProviders.find(item => item.type === 'GOOGLE_ANALYTICS');
|
|
8
69
|
// only submit if googleAnalytic in checkout setting is on.
|
|
9
70
|
if (!googleAnalyticSetting || (googleAnalyticSetting === null || googleAnalyticSetting === void 0 ? void 0 : googleAnalyticSetting.status) === 'DISABLED') {
|
|
10
71
|
return;
|
|
11
72
|
}
|
|
73
|
+
const isTestMode = getIsTestMode();
|
|
74
|
+
const payload = Object.assign(Object.assign({}, metadata), (isTestMode && { isTestMode: true }));
|
|
75
|
+
// filter null key
|
|
76
|
+
const filteredPayload = Object.fromEntries(Object.entries(payload).filter(([_, value]) => value !== null));
|
|
77
|
+
const isInIframe = typeof window !== 'undefined' && window.parent !== window;
|
|
78
|
+
if (isInIframe) {
|
|
79
|
+
// gtag does not work in iframe; must relay to parent via postMessage
|
|
80
|
+
ensureRelayListener();
|
|
81
|
+
if (parentGtagReady) {
|
|
82
|
+
try {
|
|
83
|
+
window.parent.postMessage({
|
|
84
|
+
event,
|
|
85
|
+
metadata: filteredPayload,
|
|
86
|
+
type: ZONOS_ANALYTIC_TYPE,
|
|
87
|
+
}, '*');
|
|
88
|
+
}
|
|
89
|
+
catch (_a) {
|
|
90
|
+
// Ignore postMessage failures
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
queuedEvents.push({ event, payload: filteredPayload });
|
|
95
|
+
sendPingToParent();
|
|
96
|
+
}
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
// Not in iframe: call gtag directly
|
|
12
100
|
if (typeof window.gtag === 'function') {
|
|
13
101
|
log('Zonos submits gtag event', 'log', event);
|
|
14
|
-
window.gtag('event', event,
|
|
102
|
+
window.gtag('event', event, filteredPayload);
|
|
15
103
|
}
|
|
16
104
|
};
|
|
@@ -51,6 +51,8 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
51
51
|
Zonos.isBigCommerce = false;
|
|
52
52
|
Zonos.releaseDate = process.env.NEXT_PUBLIC_RELEASE_DATE;
|
|
53
53
|
Zonos.isLegacyCheckout = false;
|
|
54
|
+
Zonos.googleAnalyticId = null;
|
|
55
|
+
Zonos.googleAnalyticReady = false;
|
|
54
56
|
Zonos.startLoadTime = startLoadTime;
|
|
55
57
|
Zonos.domain = typeof window !== 'undefined'
|
|
56
58
|
? // domain that embeds the iframe
|
|
@@ -90,6 +92,10 @@ Zonos.init = async (params) => {
|
|
|
90
92
|
log(`====== ZONOS DEBUG MODE: on (${_a.version}) ======`);
|
|
91
93
|
_a.zonosApiKey = zonosApiKey;
|
|
92
94
|
_a.storeId = storeId;
|
|
95
|
+
// When not in iframe, GA is ready (gtag works directly). When in iframe, relay will set this after parent configures.
|
|
96
|
+
if (typeof window !== 'undefined' && window.parent === window) {
|
|
97
|
+
_a.googleAnalyticReady = true;
|
|
98
|
+
}
|
|
93
99
|
if (_a.isNpm) {
|
|
94
100
|
log('====== ZONOS LOADING FROM NPM ======');
|
|
95
101
|
const zonosQaUrl = getZonosQaUrl();
|
|
@@ -194,6 +200,7 @@ Zonos.injectCustomScriptForHostedCheckout = () => {
|
|
|
194
200
|
const metadata = (cartData === null || cartData === void 0 ? void 0 : cartData.metadata) || [];
|
|
195
201
|
const headerScript = metadata.find(meta => meta.key === 'customHeaderScript');
|
|
196
202
|
const footerScript = metadata.find(meta => meta.key === 'customFooterScript');
|
|
203
|
+
// googleAnalyticId is set by customHTML in checkoutSettings (e.g. <script>window.Zonos.googleAnalyticId = "G-XXX";</script>), injected by zonos-controller
|
|
197
204
|
// Only inject the script if checkout is on Zonos hosted checkout and custom script is available
|
|
198
205
|
if (!window.Zonos.isLegacyCheckout || (!headerScript && !footerScript)) {
|
|
199
206
|
log('Skip injecting custom script for hosted checkout', 'info', {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Message type for zonos-analytic events sent from iframe to parent. */
|
|
2
|
+
export const ZONOS_ANALYTIC_TYPE = 'zonos-analytic';
|
|
3
|
+
/** Ping sent by iframe to configure parent's analytics relay (e.g. GA) and get ready signal. */
|
|
4
|
+
export const RELAY_PING_TYPE = 'zonos-analytics-relay-ping';
|
|
5
|
+
/** Response from parent when analytics relay (e.g. gtag) is ready. */
|
|
6
|
+
export const RELAY_READY_TYPE = 'zonos-analytics-relay-ready';
|
|
@@ -11,6 +11,7 @@ export const errorProjectNameEnum = {
|
|
|
11
11
|
ZonosCom: 'zonos_com',
|
|
12
12
|
};
|
|
13
13
|
export const featureAspectKeyEnum = {
|
|
14
|
+
AdminRulesWrite: 'admin_rules_write',
|
|
14
15
|
AirwallexBeta: 'airwallex_beta',
|
|
15
16
|
Checkout_2_0: 'checkout_2_0',
|
|
16
17
|
ClassifyBulk: 'classify_bulk',
|
|
@@ -43,6 +44,7 @@ export const featureAspectKeyEnum = {
|
|
|
43
44
|
};
|
|
44
45
|
export const featureAudienceNameEnum = {
|
|
45
46
|
AccountsReceivable: 'accounts_receivable',
|
|
47
|
+
AdminRulesEditor: 'admin_rules_editor',
|
|
46
48
|
AirwallexBetaMerchant: 'airwallex_beta_merchant',
|
|
47
49
|
CheckoutSales: 'checkout_sales',
|
|
48
50
|
ClassifyBulkMerchant: 'classify_bulk_merchant',
|
|
@@ -13,10 +13,18 @@ export const accountingFeeType = {
|
|
|
13
13
|
ApiGuaranteePercent: 'API_GUARANTEE_PERCENT',
|
|
14
14
|
ApiGuaranteePercentRevenueShare: 'API_GUARANTEE_PERCENT_REVENUE_SHARE',
|
|
15
15
|
ApiTransactionPercent: 'API_TRANSACTION_PERCENT',
|
|
16
|
+
AsendiaDisbursementFee: 'ASENDIA_DISBURSEMENT_FEE',
|
|
17
|
+
AsendiaRemittanceFee: 'ASENDIA_REMITTANCE_FEE',
|
|
16
18
|
AustraliaBondFee: 'AUSTRALIA_BOND_FEE',
|
|
17
19
|
AustraliaDisbursement: 'AUSTRALIA_DISBURSEMENT',
|
|
18
20
|
AustraliaDisbursementFee: 'AUSTRALIA_DISBURSEMENT_FEE',
|
|
19
21
|
AustraliaRemittanceFee: 'AUSTRALIA_REMITTANCE_FEE',
|
|
22
|
+
AustriaRemittanceFee: 'AUSTRIA_REMITTANCE_FEE',
|
|
23
|
+
BermudaPrepayFee: 'BERMUDA_PREPAY_FEE',
|
|
24
|
+
BermudaPrepayPercent: 'BERMUDA_PREPAY_PERCENT',
|
|
25
|
+
BermudaPrepayPhotoDiscount: 'BERMUDA_PREPAY_PHOTO_DISCOUNT',
|
|
26
|
+
BermudaRemittanceFee: 'BERMUDA_REMITTANCE_FEE',
|
|
27
|
+
BigcommerceAccessFeePercRevenueShare: 'BIGCOMMERCE_ACCESS_FEE_PERC_REVENUE_SHARE',
|
|
20
28
|
BpostDisbursementFee: 'BPOST_DISBURSEMENT_FEE',
|
|
21
29
|
BpostRemittanceFee: 'BPOST_REMITTANCE_FEE',
|
|
22
30
|
BrokerageFee: 'BROKERAGE_FEE',
|
|
@@ -27,10 +35,12 @@ export const accountingFeeType = {
|
|
|
27
35
|
CanadaPrepayFee: 'CANADA_PREPAY_FEE',
|
|
28
36
|
CanadaPrepayPercent: 'CANADA_PREPAY_PERCENT',
|
|
29
37
|
CanadaPrepayPhotoDiscount: 'CANADA_PREPAY_PHOTO_DISCOUNT',
|
|
38
|
+
CanadaRemittanceAmountRevenueShare: 'CANADA_REMITTANCE_AMOUNT_REVENUE_SHARE',
|
|
30
39
|
CanadaRemittanceFee: 'CANADA_REMITTANCE_FEE',
|
|
31
40
|
CarrierBillShipping: 'CARRIER_BILL_SHIPPING',
|
|
32
41
|
CaymanIslandsDisbursementFee: 'CAYMAN_ISLANDS_DISBURSEMENT_FEE',
|
|
33
42
|
CaymanIslandsRemittanceFee: 'CAYMAN_ISLANDS_REMITTANCE_FEE',
|
|
43
|
+
CbpReassessment: 'CBP_REASSESSMENT',
|
|
34
44
|
Chargeback: 'CHARGEBACK',
|
|
35
45
|
ChargebackFee: 'CHARGEBACK_FEE',
|
|
36
46
|
CheckoutCrossDocking: 'CHECKOUT_CROSS_DOCKING',
|
|
@@ -52,12 +62,19 @@ export const accountingFeeType = {
|
|
|
52
62
|
CorreosDisbursementFee: 'CORREOS_DISBURSEMENT_FEE',
|
|
53
63
|
CorreosRemittanceFee: 'CORREOS_REMITTANCE_FEE',
|
|
54
64
|
Country: 'COUNTRY',
|
|
65
|
+
CountryOfOrigin: 'COUNTRY_OF_ORIGIN',
|
|
55
66
|
Coupon: 'COUPON',
|
|
56
67
|
Ctp: 'CTP',
|
|
68
|
+
CttCorreiosDisbursementFee: 'CTT_CORREIOS_DISBURSEMENT_FEE',
|
|
69
|
+
CttCorreiosRemittanceAmountRevenueShare: 'CTT_CORREIOS_REMITTANCE_AMOUNT_REVENUE_SHARE',
|
|
57
70
|
CuracaoBondFee: 'CURACAO_BOND_FEE',
|
|
58
71
|
CuracaoDisbursementFee: 'CURACAO_DISBURSEMENT_FEE',
|
|
72
|
+
CuracaoRemittanceAmountRevenueShare: 'CURACAO_REMITTANCE_AMOUNT_REVENUE_SHARE',
|
|
59
73
|
CuracaoRemittanceFee: 'CURACAO_REMITTANCE_FEE',
|
|
60
74
|
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
75
|
+
CyprusPrepayFee: 'CYPRUS_PREPAY_FEE',
|
|
76
|
+
CyprusPrepayPercent: 'CYPRUS_PREPAY_PERCENT',
|
|
77
|
+
CyprusPrepayPhotoDiscount: 'CYPRUS_PREPAY_PHOTO_DISCOUNT',
|
|
61
78
|
DashboardLite: 'DASHBOARD_LITE',
|
|
62
79
|
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
63
80
|
DdpServiceFeeBuffer: 'DDP_SERVICE_FEE_BUFFER',
|
|
@@ -67,6 +84,7 @@ export const accountingFeeType = {
|
|
|
67
84
|
Discount: 'DISCOUNT',
|
|
68
85
|
Duty: 'DUTY',
|
|
69
86
|
DutyFx: 'DUTY_FX',
|
|
87
|
+
DutyRemittance: 'DUTY_REMITTANCE',
|
|
70
88
|
DutyTax: 'DUTY_TAX',
|
|
71
89
|
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
72
90
|
EmiratesDisbursementFee: 'EMIRATES_DISBURSEMENT_FEE',
|
|
@@ -87,6 +105,8 @@ export const accountingFeeType = {
|
|
|
87
105
|
GhanaRemittanceFee: 'GHANA_REMITTANCE_FEE',
|
|
88
106
|
GuaranteeOrder: 'GUARANTEE_ORDER',
|
|
89
107
|
GuaranteePercent: 'GUARANTEE_PERCENT',
|
|
108
|
+
HaypostDisbursementFee: 'HAYPOST_DISBURSEMENT_FEE',
|
|
109
|
+
HaypostRemittanceFee: 'HAYPOST_REMITTANCE_FEE',
|
|
90
110
|
IglobalLandedCostGuaranteeBuffer: 'IGLOBAL_LANDED_COST_GUARANTEE_BUFFER',
|
|
91
111
|
InclusivePricing: 'INCLUSIVE_PRICING',
|
|
92
112
|
IsraelDisbursementFee: 'ISRAEL_DISBURSEMENT_FEE',
|
|
@@ -95,6 +115,12 @@ export const accountingFeeType = {
|
|
|
95
115
|
JapanPrepayFee: 'JAPAN_PREPAY_FEE',
|
|
96
116
|
JapanPrepayPercent: 'JAPAN_PREPAY_PERCENT',
|
|
97
117
|
JapanPrepayPhotoDiscount: 'JAPAN_PREPAY_PHOTO_DISCOUNT',
|
|
118
|
+
KazpostPrepayFee: 'KAZPOST_PREPAY_FEE',
|
|
119
|
+
KazpostPrepayPercent: 'KAZPOST_PREPAY_PERCENT',
|
|
120
|
+
KazpostPrepayPhotoDiscount: 'KAZPOST_PREPAY_PHOTO_DISCOUNT',
|
|
121
|
+
KazpostRemittanceFee: 'KAZPOST_REMITTANCE_FEE',
|
|
122
|
+
KenyaDisbursementFee: 'KENYA_DISBURSEMENT_FEE',
|
|
123
|
+
KenyaRemittanceFee: 'KENYA_REMITTANCE_FEE',
|
|
98
124
|
KoreaDisbursementFee: 'KOREA_DISBURSEMENT_FEE',
|
|
99
125
|
KoreaGuaranteeOrder: 'KOREA_GUARANTEE_ORDER',
|
|
100
126
|
KoreaPrepayDisbursementFee: 'KOREA_PREPAY_DISBURSEMENT_FEE',
|
|
@@ -102,13 +128,20 @@ export const accountingFeeType = {
|
|
|
102
128
|
KoreaPrepayPercent: 'KOREA_PREPAY_PERCENT',
|
|
103
129
|
KoreaPrepayPhotoDiscount: 'KOREA_PREPAY_PHOTO_DISCOUNT',
|
|
104
130
|
KoreaRemittanceFee: 'KOREA_REMITTANCE_FEE',
|
|
131
|
+
LaPosteDisbursementFee: 'LA_POSTE_DISBURSEMENT_FEE',
|
|
132
|
+
LaPosteRemittanceAmountRevenueShare: 'LA_POSTE_REMITTANCE_AMOUNT_REVENUE_SHARE',
|
|
133
|
+
LaPosteRemittanceFee: 'LA_POSTE_REMITTANCE_FEE',
|
|
105
134
|
LabelCertification: 'LABEL_CERTIFICATION',
|
|
106
135
|
LandedCostGuarantee: 'LANDED_COST_GUARANTEE',
|
|
107
136
|
LandedCostGuaranteeBuffer: 'LANDED_COST_GUARANTEE_BUFFER',
|
|
108
137
|
LandedCostGuaranteeSubsidy: 'LANDED_COST_GUARANTEE_SUBSIDY',
|
|
138
|
+
LatviaDisbursementFee: 'LATVIA_DISBURSEMENT_FEE',
|
|
139
|
+
LatviaRemittanceFee: 'LATVIA_REMITTANCE_FEE',
|
|
109
140
|
MerchantProcessing: 'MERCHANT_PROCESSING',
|
|
110
141
|
MonthlyPlatformFee: 'MONTHLY_PLATFORM_FEE',
|
|
111
142
|
MonthlySubscription: 'MONTHLY_SUBSCRIPTION',
|
|
143
|
+
NetparcelDisbursementFee: 'NETPARCEL_DISBURSEMENT_FEE',
|
|
144
|
+
NetparcelRemittanceFee: 'NETPARCEL_REMITTANCE_FEE',
|
|
112
145
|
NewZealandDisbursementFee: 'NEW_ZEALAND_DISBURSEMENT_FEE',
|
|
113
146
|
NewZealandRemittanceFee: 'NEW_ZEALAND_REMITTANCE_FEE',
|
|
114
147
|
NigeriaDisbursementFee: 'NIGERIA_DISBURSEMENT_FEE',
|
|
@@ -123,10 +156,13 @@ export const accountingFeeType = {
|
|
|
123
156
|
NonGuaranteeDutyTax: 'NON_GUARANTEE_DUTY_TAX',
|
|
124
157
|
NonGuaranteeLandedCostBuffer: 'NON_GUARANTEE_LANDED_COST_BUFFER',
|
|
125
158
|
NonGuaranteeLandedCostSubsidy: 'NON_GUARANTEE_LANDED_COST_SUBSIDY',
|
|
159
|
+
NonGuaranteeShipping: 'NON_GUARANTEE_SHIPPING',
|
|
126
160
|
NonGuaranteeTax: 'NON_GUARANTEE_TAX',
|
|
161
|
+
OmnivaDisbursementFee: 'OMNIVA_DISBURSEMENT_FEE',
|
|
127
162
|
OmnivaPrepayFee: 'OMNIVA_PREPAY_FEE',
|
|
128
163
|
OmnivaPrepayPercent: 'OMNIVA_PREPAY_PERCENT',
|
|
129
164
|
OmnivaPrepayPhotoDiscount: 'OMNIVA_PREPAY_PHOTO_DISCOUNT',
|
|
165
|
+
OmnivaRemittanceFee: 'OMNIVA_REMITTANCE_FEE',
|
|
130
166
|
OrderError: 'ORDER_ERROR',
|
|
131
167
|
Other: 'OTHER',
|
|
132
168
|
PaymentNoOrder: 'PAYMENT_NO_ORDER',
|
|
@@ -137,9 +173,11 @@ export const accountingFeeType = {
|
|
|
137
173
|
PostalOperator: 'POSTAL_OPERATOR',
|
|
138
174
|
PostnlRemittanceFee: 'POSTNL_REMITTANCE_FEE',
|
|
139
175
|
PostnordRemittanceFee: 'POSTNORD_REMITTANCE_FEE',
|
|
176
|
+
PrepayProcessingFee: 'PREPAY_PROCESSING_FEE',
|
|
140
177
|
ProfessionalServices: 'PROFESSIONAL_SERVICES',
|
|
141
178
|
RefundError: 'REFUND_ERROR',
|
|
142
179
|
RetriedPayout: 'RETRIED_PAYOUT',
|
|
180
|
+
Review: 'REVIEW',
|
|
143
181
|
RoyalMailRemittanceFee: 'ROYAL_MAIL_REMITTANCE_FEE',
|
|
144
182
|
Shipping: 'SHIPPING',
|
|
145
183
|
ShopifyAppSaleAdjustment: 'SHOPIFY_APP_SALE_ADJUSTMENT',
|
|
@@ -150,11 +188,14 @@ export const accountingFeeType = {
|
|
|
150
188
|
ShopifyGuaranteePercent: 'SHOPIFY_GUARANTEE_PERCENT',
|
|
151
189
|
ShopifyGuaranteePercentInclusive: 'SHOPIFY_GUARANTEE_PERCENT_INCLUSIVE',
|
|
152
190
|
ShopifyTransactionPercent: 'SHOPIFY_TRANSACTION_PERCENT',
|
|
191
|
+
SingaporeRemittanceFee: 'SINGAPORE_REMITTANCE_FEE',
|
|
153
192
|
StorageFee: 'STORAGE_FEE',
|
|
154
193
|
SwissDisbursementFee: 'SWISS_DISBURSEMENT_FEE',
|
|
155
194
|
SwissRemittanceFee: 'SWISS_REMITTANCE_FEE',
|
|
156
195
|
Tax: 'TAX',
|
|
157
196
|
TaxRemittance: 'TAX_REMITTANCE',
|
|
197
|
+
TogoPrepayFee: 'TOGO_PREPAY_FEE',
|
|
198
|
+
TogoPrepayPhotoDiscount: 'TOGO_PREPAY_PHOTO_DISCOUNT',
|
|
158
199
|
Transaction: 'TRANSACTION',
|
|
159
200
|
TransactionOrder: 'TRANSACTION_ORDER',
|
|
160
201
|
TransactionPercent: 'TRANSACTION_PERCENT',
|
|
@@ -169,9 +210,12 @@ export const accountingFeeType = {
|
|
|
169
210
|
UspsPrepayPercent: 'USPS_PREPAY_PERCENT',
|
|
170
211
|
UspsPrepayPhotoDiscount: 'USPS_PREPAY_PHOTO_DISCOUNT',
|
|
171
212
|
UspsSubscription: 'USPS_SUBSCRIPTION',
|
|
213
|
+
VanuatuBondFee: 'VANUATU_BOND_FEE',
|
|
214
|
+
VanuatuDisbursementFee: 'VANUATU_DISBURSEMENT_FEE',
|
|
172
215
|
VanuatuPrepayFee: 'VANUATU_PREPAY_FEE',
|
|
173
216
|
VanuatuPrepayPercent: 'VANUATU_PREPAY_PERCENT',
|
|
174
217
|
VanuatuPrepayPhotoDiscount: 'VANUATU_PREPAY_PHOTO_DISCOUNT',
|
|
218
|
+
VanuatuRemittanceFee: 'VANUATU_REMITTANCE_FEE',
|
|
175
219
|
WireFee: 'WIRE_FEE',
|
|
176
220
|
ZonosApi: 'ZONOS_API',
|
|
177
221
|
ZonosCheckoutSubscription: 'ZONOS_CHECKOUT_SUBSCRIPTION',
|
|
@@ -442,6 +486,7 @@ export const carrierBillingInvoiceStatus = {
|
|
|
442
486
|
};
|
|
443
487
|
export const carrierCode = {
|
|
444
488
|
Apc: 'APC',
|
|
489
|
+
BermudaPost: 'BERMUDA_POST',
|
|
445
490
|
CanadaPost: 'CANADA_POST',
|
|
446
491
|
CyprusPost: 'CYPRUS_POST',
|
|
447
492
|
Dhl: 'DHL',
|
|
@@ -451,6 +496,7 @@ export const carrierCode = {
|
|
|
451
496
|
Fedex: 'FEDEX',
|
|
452
497
|
Fedexxb: 'FEDEXXB',
|
|
453
498
|
GlobalAccess: 'GLOBAL_ACCESS',
|
|
499
|
+
KazPost: 'KAZ_POST',
|
|
454
500
|
Ups: 'UPS',
|
|
455
501
|
Usps: 'USPS',
|
|
456
502
|
};
|
|
@@ -493,6 +539,16 @@ export const carrierRateType = {
|
|
|
493
539
|
Negotiated: 'NEGOTIATED',
|
|
494
540
|
Retail: 'RETAIL',
|
|
495
541
|
};
|
|
542
|
+
export const carrierSurchargeMeasureType = {
|
|
543
|
+
CubicFeet: 'CUBIC_FEET',
|
|
544
|
+
Length: 'LENGTH',
|
|
545
|
+
LengthComposite: 'LENGTH_COMPOSITE',
|
|
546
|
+
LengthPlusGirth: 'LENGTH_PLUS_GIRTH',
|
|
547
|
+
LongestSide: 'LONGEST_SIDE',
|
|
548
|
+
SecondLongestSide: 'SECOND_LONGEST_SIDE',
|
|
549
|
+
VolumetricWeight: 'VOLUMETRIC_WEIGHT',
|
|
550
|
+
Weight: 'WEIGHT',
|
|
551
|
+
};
|
|
496
552
|
export const cartAdjustmentType = {
|
|
497
553
|
CartTotal: 'CART_TOTAL',
|
|
498
554
|
Item: 'ITEM',
|
|
@@ -517,6 +573,11 @@ export const cartonPlacementsMode = {
|
|
|
517
573
|
Disabled: 'DISABLED',
|
|
518
574
|
Enabled: 'ENABLED',
|
|
519
575
|
};
|
|
576
|
+
export const cashFlowProductType = {
|
|
577
|
+
Postal: 'POSTAL',
|
|
578
|
+
Standard: 'STANDARD',
|
|
579
|
+
StripeBilling: 'STRIPE_BILLING',
|
|
580
|
+
};
|
|
520
581
|
export const cashFlowTablesEnumInput = {
|
|
521
582
|
Bill: 'BILL',
|
|
522
583
|
Deposit: 'DEPOSIT',
|
|
@@ -584,6 +645,10 @@ export const checkoutSessionPartyReferenceType = {
|
|
|
584
645
|
Destination: 'DESTINATION',
|
|
585
646
|
Payor: 'PAYOR',
|
|
586
647
|
};
|
|
648
|
+
export const checkoutSessionStatus = {
|
|
649
|
+
Completed: 'COMPLETED',
|
|
650
|
+
InProgress: 'IN_PROGRESS',
|
|
651
|
+
};
|
|
587
652
|
export const checkoutSessionType = {
|
|
588
653
|
Checkout: 'CHECKOUT',
|
|
589
654
|
Collect: 'COLLECT',
|
|
@@ -615,6 +680,10 @@ export const checkoutVisibilityStatus = {
|
|
|
615
680
|
Disabled: 'DISABLED',
|
|
616
681
|
Enabled: 'ENABLED',
|
|
617
682
|
};
|
|
683
|
+
export const cherryPickFinalSetMode = {
|
|
684
|
+
Final: 'FINAL',
|
|
685
|
+
NotFinal: 'NOT_FINAL',
|
|
686
|
+
};
|
|
618
687
|
export const classificationBulkExportJobStatus = {
|
|
619
688
|
Completed: 'COMPLETED',
|
|
620
689
|
Error: 'ERROR',
|
|
@@ -1488,6 +1557,7 @@ export const declarationSource = {
|
|
|
1488
1557
|
Zonos: 'ZONOS',
|
|
1489
1558
|
};
|
|
1490
1559
|
export const declarationStatus = {
|
|
1560
|
+
Authorized: 'AUTHORIZED',
|
|
1491
1561
|
ItmattReceived: 'ITMATT_RECEIVED',
|
|
1492
1562
|
Open: 'OPEN',
|
|
1493
1563
|
PartiallyShipped: 'PARTIALLY_SHIPPED',
|
|
@@ -1515,13 +1585,20 @@ export const descriptionOverrideScope = {
|
|
|
1515
1585
|
Labels: 'LABELS',
|
|
1516
1586
|
};
|
|
1517
1587
|
export const detailGroupInputType = {
|
|
1588
|
+
Api: 'API',
|
|
1518
1589
|
Charge: 'CHARGE',
|
|
1519
1590
|
Credit: 'CREDIT',
|
|
1520
1591
|
CtpCredit: 'CTP_CREDIT',
|
|
1592
|
+
GeneralAdjustment: 'GENERAL_ADJUSTMENT',
|
|
1593
|
+
InclusiveConfiguration: 'INCLUSIVE_CONFIGURATION',
|
|
1521
1594
|
Order: 'ORDER',
|
|
1522
1595
|
OrderCancel: 'ORDER_CANCEL',
|
|
1523
1596
|
OrderCancelNoRefund: 'ORDER_CANCEL_NO_REFUND',
|
|
1524
1597
|
OrderRefund: 'ORDER_REFUND',
|
|
1598
|
+
Postal: 'POSTAL',
|
|
1599
|
+
PostalCharge: 'POSTAL_CHARGE',
|
|
1600
|
+
PostalCredit: 'POSTAL_CREDIT',
|
|
1601
|
+
PostalOrderCancel: 'POSTAL_ORDER_CANCEL',
|
|
1525
1602
|
};
|
|
1526
1603
|
export const dimensionalUnitCode = {
|
|
1527
1604
|
Centimeter: 'CENTIMETER',
|
|
@@ -1603,9 +1680,12 @@ export const emailTemplateType = {
|
|
|
1603
1680
|
InvoiceReady: 'INVOICE_READY',
|
|
1604
1681
|
InvoiceReceipt: 'INVOICE_RECEIPT',
|
|
1605
1682
|
ManualClassificationExport: 'MANUAL_CLASSIFICATION_EXPORT',
|
|
1683
|
+
MerchantAccountDeactivation: 'MERCHANT_ACCOUNT_DEACTIVATION',
|
|
1606
1684
|
MerchantOrderConfirmation: 'MERCHANT_ORDER_CONFIRMATION',
|
|
1685
|
+
MerchantReconciliationIssues: 'MERCHANT_RECONCILIATION_ISSUES',
|
|
1607
1686
|
OrderCanceled: 'ORDER_CANCELED',
|
|
1608
1687
|
OrderCollectConfirmation: 'ORDER_COLLECT_CONFIRMATION',
|
|
1688
|
+
OrderCombination: 'ORDER_COMBINATION',
|
|
1609
1689
|
OrderConfirmation: 'ORDER_CONFIRMATION',
|
|
1610
1690
|
OrderReceipt: 'ORDER_RECEIPT',
|
|
1611
1691
|
OrderShipped: 'ORDER_SHIPPED',
|
|
@@ -1882,6 +1962,10 @@ export const incotermCode = {
|
|
|
1882
1962
|
Ddp: 'DDP',
|
|
1883
1963
|
Fob: 'FOB',
|
|
1884
1964
|
};
|
|
1965
|
+
export const inferenceStatus = {
|
|
1966
|
+
Disabled: 'DISABLED',
|
|
1967
|
+
Enabled: 'ENABLED',
|
|
1968
|
+
};
|
|
1885
1969
|
export const invoiceAmountSubtotalType = {
|
|
1886
1970
|
Discount: 'DISCOUNT',
|
|
1887
1971
|
Duty: 'DUTY',
|
|
@@ -1904,6 +1988,7 @@ export const invoiceCollectionMethod = {
|
|
|
1904
1988
|
SendInvoice: 'SEND_INVOICE',
|
|
1905
1989
|
StripeBillingDraftInvoice: 'STRIPE_BILLING_DRAFT_INVOICE',
|
|
1906
1990
|
StripeBillingInvoice: 'STRIPE_BILLING_INVOICE',
|
|
1991
|
+
StripeInvoiceChargeAutomatically: 'STRIPE_INVOICE_CHARGE_AUTOMATICALLY',
|
|
1907
1992
|
};
|
|
1908
1993
|
export const invoiceDayOfWeek = {
|
|
1909
1994
|
Friday: 'FRIDAY',
|
|
@@ -1958,6 +2043,7 @@ export const invoiceDetailCategoryInputType = {
|
|
|
1958
2043
|
Country: 'COUNTRY',
|
|
1959
2044
|
Coupon: 'COUPON',
|
|
1960
2045
|
Ctp: 'CTP',
|
|
2046
|
+
CttCorreiosDisbursementFee: 'CTT_CORREIOS_DISBURSEMENT_FEE',
|
|
1961
2047
|
CuracaoBondFee: 'CURACAO_BOND_FEE',
|
|
1962
2048
|
CuracaoDisbursementFee: 'CURACAO_DISBURSEMENT_FEE',
|
|
1963
2049
|
CuracaoRemittanceFee: 'CURACAO_REMITTANCE_FEE',
|
|
@@ -2000,6 +2086,12 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2000
2086
|
NigeriaDisbursementFee: 'NIGERIA_DISBURSEMENT_FEE',
|
|
2001
2087
|
NigeriaRemittanceFee: 'NIGERIA_REMITTANCE_FEE',
|
|
2002
2088
|
NonGuaranteeAdvancement: 'NON_GUARANTEE_ADVANCEMENT',
|
|
2089
|
+
NonGuaranteeDuty: 'NON_GUARANTEE_DUTY',
|
|
2090
|
+
NonGuaranteeDutyTax: 'NON_GUARANTEE_DUTY_TAX',
|
|
2091
|
+
NonGuaranteeShipping: 'NON_GUARANTEE_SHIPPING',
|
|
2092
|
+
NonGuaranteeTax: 'NON_GUARANTEE_TAX',
|
|
2093
|
+
OmnivaDisbursementFee: 'OMNIVA_DISBURSEMENT_FEE',
|
|
2094
|
+
OmnivaRemittanceFee: 'OMNIVA_REMITTANCE_FEE',
|
|
2003
2095
|
PlatformFee: 'PLATFORM_FEE',
|
|
2004
2096
|
PostalOperator: 'POSTAL_OPERATOR',
|
|
2005
2097
|
PostnlRemittanceFee: 'POSTNL_REMITTANCE_FEE',
|
|
@@ -2016,6 +2108,7 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2016
2108
|
ShopifyGuaranteePercent: 'SHOPIFY_GUARANTEE_PERCENT',
|
|
2017
2109
|
ShopifyGuaranteePercentInclusive: 'SHOPIFY_GUARANTEE_PERCENT_INCLUSIVE',
|
|
2018
2110
|
ShopifyTransactionPercent: 'SHOPIFY_TRANSACTION_PERCENT',
|
|
2111
|
+
SingaporeRemittanceFee: 'SINGAPORE_REMITTANCE_FEE',
|
|
2019
2112
|
StorageFee: 'STORAGE_FEE',
|
|
2020
2113
|
SwissDisbursementFee: 'SWISS_DISBURSEMENT_FEE',
|
|
2021
2114
|
SwissRemittanceFee: 'SWISS_REMITTANCE_FEE',
|
|
@@ -2042,6 +2135,16 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2042
2135
|
ZonosSupport: 'ZONOS_SUPPORT',
|
|
2043
2136
|
ZonosTransaction: 'ZONOS_TRANSACTION',
|
|
2044
2137
|
};
|
|
2138
|
+
export const invoiceDisplayPreference = {
|
|
2139
|
+
DisplayAll: 'DISPLAY_ALL',
|
|
2140
|
+
DisplayMemoOnly: 'DISPLAY_MEMO_ONLY',
|
|
2141
|
+
DisplayNone: 'DISPLAY_NONE',
|
|
2142
|
+
DisplayPurchaseOrderAndMemo: 'DISPLAY_PURCHASE_ORDER_AND_MEMO',
|
|
2143
|
+
DisplayPurchaseOrderOnly: 'DISPLAY_PURCHASE_ORDER_ONLY',
|
|
2144
|
+
DisplayTaxIdAndMemo: 'DISPLAY_TAX_ID_AND_MEMO',
|
|
2145
|
+
DisplayTaxIdAndPurchaseOrder: 'DISPLAY_TAX_ID_AND_PURCHASE_ORDER',
|
|
2146
|
+
DisplayTaxIdOnly: 'DISPLAY_TAX_ID_ONLY',
|
|
2147
|
+
};
|
|
2045
2148
|
export const invoiceLanguageCode = {
|
|
2046
2149
|
Bg: 'BG',
|
|
2047
2150
|
Cs: 'CS',
|
|
@@ -2657,6 +2760,10 @@ export const mode = {
|
|
|
2657
2760
|
Live: 'LIVE',
|
|
2658
2761
|
Test: 'TEST',
|
|
2659
2762
|
};
|
|
2763
|
+
export const modelVersion = {
|
|
2764
|
+
Beta: 'BETA',
|
|
2765
|
+
Current: 'CURRENT',
|
|
2766
|
+
};
|
|
2660
2767
|
export const multiFactorAuthSetting = {
|
|
2661
2768
|
Disabled: 'DISABLED',
|
|
2662
2769
|
Enabled: 'ENABLED',
|
|
@@ -2711,6 +2818,10 @@ export const orderCompleteBillingMethod = {
|
|
|
2711
2818
|
BillingDgs: 'BILLING_DGS',
|
|
2712
2819
|
Legacy: 'LEGACY',
|
|
2713
2820
|
};
|
|
2821
|
+
export const orderDirection = {
|
|
2822
|
+
Asc: 'ASC',
|
|
2823
|
+
Desc: 'DESC',
|
|
2824
|
+
};
|
|
2714
2825
|
export const orderMerchantOfRecordType = {
|
|
2715
2826
|
Merchant: 'MERCHANT',
|
|
2716
2827
|
Zonos: 'ZONOS',
|
|
@@ -2836,10 +2947,16 @@ export const packagingOptionDeleteAction = {
|
|
|
2836
2947
|
Delete: 'DELETE',
|
|
2837
2948
|
Disable: 'DISABLE',
|
|
2838
2949
|
};
|
|
2950
|
+
export const packagingOptionOptimizationType = {
|
|
2951
|
+
CarrierFee: 'CARRIER_FEE',
|
|
2952
|
+
PackagingOption: 'PACKAGING_OPTION',
|
|
2953
|
+
};
|
|
2839
2954
|
export const packagingOptionSource = {
|
|
2840
2955
|
Default: 'DEFAULT',
|
|
2841
2956
|
Dynamic: 'DYNAMIC',
|
|
2957
|
+
General: 'GENERAL',
|
|
2842
2958
|
Organization: 'ORGANIZATION',
|
|
2959
|
+
Simulate: 'SIMULATE',
|
|
2843
2960
|
};
|
|
2844
2961
|
export const packagingOptionStatus = {
|
|
2845
2962
|
Disabled: 'DISABLED',
|
|
@@ -3426,6 +3543,10 @@ export const ratingLoggingType = {
|
|
|
3426
3543
|
Disabled: 'DISABLED',
|
|
3427
3544
|
Enabled: 'ENABLED',
|
|
3428
3545
|
};
|
|
3546
|
+
export const recalculatorExchangeRateLogging = {
|
|
3547
|
+
Disabled: 'DISABLED',
|
|
3548
|
+
Enabled: 'ENABLED',
|
|
3549
|
+
};
|
|
3429
3550
|
export const reportExportJobNotificationBehavior = {
|
|
3430
3551
|
EmailOnCompletion: 'EMAIL_ON_COMPLETION',
|
|
3431
3552
|
None: 'NONE',
|
|
@@ -4098,6 +4219,7 @@ export const webhookType = {
|
|
|
4098
4219
|
InventoryRefund: 'INVENTORY_REFUND',
|
|
4099
4220
|
IpSettingStatusChanged: 'IP_SETTING_STATUS_CHANGED',
|
|
4100
4221
|
OrderCanceled: 'ORDER_CANCELED',
|
|
4222
|
+
OrderCombined: 'ORDER_COMBINED',
|
|
4101
4223
|
OrderCreated: 'ORDER_CREATED',
|
|
4102
4224
|
OrderShipping: 'ORDER_SHIPPING',
|
|
4103
4225
|
OrderStatusChanged: 'ORDER_STATUS_CHANGED',
|
|
@@ -4130,6 +4252,10 @@ export const zonosInvoiceCollectionMethod = {
|
|
|
4130
4252
|
SendInvoice: 'SEND_INVOICE',
|
|
4131
4253
|
StripeBillingDraftInvoice: 'STRIPE_BILLING_DRAFT_INVOICE',
|
|
4132
4254
|
StripeBillingInvoice: 'STRIPE_BILLING_INVOICE',
|
|
4255
|
+
StripeInvoiceChargeAutomatically: 'STRIPE_INVOICE_CHARGE_AUTOMATICALLY',
|
|
4256
|
+
};
|
|
4257
|
+
export const zonosInvoiceFeatureFlagKey = {
|
|
4258
|
+
RedisZonosInvoiceProcessorEnabled: 'REDIS_ZONOS_INVOICE_PROCESSOR_ENABLED',
|
|
4133
4259
|
};
|
|
4134
4260
|
export const zonosInvoiceInternalExclusionType = {
|
|
4135
4261
|
ZeroAmount: 'ZERO_AMOUNT',
|
|
@@ -4144,6 +4270,15 @@ export const zonosInvoiceJobStatus = {
|
|
|
4144
4270
|
UpdateInvoices: 'UPDATE_INVOICES',
|
|
4145
4271
|
VoidUnpaid: 'VOID_UNPAID',
|
|
4146
4272
|
};
|
|
4273
|
+
export const zonosInvoiceOrderByField = {
|
|
4274
|
+
Amount: 'AMOUNT',
|
|
4275
|
+
CreatedAt: 'CREATED_AT',
|
|
4276
|
+
CurrencyCode: 'CURRENCY_CODE',
|
|
4277
|
+
};
|
|
4278
|
+
export const zonosInvoiceReprocessAction = {
|
|
4279
|
+
Combine: 'COMBINE',
|
|
4280
|
+
KeepSeparate: 'KEEP_SEPARATE',
|
|
4281
|
+
};
|
|
4147
4282
|
export const zonosInvoiceStatusUpdateInputType = {
|
|
4148
4283
|
Created: 'CREATED',
|
|
4149
4284
|
Dispute: 'DISPUTE',
|
|
@@ -13,6 +13,7 @@ export * from './checkout/api/StoreDiscountEnabled';
|
|
|
13
13
|
export * from './checkout/api/ValidateAddress';
|
|
14
14
|
export * from './checkout/api/VarianceTest';
|
|
15
15
|
export * from './checkout/CheckoutConfig';
|
|
16
|
+
export * from './checkout/ShortAddressCode';
|
|
16
17
|
export * from './checkout/TaxId';
|
|
17
18
|
export * from './ConversionEvent';
|
|
18
19
|
export * from './hello/HelloConfig';
|