@zonos/elements 1.3.229 → 1.3.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{buildCartItemsByTempCart-309fcebf.js → buildCartItemsByTempCart-edddbf4b.js} +1 -0
- package/dist/cjs/{cart-ad82a680.js → cart-9b519566.js} +6 -2
- package/dist/cjs/hasInclusivePrice-12605be9.js +24 -0
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{localization-31e3dfe3.js → localization-38af974b.js} +118 -30
- package/dist/cjs/{paypal-88b5e878.js → paypal-e8fa2302.js} +3 -3
- package/dist/cjs/{placeTestOrder-6aefbf9c.js → placeTestOrder-6388881f.js} +11 -7
- package/dist/cjs/{renderFallback-87c908ad.js → renderFallback-bb2c4bce.js} +2 -2
- package/dist/cjs/{translationStore-b8b25e9d.js → translationStore-f2d5eae9.js} +420 -360
- package/dist/cjs/zonos-address_11.cjs.entry.js +21 -5
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +73 -13
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -6
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +6 -6
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +12 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -6
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +55 -45
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +68 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -4
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +54 -43
- package/dist/collection/components/main/zonos-controller.js +5 -2
- package/dist/collection/components/store/hello/localization.js +47 -16
- package/dist/collection/components/store/translationStore/strings.arabic.js +21 -18
- package/dist/collection/components/store/translationStore/strings.base.js +21 -18
- package/dist/collection/components/store/translationStore/strings.chinese.js +21 -18
- package/dist/collection/components/store/translationStore/strings.danish.js +21 -18
- package/dist/collection/components/store/translationStore/strings.dutch.js +21 -18
- package/dist/collection/components/store/translationStore/strings.french.js +21 -18
- package/dist/collection/components/store/translationStore/strings.german.js +21 -18
- package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -18
- package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -18
- package/dist/collection/components/store/translationStore/strings.italian.js +21 -18
- package/dist/collection/components/store/translationStore/strings.japanese.js +21 -18
- package/dist/collection/components/store/translationStore/strings.korean.js +21 -18
- package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -18
- package/dist/collection/components/store/translationStore/strings.polish.js +21 -18
- package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -18
- package/dist/collection/components/store/translationStore/strings.russian.js +21 -18
- package/dist/collection/components/store/translationStore/strings.spanish.js +21 -18
- package/dist/collection/components/store/translationStore/strings.swedish.js +21 -18
- package/dist/collection/components/store/translationStore/strings.turkish.js +21 -18
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -18
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +18 -2
- package/dist/collection/components/utils/api/buildCartItemsByTempCart.js +1 -0
- package/dist/collection/components/utils/api/{getInclusivePricing.js → getInclusivePriceConfigurations.js} +1 -1
- package/dist/collection/components/utils/api/getLocalization.js +2 -5
- package/dist/collection/components/utils/api/getZonosSettings.js +5 -0
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +6 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -5
- package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +4 -1
- package/dist/collection/components/utils/getOverridenZCountry.js +11 -0
- package/dist/collection/components/utils/hasInclusivePrice.js +10 -0
- package/dist/collection/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.js +10 -0
- package/dist/collection/components/utils/hello/currencyConversion/applyInclusivePrice.js +39 -0
- package/dist/collection/components/utils/hello/currencyConversion/calculateInclusivePrice.js +32 -0
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +11 -6
- package/dist/collection/constants/key.js +9 -0
- package/dist/collection/types/InclusivePricing.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +87 -3
- package/dist/collection/types/index.js +1 -0
- package/dist/collection/utils/performBlurCurrency.js +38 -5
- package/dist/esm/{buildCartItemsByTempCart-c4488f73.js → buildCartItemsByTempCart-a117f75d.js} +1 -0
- package/dist/esm/{cart-c74f9aaa.js → cart-bc0e1598.js} +6 -2
- package/dist/esm/hasInclusivePrice-706cc09d.js +20 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/{localization-106476cb.js → localization-53f67640.js} +117 -31
- package/dist/esm/{paypal-bf3a2bdd.js → paypal-3a6a048d.js} +3 -3
- package/dist/esm/{placeTestOrder-891295e8.js → placeTestOrder-917731cf.js} +11 -7
- package/dist/esm/{renderFallback-ce0e238a.js → renderFallback-cd0e40d9.js} +2 -2
- package/dist/esm/{translationStore-766b7521.js → translationStore-d241dcf7.js} +420 -360
- package/dist/esm/zonos-address_11.entry.js +21 -5
- package/dist/esm/zonos-cart-items_13.entry.js +73 -13
- package/dist/esm/zonos-checkout.entry.js +9 -6
- package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
- package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
- package/dist/esm/zonos-collect.entry.js +6 -6
- package/dist/esm/zonos-confirm-dialog_2.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +12 -5
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +9 -6
- package/dist/esm/zonos-empty-state-payment_4.entry.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +55 -45
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-a117f75d.js +1 -0
- package/dist/esm-es5/cart-bc0e1598.js +1 -0
- package/dist/esm-es5/hasInclusivePrice-706cc09d.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/localization-53f67640.js +1 -0
- package/dist/esm-es5/{paypal-bf3a2bdd.js → paypal-3a6a048d.js} +1 -1
- package/dist/esm-es5/placeTestOrder-917731cf.js +1 -0
- package/dist/esm-es5/{renderFallback-ce0e238a.js → renderFallback-cd0e40d9.js} +1 -1
- package/dist/esm-es5/translationStore-d241dcf7.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.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-confirm-dialog_2.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-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/scripts/blurCurrencyOnInit.js +1 -1
- package/dist/scripts/index.d.ts +39 -6
- 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-cart-subtotal/zonos-cart-subtotal.d.ts +2 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -1
- package/dist/types/components/store/checkout/cart.d.ts +3 -0
- package/dist/types/components/store/hello/localization.d.ts +14 -3
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.base.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.french.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.german.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -15
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -15
- package/dist/types/components/utils/api/getInclusivePriceConfigurations.d.ts +2 -0
- package/dist/types/components/utils/getOverridenZCountry.d.ts +5 -0
- package/dist/types/components/utils/hasInclusivePrice.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/applyInclusivePrice.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/calculateInclusivePrice.d.ts +27 -0
- package/dist/types/constants/key.d.ts +9 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/InclusivePricing.d.ts +13 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +192 -51
- package/dist/types/types/generated/graphql.internal.types.ts +229 -50
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/utils/ZonosSettings.d.ts +2 -0
- package/dist/types/utils/performBlurCurrency.d.ts +12 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-c89e9d56.system.js → p-0047fecf.system.js} +1 -1
- package/dist/zonos-elements/{p-bd373de0.system.entry.js → p-0bc8e55c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-964a4d85.js → p-2008df67.js} +1 -1
- package/dist/zonos-elements/{p-2db90c99.system.entry.js → p-22338b4a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3d2925c5.system.entry.js → p-2eaa5013.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-288f5a5b.system.entry.js → p-304bdbc2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-30981f80.entry.js +1 -0
- package/dist/zonos-elements/{p-69451a50.system.js → p-398d9022.system.js} +1 -1
- package/dist/zonos-elements/p-3a242dfc.system.js +1 -0
- package/dist/zonos-elements/{p-5608ac9d.entry.js → p-3eda5c2c.entry.js} +1 -1
- package/dist/zonos-elements/p-3f0ca5f9.js +1 -0
- package/dist/zonos-elements/{p-23f6a2fb.system.entry.js → p-3f35b8b1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-de984173.system.js → p-419c292c.system.js} +1 -1
- package/dist/zonos-elements/{p-7a97e1cf.system.entry.js → p-4697f061.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4f5be8f0.entry.js +1 -0
- package/dist/zonos-elements/p-516a9666.system.js +1 -0
- package/dist/zonos-elements/p-55c6ff14.system.entry.js +1 -0
- package/dist/zonos-elements/p-6d563f33.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9c728733.system.js → p-7730879e.system.js} +1 -1
- package/dist/zonos-elements/p-7920d79c.system.js +1 -0
- package/dist/zonos-elements/p-7c96a585.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/{p-29c80a34.js → p-83666056.js} +1 -1
- package/dist/zonos-elements/{p-2b84039a.entry.js → p-91fa43ef.entry.js} +1 -1
- package/dist/zonos-elements/p-9a444a82.system.entry.js +1 -0
- package/dist/zonos-elements/p-9bdad585.system.entry.js +1 -0
- package/dist/zonos-elements/p-abc0fb80.js +1 -0
- package/dist/zonos-elements/{p-b0a75761.entry.js → p-ac26a931.entry.js} +1 -1
- package/dist/zonos-elements/p-bb707dfd.system.js +1 -0
- package/dist/zonos-elements/{p-10894d36.entry.js → p-bc963b03.entry.js} +1 -1
- package/dist/zonos-elements/p-c0e080e3.js +1 -0
- package/dist/zonos-elements/p-c20429ea.entry.js +1 -0
- package/dist/zonos-elements/p-c28da00e.entry.js +1 -0
- package/dist/zonos-elements/p-c9be03e0.entry.js +1 -0
- package/dist/zonos-elements/{p-6c8e4f01.system.entry.js → p-cb70de13.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cec35a21.entry.js +1 -0
- package/dist/zonos-elements/{p-cf56b990.entry.js → p-d15cd138.entry.js} +1 -1
- package/dist/zonos-elements/{p-6f1024de.system.entry.js → p-d852d6da.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d9486c57.entry.js +1 -0
- package/dist/zonos-elements/p-db73c11a.entry.js +1 -0
- package/dist/zonos-elements/{p-203c7fda.js → p-e27a9450.js} +1 -1
- package/dist/zonos-elements/{p-76f924b3.entry.js → p-ede9e968.entry.js} +1 -1
- package/dist/zonos-elements/p-ee8fcde6.js +1 -0
- package/dist/zonos-elements/p-f688d7a4.system.js +1 -0
- package/dist/zonos-elements/{p-236e0144.system.entry.js → p-ff1722d0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ff522088.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +0 -1
- package/dist/esm-es5/cart-c74f9aaa.js +0 -1
- package/dist/esm-es5/localization-106476cb.js +0 -1
- package/dist/esm-es5/placeTestOrder-891295e8.js +0 -1
- package/dist/esm-es5/translationStore-766b7521.js +0 -1
- package/dist/types/components/utils/api/getInclusivePricing.d.ts +0 -6
- package/dist/zonos-elements/p-053a042e.entry.js +0 -1
- package/dist/zonos-elements/p-0d3767ec.entry.js +0 -1
- package/dist/zonos-elements/p-1d15662c.js +0 -1
- package/dist/zonos-elements/p-21b251f0.system.entry.js +0 -1
- package/dist/zonos-elements/p-225a61c4.system.entry.js +0 -1
- package/dist/zonos-elements/p-462f8857.entry.js +0 -1
- package/dist/zonos-elements/p-57ee34aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-595668d7.system.js +0 -1
- package/dist/zonos-elements/p-62803534.entry.js +0 -1
- package/dist/zonos-elements/p-6497ce22.entry.js +0 -1
- package/dist/zonos-elements/p-65db3219.entry.js +0 -1
- package/dist/zonos-elements/p-94853366.system.entry.js +0 -1
- package/dist/zonos-elements/p-9972941a.entry.js +0 -1
- package/dist/zonos-elements/p-ad7be556.system.entry.js +0 -1
- package/dist/zonos-elements/p-b4fe3604.system.js +0 -1
- package/dist/zonos-elements/p-b8293509.js +0 -1
- package/dist/zonos-elements/p-c3c3cd98.js +0 -1
- package/dist/zonos-elements/p-cdaf52f4.system.js +0 -1
- package/dist/zonos-elements/p-cef1e888.system.js +0 -1
- package/dist/zonos-elements/p-eea0d8af.js +0 -1
- package/dist/zonos-elements/p-f4085c23.entry.js +0 -1
|
@@ -194,6 +194,12 @@ export declare const stringsPortuguese: {
|
|
|
194
194
|
Duties: {
|
|
195
195
|
value: string;
|
|
196
196
|
};
|
|
197
|
+
'Duties and fees': {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
'Duties and fees included': {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
197
203
|
'Duties and taxes will be applied to items and shipping.': {
|
|
198
204
|
value: string;
|
|
199
205
|
};
|
|
@@ -431,25 +437,13 @@ export declare const stringsPortuguese: {
|
|
|
431
437
|
'Proceed with order': {
|
|
432
438
|
value: string;
|
|
433
439
|
};
|
|
434
|
-
'Product prices already include duties and fees. No additional duties or fees will be added at checkout
|
|
435
|
-
value: string;
|
|
436
|
-
};
|
|
437
|
-
'Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.': {
|
|
438
|
-
value: string;
|
|
439
|
-
};
|
|
440
|
-
'Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.': {
|
|
441
|
-
value: string;
|
|
442
|
-
};
|
|
443
|
-
'Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.': {
|
|
444
|
-
value: string;
|
|
445
|
-
};
|
|
446
|
-
'Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.': {
|
|
440
|
+
'Product prices already include duties and fees. No additional duties or fees will be added at checkout.': {
|
|
447
441
|
value: string;
|
|
448
442
|
};
|
|
449
|
-
'Product prices already include taxes and fees. No additional taxes or fees will be added at checkout
|
|
443
|
+
'Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.': {
|
|
450
444
|
value: string;
|
|
451
445
|
};
|
|
452
|
-
'Product prices already include taxes. No additional taxes will be added at checkout
|
|
446
|
+
'Product prices already include taxes. No additional taxes will be added at checkout.': {
|
|
453
447
|
value: string;
|
|
454
448
|
};
|
|
455
449
|
Province: {
|
|
@@ -575,9 +569,15 @@ export declare const stringsPortuguese: {
|
|
|
575
569
|
'Taxes and fees': {
|
|
576
570
|
value: string;
|
|
577
571
|
};
|
|
572
|
+
'Taxes included': {
|
|
573
|
+
value: string;
|
|
574
|
+
};
|
|
578
575
|
'Taxes will apply to all orders.': {
|
|
579
576
|
value: string;
|
|
580
577
|
};
|
|
578
|
+
'Taxes, duties, and fees included': {
|
|
579
|
+
value: string;
|
|
580
|
+
};
|
|
581
581
|
'Test cards': {
|
|
582
582
|
value: string;
|
|
583
583
|
};
|
|
@@ -599,6 +599,9 @@ export declare const stringsPortuguese: {
|
|
|
599
599
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
600
600
|
value: string;
|
|
601
601
|
};
|
|
602
|
+
'The purchase price covers duties, taxes and fees.': {
|
|
603
|
+
value: string;
|
|
604
|
+
};
|
|
602
605
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
603
606
|
value: string;
|
|
604
607
|
};
|
|
@@ -194,6 +194,12 @@ export declare const stringsRussian: {
|
|
|
194
194
|
Duties: {
|
|
195
195
|
value: string;
|
|
196
196
|
};
|
|
197
|
+
'Duties and fees': {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
'Duties and fees included': {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
197
203
|
'Duties and taxes will be applied to items and shipping.': {
|
|
198
204
|
value: string;
|
|
199
205
|
};
|
|
@@ -431,25 +437,13 @@ export declare const stringsRussian: {
|
|
|
431
437
|
'Proceed with order': {
|
|
432
438
|
value: string;
|
|
433
439
|
};
|
|
434
|
-
'Product prices already include duties and fees. No additional duties or fees will be added at checkout
|
|
435
|
-
value: string;
|
|
436
|
-
};
|
|
437
|
-
'Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.': {
|
|
438
|
-
value: string;
|
|
439
|
-
};
|
|
440
|
-
'Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.': {
|
|
441
|
-
value: string;
|
|
442
|
-
};
|
|
443
|
-
'Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.': {
|
|
444
|
-
value: string;
|
|
445
|
-
};
|
|
446
|
-
'Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.': {
|
|
440
|
+
'Product prices already include duties and fees. No additional duties or fees will be added at checkout.': {
|
|
447
441
|
value: string;
|
|
448
442
|
};
|
|
449
|
-
'Product prices already include taxes and fees. No additional taxes or fees will be added at checkout
|
|
443
|
+
'Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.': {
|
|
450
444
|
value: string;
|
|
451
445
|
};
|
|
452
|
-
'Product prices already include taxes. No additional taxes will be added at checkout
|
|
446
|
+
'Product prices already include taxes. No additional taxes will be added at checkout.': {
|
|
453
447
|
value: string;
|
|
454
448
|
};
|
|
455
449
|
Province: {
|
|
@@ -575,9 +569,15 @@ export declare const stringsRussian: {
|
|
|
575
569
|
'Taxes and fees': {
|
|
576
570
|
value: string;
|
|
577
571
|
};
|
|
572
|
+
'Taxes included': {
|
|
573
|
+
value: string;
|
|
574
|
+
};
|
|
578
575
|
'Taxes will apply to all orders.': {
|
|
579
576
|
value: string;
|
|
580
577
|
};
|
|
578
|
+
'Taxes, duties, and fees included': {
|
|
579
|
+
value: string;
|
|
580
|
+
};
|
|
581
581
|
'Test cards': {
|
|
582
582
|
value: string;
|
|
583
583
|
};
|
|
@@ -599,6 +599,9 @@ export declare const stringsRussian: {
|
|
|
599
599
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
600
600
|
value: string;
|
|
601
601
|
};
|
|
602
|
+
'The purchase price covers duties, taxes and fees.': {
|
|
603
|
+
value: string;
|
|
604
|
+
};
|
|
602
605
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
603
606
|
value: string;
|
|
604
607
|
};
|
|
@@ -194,6 +194,12 @@ export declare const stringsSpanish: {
|
|
|
194
194
|
Duties: {
|
|
195
195
|
value: string;
|
|
196
196
|
};
|
|
197
|
+
'Duties and fees': {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
'Duties and fees included': {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
197
203
|
'Duties and taxes will be applied to items and shipping.': {
|
|
198
204
|
value: string;
|
|
199
205
|
};
|
|
@@ -431,25 +437,13 @@ export declare const stringsSpanish: {
|
|
|
431
437
|
'Proceed with order': {
|
|
432
438
|
value: string;
|
|
433
439
|
};
|
|
434
|
-
'Product prices already include duties and fees. No additional duties or fees will be added at checkout
|
|
435
|
-
value: string;
|
|
436
|
-
};
|
|
437
|
-
'Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.': {
|
|
438
|
-
value: string;
|
|
439
|
-
};
|
|
440
|
-
'Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.': {
|
|
441
|
-
value: string;
|
|
442
|
-
};
|
|
443
|
-
'Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.': {
|
|
444
|
-
value: string;
|
|
445
|
-
};
|
|
446
|
-
'Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.': {
|
|
440
|
+
'Product prices already include duties and fees. No additional duties or fees will be added at checkout.': {
|
|
447
441
|
value: string;
|
|
448
442
|
};
|
|
449
|
-
'Product prices already include taxes and fees. No additional taxes or fees will be added at checkout
|
|
443
|
+
'Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.': {
|
|
450
444
|
value: string;
|
|
451
445
|
};
|
|
452
|
-
'Product prices already include taxes. No additional taxes will be added at checkout
|
|
446
|
+
'Product prices already include taxes. No additional taxes will be added at checkout.': {
|
|
453
447
|
value: string;
|
|
454
448
|
};
|
|
455
449
|
Province: {
|
|
@@ -575,9 +569,15 @@ export declare const stringsSpanish: {
|
|
|
575
569
|
'Taxes and fees': {
|
|
576
570
|
value: string;
|
|
577
571
|
};
|
|
572
|
+
'Taxes included': {
|
|
573
|
+
value: string;
|
|
574
|
+
};
|
|
578
575
|
'Taxes will apply to all orders.': {
|
|
579
576
|
value: string;
|
|
580
577
|
};
|
|
578
|
+
'Taxes, duties, and fees included': {
|
|
579
|
+
value: string;
|
|
580
|
+
};
|
|
581
581
|
'Test cards': {
|
|
582
582
|
value: string;
|
|
583
583
|
};
|
|
@@ -599,6 +599,9 @@ export declare const stringsSpanish: {
|
|
|
599
599
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
600
600
|
value: string;
|
|
601
601
|
};
|
|
602
|
+
'The purchase price covers duties, taxes and fees.': {
|
|
603
|
+
value: string;
|
|
604
|
+
};
|
|
602
605
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
603
606
|
value: string;
|
|
604
607
|
};
|
|
@@ -194,6 +194,12 @@ export declare const stringsSwedish: {
|
|
|
194
194
|
Duties: {
|
|
195
195
|
value: string;
|
|
196
196
|
};
|
|
197
|
+
'Duties and fees': {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
'Duties and fees included': {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
197
203
|
'Duties and taxes will be applied to items and shipping.': {
|
|
198
204
|
value: string;
|
|
199
205
|
};
|
|
@@ -431,25 +437,13 @@ export declare const stringsSwedish: {
|
|
|
431
437
|
'Proceed with order': {
|
|
432
438
|
value: string;
|
|
433
439
|
};
|
|
434
|
-
'Product prices already include duties and fees. No additional duties or fees will be added at checkout
|
|
435
|
-
value: string;
|
|
436
|
-
};
|
|
437
|
-
'Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.': {
|
|
438
|
-
value: string;
|
|
439
|
-
};
|
|
440
|
-
'Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.': {
|
|
441
|
-
value: string;
|
|
442
|
-
};
|
|
443
|
-
'Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.': {
|
|
444
|
-
value: string;
|
|
445
|
-
};
|
|
446
|
-
'Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.': {
|
|
440
|
+
'Product prices already include duties and fees. No additional duties or fees will be added at checkout.': {
|
|
447
441
|
value: string;
|
|
448
442
|
};
|
|
449
|
-
'Product prices already include taxes and fees. No additional taxes or fees will be added at checkout
|
|
443
|
+
'Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.': {
|
|
450
444
|
value: string;
|
|
451
445
|
};
|
|
452
|
-
'Product prices already include taxes. No additional taxes will be added at checkout
|
|
446
|
+
'Product prices already include taxes. No additional taxes will be added at checkout.': {
|
|
453
447
|
value: string;
|
|
454
448
|
};
|
|
455
449
|
Province: {
|
|
@@ -575,9 +569,15 @@ export declare const stringsSwedish: {
|
|
|
575
569
|
'Taxes and fees': {
|
|
576
570
|
value: string;
|
|
577
571
|
};
|
|
572
|
+
'Taxes included': {
|
|
573
|
+
value: string;
|
|
574
|
+
};
|
|
578
575
|
'Taxes will apply to all orders.': {
|
|
579
576
|
value: string;
|
|
580
577
|
};
|
|
578
|
+
'Taxes, duties, and fees included': {
|
|
579
|
+
value: string;
|
|
580
|
+
};
|
|
581
581
|
'Test cards': {
|
|
582
582
|
value: string;
|
|
583
583
|
};
|
|
@@ -599,6 +599,9 @@ export declare const stringsSwedish: {
|
|
|
599
599
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
600
600
|
value: string;
|
|
601
601
|
};
|
|
602
|
+
'The purchase price covers duties, taxes and fees.': {
|
|
603
|
+
value: string;
|
|
604
|
+
};
|
|
602
605
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
603
606
|
value: string;
|
|
604
607
|
};
|
|
@@ -194,6 +194,12 @@ export declare const stringsTurkish: {
|
|
|
194
194
|
Duties: {
|
|
195
195
|
value: string;
|
|
196
196
|
};
|
|
197
|
+
'Duties and fees': {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
'Duties and fees included': {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
197
203
|
'Duties and taxes will be applied to items and shipping.': {
|
|
198
204
|
value: string;
|
|
199
205
|
};
|
|
@@ -431,25 +437,13 @@ export declare const stringsTurkish: {
|
|
|
431
437
|
'Proceed with order': {
|
|
432
438
|
value: string;
|
|
433
439
|
};
|
|
434
|
-
'Product prices already include duties and fees. No additional duties or fees will be added at checkout
|
|
435
|
-
value: string;
|
|
436
|
-
};
|
|
437
|
-
'Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.': {
|
|
438
|
-
value: string;
|
|
439
|
-
};
|
|
440
|
-
'Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.': {
|
|
441
|
-
value: string;
|
|
442
|
-
};
|
|
443
|
-
'Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.': {
|
|
444
|
-
value: string;
|
|
445
|
-
};
|
|
446
|
-
'Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.': {
|
|
440
|
+
'Product prices already include duties and fees. No additional duties or fees will be added at checkout.': {
|
|
447
441
|
value: string;
|
|
448
442
|
};
|
|
449
|
-
'Product prices already include taxes and fees. No additional taxes or fees will be added at checkout
|
|
443
|
+
'Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.': {
|
|
450
444
|
value: string;
|
|
451
445
|
};
|
|
452
|
-
'Product prices already include taxes. No additional taxes will be added at checkout
|
|
446
|
+
'Product prices already include taxes. No additional taxes will be added at checkout.': {
|
|
453
447
|
value: string;
|
|
454
448
|
};
|
|
455
449
|
Province: {
|
|
@@ -575,9 +569,15 @@ export declare const stringsTurkish: {
|
|
|
575
569
|
'Taxes and fees': {
|
|
576
570
|
value: string;
|
|
577
571
|
};
|
|
572
|
+
'Taxes included': {
|
|
573
|
+
value: string;
|
|
574
|
+
};
|
|
578
575
|
'Taxes will apply to all orders.': {
|
|
579
576
|
value: string;
|
|
580
577
|
};
|
|
578
|
+
'Taxes, duties, and fees included': {
|
|
579
|
+
value: string;
|
|
580
|
+
};
|
|
581
581
|
'Test cards': {
|
|
582
582
|
value: string;
|
|
583
583
|
};
|
|
@@ -599,6 +599,9 @@ export declare const stringsTurkish: {
|
|
|
599
599
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
600
600
|
value: string;
|
|
601
601
|
};
|
|
602
|
+
'The purchase price covers duties, taxes and fees.': {
|
|
603
|
+
value: string;
|
|
604
|
+
};
|
|
602
605
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
603
606
|
value: string;
|
|
604
607
|
};
|
|
@@ -194,6 +194,12 @@ export declare const stringsVietnamese: {
|
|
|
194
194
|
Duties: {
|
|
195
195
|
value: string;
|
|
196
196
|
};
|
|
197
|
+
'Duties and fees': {
|
|
198
|
+
value: string;
|
|
199
|
+
};
|
|
200
|
+
'Duties and fees included': {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
197
203
|
'Duties and taxes will be applied to items and shipping.': {
|
|
198
204
|
value: string;
|
|
199
205
|
};
|
|
@@ -431,25 +437,13 @@ export declare const stringsVietnamese: {
|
|
|
431
437
|
'Proceed with order': {
|
|
432
438
|
value: string;
|
|
433
439
|
};
|
|
434
|
-
'Product prices already include duties and fees. No additional duties or fees will be added at checkout
|
|
435
|
-
value: string;
|
|
436
|
-
};
|
|
437
|
-
'Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.': {
|
|
438
|
-
value: string;
|
|
439
|
-
};
|
|
440
|
-
'Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.': {
|
|
441
|
-
value: string;
|
|
442
|
-
};
|
|
443
|
-
'Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.': {
|
|
444
|
-
value: string;
|
|
445
|
-
};
|
|
446
|
-
'Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.': {
|
|
440
|
+
'Product prices already include duties and fees. No additional duties or fees will be added at checkout.': {
|
|
447
441
|
value: string;
|
|
448
442
|
};
|
|
449
|
-
'Product prices already include taxes and fees. No additional taxes or fees will be added at checkout
|
|
443
|
+
'Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.': {
|
|
450
444
|
value: string;
|
|
451
445
|
};
|
|
452
|
-
'Product prices already include taxes. No additional taxes will be added at checkout
|
|
446
|
+
'Product prices already include taxes. No additional taxes will be added at checkout.': {
|
|
453
447
|
value: string;
|
|
454
448
|
};
|
|
455
449
|
Province: {
|
|
@@ -575,9 +569,15 @@ export declare const stringsVietnamese: {
|
|
|
575
569
|
'Taxes and fees': {
|
|
576
570
|
value: string;
|
|
577
571
|
};
|
|
572
|
+
'Taxes included': {
|
|
573
|
+
value: string;
|
|
574
|
+
};
|
|
578
575
|
'Taxes will apply to all orders.': {
|
|
579
576
|
value: string;
|
|
580
577
|
};
|
|
578
|
+
'Taxes, duties, and fees included': {
|
|
579
|
+
value: string;
|
|
580
|
+
};
|
|
581
581
|
'Test cards': {
|
|
582
582
|
value: string;
|
|
583
583
|
};
|
|
@@ -599,6 +599,9 @@ export declare const stringsVietnamese: {
|
|
|
599
599
|
'The low-value GST law passed July 1st, 2018 applies to this retailer.': {
|
|
600
600
|
value: string;
|
|
601
601
|
};
|
|
602
|
+
'The purchase price covers duties, taxes and fees.': {
|
|
603
|
+
value: string;
|
|
604
|
+
};
|
|
602
605
|
"There's been an error creating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
603
606
|
value: string;
|
|
604
607
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hasInclusivePrice: () => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applyInclusiveEffectiveRate: (amount: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applyInclusivePrice: (amount: number) => number;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base item: $10
|
|
3
|
+
* Duty: 10%
|
|
4
|
+
* Taxes: 5%
|
|
5
|
+
* Zonos Fee: 14%
|
|
6
|
+
* Non-Zonos Fee: 7%
|
|
7
|
+
*
|
|
8
|
+
* Duty: $10 * 10% = $1
|
|
9
|
+
* Taxes: ($10 + $1) * 5% = $0.55
|
|
10
|
+
* Non-Zonos Fee: $10 * 7% = $0.7
|
|
11
|
+
* Zonos Fee: ($1 + $0.55 + $0.7) * 14% = $0.315
|
|
12
|
+
* Total: $10 + $1 + $0.55 + $0.7 + $0.315 = $12.565
|
|
13
|
+
*
|
|
14
|
+
* The calculation is performed as follows:
|
|
15
|
+
* - Duty: amount * dutyBuffer
|
|
16
|
+
* - Tax: (amount + duty) * taxBuffer
|
|
17
|
+
* - Non-Zonos Fee: amount * nonZonosFee
|
|
18
|
+
* - Zonos Fee: (duty + tax + nonZonosFee) * zonosFee
|
|
19
|
+
* - Total: amount + duty + tax + nonZonosFee + zonosFee
|
|
20
|
+
*/
|
|
21
|
+
export declare const calculateInclusivePrice: ({ amount, dutyBuffer, nonZonosFee, taxBuffer, zonosFee, }: {
|
|
22
|
+
amount: number;
|
|
23
|
+
dutyBuffer: number;
|
|
24
|
+
nonZonosFee: number;
|
|
25
|
+
taxBuffer: number;
|
|
26
|
+
zonosFee: number;
|
|
27
|
+
}) => number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Since the backend and the frontend are using the same keys,
|
|
3
|
+
* make sure to not change the key value below since if it changes
|
|
4
|
+
* and the frontend script is cached, the formula may not work as expected.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DUTY_KEY: string;
|
|
7
|
+
export declare const NON_ZONOS_FEE_KEY: string;
|
|
8
|
+
export declare const TAXES_KEY: string;
|
|
9
|
+
export declare const ZONOS_FEE_KEY: string;
|
|
@@ -46,6 +46,10 @@ export declare const setupCartDataWithSettings: (cartId: string) => Promise<{
|
|
|
46
46
|
unitOfMeasure: import("../../types/generated/graphql.internal.types").ItemUnitOfMeasure;
|
|
47
47
|
value: number;
|
|
48
48
|
} | null> | null;
|
|
49
|
+
metadata: Array<{
|
|
50
|
+
key: string | null;
|
|
51
|
+
value: string | null;
|
|
52
|
+
} | null> | null;
|
|
49
53
|
name: string | null;
|
|
50
54
|
productId: string;
|
|
51
55
|
quantity: number;
|
|
@@ -170,6 +174,7 @@ export declare const setupCartDataWithSettings: (cartId: string) => Promise<{
|
|
|
170
174
|
}, "cart"> & import("../../types/generated/graphql.internal.types").LandedCostSettingsQuery & {
|
|
171
175
|
genericSettings: import("../..").GenericZonosSettings | null;
|
|
172
176
|
} & {
|
|
177
|
+
inclusivePriceConfigurations: import("../..").InclusivePriceConfigurationResponse;
|
|
173
178
|
organization: {
|
|
174
179
|
id: string;
|
|
175
180
|
name: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CountryCode, InclusivePriceConfigurationStatus } from "./generated/graphql.internal.types";
|
|
2
|
+
export type InclusivePriceConfiguration = {
|
|
3
|
+
configurations: {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
rate: number;
|
|
6
|
+
status: InclusivePriceConfigurationStatus;
|
|
7
|
+
} | null;
|
|
8
|
+
};
|
|
9
|
+
effectiveRate: number;
|
|
10
|
+
id: string;
|
|
11
|
+
shipToCountry: CountryCode;
|
|
12
|
+
};
|
|
13
|
+
export type InclusivePriceConfigurationResponse = InclusivePriceConfiguration[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CartAdjustmentType, CartCheckoutWorkflowQuery, CartType, CountryCode, CurrencyCode, ItemMeasurementType, ItemType, ItemUnitOfMeasure, LandedCostSettingsQuery } from "../../generated/graphql.internal.types";
|
|
2
|
+
import type { InclusivePriceConfigurationResponse } from "../../InclusivePricing";
|
|
2
3
|
import type { GenericZonosSettings } from "../../utils/ZonosSettings";
|
|
3
4
|
export type NormalizedItemAttribute = {
|
|
4
5
|
key: string;
|
|
@@ -27,6 +28,10 @@ export type NormalizedTempCartItem = {
|
|
|
27
28
|
unitOfMeasure: ItemUnitOfMeasure;
|
|
28
29
|
value: number;
|
|
29
30
|
}[];
|
|
31
|
+
metadata: {
|
|
32
|
+
key: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
30
35
|
name: string | null;
|
|
31
36
|
productId: string | null;
|
|
32
37
|
quantity: number;
|
|
@@ -65,6 +70,7 @@ type Settings = Omit<CartCheckoutWorkflowQuery['cartCheckoutWorkflow'], 'cart'>
|
|
|
65
70
|
export type CartCheckoutResult = {
|
|
66
71
|
cartData: NormalizedTempCart;
|
|
67
72
|
settings: Settings & {
|
|
73
|
+
inclusivePriceConfigurations: InclusivePriceConfigurationResponse;
|
|
68
74
|
organization: {
|
|
69
75
|
id: string;
|
|
70
76
|
name: string;
|