@zonos/elements 1.3.39 → 1.3.40
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/{cart-c7212410.js → cart-775440b7.js} +240 -7
- package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-9ae7890c.js} +1 -1
- package/dist/cjs/{index-b071017b.js → index-ef8b2c76.js} +234 -167
- package/dist/cjs/index.cjs.js +10 -4
- package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-5f56770b.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/paypal-25c84e33.js +461 -0
- package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-7818b288.js} +2 -19
- package/dist/cjs/zonos-address_8.cjs.entry.js +8 -8
- package/dist/cjs/zonos-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +73 -35
- package/dist/cjs/zonos-checkout.cjs.entry.js +43 -70
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-b6c72408.js} +5 -1
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +30 -60
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
- package/dist/collection/components/main/zonos-controller.js +22 -8
- package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
- package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
- package/dist/collection/components/store/checkout/cart.js +26 -1
- package/dist/collection/components/store/checkout/paypal.js +219 -0
- package/dist/collection/components/store/checkout/stripe.js +16 -4
- 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/store/zonosStore.js +4 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
- package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
- package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
- package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
- package/dist/collection/components/utils/getContrastColor.js +6 -2
- package/dist/collection/components/utils/handleFetch.js +6 -1
- package/dist/collection/components/utils/isContrastColor.js +7 -0
- package/dist/collection/environment.js +4 -5
- package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
- package/dist/collection/scripts/_zonosBase.js +2 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
- package/dist/collection/types/generated/graphql.customer.types.js +35 -0
- package/dist/esm/{cart-eb75b113.js → cart-e9cd8286.js} +236 -8
- package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
- package/dist/esm/{index-3b46f3c3.js → index-5a37ccde.js} +234 -167
- package/dist/esm/index.js +10 -4
- package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/paypal-da2b3db1.js +453 -0
- package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-2fcf78a2.js} +3 -19
- package/dist/esm/zonos-address_8.entry.js +8 -8
- package/dist/esm/zonos-badge_2.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +60 -22
- package/dist/esm/zonos-checkout.entry.js +34 -61
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +15 -15
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +5 -5
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +5 -1
- package/dist/esm-es5/cart-e9cd8286.js +1 -0
- package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3c75c4c1.js} +1 -1
- package/dist/esm-es5/index-5a37ccde.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3eb31a6d.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-da2b3db1.js +17 -0
- package/dist/esm-es5/sendErrorLog-2fcf78a2.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.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-component.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_3.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-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -0
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-425abc1b.js} +1 -1
- package/dist/scripts/index.d.ts +91 -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-checkout-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
- package/dist/types/components/main/zonos-controller.d.ts +6 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
- package/dist/types/components/store/checkout/cart.d.ts +19 -1
- package/dist/types/components/store/checkout/paypal.d.ts +28 -0
- package/dist/types/components/store/checkout/stripe.d.ts +10 -1
- 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/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
- package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
- package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
- package/dist/types/components/utils/handleFetch.d.ts +4 -0
- package/dist/types/components/utils/isContrastColor.d.ts +4 -0
- package/dist/types/components.d.ts +50 -6
- package/dist/types/scripts/_zonosBase.d.ts +9 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
- package/dist/types/types/generated/graphql.customer.types.ts +103 -11
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-01bd2187.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-14b53e8f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-15ecad81.entry.js +1 -0
- package/dist/zonos-elements/p-1b499bcc.system.js +1 -0
- package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1daa3b1e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-085548f2.entry.js → p-1debb7b2.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-2bfb5e4b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-01304a58.system.entry.js → p-2c03ac78.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3447ef24.system.js +17 -0
- package/dist/zonos-elements/{p-699a5376.entry.js → p-3496183d.entry.js} +1 -1
- package/dist/zonos-elements/{p-59f37de3.entry.js → p-36df9785.entry.js} +1 -1
- package/dist/zonos-elements/p-3996d025.system.js +1 -0
- package/dist/zonos-elements/p-3b6a7200.entry.js +1 -0
- package/dist/zonos-elements/p-3d98f422.system.entry.js +1 -0
- package/dist/zonos-elements/{p-31b3d26b.js → p-3da1bc42.js} +1 -1
- package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-445fb353.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3541e6dd.entry.js → p-54101ed6.entry.js} +1 -1
- package/dist/zonos-elements/p-54971a77.system.js +1 -0
- package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-5a5d1a12.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c21802e9.entry.js → p-5e55dcbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-5f68f356.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-61842b4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3523c3b4.entry.js → p-657be9e9.entry.js} +1 -1
- package/dist/zonos-elements/p-6897be29.entry.js +1 -0
- package/dist/zonos-elements/{p-3f5e2e5c.system.entry.js → p-6f39051c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-70b024ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-22882fd6.entry.js → p-71037fe5.entry.js} +1 -1
- package/dist/zonos-elements/p-7dd54a63.entry.js +1 -0
- package/dist/zonos-elements/{p-e3c014ae.entry.js → p-7f96d3b4.entry.js} +1 -1
- package/dist/zonos-elements/p-800db524.system.js +1 -0
- package/dist/zonos-elements/{p-9a1c0d02.js → p-890f5788.js} +1 -1
- package/dist/zonos-elements/{p-62ed4236.entry.js → p-8d149b99.entry.js} +1 -1
- package/dist/zonos-elements/p-916adba7.entry.js +1 -0
- package/dist/zonos-elements/{p-5821856c.js → p-92bebe7a.js} +1 -1
- package/dist/zonos-elements/p-94279862.system.js +1 -0
- package/dist/zonos-elements/{p-b903af96.system.entry.js → p-97dadd90.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e37440ad.system.js → p-b2007124.system.js} +1 -1
- package/dist/zonos-elements/p-b55b557a.system.js +2 -0
- package/dist/zonos-elements/{p-18b28104.entry.js → p-bfa5ec2b.entry.js} +1 -1
- package/dist/zonos-elements/p-c55a5fe4.system.entry.js +1 -0
- package/dist/zonos-elements/p-c5a5512a.system.entry.js +1 -0
- package/dist/zonos-elements/p-c87113fb.system.entry.js +1 -0
- package/dist/zonos-elements/p-ca58f16e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6c3390b7.entry.js → p-d46fa40a.entry.js} +1 -1
- package/dist/zonos-elements/p-d6135575.js +1 -0
- package/dist/zonos-elements/p-d95cb86a.system.js +1 -0
- package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-d9d5ee2f.entry.js} +1 -1
- package/dist/zonos-elements/{p-2a45c837.system.entry.js → p-da15b587.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-dc6a17fe.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dd61b7a0.js +2 -0
- package/dist/zonos-elements/p-e252d86f.entry.js +1 -0
- package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-e6efc2e1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-63a27875.entry.js → p-efdc7748.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa72606.entry.js → p-f643035f.entry.js} +1 -1
- package/dist/zonos-elements/p-f98f7066.js +17 -0
- package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-fa02dd07.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3619b3d.entry.js → p-fa95c3dc.entry.js} +1 -1
- package/dist/zonos-elements/p-fb63bd03.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +12 -11
- package/dist/esm-es5/cart-eb75b113.js +0 -1
- package/dist/esm-es5/index-3b46f3c3.js +0 -2
- package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
- package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
- package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
- package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
- package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-53acc999.js +0 -1
- package/dist/zonos-elements/p-548ac127.entry.js +0 -1
- package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
- package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
- package/dist/zonos-elements/p-70262120.system.js +0 -1
- package/dist/zonos-elements/p-878293fe.js +0 -1
- package/dist/zonos-elements/p-97d74f84.system.js +0 -1
- package/dist/zonos-elements/p-a393c1db.system.entry.js +0 -1
- package/dist/zonos-elements/p-a8b934c2.entry.js +0 -1
- package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
- package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
- package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
- package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-ce347974.js +0 -2
- package/dist/zonos-elements/p-d99232c5.system.js +0 -2
- package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
- package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
- package/dist/zonos-elements/p-e74ca4bc.entry.js +0 -1
|
@@ -11,6 +11,9 @@ export const stringsPolish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Linia adresowa 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Wystąpił nieoczekiwany błąd podczas przetwarzania zamówienia PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Jesteś pewien?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsPolish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Przewidywana dostawa',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Nie udało się utworzyć zamówienia PayPal. Proszę spróbować ponownie lub rozważyć użycie innej metody.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Niepowodzenie',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsPolish = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'kliknij, aby dowiedzieć się więcej',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'lub',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'przedmioty ograniczone',
|
|
322
331
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsPortuguese = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Endereço linha 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Ocorreu um erro inesperado ao processar o pedido do PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Você tem certeza?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsPortuguese = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Entrega prevista',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Falha ao criar o pedido do PayPal. Por favor, tente novamente ou considere usar um método alternativo.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Falha',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsPortuguese = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'clique para saber mais',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'ou',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'itens restritos',
|
|
322
331
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsRussian = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Адресная строка 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Произошла непредвиденная ошибка при обработке заказа PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Вы уверены?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsRussian = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Ожидаемая доставка',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Не удалось создать заказ PayPal. Пожалуйста, попробуйте снова или рассмотрите возможность использования альтернативного метода.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Неудача',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsRussian = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'нажмите, чтобы узнать больше',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'или',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'ограниченные предметы',
|
|
322
331
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsSpanish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Línea de dirección 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Se produjo un error inesperado al procesar el pedido de PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: '¿Estás seguro?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsSpanish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Entrega esperada',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'No se pudo crear el pedido de PayPal. Por favor, inténtelo de nuevo o considere usar un método alternativo.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Fracaso',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsSpanish = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'haga clic para obtener más información',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'o',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'artículos restringidos',
|
|
322
331
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsSwedish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adressrad 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Ett oväntat fel inträffade vid bearbetning av PayPal-beställningen.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Är du säker?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsSwedish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Beräknad leverans',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Misslyckades med att skapa PayPal-beställning. Försök igen, eller överväg att använda en alternativ metod.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Misslyckande',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsSwedish = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'klicka för att lära dig mer',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'eller',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'begränsade föremål',
|
|
322
331
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsTurkish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adres satırı 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'PayPal siparişi işlenirken beklenmedik bir hata oluştu.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Emin misiniz?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsTurkish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Beklenen teslimat',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'PayPal siparişi oluşturulamadı. Lütfen tekrar deneyin veya alternatif bir yöntem kullanmayı düşünün.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Başarısızlık',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsTurkish = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'daha fazla bilgi için tıklayın',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'veya',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'kısıtlı öğeler',
|
|
322
331
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsVietnamese = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Dòng địa chỉ 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Đã xảy ra lỗi bất ngờ khi xử lý đơn hàng PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Bạn có chắc không?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsVietnamese = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Dự kiến giao hàng',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Không thể tạo đơn hàng PayPal. Vui lòng thử lại hoặc cân nhắc sử dụng phương pháp thay thế.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Thất bại',
|
|
97
103
|
},
|
|
@@ -317,6 +323,9 @@ export const stringsVietnamese = {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: 'nhấp để tìm hiểu thêm',
|
|
319
325
|
},
|
|
326
|
+
or: {
|
|
327
|
+
value: 'hoặc',
|
|
328
|
+
},
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: 'mặt hàng bị hạn chế',
|
|
322
331
|
},
|
|
@@ -12,6 +12,9 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
12
12
|
checkoutSettings: {
|
|
13
13
|
allowedCharacterSets: 'ALL',
|
|
14
14
|
analyticsProviders: [],
|
|
15
|
+
externalPaymentMethods: [],
|
|
16
|
+
externalServiceTokens: [],
|
|
17
|
+
mode: 'TEST',
|
|
15
18
|
orderNotifications: {
|
|
16
19
|
abandonedCart: {
|
|
17
20
|
delay: 0,
|
|
@@ -75,6 +78,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
75
78
|
// toggle to know if the config has been loaded with graphql
|
|
76
79
|
stripeApiKey: '',
|
|
77
80
|
zonosApiKey: '',
|
|
81
|
+
zonosMode: null,
|
|
78
82
|
}));
|
|
79
83
|
let savedZonosSettings = null;
|
|
80
84
|
/**
|
|
@@ -135,7 +135,7 @@ export class ZonosAddress {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'f19f690b4086d3b9446508c3af12a469b2283d25', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '3c908adcb0afd025fba6898e0fcb066e0884d696', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '42eb32ea6de83b0a24c139f8fc5849551d442174', class: "zonos--address-component" })));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "zonos-address"; }
|
|
141
141
|
static get encapsulation() { return "scoped"; }
|
|
@@ -195,7 +195,7 @@ export class ZonosAddress {
|
|
|
195
195
|
"ContactOption": {
|
|
196
196
|
"location": "import",
|
|
197
197
|
"path": "@stripe/stripe-js",
|
|
198
|
-
"id": ""
|
|
198
|
+
"id": "node_modules::ContactOption"
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
},
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -42,7 +42,7 @@ export class ZonosLinkAuthentication {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'd3b232c0da0ef1f0d018398a36df06383bcdfe87', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '7b6af818ae8628b204c3ea75fc58bee864b84069', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '068456f666b9d43595cb85c6ef51ab4f1113d268', class: "zonos--link-authentication-component" })));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "zonos-link-authentication"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
1
|
import { h, Host } from "@stencil/core";
|
|
3
2
|
import { stripeStore } from "../../store/checkout/stripe";
|
|
4
3
|
import { logError } from "../../utils/logging/logError";
|
|
@@ -18,7 +17,7 @@ export class ZonosPayment {
|
|
|
18
17
|
// Create and mount the Authentication Element in ${type} mode
|
|
19
18
|
const paymentElement = stripeStore.stripePaymentElement ||
|
|
20
19
|
this.stripeElements.create('payment', {
|
|
21
|
-
layout: '
|
|
20
|
+
layout: 'accordion',
|
|
22
21
|
});
|
|
23
22
|
const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
|
|
24
23
|
if (!paymentElementContainer) {
|
|
@@ -37,7 +36,7 @@ export class ZonosPayment {
|
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
40
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'a6df9bab4826d7c4e4027bf6b7e58f176cb25ca1', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'a2f3d1288537a8e63c26bef9c87cae7f3a6f94fa', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '4e30103e4b6fa407450afc71474b663377233310', class: "zonos--payment-component" }), h("div", { key: '66a9798018fb25e86933a839014ed0d2ed16d8b3', class: "zonos--payment-paypal-container" })));
|
|
41
40
|
}
|
|
42
41
|
static get is() { return "zonos-payment"; }
|
|
43
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -2,10 +2,10 @@ import { handleFetch } from "../handleFetch";
|
|
|
2
2
|
import { logError } from "../logging/logError";
|
|
3
3
|
export const getZonosSettings = async () => {
|
|
4
4
|
const url = `${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/zonos-settings`;
|
|
5
|
-
const { errors, json } = await handleFetch(url);
|
|
5
|
+
const { errors, json, zonosMode } = await handleFetch(url);
|
|
6
6
|
if (errors.length) {
|
|
7
7
|
logError(`Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings`);
|
|
8
|
-
return { errors, json: null };
|
|
8
|
+
return { errors, json: null, zonosMode };
|
|
9
9
|
}
|
|
10
|
-
return { errors: [], json };
|
|
10
|
+
return { errors: [], json, zonosMode };
|
|
11
11
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { handleFetch } from "../handleFetch";
|
|
2
|
+
export const paypalCaptureOrder = async ({ checkoutSessionId, paypalMockResponse, }) => {
|
|
3
|
+
const { errors, json } = await handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/capture-paypal-order`, {
|
|
4
|
+
body: { checkoutSessionId, paypalMockResponse },
|
|
5
|
+
method: 'POST',
|
|
6
|
+
});
|
|
7
|
+
return { errors, json };
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { handleFetch } from "../handleFetch";
|
|
2
|
+
export const paypalCreateOrder = async ({ checkoutSessionId, }) => {
|
|
3
|
+
const { errors, json } = await handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/create-paypal-order`, {
|
|
4
|
+
body: { checkoutSessionId },
|
|
5
|
+
method: 'POST',
|
|
6
|
+
});
|
|
7
|
+
return { errors, json };
|
|
8
|
+
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import tinycolor from "tinycolor2";
|
|
2
|
+
import { isContrastColor } from "./isContrastColor";
|
|
2
3
|
import { isDarkColor } from "./isDarkColor";
|
|
3
4
|
export const getContrastColor = ({ backgroundColor, color, }) => {
|
|
4
5
|
// get readibility of the color
|
|
5
|
-
const
|
|
6
|
-
|
|
6
|
+
const isContrastEnough = isContrastColor({
|
|
7
|
+
backgroundColor1: backgroundColor,
|
|
8
|
+
backgroundColor2: color,
|
|
9
|
+
});
|
|
10
|
+
if (isContrastEnough) {
|
|
7
11
|
// no need to change the color if it's already contrast enough
|
|
8
12
|
return color;
|
|
9
13
|
}
|
|
@@ -37,6 +37,7 @@ const handleRequest = async (url, options) => {
|
|
|
37
37
|
errors: [{ message: e.message, type: 'unknown' }],
|
|
38
38
|
json: null,
|
|
39
39
|
response: null,
|
|
40
|
+
zonosMode: null,
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
const message = 'Fail to fetch';
|
|
@@ -44,6 +45,7 @@ const handleRequest = async (url, options) => {
|
|
|
44
45
|
errors: [{ message, type: 'unknown' }],
|
|
45
46
|
json: null,
|
|
46
47
|
response: null,
|
|
48
|
+
zonosMode: null,
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
const zonosMode = response.headers.get('Zonos-Mode');
|
|
@@ -64,6 +66,7 @@ const handleRequest = async (url, options) => {
|
|
|
64
66
|
errors: [],
|
|
65
67
|
json: data,
|
|
66
68
|
response,
|
|
69
|
+
zonosMode,
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
const status = response.status.toString();
|
|
@@ -74,9 +77,10 @@ const handleRequest = async (url, options) => {
|
|
|
74
77
|
});
|
|
75
78
|
const message = JSON.stringify(data);
|
|
76
79
|
return {
|
|
77
|
-
errors: [{ message
|
|
80
|
+
errors: [{ message, type: status }],
|
|
78
81
|
json: null,
|
|
79
82
|
response,
|
|
83
|
+
zonosMode,
|
|
80
84
|
};
|
|
81
85
|
}
|
|
82
86
|
catch (e) {
|
|
@@ -85,6 +89,7 @@ const handleRequest = async (url, options) => {
|
|
|
85
89
|
errors: [{ message: `${status}: ${message}`, type: status }],
|
|
86
90
|
json: null,
|
|
87
91
|
response: null,
|
|
92
|
+
zonosMode,
|
|
88
93
|
};
|
|
89
94
|
}
|
|
90
95
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import tinycolor from "tinycolor2";
|
|
2
|
+
export const isContrastColor = ({ backgroundColor1, backgroundColor2, }) => {
|
|
3
|
+
// get readibility of the color
|
|
4
|
+
const colorReadibilityValue = tinycolor.readability(backgroundColor1, backgroundColor2);
|
|
5
|
+
// If the readibility is less than 2.5, then we need to use different color
|
|
6
|
+
return colorReadibilityValue > 2.5;
|
|
7
|
+
};
|
|
@@ -33,16 +33,12 @@ export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isV
|
|
|
33
33
|
// local host environment, no need to format url
|
|
34
34
|
return `https://${domainOnlyUrl}`;
|
|
35
35
|
}
|
|
36
|
-
const isProdBranch = branchName && ['main'
|
|
36
|
+
const isProdBranch = branchName && ['main'].includes(branchName);
|
|
37
37
|
const isServerless =
|
|
38
38
|
// url: route.js.zonos.com
|
|
39
39
|
domainOnlyUrl.includes('route.js') ||
|
|
40
40
|
// url: zonos-elements-serverless-git-something
|
|
41
41
|
domainOnlyUrl.includes('serverless-git');
|
|
42
|
-
if (branchName === 'qa' && isServerless) {
|
|
43
|
-
// qa branch for the API is not versioned, should always has alpha prefix
|
|
44
|
-
return `https://alpha.${domainOnlyUrl}`;
|
|
45
|
-
}
|
|
46
42
|
const isTest =
|
|
47
43
|
// url: test.js.zonos.com
|
|
48
44
|
domainOnlyUrl.includes('test.') ||
|
|
@@ -50,6 +46,9 @@ export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isV
|
|
|
50
46
|
domainOnlyUrl.includes('test-git') ||
|
|
51
47
|
// url: something.preview.js.zonos.com (this is only applicable on preview deployment of `zonos-elements` and `zonos-elements-test`)
|
|
52
48
|
domainOnlyUrl.includes('preview.js.zonos.com');
|
|
49
|
+
if (isTest && isProdBranch) {
|
|
50
|
+
return `https://${domainOnlyUrl}`;
|
|
51
|
+
}
|
|
53
52
|
// always use vercel url if in vercel env, non-production branch (not qa or main branch) or the domain using is a test url
|
|
54
53
|
if ((_isVercelPreview && !isProdBranch) ||
|
|
55
54
|
isTest ||
|
|
@@ -8,6 +8,10 @@ export const getZonosQaUrl = () => {
|
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
10
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
11
|
+
// when local demo app is running, it needs to use the local dev script unless the qaUrl is set
|
|
12
|
+
if (!qaUrl && window.location.hostname === 'dev.demo.elements.zonos.com') {
|
|
13
|
+
return 'https://dev.elements.zonos.com';
|
|
14
|
+
}
|
|
11
15
|
if (!qaUrl) {
|
|
12
16
|
return null;
|
|
13
17
|
}
|
|
@@ -37,6 +37,7 @@ Zonos.debug = typeof window !== 'undefined' &&
|
|
|
37
37
|
!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
38
38
|
Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
39
39
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
40
|
+
Zonos._paypalMockResponse = null;
|
|
40
41
|
Zonos.isBigCommerce = false;
|
|
41
42
|
/**
|
|
42
43
|
* By default, the package will load from npm
|
|
@@ -46,6 +47,7 @@ Zonos.zonosQaUrl = null;
|
|
|
46
47
|
Zonos.version = `v${process.env.NEXT_PUBLIC_ZONOS_PACKAGE_VERSION}`;
|
|
47
48
|
Zonos.modeAlerted = false;
|
|
48
49
|
Zonos.tempCartData = null;
|
|
50
|
+
Zonos.paypal = null;
|
|
49
51
|
Zonos.getCurrentTimestamp = () => new Date().getTime();
|
|
50
52
|
Zonos.zonosController = null;
|
|
51
53
|
Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }) => {
|
|
@@ -9,6 +9,9 @@ export const accountingFeeType = {
|
|
|
9
9
|
Item: 'ITEM',
|
|
10
10
|
LandedCostGuarantee: 'LANDED_COST_GUARANTEE',
|
|
11
11
|
MerchantProcessing: 'MERCHANT_PROCESSING',
|
|
12
|
+
PaypalCancel: 'PAYPAL_CANCEL',
|
|
13
|
+
PaypalOrder: 'PAYPAL_ORDER',
|
|
14
|
+
PaypalRefund: 'PAYPAL_REFUND',
|
|
12
15
|
Shipping: 'SHIPPING',
|
|
13
16
|
Transaction: 'TRANSACTION',
|
|
14
17
|
};
|
|
@@ -251,6 +254,12 @@ export const checkoutVisibilityStatus = {
|
|
|
251
254
|
Disabled: 'DISABLED',
|
|
252
255
|
Enabled: 'ENABLED',
|
|
253
256
|
};
|
|
257
|
+
export const classificationBulkExportJobStatus = {
|
|
258
|
+
Completed: 'COMPLETED',
|
|
259
|
+
Error: 'ERROR',
|
|
260
|
+
Initialized: 'INITIALIZED',
|
|
261
|
+
Processing: 'PROCESSING',
|
|
262
|
+
};
|
|
254
263
|
export const classificationBulkJobStatus = {
|
|
255
264
|
Classified: 'CLASSIFIED',
|
|
256
265
|
Completed: 'COMPLETED',
|
|
@@ -311,6 +320,11 @@ export const collectUploadStatus = {
|
|
|
311
320
|
Succeeded: 'SUCCEEDED',
|
|
312
321
|
SucceededWithErrors: 'SUCCEEDED_WITH_ERRORS',
|
|
313
322
|
};
|
|
323
|
+
export const commercialInvoiceImageCarrier = {
|
|
324
|
+
Dhl: 'DHL',
|
|
325
|
+
Fedex: 'FEDEX',
|
|
326
|
+
Ups: 'UPS',
|
|
327
|
+
};
|
|
314
328
|
export const confidenceScoreDisplayStatus = {
|
|
315
329
|
Disabled: 'DISABLED',
|
|
316
330
|
Enabled: 'ENABLED',
|
|
@@ -1164,7 +1178,15 @@ export const exportJobStatus = {
|
|
|
1164
1178
|
Initialized: 'INITIALIZED',
|
|
1165
1179
|
Processing: 'PROCESSING',
|
|
1166
1180
|
};
|
|
1181
|
+
export const externalPaymentMethodStatus = {
|
|
1182
|
+
Disabled: 'DISABLED',
|
|
1183
|
+
Enabled: 'ENABLED',
|
|
1184
|
+
};
|
|
1185
|
+
export const externalPaymentMethodType = {
|
|
1186
|
+
Paypal: 'PAYPAL',
|
|
1187
|
+
};
|
|
1167
1188
|
export const externalServiceTokenType = {
|
|
1189
|
+
PaypalClientId: 'PAYPAL_CLIENT_ID',
|
|
1168
1190
|
StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
|
|
1169
1191
|
};
|
|
1170
1192
|
export const fedExCategoryCode = {
|
|
@@ -1802,12 +1824,18 @@ export const partyType = {
|
|
|
1802
1824
|
Payor: 'PAYOR',
|
|
1803
1825
|
};
|
|
1804
1826
|
export const paymentProcessorCode = {
|
|
1827
|
+
Paypal: 'PAYPAL',
|
|
1805
1828
|
Stripe: 'STRIPE',
|
|
1806
1829
|
};
|
|
1807
1830
|
export const paymentType = {
|
|
1808
1831
|
Card: 'CARD',
|
|
1809
1832
|
UsBankAccount: 'US_BANK_ACCOUNT',
|
|
1810
1833
|
};
|
|
1834
|
+
export const paypalMockResponse = {
|
|
1835
|
+
InstrumentDeclined: 'INSTRUMENT_DECLINED',
|
|
1836
|
+
InternalServerError: 'INTERNAL_SERVER_ERROR',
|
|
1837
|
+
TransactionRefused: 'TRANSACTION_REFUSED',
|
|
1838
|
+
};
|
|
1811
1839
|
export const pddpAmountType = {
|
|
1812
1840
|
FlcTotalCost: 'FLC_TOTAL_COST',
|
|
1813
1841
|
InsuredValue: 'INSURED_VALUE',
|
|
@@ -2073,6 +2101,7 @@ export const taxMethodType = {
|
|
|
2073
2101
|
Consignment: 'CONSIGNMENT',
|
|
2074
2102
|
Default: 'DEFAULT',
|
|
2075
2103
|
Domestic: 'DOMESTIC',
|
|
2104
|
+
DomesticLcg: 'DOMESTIC_LCG',
|
|
2076
2105
|
SellerOfRecord: 'SELLER_OF_RECORD',
|
|
2077
2106
|
};
|
|
2078
2107
|
export const thirdPartyAccountType = {
|
|
@@ -2258,6 +2287,12 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2258
2287
|
orderUpdateAccountOrderNumber(variables, requestHeaders) {
|
|
2259
2288
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'orderUpdateAccountOrderNumber', 'mutation');
|
|
2260
2289
|
},
|
|
2290
|
+
paypalOrderCapture(variables, requestHeaders) {
|
|
2291
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'paypalOrderCapture', 'mutation');
|
|
2292
|
+
},
|
|
2293
|
+
paypalOrderCreate(variables, requestHeaders) {
|
|
2294
|
+
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'paypalOrderCreate', 'mutation');
|
|
2295
|
+
},
|
|
2261
2296
|
removeTrackingNumber(variables, requestHeaders) {
|
|
2262
2297
|
return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'removeTrackingNumber', 'mutation');
|
|
2263
2298
|
},
|