@zonos/elements 1.3.246 → 1.3.247
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-97a2d20a.js} +35 -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 +9 -7
- package/dist/cjs/{invoice-972f1ab3.js → invoice-05a10ee1.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-fd11246c.js → isCollectMobileTablet-edd4804c.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-0b4b352b.js} +4 -12
- package/dist/cjs/{placeTestOrder-3dfbe3d6.js → placeTestOrder-07b46688.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-55056c97.js → renderCheckoutCurrency-dd3b0609.js} +2 -2
- package/dist/cjs/{shouldRenderTaxIdInput-eda13ef8.js → shouldRenderTaxIdInput-b8abf6de.js} +18 -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 +4 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +65 -44
- package/dist/cjs/zonos-checkout.cjs.entry.js +6 -5
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +7 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +5 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- 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 +7 -6
- package/dist/cjs/zonos-invoice.cjs.entry.js +5 -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.js +2 -2
- 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 +22 -3
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +35 -4
- package/dist/collection/components/store/checkout/stripe.js +32 -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/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-99ec4a3d.js} +35 -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 +8 -7
- package/dist/esm/{invoice-d3d256fb.js → invoice-44e97c22.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-566ff0aa.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-56534e48.js} +4 -11
- package/dist/esm/{placeTestOrder-c2180600.js → placeTestOrder-9e0ab5fd.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-1bd40006.js} +2 -2
- package/dist/esm/{shouldRenderTaxIdInput-d45ceeb4.js → shouldRenderTaxIdInput-2572bf77.js} +18 -1
- 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 +4 -3
- package/dist/esm/zonos-cart-items_12.entry.js +65 -44
- package/dist/esm/zonos-checkout.entry.js +6 -5
- package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
- package/dist/esm/zonos-collect-finish_6.entry.js +7 -6
- package/dist/esm/zonos-collect.entry.js +5 -4
- package/dist/esm/zonos-controller.entry.js +2 -2
- 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 +7 -6
- package/dist/esm/zonos-invoice.entry.js +5 -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-99ec4a3d.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-44e97c22.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-566ff0aa.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-56534e48.js +17 -0
- package/dist/esm-es5/{placeTestOrder-c2180600.js → placeTestOrder-9e0ab5fd.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-1bd40006.js} +1 -1
- package/dist/esm-es5/shouldRenderTaxIdInput-2572bf77.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/index.d.ts +50 -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-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 +4 -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.d.ts +32 -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-08365fdb.system.js +1 -0
- package/dist/zonos-elements/p-09aabce0.js +1 -0
- package/dist/zonos-elements/p-0c201c39.system.entry.js +1 -0
- package/dist/zonos-elements/p-0cb5f151.system.entry.js +1 -0
- package/dist/zonos-elements/{p-367c13db.system.entry.js → p-10355cf6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-14735e9a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-288aab46.js → p-1b86711b.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-2c10b067.system.entry.js +1 -0
- package/dist/zonos-elements/p-2e8f842c.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-133e9ce7.system.entry.js → p-382601a9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe699cc5.system.entry.js → p-3908f78d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3e2f175c.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-a79f3685.js → p-46ece7ae.js} +1 -1
- package/dist/zonos-elements/p-48d55793.system.js +1 -0
- package/dist/zonos-elements/p-5295d36e.entry.js +1 -0
- package/dist/zonos-elements/{p-4d7b82b5.entry.js → p-53a9da45.entry.js} +1 -1
- package/dist/zonos-elements/p-63a383f4.js +1 -0
- package/dist/zonos-elements/{p-a3411f20.entry.js → p-64870563.entry.js} +1 -1
- package/dist/zonos-elements/p-655ec440.system.js +1 -0
- package/dist/zonos-elements/{p-415c2a90.system.js → p-678331f0.system.js} +1 -1
- package/dist/zonos-elements/p-695e0803.system.entry.js +1 -0
- package/dist/zonos-elements/{p-4bd8a16c.entry.js → p-69b9b711.entry.js} +1 -1
- package/dist/zonos-elements/p-6e3cf6eb.entry.js +1 -0
- package/dist/zonos-elements/p-6f430d6f.system.entry.js +1 -0
- package/dist/zonos-elements/p-71185d24.system.js +1 -0
- package/dist/zonos-elements/p-786d1c24.js +1 -0
- package/dist/zonos-elements/p-794d29dc.entry.js +1 -0
- package/dist/zonos-elements/{p-87206522.system.entry.js → p-7b400b5f.system.entry.js} +1 -1
- 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-8defdf0d.system.js +17 -0
- package/dist/zonos-elements/p-8e98a7c8.js +1 -0
- package/dist/zonos-elements/{p-2889a485.system.entry.js → p-95348ebf.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9a066833.system.entry.js +1 -0
- package/dist/zonos-elements/p-aa6c2348.system.entry.js +1 -0
- package/dist/zonos-elements/p-ada8841a.js +1 -0
- 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-c2442878.system.js +1 -1
- package/dist/zonos-elements/p-c75b7c47.entry.js +1 -0
- package/dist/zonos-elements/p-caff391d.system.entry.js +1 -0
- package/dist/zonos-elements/p-ce98e472.js +1 -0
- package/dist/zonos-elements/{p-3f46d83e.entry.js → p-d0411b2d.entry.js} +1 -1
- package/dist/zonos-elements/{p-faae5eca.entry.js → p-d5b7d3c3.entry.js} +1 -1
- package/dist/zonos-elements/p-dca14319.system.js +1 -0
- package/dist/zonos-elements/p-dd19d9d8.js +17 -0
- package/dist/zonos-elements/{p-e0809901.system.js → p-df6e62f8.system.js} +1 -1
- package/dist/zonos-elements/p-df90bccf.entry.js +1 -0
- package/dist/zonos-elements/p-e07aaf09.system.js +1 -0
- package/dist/zonos-elements/p-e458f737.entry.js +1 -0
- package/dist/zonos-elements/p-eea7ac64.js +1 -0
- package/dist/zonos-elements/p-f6f1d779.system.entry.js +1 -0
- package/dist/zonos-elements/p-f8eb618b.entry.js +1 -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-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-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
|
@@ -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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-b434e436.js';
|
|
2
|
-
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-
|
|
2
|
+
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-853b48a9.js';
|
|
3
3
|
import { f as fallbackApiList, h as handleFetch, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
4
4
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
|
|
@@ -117,6 +117,7 @@ const prepCartCalculateLandedCost = (cartId) => {
|
|
|
117
117
|
},
|
|
118
118
|
]
|
|
119
119
|
: [],
|
|
120
|
+
shipToShortAddressCode: stripeStore.shortAddressCode,
|
|
120
121
|
shipToTaxId: stripeStore.taxId,
|
|
121
122
|
shippingAddress: {
|
|
122
123
|
addressLine1: translatedShippingAddress.line1,
|
|
@@ -203,6 +204,7 @@ const prepCalculateLandedCost = () => {
|
|
|
203
204
|
isTest: isE2ETest,
|
|
204
205
|
items: cartStore.items,
|
|
205
206
|
landedCostAdjustments: adjustments,
|
|
207
|
+
shipToShortAddressCode: stripeStore.shortAddressCode,
|
|
206
208
|
shipToTaxId: stripeStore.taxId,
|
|
207
209
|
shippingAddress: {
|
|
208
210
|
addressLine1: translatedShippingAddress.line1,
|
|
@@ -662,6 +664,7 @@ const { onChange: stripeStoreOnChange, reset: reset$1, state: stripeStore, } = c
|
|
|
662
664
|
isFetchingSession: false,
|
|
663
665
|
partyBillingId: null,
|
|
664
666
|
partyShippingId: null,
|
|
667
|
+
shortAddressCode: '',
|
|
665
668
|
shouldInventoryRefund: false,
|
|
666
669
|
shouldRenderPayInUsdButton: false,
|
|
667
670
|
/**
|
|
@@ -802,12 +805,27 @@ const checkIsAddressOutdatedForValidation = () => {
|
|
|
802
805
|
return isAddressDataDirty || isBillingAddressDataDirty;
|
|
803
806
|
};
|
|
804
807
|
const checkIsAddressOutdatedForAsyncAddressUpdate = () => {
|
|
805
|
-
var _a, _b, _c, _d, _e, _f;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
808
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
809
|
+
/**
|
|
810
|
+
* If user updates the address after prefetching the landed cost, should always create and attach
|
|
811
|
+
* @caveat this will cause the scenario goes wrong after prefetching landed cost, with the current logic, it won't create party because nothing change after the prefetch happened
|
|
812
|
+
*/
|
|
813
|
+
const landedCostShipToPartyId = (_a = cartStore.partiesData.find(party => party.type === 'DESTINATION')) === null || _a === void 0 ? void 0 : _a.id;
|
|
814
|
+
const landedCostBillToPartyId = (_b = cartStore.partiesData.find(party => party.type === 'PAYOR')) === null || _b === void 0 ? void 0 : _b.id;
|
|
815
|
+
// If haven't prefetched landed cost, there is no need to update address async
|
|
816
|
+
if (!landedCostShipToPartyId || !landedCostBillToPartyId) {
|
|
817
|
+
return false;
|
|
818
|
+
}
|
|
819
|
+
// If we don't have landed cost parties data, should way
|
|
820
|
+
if (stripeStore.partyShippingId !== landedCostShipToPartyId ||
|
|
821
|
+
stripeStore.partyBillingId !== landedCostBillToPartyId) {
|
|
822
|
+
return true;
|
|
823
|
+
}
|
|
824
|
+
const isLinkDataDirty = JSON.stringify((_c = stripeStore.stripeLinkUsedWhenFetchingLC) === null || _c === void 0 ? void 0 : _c.value) !==
|
|
825
|
+
JSON.stringify((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value);
|
|
826
|
+
const isAddressDataDirty = JSON.stringify((_e = stripeStore.stripeAddressUsedWhenAsyncAddressUpdate) === null || _e === void 0 ? void 0 : _e.value) !== JSON.stringify((_f = stripeStore.stripeAddressEventData) === null || _f === void 0 ? void 0 : _f.value);
|
|
809
827
|
const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
|
|
810
|
-
JSON.stringify((
|
|
828
|
+
JSON.stringify((_g = stripeStore.stripeBillingAddressUsedWhenAsyncAddressUpdate) === null || _g === void 0 ? void 0 : _g.value) !== JSON.stringify((_h = stripeStore.stripeBillingAddressEventData) === null || _h === void 0 ? void 0 : _h.value);
|
|
811
829
|
const isTaxIdDirty = stripeStore.taxIdUsedWhenAsyncAddressUpdate !== stripeStore.taxId;
|
|
812
830
|
const isCompanyNameDirty = stripeStore.companyNameUsedWhenAsyncAddressUpdate !==
|
|
813
831
|
stripeStore.companyName;
|
|
@@ -924,6 +942,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
924
942
|
email: ((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
|
|
925
943
|
isTest: isE2ETest,
|
|
926
944
|
rootId: firstLandedCostRootId,
|
|
945
|
+
shortAddressCode: stripeStore.shortAddressCode,
|
|
927
946
|
taxId: stripeStore.taxId,
|
|
928
947
|
},
|
|
929
948
|
method: 'POST',
|
|
@@ -953,6 +972,16 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
953
972
|
stripeStore.taxIdUsedWhenAsyncAddressUpdate = stripeStore.taxId;
|
|
954
973
|
stripeStore.partyBillingId = json.billToPartyId;
|
|
955
974
|
stripeStore.partyShippingId = json.shipToPartyId;
|
|
975
|
+
// Update parties data with the new parties id
|
|
976
|
+
cartStore.partiesData = cartStore.partiesData.map(party => {
|
|
977
|
+
if (party.type === 'DESTINATION' && party.id !== json.shipToPartyId) {
|
|
978
|
+
return Object.assign(Object.assign({}, party), { id: json.shipToPartyId });
|
|
979
|
+
}
|
|
980
|
+
if (party.type === 'PAYOR' && party.id !== json.billToPartyId) {
|
|
981
|
+
return Object.assign(Object.assign({}, party), { id: json.billToPartyId });
|
|
982
|
+
}
|
|
983
|
+
return party;
|
|
984
|
+
});
|
|
956
985
|
return {
|
|
957
986
|
partiesCreated: true,
|
|
958
987
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { i as isDarkColor, t as tinycolor } from './isDarkColor-9ddd90cc.js';
|
|
2
|
+
import { i as isContrastColor } from './isContrastColor-69778cea.js';
|
|
3
|
+
|
|
4
|
+
const getContrastColor = ({ backgroundColor, color, }) => {
|
|
5
|
+
if (backgroundColor === color) {
|
|
6
|
+
if (isDarkColor(color)) {
|
|
7
|
+
const ligherColor = tinycolor(color).lighten(40).toHexString();
|
|
8
|
+
return ligherColor;
|
|
9
|
+
}
|
|
10
|
+
const darkerColor = tinycolor(color).darken(40).toHexString();
|
|
11
|
+
return darkerColor;
|
|
12
|
+
}
|
|
13
|
+
// get readibility of the color
|
|
14
|
+
const isContrastEnough = isContrastColor({
|
|
15
|
+
backgroundColor1: backgroundColor,
|
|
16
|
+
backgroundColor2: color,
|
|
17
|
+
});
|
|
18
|
+
if (isContrastEnough) {
|
|
19
|
+
// no need to change the color if it's already contrast enough
|
|
20
|
+
return color;
|
|
21
|
+
}
|
|
22
|
+
if (isDarkColor(color)) {
|
|
23
|
+
return '#ffffff';
|
|
24
|
+
}
|
|
25
|
+
const newDarkerColor = tinycolor(color).darken(25).toHexString();
|
|
26
|
+
const newLigherColor = tinycolor(color).lighten(25).toHexString();
|
|
27
|
+
// get readibility of the color
|
|
28
|
+
const isNewColorContrastEnough = isContrastColor({
|
|
29
|
+
backgroundColor1: backgroundColor,
|
|
30
|
+
backgroundColor2: newDarkerColor,
|
|
31
|
+
});
|
|
32
|
+
return isNewColorContrastEnough ? newDarkerColor : newLigherColor;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export { getContrastColor as g };
|
package/dist/esm/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { a as availableTestKeys } from './VarianceTest-572cecf5.js';
|
|
|
5
5
|
import { g as getIsTestMode, a as getIsStagingMode, h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
|
|
6
6
|
import { g as getAbandonedCartRenewTokenValue, _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector } from './CheckoutConfig-724d7bae.js';
|
|
7
7
|
export { c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-724d7bae.js';
|
|
8
|
+
export { c as countryRequireShortAddressCode } from './ShortAddressCode-7620e622.js';
|
|
8
9
|
export { c as countryRequireTaxId, e as euCountryCodes, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -130,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
130
131
|
return null;
|
|
131
132
|
}
|
|
132
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
133
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.247.js.zonos.com";
|
|
134
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
135
136
|
if (!qaUrl &&
|
|
136
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -378,10 +379,10 @@ const zonosLoadUrl = (() => {
|
|
|
378
379
|
return null;
|
|
379
380
|
})();
|
|
380
381
|
const startLoadTime = Date.now();
|
|
381
|
-
const ZONOS_URL = "https://v1.3.
|
|
382
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
383
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
384
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
382
|
+
const ZONOS_URL = "https://v1.3.247.js.zonos.com";
|
|
383
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.247";
|
|
384
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.247";
|
|
385
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.247";
|
|
385
386
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
386
387
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
387
388
|
class Zonos {
|
|
@@ -399,7 +400,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
399
400
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
400
401
|
: null;
|
|
401
402
|
Zonos.isBigCommerce = false;
|
|
402
|
-
Zonos.releaseDate = "
|
|
403
|
+
Zonos.releaseDate = "1769706838597";
|
|
403
404
|
Zonos.isLegacyCheckout = false;
|
|
404
405
|
Zonos.startLoadTime = startLoadTime;
|
|
405
406
|
Zonos.domain = typeof window !== 'undefined'
|
|
@@ -420,7 +421,7 @@ Zonos.isNpm = true;
|
|
|
420
421
|
Zonos.zonosQaUrl = null;
|
|
421
422
|
Zonos.zonosQaUrlApi = null;
|
|
422
423
|
Zonos.trackEventLogs = [];
|
|
423
|
-
Zonos.version = `v${"1.3.
|
|
424
|
+
Zonos.version = `v${"1.3.247"}`;
|
|
424
425
|
Zonos.modeAlerted = false;
|
|
425
426
|
Zonos.cartData = null;
|
|
426
427
|
Zonos.paypal = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-b434e436.js';
|
|
2
|
-
import { b as stripeStore, C as stripeStoreBuildAddressForPartyCreate, d as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
2
|
+
import { b as stripeStore, C as stripeStoreBuildAddressForPartyCreate, d as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-99ec4a3d.js';
|
|
3
|
+
import { s as storageStore } from './localization-853b48a9.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createStore, z as zonosStore } from './zonosStore-b434e436.js';
|
|
2
|
-
import { b as stripeStore, C as stripeStoreBuildAddressForPartyCreate, d as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
2
|
+
import { b as stripeStore, C as stripeStoreBuildAddressForPartyCreate, d as cartStore, D as cartStoreUpdateSelectedShippingOption } from './cart-99ec4a3d.js';
|
|
3
|
+
import { s as storageStore } from './localization-853b48a9.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as tinycolor } from './isDarkColor-9ddd90cc.js';
|
|
2
|
+
|
|
3
|
+
const isContrastColor = ({ backgroundColor1, backgroundColor2, }) => {
|
|
4
|
+
// get readibility of the color
|
|
5
|
+
const colorReadibilityValue = tinycolor.readability(backgroundColor1, backgroundColor2);
|
|
6
|
+
// If the readibility is less than 2.5, then we need to use different color
|
|
7
|
+
return colorReadibilityValue > 2.5;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { isContrastColor as i };
|