@zonos/elements 1.3.38 → 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 +50 -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 +37 -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 +41 -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/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-467f934c.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-57617755.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-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-ad37d20e.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
|
@@ -11,6 +11,9 @@ export declare const stringsRussian: {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: string;
|
|
13
13
|
};
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: string;
|
|
16
19
|
};
|
|
@@ -92,6 +95,9 @@ export declare const stringsRussian: {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
Failure: {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -317,6 +323,9 @@ export declare const stringsRussian: {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: string;
|
|
319
325
|
};
|
|
326
|
+
or: {
|
|
327
|
+
value: string;
|
|
328
|
+
};
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: string;
|
|
322
331
|
};
|
|
@@ -11,6 +11,9 @@ export declare const stringsSpanish: {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: string;
|
|
13
13
|
};
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: string;
|
|
16
19
|
};
|
|
@@ -92,6 +95,9 @@ export declare const stringsSpanish: {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
Failure: {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -317,6 +323,9 @@ export declare const stringsSpanish: {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: string;
|
|
319
325
|
};
|
|
326
|
+
or: {
|
|
327
|
+
value: string;
|
|
328
|
+
};
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: string;
|
|
322
331
|
};
|
|
@@ -11,6 +11,9 @@ export declare const stringsSwedish: {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: string;
|
|
13
13
|
};
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: string;
|
|
16
19
|
};
|
|
@@ -92,6 +95,9 @@ export declare const stringsSwedish: {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
Failure: {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -317,6 +323,9 @@ export declare const stringsSwedish: {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: string;
|
|
319
325
|
};
|
|
326
|
+
or: {
|
|
327
|
+
value: string;
|
|
328
|
+
};
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: string;
|
|
322
331
|
};
|
|
@@ -11,6 +11,9 @@ export declare const stringsTurkish: {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: string;
|
|
13
13
|
};
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: string;
|
|
16
19
|
};
|
|
@@ -92,6 +95,9 @@ export declare const stringsTurkish: {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
Failure: {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -317,6 +323,9 @@ export declare const stringsTurkish: {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: string;
|
|
319
325
|
};
|
|
326
|
+
or: {
|
|
327
|
+
value: string;
|
|
328
|
+
};
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: string;
|
|
322
331
|
};
|
|
@@ -11,6 +11,9 @@ export declare const stringsVietnamese: {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: string;
|
|
13
13
|
};
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: string;
|
|
16
19
|
};
|
|
@@ -92,6 +95,9 @@ export declare const stringsVietnamese: {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: string;
|
|
94
97
|
};
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
95
101
|
Failure: {
|
|
96
102
|
value: string;
|
|
97
103
|
};
|
|
@@ -317,6 +323,9 @@ export declare const stringsVietnamese: {
|
|
|
317
323
|
'click to learn more': {
|
|
318
324
|
value: string;
|
|
319
325
|
};
|
|
326
|
+
or: {
|
|
327
|
+
value: string;
|
|
328
|
+
};
|
|
320
329
|
'restricted items': {
|
|
321
330
|
value: string;
|
|
322
331
|
};
|
|
@@ -30,5 +30,5 @@ type TranslateParams<T extends string> = ExtractVariables<T> extends never ? [T,
|
|
|
30
30
|
* // No variables:
|
|
31
31
|
* translate('Above de minimis threshold for')
|
|
32
32
|
*/
|
|
33
|
-
declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "Delivery" | "Payment" | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Don't close" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Product prices already include duties, taxes, and fees. No additional duties or taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "restricted items">(...[key, replacement]: TranslateParams<T>) => string;
|
|
33
|
+
declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "or" | "Delivery" | "Payment" | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Don't close" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Product prices already include duties, taxes, and fees. No additional duties or taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "restricted items">(...[key, replacement]: TranslateParams<T>) => string;
|
|
34
34
|
export { translate, translationStore, translationStoreUpdateLanguage };
|
|
@@ -30,6 +30,10 @@ export type ZonosConfig = {
|
|
|
30
30
|
overrideCurrencyFormat?: LoadZonosParamsConfig['overrideCurrencyFormat'];
|
|
31
31
|
sourceCurrency: string;
|
|
32
32
|
storeId: number | null;
|
|
33
|
+
/**
|
|
34
|
+
* This is to determine if the request is sending to the zonos production or dev API enviroment
|
|
35
|
+
*/
|
|
36
|
+
zonosMode: 'production' | 'test' | null;
|
|
33
37
|
};
|
|
34
38
|
type ZonosStore = ZonosConfig & {
|
|
35
39
|
loadedConfig: boolean;
|
|
@@ -2,7 +2,9 @@ import type { ZonosSettingsQuery } from "../../../types/generated/graphql.custom
|
|
|
2
2
|
export declare const getZonosSettings: () => Promise<{
|
|
3
3
|
errors: import("../../..").JsonError[];
|
|
4
4
|
json: null;
|
|
5
|
+
zonosMode: "production" | "test" | null;
|
|
5
6
|
} | {
|
|
6
7
|
errors: never[];
|
|
7
8
|
json: ZonosSettingsQuery | null;
|
|
9
|
+
zonosMode: "production" | "test" | null;
|
|
8
10
|
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PaypalMockResponse, PaypalOrderCaptureMutation } from "../../../types/generated/graphql.customer.types";
|
|
2
|
+
type PaypalCaptureOrderPayload = {
|
|
3
|
+
checkoutSessionId: string;
|
|
4
|
+
paypalMockResponse: PaypalMockResponse | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const paypalCaptureOrder: ({ checkoutSessionId, paypalMockResponse, }: PaypalCaptureOrderPayload) => Promise<{
|
|
7
|
+
errors: import("../../..").JsonError[];
|
|
8
|
+
json: PaypalOrderCaptureMutation | null;
|
|
9
|
+
}>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PaypalOrderCreateMutation } from "../../../types/generated/graphql.customer.types";
|
|
2
|
+
type PaypalCreateOrderPayload = {
|
|
3
|
+
checkoutSessionId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const paypalCreateOrder: ({ checkoutSessionId, }: PaypalCreateOrderPayload) => Promise<{
|
|
6
|
+
errors: import("../../..").JsonError[];
|
|
7
|
+
json: PaypalOrderCreateMutation | null;
|
|
8
|
+
}>;
|
|
9
|
+
export {};
|
|
@@ -4,6 +4,10 @@ export type HandleFetchReturn<ResponseBody extends unknown> = {
|
|
|
4
4
|
errors: JsonError[];
|
|
5
5
|
json: NoInfer<ResponseBody> | null;
|
|
6
6
|
response: Response | null;
|
|
7
|
+
/**
|
|
8
|
+
* This is to determine if the request is sending to the production or test enviroment
|
|
9
|
+
*/
|
|
10
|
+
zonosMode: 'production' | 'test' | null;
|
|
7
11
|
};
|
|
8
12
|
export type FetcherReturn<ResponseBody extends unknown> = {
|
|
9
13
|
json: NoInfer<ResponseBody> | null;
|
|
@@ -390,10 +390,6 @@ export namespace Components {
|
|
|
390
390
|
* Whether or not the continue button is loading
|
|
391
391
|
*/
|
|
392
392
|
"continueLoading": boolean;
|
|
393
|
-
/**
|
|
394
|
-
* Error occurred during payment
|
|
395
|
-
*/
|
|
396
|
-
"paymentError": boolean;
|
|
397
393
|
/**
|
|
398
394
|
* Submit button main color
|
|
399
395
|
*/
|
|
@@ -844,6 +840,8 @@ export namespace Components {
|
|
|
844
840
|
*/
|
|
845
841
|
"titleText"?: string;
|
|
846
842
|
}
|
|
843
|
+
interface ZonosPaypalPayment {
|
|
844
|
+
}
|
|
847
845
|
interface ZonosRestState {
|
|
848
846
|
/**
|
|
849
847
|
* The subtitle of the rest state
|
|
@@ -1010,6 +1008,10 @@ export interface ZonosInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
1010
1008
|
detail: T;
|
|
1011
1009
|
target: HTMLZonosInputElement;
|
|
1012
1010
|
}
|
|
1011
|
+
export interface ZonosPaypalPaymentCustomEvent<T> extends CustomEvent<T> {
|
|
1012
|
+
detail: T;
|
|
1013
|
+
target: HTMLZonosPaypalPaymentElement;
|
|
1014
|
+
}
|
|
1013
1015
|
export interface ZonosShippingCustomEvent<T> extends CustomEvent<T> {
|
|
1014
1016
|
detail: T;
|
|
1015
1017
|
target: HTMLZonosShippingElement;
|
|
@@ -1167,6 +1169,8 @@ declare global {
|
|
|
1167
1169
|
};
|
|
1168
1170
|
interface HTMLZonosCheckoutPaymentElementEventMap {
|
|
1169
1171
|
"continueClicked": void;
|
|
1172
|
+
"paypalSessionFailed": void;
|
|
1173
|
+
"paypalSessionDone": string;
|
|
1170
1174
|
}
|
|
1171
1175
|
interface HTMLZonosCheckoutPaymentElement extends Components.ZonosCheckoutPayment, HTMLStencilElement {
|
|
1172
1176
|
addEventListener<K extends keyof HTMLZonosCheckoutPaymentElementEventMap>(type: K, listener: (this: HTMLZonosCheckoutPaymentElement, ev: ZonosCheckoutPaymentCustomEvent<HTMLZonosCheckoutPaymentElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1219,6 +1223,7 @@ declare global {
|
|
|
1219
1223
|
new (): HTMLZonosConfirmDialogElement;
|
|
1220
1224
|
};
|
|
1221
1225
|
interface HTMLZonosControllerElementEventMap {
|
|
1226
|
+
"paypalInitEvent": { paypalClientId: string };
|
|
1222
1227
|
"stripeInitEvent": { publishableKey: string };
|
|
1223
1228
|
}
|
|
1224
1229
|
interface HTMLZonosControllerElement extends Components.ZonosController, HTMLStencilElement {
|
|
@@ -1375,6 +1380,24 @@ declare global {
|
|
|
1375
1380
|
prototype: HTMLZonosPaymentElement;
|
|
1376
1381
|
new (): HTMLZonosPaymentElement;
|
|
1377
1382
|
};
|
|
1383
|
+
interface HTMLZonosPaypalPaymentElementEventMap {
|
|
1384
|
+
"paypalSessionDone": { orderId: string };
|
|
1385
|
+
"paypalSessionFail": void;
|
|
1386
|
+
}
|
|
1387
|
+
interface HTMLZonosPaypalPaymentElement extends Components.ZonosPaypalPayment, HTMLStencilElement {
|
|
1388
|
+
addEventListener<K extends keyof HTMLZonosPaypalPaymentElementEventMap>(type: K, listener: (this: HTMLZonosPaypalPaymentElement, ev: ZonosPaypalPaymentCustomEvent<HTMLZonosPaypalPaymentElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1389
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1390
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1391
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1392
|
+
removeEventListener<K extends keyof HTMLZonosPaypalPaymentElementEventMap>(type: K, listener: (this: HTMLZonosPaypalPaymentElement, ev: ZonosPaypalPaymentCustomEvent<HTMLZonosPaypalPaymentElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1393
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1394
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1395
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1396
|
+
}
|
|
1397
|
+
var HTMLZonosPaypalPaymentElement: {
|
|
1398
|
+
prototype: HTMLZonosPaypalPaymentElement;
|
|
1399
|
+
new (): HTMLZonosPaypalPaymentElement;
|
|
1400
|
+
};
|
|
1378
1401
|
interface HTMLZonosRestStateElement extends Components.ZonosRestState, HTMLStencilElement {
|
|
1379
1402
|
}
|
|
1380
1403
|
var HTMLZonosRestStateElement: {
|
|
@@ -1489,6 +1512,7 @@ declare global {
|
|
|
1489
1512
|
"zonos-logo": HTMLZonosLogoElement;
|
|
1490
1513
|
"zonos-notification": HTMLZonosNotificationElement;
|
|
1491
1514
|
"zonos-payment": HTMLZonosPaymentElement;
|
|
1515
|
+
"zonos-paypal-payment": HTMLZonosPaypalPaymentElement;
|
|
1492
1516
|
"zonos-rest-state": HTMLZonosRestStateElement;
|
|
1493
1517
|
"zonos-review": HTMLZonosReviewElement;
|
|
1494
1518
|
"zonos-select-dialog-header": HTMLZonosSelectDialogHeaderElement;
|
|
@@ -1864,9 +1888,13 @@ declare namespace LocalJSX {
|
|
|
1864
1888
|
*/
|
|
1865
1889
|
"onContinueClicked"?: (event: ZonosCheckoutPaymentCustomEvent<void>) => void;
|
|
1866
1890
|
/**
|
|
1867
|
-
*
|
|
1891
|
+
* Event to emit when the paypal session is done
|
|
1892
|
+
*/
|
|
1893
|
+
"onPaypalSessionDone"?: (event: ZonosCheckoutPaymentCustomEvent<string>) => void;
|
|
1894
|
+
/**
|
|
1895
|
+
* Event to emit when the paypal session failed
|
|
1868
1896
|
*/
|
|
1869
|
-
"
|
|
1897
|
+
"onPaypalSessionFailed"?: (event: ZonosCheckoutPaymentCustomEvent<void>) => void;
|
|
1870
1898
|
/**
|
|
1871
1899
|
* Submit button main color
|
|
1872
1900
|
*/
|
|
@@ -1970,6 +1998,10 @@ declare namespace LocalJSX {
|
|
|
1970
1998
|
* The zonos config object
|
|
1971
1999
|
*/
|
|
1972
2000
|
"config": LoadZonosParamsConfig;
|
|
2001
|
+
/**
|
|
2002
|
+
* Event emitted to initialize paypal
|
|
2003
|
+
*/
|
|
2004
|
+
"onPaypalInitEvent"?: (event: ZonosControllerCustomEvent<{ paypalClientId: string }>) => void;
|
|
1973
2005
|
/**
|
|
1974
2006
|
* Event emitted when stripe is initialized
|
|
1975
2007
|
*/
|
|
@@ -2271,6 +2303,16 @@ declare namespace LocalJSX {
|
|
|
2271
2303
|
*/
|
|
2272
2304
|
"titleText"?: string;
|
|
2273
2305
|
}
|
|
2306
|
+
interface ZonosPaypalPayment {
|
|
2307
|
+
/**
|
|
2308
|
+
* Event to emit when the paypal session is done
|
|
2309
|
+
*/
|
|
2310
|
+
"onPaypalSessionDone"?: (event: ZonosPaypalPaymentCustomEvent<{ orderId: string }>) => void;
|
|
2311
|
+
/**
|
|
2312
|
+
* Event to emit when the paypal session is failed
|
|
2313
|
+
*/
|
|
2314
|
+
"onPaypalSessionFail"?: (event: ZonosPaypalPaymentCustomEvent<void>) => void;
|
|
2315
|
+
}
|
|
2274
2316
|
interface ZonosRestState {
|
|
2275
2317
|
/**
|
|
2276
2318
|
* The subtitle of the rest state
|
|
@@ -2434,6 +2476,7 @@ declare namespace LocalJSX {
|
|
|
2434
2476
|
"zonos-logo": ZonosLogo;
|
|
2435
2477
|
"zonos-notification": ZonosNotification;
|
|
2436
2478
|
"zonos-payment": ZonosPayment;
|
|
2479
|
+
"zonos-paypal-payment": ZonosPaypalPayment;
|
|
2437
2480
|
"zonos-rest-state": ZonosRestState;
|
|
2438
2481
|
"zonos-review": ZonosReview;
|
|
2439
2482
|
"zonos-select-dialog-header": ZonosSelectDialogHeader;
|
|
@@ -2486,6 +2529,7 @@ declare module "@stencil/core" {
|
|
|
2486
2529
|
"zonos-logo": LocalJSX.ZonosLogo & JSXBase.HTMLAttributes<HTMLZonosLogoElement>;
|
|
2487
2530
|
"zonos-notification": LocalJSX.ZonosNotification & JSXBase.HTMLAttributes<HTMLZonosNotificationElement>;
|
|
2488
2531
|
"zonos-payment": LocalJSX.ZonosPayment & JSXBase.HTMLAttributes<HTMLZonosPaymentElement>;
|
|
2532
|
+
"zonos-paypal-payment": LocalJSX.ZonosPaypalPayment & JSXBase.HTMLAttributes<HTMLZonosPaypalPaymentElement>;
|
|
2489
2533
|
"zonos-rest-state": LocalJSX.ZonosRestState & JSXBase.HTMLAttributes<HTMLZonosRestStateElement>;
|
|
2490
2534
|
"zonos-review": LocalJSX.ZonosReview & JSXBase.HTMLAttributes<HTMLZonosReviewElement>;
|
|
2491
2535
|
"zonos-select-dialog-header": LocalJSX.ZonosSelectDialogHeader & JSXBase.HTMLAttributes<HTMLZonosSelectDialogHeaderElement>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { PayPalNamespace } from '@paypal/paypal-js';
|
|
1
2
|
import type { Stripe } from '@stripe/stripe-js';
|
|
2
3
|
import type { AppearanceConfig } from "../components/store/zonosStore";
|
|
3
4
|
import { type InjectScriptType } from "./_getNextFallbackUrl";
|
|
4
5
|
import type { NotificationInit } from "../types/index";
|
|
5
6
|
import type { TempCart } from "../types/checkout/api/TempCart";
|
|
6
7
|
import type { CheckoutConfig } from "../types/checkout/CheckoutConfig";
|
|
7
|
-
import type { CountryCode, CurrencyCode } from "../types/generated/graphql.customer.types";
|
|
8
|
+
import type { CountryCode, CurrencyCode, PaypalMockResponse } from "../types/generated/graphql.customer.types";
|
|
8
9
|
import type { HelloConfig } from "../types/hello/HelloConfig";
|
|
9
10
|
export declare const MAIN_LOAD_CDN_TYPE: InjectScriptType;
|
|
10
11
|
/**
|
|
@@ -105,6 +106,10 @@ export type LoadZonosParams = LoadZonosParamsConfig & {
|
|
|
105
106
|
zonosApiKey: string;
|
|
106
107
|
};
|
|
107
108
|
export interface Zonos {
|
|
109
|
+
/**
|
|
110
|
+
* Mock error response for Paypal. Mainly used for testing purposes
|
|
111
|
+
*/
|
|
112
|
+
_paypalMockResponse: PaypalMockResponse | null;
|
|
108
113
|
/**
|
|
109
114
|
* Toggle debug mode (add query param 'zonosDebug=1' to url)
|
|
110
115
|
* @default false
|
|
@@ -115,6 +120,7 @@ export interface Zonos {
|
|
|
115
120
|
isNpm: boolean;
|
|
116
121
|
/** Flag if already alerted when preview domain is defined and it's connecting production environment */
|
|
117
122
|
modeAlerted: boolean;
|
|
123
|
+
paypal: PayPalNamespace | null;
|
|
118
124
|
storeId: number;
|
|
119
125
|
/** Stripe instance */
|
|
120
126
|
stripe: Stripe;
|
|
@@ -142,6 +148,7 @@ export declare abstract class Zonos {
|
|
|
142
148
|
static doneInit: boolean;
|
|
143
149
|
static debug: boolean;
|
|
144
150
|
static zonosConversionTest: boolean;
|
|
151
|
+
static _paypalMockResponse: PaypalMockResponse | null;
|
|
145
152
|
static isBigCommerce: boolean;
|
|
146
153
|
/**
|
|
147
154
|
* By default, the package will load from npm
|
|
@@ -151,6 +158,7 @@ export declare abstract class Zonos {
|
|
|
151
158
|
static version: string;
|
|
152
159
|
static modeAlerted: boolean;
|
|
153
160
|
static tempCartData: TempCart | null;
|
|
161
|
+
static paypal: PayPalNamespace | null;
|
|
154
162
|
static getCurrentTimestamp: () => number;
|
|
155
163
|
private static zonosController;
|
|
156
164
|
static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
|
|
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
|
|
|
768
768
|
hrefLang?: string;
|
|
769
769
|
hreflang?: string;
|
|
770
770
|
media?: string;
|
|
771
|
+
ping?: string;
|
|
771
772
|
rel?: string;
|
|
772
773
|
target?: string;
|
|
773
774
|
referrerPolicy?: ReferrerPolicy;
|
|
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
|
|
|
794
795
|
cite?: string;
|
|
795
796
|
}
|
|
796
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
-
autoFocus?: boolean;
|
|
798
798
|
disabled?: boolean;
|
|
799
799
|
form?: string;
|
|
800
800
|
formAction?: string;
|
|
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
|
|
|
921
921
|
autocapitalize?: string;
|
|
922
922
|
autoComplete?: string;
|
|
923
923
|
autocomplete?: string;
|
|
924
|
-
autoFocus?: boolean;
|
|
925
|
-
autofocus?: boolean | string;
|
|
926
924
|
capture?: string;
|
|
927
925
|
checked?: boolean;
|
|
928
926
|
crossOrigin?: string;
|
|
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
|
|
|
979
977
|
popoverTarget?: string;
|
|
980
978
|
}
|
|
981
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
-
autoFocus?: boolean;
|
|
983
|
-
autofocus?: boolean | string;
|
|
984
980
|
challenge?: string;
|
|
985
981
|
disabled?: boolean;
|
|
986
982
|
form?: string;
|
|
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
|
|
|
993
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
990
|
form?: string;
|
|
995
991
|
htmlFor?: string;
|
|
996
|
-
htmlfor?: string;
|
|
997
992
|
}
|
|
998
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
999
994
|
value?: string | string[] | number;
|
|
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
|
|
|
1104
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1105
1100
|
form?: string;
|
|
1106
1101
|
htmlFor?: string;
|
|
1107
|
-
htmlfor?: string;
|
|
1108
1102
|
name?: string;
|
|
1109
1103
|
}
|
|
1110
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
|
|
|
1129
1123
|
type?: string;
|
|
1130
1124
|
}
|
|
1131
1125
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
-
autoFocus?: boolean;
|
|
1133
1126
|
disabled?: boolean;
|
|
1134
1127
|
form?: string;
|
|
1135
1128
|
multiple?: boolean;
|
|
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
|
|
|
1164
1157
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1158
|
autoComplete?: string;
|
|
1166
1159
|
autocomplete?: string;
|
|
1167
|
-
autoFocus?: boolean;
|
|
1168
|
-
autofocus?: boolean | string;
|
|
1169
1160
|
cols?: number;
|
|
1170
1161
|
disabled?: boolean;
|
|
1171
1162
|
form?: string;
|
|
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
|
|
|
1218
1209
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1219
1210
|
innerHTML?: string;
|
|
1220
1211
|
accessKey?: string;
|
|
1212
|
+
autoFocus?: boolean;
|
|
1213
|
+
autofocus?: boolean | string;
|
|
1221
1214
|
class?: string | {
|
|
1222
1215
|
[className: string]: boolean;
|
|
1223
1216
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CartItem } from "../../components/store/checkout/cart";
|
|
2
2
|
import type { BuildLandedCostParams, BuildLandedCostResponse } from "../../components/utils/api/triggerBuildLandedCost";
|
|
3
|
-
import type { AnalyticsProviderStatus, AnalyticsProviderType, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, CountryCode, CurrencyCode, GetOrderQuery, NotificationActiveStatus } from "../generated/graphql.customer.types";
|
|
3
|
+
import type { AnalyticsProviderStatus, AnalyticsProviderType, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, CountryCode, CurrencyCode, ExternalPaymentMethodStatus, ExternalPaymentMethodType, ExternalServiceTokenType, GetOrderQuery, Mode, NotificationActiveStatus } from "../generated/graphql.customer.types";
|
|
4
4
|
export type ZonosOrder = GetOrderQuery['order'];
|
|
5
5
|
export type { BuildLandedCostParams, BuildLandedCostResponse };
|
|
6
6
|
export type BuildCardDetailParams = {
|
|
@@ -22,6 +22,19 @@ export type CheckoutConfig = {
|
|
|
22
22
|
* @note if set to true, we will not enable or disable the place order button
|
|
23
23
|
*/
|
|
24
24
|
disablePlaceOrderButtonActivation?: boolean;
|
|
25
|
+
externalPaymentMethods: Array<{
|
|
26
|
+
status: ExternalPaymentMethodStatus;
|
|
27
|
+
type: ExternalPaymentMethodType;
|
|
28
|
+
}> | null;
|
|
29
|
+
externalServiceTokens: {
|
|
30
|
+
token: string;
|
|
31
|
+
type: ExternalServiceTokenType;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* Test mode for checkout (sandbox or production)
|
|
35
|
+
* @default TEST
|
|
36
|
+
*/
|
|
37
|
+
mode: Mode;
|
|
25
38
|
orderNotifications: {
|
|
26
39
|
abandonedCart: {
|
|
27
40
|
delay: number;
|