@zonos/elements 1.3.7-alpha.0 → 1.3.7-alpha.1
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-ecc80eb0.js → cart-89d9fff4.js} +150 -95
- package/dist/cjs/formatStringWithLinks-52341fc7.js +17 -0
- package/dist/cjs/{getBorderRadius-834c321d.js → getBorderRadius-d8f18958.js} +1 -1
- package/dist/cjs/{isDarkColor-924e6a7a.js → isDarkColor-57860b44.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/submitGtag-24740560.js +55 -0
- package/dist/cjs/zonos-address_4.cjs.entry.js +20 -14
- package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +8 -8
- package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-cart-items_9.cjs.entry.js +35 -33
- package/dist/cjs/zonos-checkout.cjs.entry.js +158 -21
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +28 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +18 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +24 -9
- package/dist/cjs/zonos-link.cjs.entry.js +24 -0
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-49d4c92a.js → zonosStore-138c5555.js} +5 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +19 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +39 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +1 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -0
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.css +54 -0
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +97 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.css +2 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +4 -4
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +13 -6
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +8 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +50 -11
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -3
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +2 -2
- package/dist/collection/components/store/checkout/stripe.js +26 -4
- package/dist/collection/components/store/hello/localization.js +7 -6
- package/dist/collection/components/store/zonosStore.js +5 -3
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/trackConversionEvent.js +22 -0
- package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -0
- package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +111 -0
- package/dist/collection/components/utils/formatStringWithLinks.js +13 -0
- package/dist/collection/components/utils/handleFetch.js +1 -1
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +25 -28
- package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +2 -1
- package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +8 -6
- package/dist/collection/components/utils/hello/initHello.js +23 -3
- package/dist/collection/components/utils/logging/log.js +20 -9
- package/dist/collection/components/utils/logging/logError.js +2 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +12 -0
- package/dist/collection/scripts/checkIfLoadVersionDomain.js +35 -0
- package/dist/collection/scripts/zonosBase.js +21 -31
- package/dist/collection/styles/stripe/addressRuleStyle.js +4 -0
- package/dist/collection/types/generated/graphql.customer.types.js +1 -4
- package/dist/collection/types/generated/graphql.frontend.types.js +3 -0
- package/dist/components/stripe.js +145 -93
- package/dist/components/trackConversionEvent.js +24 -0
- package/dist/components/zonos-address2.js +1 -1
- package/dist/components/zonos-badge2.js +3 -3
- package/dist/components/zonos-button2.js +5 -5
- package/dist/components/zonos-card2.js +2 -2
- package/dist/components/zonos-cart-subtotal2.js +1 -6
- package/dist/components/zonos-checkbox2.js +3 -3
- package/dist/components/zonos-checkout-finish2.js +32 -12
- package/dist/components/zonos-checkout-payment2.js +1 -1
- package/dist/components/zonos-checkout.js +157 -18
- package/dist/components/zonos-collapse2.js +13 -6
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +25 -5
- package/dist/components/zonos-country-select2.js +9 -3
- package/dist/components/zonos-custom-message2.js +18 -3
- package/dist/components/zonos-customer-info2.js +3 -1
- package/dist/components/zonos-dialog2.js +3 -3
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +6 -5
- package/dist/components/zonos-hello.js +23 -7
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-link.d.ts +11 -0
- package/dist/components/zonos-link.js +43 -0
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +1 -6
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping-rich-radio2.js +1 -1
- package/dist/components/zonos-shipping2.js +7 -2
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/components/zonosStore.js +5 -3
- package/dist/esm/{cart-2a0a6871.js → cart-1bbb7662.js} +148 -96
- package/dist/esm/formatStringWithLinks-9e819405.js +15 -0
- package/dist/esm/{getBorderRadius-0c7dfcf0.js → getBorderRadius-19787feb.js} +1 -1
- package/dist/esm/{isDarkColor-d0a57fd2.js → isDarkColor-2344e7a5.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/submitGtag-d3d11f1a.js +51 -0
- package/dist/esm/zonos-address_4.entry.js +20 -14
- package/dist/esm/zonos-badge_2.entry.js +6 -6
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +8 -8
- package/dist/esm/zonos-card_2.entry.js +8 -8
- package/dist/esm/zonos-cart-items_9.entry.js +35 -33
- package/dist/esm/zonos-checkout.entry.js +158 -21
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +28 -8
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +19 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +9 -7
- package/dist/esm/zonos-hello.entry.js +24 -9
- package/dist/esm/zonos-link.entry.js +20 -0
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-dec6bd7e.js → zonosStore-00bce01b.js} +5 -3
- package/dist/esm-es5/{cart-2a0a6871.js → cart-1bbb7662.js} +1 -1
- package/dist/esm-es5/formatStringWithLinks-9e819405.js +1 -0
- package/dist/esm-es5/{getBorderRadius-0c7dfcf0.js → getBorderRadius-19787feb.js} +1 -1
- package/dist/esm-es5/{isDarkColor-d0a57fd2.js → isDarkColor-2344e7a5.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-d3d11f1a.js +1 -0
- package/dist/esm-es5/zonos-address_4.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_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.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-link.entry.js +1 -0
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- 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/{zonosStore-dec6bd7e.js → zonosStore-00bce01b.js} +1 -1
- package/dist/scripts/checkIfLoadVersionDomain.js +1 -0
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -1
- package/dist/types/components/common/component-template/zonos-link/zonos-link.d.ts +19 -0
- package/dist/types/components/common/zonos-collapse/zonos-collapse.d.ts +1 -0
- package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +2 -0
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +9 -3
- package/dist/types/components/store/checkout/cart.d.ts +6 -3
- package/dist/types/components/store/checkout/stripe.d.ts +22 -1
- package/dist/types/components/store/hello/localization.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +1 -0
- package/dist/types/components/utils/api/trackConversionEvent.d.ts +3 -0
- package/dist/types/components/utils/checkout/isShippableCountry.d.ts +1 -0
- package/dist/types/components/utils/checkout/watchBigcommerceDomesticCheckout.d.ts +20 -0
- package/dist/types/components/utils/formatStringWithLinks.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
- package/dist/types/components/utils/logging/log.d.ts +1 -1
- package/dist/types/components/utils/logging/sendErrorLog.d.ts +7 -0
- package/dist/types/components.d.ts +53 -3
- package/dist/types/scripts/checkIfLoadVersionDomain.d.ts +13 -0
- package/dist/types/scripts/zonosBase.d.ts +2 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +8 -53
- package/dist/types/types/generated/graphql.customer.types.ts +18 -62
- package/dist/types/types/generated/graphql.frontend.types.d.ts +8 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +18 -0
- package/dist/zonos-elements/p-0318632a.entry.js +1 -0
- package/dist/zonos-elements/p-066c5893.system.js +1 -1
- package/dist/zonos-elements/p-07966463.entry.js +1 -0
- package/dist/zonos-elements/p-0c0aa552.js +1 -0
- package/dist/zonos-elements/p-127b480c.entry.js +1 -0
- package/dist/zonos-elements/p-135ab559.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e855966f.system.entry.js → p-143dc0d9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-55970b10.system.entry.js → p-14d27ce1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a93c594f.entry.js → p-15a80c4a.entry.js} +1 -1
- package/dist/zonos-elements/p-17e87be1.entry.js +1 -0
- package/dist/zonos-elements/{p-a95c034c.entry.js → p-1e0dd491.entry.js} +1 -1
- package/dist/zonos-elements/{p-34efed1d.entry.js → p-279d1c5f.entry.js} +1 -1
- package/dist/zonos-elements/p-2d6557ee.system.js +1 -0
- package/dist/zonos-elements/p-314be538.system.entry.js +1 -0
- package/dist/zonos-elements/{p-79b910bf.system.entry.js → p-328b7f6f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-354603b3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-591eb6dd.system.js → p-49f6a985.system.js} +1 -1
- package/dist/zonos-elements/p-57b65321.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5b44abc8.system.js → p-58c1ddef.system.js} +1 -1
- package/dist/zonos-elements/{p-06652d87.system.entry.js → p-58e2f6a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7d1d862f.system.entry.js → p-5ee03db0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-88a55076.system.entry.js → p-61e5cf29.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-67737613.system.entry.js → p-799d8a17.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7a32526c.entry.js +1 -0
- package/dist/zonos-elements/p-7b87b82f.js +1 -0
- package/dist/zonos-elements/{p-e2770968.system.entry.js → p-7c45ce37.system.entry.js} +1 -1
- package/dist/zonos-elements/p-84f4f00f.entry.js +1 -0
- package/dist/zonos-elements/{p-2d2e1831.entry.js → p-857cfe35.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfd3edcf.entry.js → p-87e9c42f.entry.js} +1 -1
- package/dist/zonos-elements/{p-ec4d08b3.system.js → p-91797d4e.system.js} +1 -1
- package/dist/zonos-elements/{p-34c03be2.js → p-95e0fc06.js} +1 -1
- package/dist/zonos-elements/{p-afe40057.entry.js → p-a3cc0f84.entry.js} +1 -1
- package/dist/zonos-elements/p-a5f12396.entry.js +1 -0
- package/dist/zonos-elements/p-a87561b8.js +1 -0
- package/dist/zonos-elements/{p-e161a08c.entry.js → p-ac0a7b8f.entry.js} +1 -1
- package/dist/zonos-elements/{p-9878a770.js → p-ae82a9ae.js} +1 -1
- package/dist/zonos-elements/p-b0462325.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1f85a98c.system.entry.js → p-b2c0ec71.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-549c181b.system.js → p-b4725505.system.js} +1 -1
- package/dist/zonos-elements/p-bef54fb1.entry.js +1 -0
- package/dist/zonos-elements/{p-0c72fb79.system.entry.js → p-c0d431f6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d054788b.system.js +1 -0
- package/dist/zonos-elements/{p-375c472a.system.entry.js → p-d407c93a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e55dd932.js +1 -0
- package/dist/zonos-elements/p-ec37439e.entry.js +1 -0
- package/dist/zonos-elements/p-edace42b.entry.js +1 -0
- package/dist/zonos-elements/{p-cc63a29f.system.entry.js → p-f478c814.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8aeb4679.system.entry.js → p-f6eaef7b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7098c3b.entry.js → p-f7c36fcc.entry.js} +1 -1
- package/dist/zonos-elements/p-f862b97f.system.entry.js +1 -0
- package/dist/zonos-elements/p-fd642725.entry.js +1 -0
- package/dist/zonos-elements/p-fdb72530.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a4de3fb2.entry.js → p-ff64ddc5.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/submitGtag-907e71d3.js +0 -21
- package/dist/collection/scripts/extractZonosQaUrl.js +0 -26
- package/dist/esm/submitGtag-a38aed23.js +0 -19
- package/dist/esm-es5/submitGtag-a38aed23.js +0 -1
- package/dist/types/scripts/extractZonosQaUrl.d.ts +0 -11
- package/dist/zonos-elements/p-0057e374.entry.js +0 -1
- package/dist/zonos-elements/p-290c3670.entry.js +0 -1
- package/dist/zonos-elements/p-2f1e1cbb.system.entry.js +0 -1
- package/dist/zonos-elements/p-33080cde.system.entry.js +0 -1
- package/dist/zonos-elements/p-561e44d6.entry.js +0 -1
- package/dist/zonos-elements/p-5c4dc123.js +0 -1
- package/dist/zonos-elements/p-656c836b.entry.js +0 -1
- package/dist/zonos-elements/p-8d645a00.entry.js +0 -1
- package/dist/zonos-elements/p-a219689f.entry.js +0 -1
- package/dist/zonos-elements/p-a3d72a33.entry.js +0 -1
- package/dist/zonos-elements/p-b10ff468.entry.js +0 -1
- package/dist/zonos-elements/p-b6992dc2.system.entry.js +0 -1
- package/dist/zonos-elements/p-bce46c41.js +0 -1
- package/dist/zonos-elements/p-c56d4a44.entry.js +0 -1
- package/dist/zonos-elements/p-cbb1e700.system.js +0 -1
- package/dist/zonos-elements/p-cd8bd5e9.system.entry.js +0 -1
- package/dist/zonos-elements/p-d36faf87.system.entry.js +0 -1
- package/dist/zonos-elements/p-e2c6ad57.entry.js +0 -1
- package/dist/zonos-elements/p-ea93943a.system.entry.js +0 -1
- package/dist/zonos-elements/p-f455e08c.js +0 -1
|
@@ -39,6 +39,20 @@ type StripeStore = {
|
|
|
39
39
|
stripeShippingSameAsBilling: boolean;
|
|
40
40
|
};
|
|
41
41
|
declare const stripeStore: StripeStore;
|
|
42
|
+
export type DomesticShippingSession = {
|
|
43
|
+
address1: string;
|
|
44
|
+
address2: string;
|
|
45
|
+
city: string;
|
|
46
|
+
countryCode: string;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
postalCode: string;
|
|
51
|
+
state: string;
|
|
52
|
+
};
|
|
53
|
+
declare const stripeStoreCleanupDomesticShippingSession: () => void;
|
|
54
|
+
declare const stripeStoreSaveDomesticShippingSession: (props: DomesticShippingSession) => void;
|
|
55
|
+
declare const stripeStoreGetDomesticShippingSession: () => DomesticShippingSession | null;
|
|
42
56
|
declare const initStripeElements: (props?: {
|
|
43
57
|
overrideBorderRaidus?: ElementsUiStyle;
|
|
44
58
|
overridePrimaryColor?: string;
|
|
@@ -54,10 +68,17 @@ declare const stripeStoreRetrievePayment: ({ clientSecret: _clientSecret, storyb
|
|
|
54
68
|
error: boolean;
|
|
55
69
|
messages: string[];
|
|
56
70
|
message?: undefined;
|
|
71
|
+
paymentMethod?: undefined;
|
|
57
72
|
} | {
|
|
58
73
|
error: boolean;
|
|
59
74
|
message: string[];
|
|
60
75
|
messages?: undefined;
|
|
76
|
+
paymentMethod?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
error: boolean;
|
|
79
|
+
messages: string[];
|
|
80
|
+
paymentMethod: string | import("@stripe/stripe-js").PaymentMethod | null | undefined;
|
|
81
|
+
message?: undefined;
|
|
61
82
|
}>;
|
|
62
83
|
declare const stripeStoreConfirmPayment: () => Promise<void>;
|
|
63
84
|
/**
|
|
@@ -83,4 +104,4 @@ declare const stripeStoreUpdateCheckoutSession: ({ currency, id, itemsAmount, la
|
|
|
83
104
|
errors: import("../../..").JsonError[];
|
|
84
105
|
json: CheckoutSessionUpdateMutation | null;
|
|
85
106
|
}>;
|
|
86
|
-
export { initStripeElements, stripeStore, stripeStoreConfirmPayment, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreUpdateCheckoutSession, };
|
|
107
|
+
export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreUpdateCheckoutSession, };
|
|
@@ -27,7 +27,7 @@ type ILocaleMessageForUse = {
|
|
|
27
27
|
pageName: Locale_PageName_Enum;
|
|
28
28
|
};
|
|
29
29
|
declare const localizationStore: LocalizationStore;
|
|
30
|
-
declare const localizationStoreUpdateSelectedCountryCode: (newSelectedCountryCode: CountryCode | null) =>
|
|
30
|
+
declare const localizationStoreUpdateSelectedCountryCode: (newSelectedCountryCode: CountryCode | null) => void;
|
|
31
31
|
declare const initLocalizationStore: () => Promise<void>;
|
|
32
32
|
declare const localizationStoreUpdateSelectedLocale: (newSelectedLocale: Locale_ElementsSupportedLocationCode_Enum) => void;
|
|
33
33
|
export { initLocalizationStore, localizationStore, localizationStoreUpdateSelectedCountryCode, localizationStoreUpdateSelectedLocale, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
type ConversionEvent = 'checkout_open' | 'checkout_customerInfoCompleted' | 'checkout_shippingInfoCompleted' | 'checkout_paymentInfoCompleted' | 'checkout_orderCompleted';
|
|
2
|
+
export declare const trackConversionEvent: (eventName: ConversionEvent, metadata?: Record<string, unknown>) => Promise<void>;
|
|
3
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isShippableCountry: (showLog?: boolean) => boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Params = {
|
|
2
|
+
domesticRedirectedBtnSelector: string;
|
|
3
|
+
onShippingAddressSessionFound?: (shippingAddress: {
|
|
4
|
+
address1: string;
|
|
5
|
+
address2: string;
|
|
6
|
+
city: string;
|
|
7
|
+
countryCode: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
postalCode: string;
|
|
12
|
+
state: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Watch for changes in domestic checkout step, this is to redirect user to home page and open checkout if user enters the ship to country that's in the shipping zone
|
|
17
|
+
* @note Only works on default bigcommerce checkout page
|
|
18
|
+
*/
|
|
19
|
+
export declare const watchBigcommerceDomesticCheckout: ({ domesticRedirectedBtnSelector, onShippingAddressSessionFound, }: Params) => void;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatStringWithLinks: (str: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getCurrencyElements: (selector: string) =>
|
|
1
|
+
export declare const getCurrencyElements: (selector: string) => Element[] | null;
|
|
@@ -478,12 +478,12 @@ export namespace Components {
|
|
|
478
478
|
* This method will convert the currency and return the converted value
|
|
479
479
|
* @returns number
|
|
480
480
|
*/
|
|
481
|
-
"convert": (value: number) => Promise<
|
|
481
|
+
"convert": (value: number) => Promise<number>;
|
|
482
482
|
/**
|
|
483
483
|
* This method will call convert and format, and return the converted and formatted string
|
|
484
484
|
* @returns string
|
|
485
485
|
*/
|
|
486
|
-
"convertAndFormat": (value: number) => Promise<
|
|
486
|
+
"convertAndFormat": (value: number) => Promise<string>;
|
|
487
487
|
/**
|
|
488
488
|
* This method will trigger the currency conversion and display the converted value
|
|
489
489
|
* @returns void
|
|
@@ -493,12 +493,17 @@ export namespace Components {
|
|
|
493
493
|
* This method will format the currency and return the formatted string
|
|
494
494
|
* @returns number
|
|
495
495
|
*/
|
|
496
|
-
"format": (value: number) => Promise<
|
|
496
|
+
"format": (value: number) => Promise<string>;
|
|
497
497
|
/**
|
|
498
498
|
* Force mobile styling instead of media query and use the passed location value
|
|
499
499
|
* @default false
|
|
500
500
|
*/
|
|
501
501
|
"mobileLocationOverride"?: HelloMobileLocation;
|
|
502
|
+
/**
|
|
503
|
+
* This method show the hello dialog
|
|
504
|
+
* @returns void
|
|
505
|
+
*/
|
|
506
|
+
"openHelloDialog": (value: boolean) => Promise<void>;
|
|
502
507
|
}
|
|
503
508
|
interface ZonosHelloDialog {
|
|
504
509
|
/**
|
|
@@ -575,6 +580,24 @@ export namespace Components {
|
|
|
575
580
|
*/
|
|
576
581
|
"handleOnClose": () => void;
|
|
577
582
|
}
|
|
583
|
+
interface ZonosLink {
|
|
584
|
+
/**
|
|
585
|
+
* The href for the link
|
|
586
|
+
*/
|
|
587
|
+
"href": string;
|
|
588
|
+
/**
|
|
589
|
+
* The title attribute for the link
|
|
590
|
+
*/
|
|
591
|
+
"linkTitle"?: string;
|
|
592
|
+
/**
|
|
593
|
+
* The rel attribute for the link
|
|
594
|
+
*/
|
|
595
|
+
"rel"?: string;
|
|
596
|
+
/**
|
|
597
|
+
* The target attribute for the link
|
|
598
|
+
*/
|
|
599
|
+
"target"?: string;
|
|
600
|
+
}
|
|
578
601
|
interface ZonosLinkAuthentication {
|
|
579
602
|
/**
|
|
580
603
|
* The title text for the authentication element
|
|
@@ -971,6 +994,12 @@ declare global {
|
|
|
971
994
|
prototype: HTMLZonosLanguageSelectElement;
|
|
972
995
|
new (): HTMLZonosLanguageSelectElement;
|
|
973
996
|
};
|
|
997
|
+
interface HTMLZonosLinkElement extends Components.ZonosLink, HTMLStencilElement {
|
|
998
|
+
}
|
|
999
|
+
var HTMLZonosLinkElement: {
|
|
1000
|
+
prototype: HTMLZonosLinkElement;
|
|
1001
|
+
new (): HTMLZonosLinkElement;
|
|
1002
|
+
};
|
|
974
1003
|
interface HTMLZonosLinkAuthenticationElement extends Components.ZonosLinkAuthentication, HTMLStencilElement {
|
|
975
1004
|
}
|
|
976
1005
|
var HTMLZonosLinkAuthenticationElement: {
|
|
@@ -1091,6 +1120,7 @@ declare global {
|
|
|
1091
1120
|
"zonos-hello-dialog-footer": HTMLZonosHelloDialogFooterElement;
|
|
1092
1121
|
"zonos-icon": HTMLZonosIconElement;
|
|
1093
1122
|
"zonos-language-select": HTMLZonosLanguageSelectElement;
|
|
1123
|
+
"zonos-link": HTMLZonosLinkElement;
|
|
1094
1124
|
"zonos-link-authentication": HTMLZonosLinkAuthenticationElement;
|
|
1095
1125
|
"zonos-logo": HTMLZonosLogoElement;
|
|
1096
1126
|
"zonos-notification": HTMLZonosNotificationElement;
|
|
@@ -1612,6 +1642,24 @@ declare namespace LocalJSX {
|
|
|
1612
1642
|
*/
|
|
1613
1643
|
"handleOnClose"?: () => void;
|
|
1614
1644
|
}
|
|
1645
|
+
interface ZonosLink {
|
|
1646
|
+
/**
|
|
1647
|
+
* The href for the link
|
|
1648
|
+
*/
|
|
1649
|
+
"href"?: string;
|
|
1650
|
+
/**
|
|
1651
|
+
* The title attribute for the link
|
|
1652
|
+
*/
|
|
1653
|
+
"linkTitle"?: string;
|
|
1654
|
+
/**
|
|
1655
|
+
* The rel attribute for the link
|
|
1656
|
+
*/
|
|
1657
|
+
"rel"?: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* The target attribute for the link
|
|
1660
|
+
*/
|
|
1661
|
+
"target"?: string;
|
|
1662
|
+
}
|
|
1615
1663
|
interface ZonosLinkAuthentication {
|
|
1616
1664
|
/**
|
|
1617
1665
|
* The title text for the authentication element
|
|
@@ -1773,6 +1821,7 @@ declare namespace LocalJSX {
|
|
|
1773
1821
|
"zonos-hello-dialog-footer": ZonosHelloDialogFooter;
|
|
1774
1822
|
"zonos-icon": ZonosIcon;
|
|
1775
1823
|
"zonos-language-select": ZonosLanguageSelect;
|
|
1824
|
+
"zonos-link": ZonosLink;
|
|
1776
1825
|
"zonos-link-authentication": ZonosLinkAuthentication;
|
|
1777
1826
|
"zonos-logo": ZonosLogo;
|
|
1778
1827
|
"zonos-notification": ZonosNotification;
|
|
@@ -1816,6 +1865,7 @@ declare module "@stencil/core" {
|
|
|
1816
1865
|
"zonos-hello-dialog-footer": LocalJSX.ZonosHelloDialogFooter & JSXBase.HTMLAttributes<HTMLZonosHelloDialogFooterElement>;
|
|
1817
1866
|
"zonos-icon": LocalJSX.ZonosIcon & JSXBase.HTMLAttributes<HTMLZonosIconElement>;
|
|
1818
1867
|
"zonos-language-select": LocalJSX.ZonosLanguageSelect & JSXBase.HTMLAttributes<HTMLZonosLanguageSelectElement>;
|
|
1868
|
+
"zonos-link": LocalJSX.ZonosLink & JSXBase.HTMLAttributes<HTMLZonosLinkElement>;
|
|
1819
1869
|
"zonos-link-authentication": LocalJSX.ZonosLinkAuthentication & JSXBase.HTMLAttributes<HTMLZonosLinkAuthenticationElement>;
|
|
1820
1870
|
"zonos-logo": LocalJSX.ZonosLogo & JSXBase.HTMLAttributes<HTMLZonosLogoElement>;
|
|
1821
1871
|
"zonos-notification": LocalJSX.ZonosNotification & JSXBase.HTMLAttributes<HTMLZonosNotificationElement>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Params = {
|
|
2
|
+
loadScriptSrc?: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Get the load version and url based on the loadScriptSrc and version
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const checkIfLoadVersionDomain: ({ loadScriptSrc }: Params) => {
|
|
9
|
+
currentLoadScriptUrl: string;
|
|
10
|
+
isForceLoadVersionDomain: boolean;
|
|
11
|
+
isWhiteListed: boolean;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -33,6 +33,7 @@ export interface Zonos {
|
|
|
33
33
|
getCurrentTimestamp: () => number;
|
|
34
34
|
init: (params: LoadZonosParams) => Promise<void>;
|
|
35
35
|
injectSupportGoogleFont: (fontUrl: string) => void;
|
|
36
|
+
openHelloDialog: (state?: boolean) => void;
|
|
36
37
|
setupGoogleFont: (fontFamily: string) => void;
|
|
37
38
|
showNotification: (props: NotificationInit) => void;
|
|
38
39
|
updateOrganizationName: (organizationName: string) => void;
|
|
@@ -52,6 +53,7 @@ export declare abstract class Zonos {
|
|
|
52
53
|
private static zonosController;
|
|
53
54
|
static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
|
|
54
55
|
static displayCurrency: () => void;
|
|
56
|
+
static openHelloDialog: (value?: boolean) => void;
|
|
55
57
|
static showNotification: (notification: NotificationInit) => void;
|
|
56
58
|
static updateOrganizationName: (organizationName: string) => void;
|
|
57
59
|
private static disablePlaceOrderButtons;
|
|
@@ -56,5 +56,5 @@ export type CheckoutConfig = {
|
|
|
56
56
|
*/
|
|
57
57
|
buildCartDetail?: () => Promise<CartItem[]>;
|
|
58
58
|
buildLandedCost?: (params: BuildLandedCostParams) => BuildLandedCostResponse;
|
|
59
|
-
onOrderSuccess?: (zonosOrder: ZonosOrder) => void
|
|
59
|
+
onOrderSuccess?: (zonosOrder: ZonosOrder) => Promise<void>;
|
|
60
60
|
};
|
|
@@ -1155,6 +1155,7 @@ export declare const emailTemplateStatus: {
|
|
|
1155
1155
|
export type EmailTemplateStatus = (typeof emailTemplateStatus)[keyof typeof emailTemplateStatus];
|
|
1156
1156
|
export declare const emailTemplateType: {
|
|
1157
1157
|
readonly AbandonedCart: "ABANDONED_CART";
|
|
1158
|
+
readonly CatalogExport: "CATALOG_EXPORT";
|
|
1158
1159
|
readonly OrderCanceled: "ORDER_CANCELED";
|
|
1159
1160
|
readonly OrderConfirmation: "ORDER_CONFIRMATION";
|
|
1160
1161
|
readonly OrderReceipt: "ORDER_RECEIPT";
|
|
@@ -1378,11 +1379,6 @@ export declare const invoiceLanguageCode: {
|
|
|
1378
1379
|
readonly ZhTw: "ZH_TW";
|
|
1379
1380
|
};
|
|
1380
1381
|
export type InvoiceLanguageCode = (typeof invoiceLanguageCode)[keyof typeof invoiceLanguageCode];
|
|
1381
|
-
export declare const invoiceLineRecordBehaviorCode: {
|
|
1382
|
-
readonly Finalize: "FINALIZE";
|
|
1383
|
-
readonly Pending: "PENDING";
|
|
1384
|
-
};
|
|
1385
|
-
export type InvoiceLineRecordBehaviorCode = (typeof invoiceLineRecordBehaviorCode)[keyof typeof invoiceLineRecordBehaviorCode];
|
|
1386
1382
|
export declare const invoiceLineRecordStatusCode: {
|
|
1387
1383
|
readonly Failed: "FAILED";
|
|
1388
1384
|
readonly Pending: "PENDING";
|
|
@@ -2117,31 +2113,7 @@ export type CalculateLandedCostMutation = {
|
|
|
2117
2113
|
} | null> | null;
|
|
2118
2114
|
checkoutSessionWorkflow: Array<{
|
|
2119
2115
|
landedCost: {
|
|
2120
|
-
amountSubtotals: {
|
|
2121
|
-
duties: number;
|
|
2122
|
-
fees: number;
|
|
2123
|
-
items: number;
|
|
2124
|
-
landedCostTotal: number;
|
|
2125
|
-
shipping: number;
|
|
2126
|
-
taxes: number;
|
|
2127
|
-
} | null;
|
|
2128
|
-
currencyCode: CurrencyCode;
|
|
2129
|
-
deMinimis: Array<{
|
|
2130
|
-
formula: string;
|
|
2131
|
-
method: IncotermCode;
|
|
2132
|
-
note: string;
|
|
2133
|
-
threshold: DeMinimisThreshold;
|
|
2134
|
-
type: DeMinimisType;
|
|
2135
|
-
}>;
|
|
2136
2116
|
id: string;
|
|
2137
|
-
landedCostGuaranteeCode: LandedCostGuaranteeCode;
|
|
2138
|
-
method: IncotermCode;
|
|
2139
|
-
shipmentRating: {
|
|
2140
|
-
amount: number;
|
|
2141
|
-
currencyCode: CurrencyCode;
|
|
2142
|
-
displayName: string;
|
|
2143
|
-
id: string;
|
|
2144
|
-
};
|
|
2145
2117
|
} | null;
|
|
2146
2118
|
subtotals: {
|
|
2147
2119
|
duties: number;
|
|
@@ -2174,6 +2146,9 @@ export type CalculateLandedCostMutation = {
|
|
|
2174
2146
|
type: LandedCostAdjustmentType | null;
|
|
2175
2147
|
} | null> | null;
|
|
2176
2148
|
deMinimis: Array<{
|
|
2149
|
+
formula: string;
|
|
2150
|
+
method: IncotermCode;
|
|
2151
|
+
note: string;
|
|
2177
2152
|
threshold: DeMinimisThreshold;
|
|
2178
2153
|
type: DeMinimisType;
|
|
2179
2154
|
}>;
|
|
@@ -2217,31 +2192,7 @@ export type CalculateLandedCostMutation = {
|
|
|
2217
2192
|
};
|
|
2218
2193
|
export type CheckoutPresentmentFragment = {
|
|
2219
2194
|
landedCost: {
|
|
2220
|
-
amountSubtotals: {
|
|
2221
|
-
duties: number;
|
|
2222
|
-
fees: number;
|
|
2223
|
-
items: number;
|
|
2224
|
-
landedCostTotal: number;
|
|
2225
|
-
shipping: number;
|
|
2226
|
-
taxes: number;
|
|
2227
|
-
} | null;
|
|
2228
|
-
currencyCode: CurrencyCode;
|
|
2229
|
-
deMinimis: Array<{
|
|
2230
|
-
formula: string;
|
|
2231
|
-
method: IncotermCode;
|
|
2232
|
-
note: string;
|
|
2233
|
-
threshold: DeMinimisThreshold;
|
|
2234
|
-
type: DeMinimisType;
|
|
2235
|
-
}>;
|
|
2236
2195
|
id: string;
|
|
2237
|
-
landedCostGuaranteeCode: LandedCostGuaranteeCode;
|
|
2238
|
-
method: IncotermCode;
|
|
2239
|
-
shipmentRating: {
|
|
2240
|
-
amount: number;
|
|
2241
|
-
currencyCode: CurrencyCode;
|
|
2242
|
-
displayName: string;
|
|
2243
|
-
id: string;
|
|
2244
|
-
};
|
|
2245
2196
|
} | null;
|
|
2246
2197
|
subtotals: {
|
|
2247
2198
|
duties: number;
|
|
@@ -2270,6 +2221,9 @@ export type LandedCostFragment = {
|
|
|
2270
2221
|
type: LandedCostAdjustmentType | null;
|
|
2271
2222
|
} | null> | null;
|
|
2272
2223
|
deMinimis: Array<{
|
|
2224
|
+
formula: string;
|
|
2225
|
+
method: IncotermCode;
|
|
2226
|
+
note: string;
|
|
2273
2227
|
threshold: DeMinimisThreshold;
|
|
2274
2228
|
type: DeMinimisType;
|
|
2275
2229
|
}>;
|
|
@@ -2656,6 +2610,7 @@ export type ZonosSettingsQuery = {
|
|
|
2656
2610
|
allowedDomains: Array<string>;
|
|
2657
2611
|
};
|
|
2658
2612
|
organization: {
|
|
2613
|
+
id: string;
|
|
2659
2614
|
name: string;
|
|
2660
2615
|
references: {
|
|
2661
2616
|
storeId: number | null;
|
|
@@ -1297,6 +1297,7 @@ export type EmailTemplateStatus =
|
|
|
1297
1297
|
(typeof emailTemplateStatus)[keyof typeof emailTemplateStatus];
|
|
1298
1298
|
export const emailTemplateType = {
|
|
1299
1299
|
AbandonedCart: 'ABANDONED_CART',
|
|
1300
|
+
CatalogExport: 'CATALOG_EXPORT',
|
|
1300
1301
|
OrderCanceled: 'ORDER_CANCELED',
|
|
1301
1302
|
OrderConfirmation: 'ORDER_CONFIRMATION',
|
|
1302
1303
|
OrderReceipt: 'ORDER_RECEIPT',
|
|
@@ -1582,13 +1583,7 @@ export const invoiceLanguageCode = {
|
|
|
1582
1583
|
|
|
1583
1584
|
export type InvoiceLanguageCode =
|
|
1584
1585
|
(typeof invoiceLanguageCode)[keyof typeof invoiceLanguageCode];
|
|
1585
|
-
export const invoiceLineRecordBehaviorCode = {
|
|
1586
|
-
Finalize: 'FINALIZE',
|
|
1587
|
-
Pending: 'PENDING',
|
|
1588
|
-
} as const;
|
|
1589
1586
|
|
|
1590
|
-
export type InvoiceLineRecordBehaviorCode =
|
|
1591
|
-
(typeof invoiceLineRecordBehaviorCode)[keyof typeof invoiceLineRecordBehaviorCode];
|
|
1592
1587
|
export const invoiceLineRecordStatusCode = {
|
|
1593
1588
|
Failed: 'FAILED',
|
|
1594
1589
|
Pending: 'PENDING',
|
|
@@ -2506,33 +2501,7 @@ export type CalculateLandedCostMutation = {
|
|
|
2506
2501
|
type: PackagingType;
|
|
2507
2502
|
} | null> | null;
|
|
2508
2503
|
checkoutSessionWorkflow: Array<{
|
|
2509
|
-
landedCost: {
|
|
2510
|
-
amountSubtotals: {
|
|
2511
|
-
duties: number;
|
|
2512
|
-
fees: number;
|
|
2513
|
-
items: number;
|
|
2514
|
-
landedCostTotal: number;
|
|
2515
|
-
shipping: number;
|
|
2516
|
-
taxes: number;
|
|
2517
|
-
} | null;
|
|
2518
|
-
currencyCode: CurrencyCode;
|
|
2519
|
-
deMinimis: Array<{
|
|
2520
|
-
formula: string;
|
|
2521
|
-
method: IncotermCode;
|
|
2522
|
-
note: string;
|
|
2523
|
-
threshold: DeMinimisThreshold;
|
|
2524
|
-
type: DeMinimisType;
|
|
2525
|
-
}>;
|
|
2526
|
-
id: string;
|
|
2527
|
-
landedCostGuaranteeCode: LandedCostGuaranteeCode;
|
|
2528
|
-
method: IncotermCode;
|
|
2529
|
-
shipmentRating: {
|
|
2530
|
-
amount: number;
|
|
2531
|
-
currencyCode: CurrencyCode;
|
|
2532
|
-
displayName: string;
|
|
2533
|
-
id: string;
|
|
2534
|
-
};
|
|
2535
|
-
} | null;
|
|
2504
|
+
landedCost: { id: string } | null;
|
|
2536
2505
|
subtotals: {
|
|
2537
2506
|
duties: number;
|
|
2538
2507
|
exchangeRate: {
|
|
@@ -2558,7 +2527,13 @@ export type CalculateLandedCostMutation = {
|
|
|
2558
2527
|
item: { amount: number } | null;
|
|
2559
2528
|
type: LandedCostAdjustmentType | null;
|
|
2560
2529
|
} | null> | null;
|
|
2561
|
-
deMinimis: Array<{
|
|
2530
|
+
deMinimis: Array<{
|
|
2531
|
+
formula: string;
|
|
2532
|
+
method: IncotermCode;
|
|
2533
|
+
note: string;
|
|
2534
|
+
threshold: DeMinimisThreshold;
|
|
2535
|
+
type: DeMinimisType;
|
|
2536
|
+
}>;
|
|
2562
2537
|
duties: Array<{ amount: number; currencyCode: CurrencyCode }>;
|
|
2563
2538
|
fees: Array<{ amount: number; currencyCode: CurrencyCode }>;
|
|
2564
2539
|
id: string;
|
|
@@ -2590,33 +2565,7 @@ export type CalculateLandedCostMutation = {
|
|
|
2590
2565
|
};
|
|
2591
2566
|
|
|
2592
2567
|
export type CheckoutPresentmentFragment = {
|
|
2593
|
-
landedCost: {
|
|
2594
|
-
amountSubtotals: {
|
|
2595
|
-
duties: number;
|
|
2596
|
-
fees: number;
|
|
2597
|
-
items: number;
|
|
2598
|
-
landedCostTotal: number;
|
|
2599
|
-
shipping: number;
|
|
2600
|
-
taxes: number;
|
|
2601
|
-
} | null;
|
|
2602
|
-
currencyCode: CurrencyCode;
|
|
2603
|
-
deMinimis: Array<{
|
|
2604
|
-
formula: string;
|
|
2605
|
-
method: IncotermCode;
|
|
2606
|
-
note: string;
|
|
2607
|
-
threshold: DeMinimisThreshold;
|
|
2608
|
-
type: DeMinimisType;
|
|
2609
|
-
}>;
|
|
2610
|
-
id: string;
|
|
2611
|
-
landedCostGuaranteeCode: LandedCostGuaranteeCode;
|
|
2612
|
-
method: IncotermCode;
|
|
2613
|
-
shipmentRating: {
|
|
2614
|
-
amount: number;
|
|
2615
|
-
currencyCode: CurrencyCode;
|
|
2616
|
-
displayName: string;
|
|
2617
|
-
id: string;
|
|
2618
|
-
};
|
|
2619
|
-
} | null;
|
|
2568
|
+
landedCost: { id: string } | null;
|
|
2620
2569
|
subtotals: {
|
|
2621
2570
|
duties: number;
|
|
2622
2571
|
exchangeRate: {
|
|
@@ -2642,7 +2591,13 @@ export type LandedCostFragment = {
|
|
|
2642
2591
|
item: { amount: number } | null;
|
|
2643
2592
|
type: LandedCostAdjustmentType | null;
|
|
2644
2593
|
} | null> | null;
|
|
2645
|
-
deMinimis: Array<{
|
|
2594
|
+
deMinimis: Array<{
|
|
2595
|
+
formula: string;
|
|
2596
|
+
method: IncotermCode;
|
|
2597
|
+
note: string;
|
|
2598
|
+
threshold: DeMinimisThreshold;
|
|
2599
|
+
type: DeMinimisType;
|
|
2600
|
+
}>;
|
|
2646
2601
|
duties: Array<{ amount: number; currencyCode: CurrencyCode }>;
|
|
2647
2602
|
fees: Array<{ amount: number; currencyCode: CurrencyCode }>;
|
|
2648
2603
|
id: string;
|
|
@@ -2999,6 +2954,7 @@ export type ZonosSettingsQuery = {
|
|
|
2999
2954
|
} | null;
|
|
3000
2955
|
onlineStoreSettings: { allowedDomains: Array<string> };
|
|
3001
2956
|
organization: {
|
|
2957
|
+
id: string;
|
|
3002
2958
|
name: string;
|
|
3003
2959
|
references: { storeId: number | null } | null;
|
|
3004
2960
|
} | null;
|
|
@@ -547,6 +547,11 @@ export type LocaleCountryMessagesQuery = {
|
|
|
547
547
|
pageName: Locale_PageName_Enum;
|
|
548
548
|
}>;
|
|
549
549
|
};
|
|
550
|
+
export type InsertConversionEventMutation = {
|
|
551
|
+
insert_usage_conversionEvent_one: {
|
|
552
|
+
id: number;
|
|
553
|
+
} | null;
|
|
554
|
+
};
|
|
550
555
|
export type CreateErrorEventMutation = {
|
|
551
556
|
insert_error_event: {
|
|
552
557
|
returning: Array<{
|
|
@@ -741,6 +746,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
741
746
|
cleanupTestZonosElementSetting(variables?: {
|
|
742
747
|
[x: string]: never;
|
|
743
748
|
} | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<CleanupTestZonosElementSettingMutation>;
|
|
749
|
+
insertConversionEvent(variables?: {
|
|
750
|
+
[x: string]: never;
|
|
751
|
+
} | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<InsertConversionEventMutation>;
|
|
744
752
|
zonosElementsSetting(variables?: {
|
|
745
753
|
[x: string]: never;
|
|
746
754
|
} | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<ZonosElementsSettingQuery>;
|
|
@@ -548,6 +548,10 @@ export type LocaleCountryMessagesQuery = {
|
|
|
548
548
|
}>;
|
|
549
549
|
};
|
|
550
550
|
|
|
551
|
+
export type InsertConversionEventMutation = {
|
|
552
|
+
insert_usage_conversionEvent_one: { id: number } | null;
|
|
553
|
+
};
|
|
554
|
+
|
|
551
555
|
export type CreateErrorEventMutation = {
|
|
552
556
|
insert_error_event: {
|
|
553
557
|
returning: Array<{
|
|
@@ -959,6 +963,20 @@ export function getSdk(
|
|
|
959
963
|
'mutation',
|
|
960
964
|
);
|
|
961
965
|
},
|
|
966
|
+
insertConversionEvent(
|
|
967
|
+
variables?: { [x: string]: never },
|
|
968
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
969
|
+
): Promise<InsertConversionEventMutation> {
|
|
970
|
+
return withWrapper(
|
|
971
|
+
wrappedRequestHeaders =>
|
|
972
|
+
client.request<InsertConversionEventMutation>('', variables, {
|
|
973
|
+
...requestHeaders,
|
|
974
|
+
...wrappedRequestHeaders,
|
|
975
|
+
}),
|
|
976
|
+
'insertConversionEvent',
|
|
977
|
+
'mutation',
|
|
978
|
+
);
|
|
979
|
+
},
|
|
962
980
|
zonosElementsSetting(
|
|
963
981
|
variables?: { [x: string]: never },
|
|
964
982
|
requestHeaders?: GraphQLClientRequestHeaders,
|