@zonos/elements 1.3.207 → 1.3.209
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/{CheckoutConfig-4afc683b.js → CheckoutConfig-27c82f94.js} +19 -0
- package/dist/cjs/{cart-3d961c6e.js → cart-2ec8cac2.js} +285 -64
- package/dist/cjs/{debounce-0b9c0f8a.js → debounce-465a4328.js} +1 -1
- package/dist/cjs/{getBorderRadius-c424eb05.js → getBorderRadius-1b5e33cf.js} +1 -1
- package/dist/cjs/{handleFetch-969d05d8.js → handleFetch-05227713.js} +2 -6
- package/dist/cjs/index.cjs.js +29 -9
- package/dist/cjs/{isDarkColor-35e8daec.js → isDarkColor-428965f4.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-ff33875b.js → localization-9b43376c.js} +3 -2
- package/dist/cjs/{paypal-dee5c109.js → paypal-6449314e.js} +5 -5
- package/dist/cjs/updateCheckoutSessionAttributes-a31bb681.js +50 -0
- package/dist/cjs/zonos-address_11.cjs.entry.js +104 -84
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +98 -49
- package/dist/cjs/zonos-checkout.cjs.entry.js +87 -31
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +13 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-7c1e1bc1.js → zonosStore-f8ee56aa.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +79 -24
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +71 -36
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +33 -11
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +9 -5
- package/dist/collection/components/store/checkout/cart.js +9 -2
- package/dist/collection/components/store/checkout/stripe.js +266 -55
- package/dist/collection/components/store/hello/localization.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +24 -3
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +2 -1
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +7 -5
- package/dist/collection/components/utils/api/cartCalculateLandedCost.js +3 -2
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -2
- package/dist/collection/components/utils/api/updateCheckoutSessionAttributes.js +46 -0
- package/dist/collection/components/utils/checkout/getAbandonedCartRenewTokenValue.js +17 -0
- package/dist/collection/components/utils/handleFetch.js +2 -1
- package/dist/collection/components/utils/logging/log.js +0 -5
- package/dist/collection/scripts/_getCartInfoById.js +3 -0
- package/dist/collection/types/checkout/api/CheckoutSession.js +14 -1
- package/dist/collection/types/checkout/api/CreateParty.js +1 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +15 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/{CheckoutConfig-eb7d6954.js → CheckoutConfig-724d7bae.js} +19 -1
- package/dist/esm/{cart-5835676d.js → cart-2f84f632.js} +284 -65
- package/dist/esm/{debounce-eaee3a94.js → debounce-0e42da22.js} +1 -1
- package/dist/esm/{getBorderRadius-b18c924f.js → getBorderRadius-71b3b8ab.js} +1 -1
- package/dist/esm/{handleFetch-621e45bc.js → handleFetch-7dd4622b.js} +2 -6
- package/dist/esm/index.js +28 -11
- package/dist/esm/{isDarkColor-d8bb8659.js → isDarkColor-3a9d6108.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-4c7f64e8.js → localization-e17c211b.js} +3 -2
- package/dist/esm/{paypal-b4f106be.js → paypal-1cf701aa.js} +6 -6
- package/dist/esm/updateCheckoutSessionAttributes-5097e715.js +48 -0
- package/dist/esm/zonos-address_11.entry.js +104 -84
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +2 -2
- package/dist/esm/zonos-cart-items_14.entry.js +98 -49
- package/dist/esm/zonos-checkout.entry.js +87 -31
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +3 -3
- package/dist/esm/zonos-country-select_4.entry.js +13 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +7 -7
- package/dist/esm/zonos-hello-dialog.entry.js +3 -3
- package/dist/esm/zonos-hello.entry.js +4 -4
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +3 -3
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-1e015fa5.js → zonosStore-00975763.js} +1 -1
- package/dist/esm-es5/CheckoutConfig-724d7bae.js +1 -0
- package/dist/esm-es5/cart-2f84f632.js +1 -0
- package/dist/esm-es5/{debounce-eaee3a94.js → debounce-0e42da22.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-b18c924f.js → getBorderRadius-71b3b8ab.js} +1 -1
- package/dist/esm-es5/handleFetch-7dd4622b.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-d8bb8659.js → isDarkColor-3a9d6108.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-4c7f64e8.js → localization-e17c211b.js} +1 -1
- package/dist/esm-es5/{paypal-b4f106be.js → paypal-1cf701aa.js} +2 -2
- package/dist/esm-es5/updateCheckoutSessionAttributes-5097e715.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.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_14.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-1e015fa5.js → zonosStore-00975763.js} +1 -1
- package/dist/scripts/index.d.ts +10 -0
- 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.d.ts +2 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +8 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +3 -0
- package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +1 -0
- package/dist/types/components/store/checkout/cart.d.ts +6 -2
- package/dist/types/components/store/checkout/stripe.d.ts +33 -6
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +6 -0
- package/dist/types/components/utils/api/updateCheckoutSessionAttributes.d.ts +7 -0
- package/dist/types/components/utils/checkout/getAbandonedCartRenewTokenValue.d.ts +1 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +16 -0
- package/dist/types/types/checkout/api/CreateParty.d.ts +34 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +2 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +2 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +61 -5
- package/dist/types/types/generated/graphql.internal.types.ts +105 -3
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/utils/ZonosSettings.d.ts +6 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-4e9c8f9e.system.js → p-0751b878.system.js} +1 -1
- package/dist/zonos-elements/{p-abe218ab.system.entry.js → p-08b29f73.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-74bcb5cc.entry.js → p-0ca1d6dd.entry.js} +1 -1
- package/dist/zonos-elements/{p-12cd9d3a.entry.js → p-144b5006.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e9ac7a2.system.js → p-19182dc7.system.js} +1 -1
- package/dist/zonos-elements/{p-eca09508.system.entry.js → p-1dc78af3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e337fa88.js → p-207bd04a.js} +1 -1
- package/dist/zonos-elements/p-20839c46.js +1 -0
- package/dist/zonos-elements/{p-1aa24297.system.entry.js → p-2122d2cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4fb88ebc.system.entry.js → p-239695e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3196bf98.entry.js → p-23fe7661.entry.js} +1 -1
- package/dist/zonos-elements/p-2652198d.js +1 -0
- package/dist/zonos-elements/p-30a9f802.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c666d557.system.js → p-3633a952.system.js} +1 -1
- package/dist/zonos-elements/{p-9b8a5372.entry.js → p-36b686b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-658936c9.js → p-371d91d1.js} +2 -2
- package/dist/zonos-elements/{p-019f8637.entry.js → p-3934b38a.entry.js} +1 -1
- package/dist/zonos-elements/p-3c752420.system.js +1 -0
- package/dist/zonos-elements/p-3ee44728.system.js +1 -1
- package/dist/zonos-elements/p-40a4c8a2.system.js +1 -0
- package/dist/zonos-elements/{p-91c996d3.system.js → p-44c0a584.system.js} +2 -2
- package/dist/zonos-elements/{p-eb2560b6.system.entry.js → p-45a2f9b1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1327b935.system.js → p-4a1b4a2d.system.js} +1 -1
- package/dist/zonos-elements/p-4c70fd75.entry.js +1 -0
- package/dist/zonos-elements/{p-bab19e2a.entry.js → p-4d62f3de.entry.js} +1 -1
- package/dist/zonos-elements/{p-848e08e8.entry.js → p-4dbaa2c2.entry.js} +1 -1
- package/dist/zonos-elements/p-4ed73ff8.entry.js +1 -0
- package/dist/zonos-elements/{p-47e2cd31.entry.js → p-4f5513dc.entry.js} +1 -1
- package/dist/zonos-elements/p-542acc2c.js +1 -0
- package/dist/zonos-elements/p-5711e187.system.js +1 -0
- package/dist/zonos-elements/{p-41c1d7c4.entry.js → p-5956a9e0.entry.js} +1 -1
- package/dist/zonos-elements/{p-5616b304.entry.js → p-5b7686f8.entry.js} +1 -1
- package/dist/zonos-elements/{p-0c4c8d63.entry.js → p-63a4dac5.entry.js} +1 -1
- package/dist/zonos-elements/{p-f4d741de.system.entry.js → p-695bf400.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9fa17353.js → p-6aa728f2.js} +1 -1
- package/dist/zonos-elements/{p-ed20f2f7.js → p-71c6bdc3.js} +1 -1
- package/dist/zonos-elements/p-738a49c0.system.js +1 -0
- package/dist/zonos-elements/{p-469ccc66.system.entry.js → p-74276b82.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e0587eeb.entry.js → p-77e22be4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3afc27ef.entry.js → p-78dd1c53.entry.js} +1 -1
- package/dist/zonos-elements/{p-620deb03.system.entry.js → p-7f9bbbb3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-896f2358.system.entry.js +1 -0
- package/dist/zonos-elements/{p-719e14a8.system.entry.js → p-8f41d864.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4cb8b87f.system.entry.js → p-964e2587.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-93aeba62.system.entry.js → p-97831744.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2866fd29.system.entry.js → p-9d95c896.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-abc83d01.entry.js → p-a24870af.entry.js} +1 -1
- package/dist/zonos-elements/p-a411ce2a.system.js +1 -0
- package/dist/zonos-elements/{p-1bc09abe.system.entry.js → p-a4686344.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-edcfb3a3.js → p-a6f77d44.js} +1 -1
- package/dist/zonos-elements/{p-b21b0330.entry.js → p-a8f421ac.entry.js} +1 -1
- package/dist/zonos-elements/{p-18149db1.entry.js → p-aa40d402.entry.js} +1 -1
- package/dist/zonos-elements/{p-536f69eb.entry.js → p-ad1e1dbc.entry.js} +1 -1
- package/dist/zonos-elements/p-b1bfeec9.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2d81c98.js +1 -0
- package/dist/zonos-elements/{p-7777d85f.system.entry.js → p-baa88176.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ad099ec.system.entry.js → p-bf9cb85f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bfdb4e7a.entry.js +1 -0
- package/dist/zonos-elements/{p-858b7908.system.entry.js → p-c345b306.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-22cb6880.system.entry.js → p-d1697144.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d1c0bf92.entry.js +1 -0
- package/dist/zonos-elements/{p-16678764.js → p-d6a53ea6.js} +1 -1
- package/dist/zonos-elements/{p-265af369.system.entry.js → p-db424e02.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb77c0bf.system.js +1 -0
- package/dist/zonos-elements/{p-30778fde.system.entry.js → p-ef1ccec6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-42a9557f.entry.js → p-fdf5b8f4.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/CheckoutConfig-eb7d6954.js +0 -1
- package/dist/esm-es5/cart-5835676d.js +0 -1
- package/dist/esm-es5/handleFetch-621e45bc.js +0 -1
- package/dist/zonos-elements/p-0de2c731.system.js +0 -1
- package/dist/zonos-elements/p-0fc02cde.js +0 -1
- package/dist/zonos-elements/p-1b75aa35.system.js +0 -1
- package/dist/zonos-elements/p-3a50124e.entry.js +0 -1
- package/dist/zonos-elements/p-3f1a2d31.js +0 -1
- package/dist/zonos-elements/p-5e1b2654.system.js +0 -1
- package/dist/zonos-elements/p-666164d9.system.js +0 -1
- package/dist/zonos-elements/p-9f78b79e.entry.js +0 -1
- package/dist/zonos-elements/p-a2b55d11.entry.js +0 -1
- package/dist/zonos-elements/p-aafcd40f.system.entry.js +0 -1
- package/dist/zonos-elements/p-b922c441.system.js +0 -1
- package/dist/zonos-elements/p-ba027b70.system.entry.js +0 -1
- package/dist/zonos-elements/p-c4e0f49a.system.entry.js +0 -1
- package/dist/zonos-elements/p-dbd23bea.entry.js +0 -1
- package/dist/zonos-elements/p-f9664811.js +0 -1
|
@@ -124,7 +124,9 @@ export declare class ZonosCheckout {
|
|
|
124
124
|
private buildCartAndInit;
|
|
125
125
|
private reloadCheckoutSession;
|
|
126
126
|
private handleOrderDuplication;
|
|
127
|
+
private recordCheckoutInfo;
|
|
127
128
|
private confirmProceedWithOrderDuplication;
|
|
129
|
+
private markTheSessionAsAbandonedCart;
|
|
128
130
|
private handleCancelOrderDuplication;
|
|
129
131
|
private initializeTestKeys;
|
|
130
132
|
private shouldAllowHostedVsNativeTest;
|
package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { type EventEmitter } from '../../../../stencil-public-runtime';
|
|
|
2
2
|
import type { StripeAddressElementChangeEvent } from '@stripe/stripe-js';
|
|
3
3
|
import { type StripeStoreContactOption } from "../../../store/checkout/stripe";
|
|
4
4
|
import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
|
|
5
|
+
import type { CountryCode } from "../../../../types/generated/graphql.internal.types";
|
|
5
6
|
export declare class ZonosCustomerInfo {
|
|
7
|
+
private storeUnsubscribeList;
|
|
6
8
|
el: HTMLZonosCustomerInfoElement;
|
|
7
9
|
/**
|
|
8
10
|
* Whether or not the continue button is loading
|
|
@@ -70,10 +72,6 @@ export declare class ZonosCustomerInfo {
|
|
|
70
72
|
* Handler for the dialog close button
|
|
71
73
|
*/
|
|
72
74
|
openAddressValidationDialog: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Whether or not the custom address form is enabled
|
|
75
|
-
*/
|
|
76
|
-
shouldEnabledCustomAddress: boolean;
|
|
77
75
|
/**
|
|
78
76
|
* Handler for the email error state
|
|
79
77
|
*/
|
|
@@ -82,6 +80,9 @@ export declare class ZonosCustomerInfo {
|
|
|
82
80
|
* Whether or not the custom address form is used
|
|
83
81
|
*/
|
|
84
82
|
recordedFormTypeUsed: boolean;
|
|
83
|
+
selectedCountryCode: CountryCode | null;
|
|
84
|
+
genericSettings: import("../../../..").GenericZonosSettings | undefined;
|
|
85
|
+
addressFormRenderType: "stripe" | "zonos";
|
|
85
86
|
watchShowErrorBanner(): void;
|
|
86
87
|
private checkInvalidCharacters;
|
|
87
88
|
/**
|
|
@@ -101,5 +102,8 @@ export declare class ZonosCustomerInfo {
|
|
|
101
102
|
private handleEmailValidation;
|
|
102
103
|
private prepareAddressObject;
|
|
103
104
|
private renderAddressComponent;
|
|
105
|
+
watchShouldEnabledCustomAddress(): void;
|
|
106
|
+
disconnectedCallback(): void;
|
|
107
|
+
componentWillLoad(): void;
|
|
104
108
|
render(): any;
|
|
105
109
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import type { ShippingRichRadioItem } from "../../../common/zonos-shipping-rich-radio/zonos-shipping-rich-radio";
|
|
3
3
|
export declare class ZonosShipping {
|
|
4
|
+
private storeUnsubscribeList;
|
|
4
5
|
/**
|
|
5
6
|
* Whether or not the continue button is loading
|
|
6
7
|
*/
|
|
@@ -33,6 +34,7 @@ export declare class ZonosShipping {
|
|
|
33
34
|
serviceLevelsOther: ShippingRichRadioItem[];
|
|
34
35
|
serviceLevelsAll: ShippingRichRadioItem[];
|
|
35
36
|
displayBaseCurrency: boolean;
|
|
37
|
+
shippingData: ShippingRichRadioItem[];
|
|
36
38
|
private handleRadioSelected;
|
|
37
39
|
private handleValidate;
|
|
38
40
|
private isOutdatedShippingData;
|
|
@@ -44,6 +46,7 @@ export declare class ZonosShipping {
|
|
|
44
46
|
private initServiceLevels;
|
|
45
47
|
private isCurrencyToggled;
|
|
46
48
|
private preselectFirstShippingMethod;
|
|
49
|
+
disconnectedCallback(): void;
|
|
47
50
|
componentWillLoad(): void;
|
|
48
51
|
render(): any;
|
|
49
52
|
}
|
|
@@ -50,6 +50,10 @@ type CartItemToUse = CartItem & {
|
|
|
50
50
|
isRestricted: boolean;
|
|
51
51
|
};
|
|
52
52
|
type CartStore = {
|
|
53
|
+
/**
|
|
54
|
+
* Address form that's using to render address form in checkout page
|
|
55
|
+
*/
|
|
56
|
+
addressFormRenderType: 'stripe' | 'zonos';
|
|
53
57
|
adjustmentTotal: number;
|
|
54
58
|
/**
|
|
55
59
|
* Adjustments from cart
|
|
@@ -126,7 +130,7 @@ type CartStore = {
|
|
|
126
130
|
tabItems: TabItems;
|
|
127
131
|
total: number;
|
|
128
132
|
};
|
|
129
|
-
declare const cartStore: CartStore;
|
|
133
|
+
declare const cartStoreOnChange: import("@stencil/store/dist/types").OnChangeHandler<CartStore>, cartStore: CartStore;
|
|
130
134
|
/**
|
|
131
135
|
* Format shipping transit info to be displayed on UI
|
|
132
136
|
* @returns
|
|
@@ -215,4 +219,4 @@ declare const cartStoreUpdateItems: ({ adjustments, cartItems, }: {
|
|
|
215
219
|
declare const cartStorePreviousStep: () => void;
|
|
216
220
|
declare const cartStoreNextStep: () => void;
|
|
217
221
|
declare const cartStoreResetTabItems: () => void;
|
|
218
|
-
export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetMethod, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStorePreviousStep, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
|
|
222
|
+
export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetMethod, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreOnChange, cartStorePreviousStep, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
|
|
@@ -18,6 +18,14 @@ export type StripeStoreContactOption = {
|
|
|
18
18
|
phone?: string;
|
|
19
19
|
};
|
|
20
20
|
export type CustomerProfile = CheckoutSessionDetailsFragment['customerProfile'];
|
|
21
|
+
/**
|
|
22
|
+
* If any of these values are changed, we need to refetch landed cost since the landed cost accuracy depends on these values
|
|
23
|
+
*/
|
|
24
|
+
type AddressUsedWhenFetchingLC = {
|
|
25
|
+
countryCode: string;
|
|
26
|
+
postalCode: string;
|
|
27
|
+
state: string;
|
|
28
|
+
};
|
|
21
29
|
type StripeStore = {
|
|
22
30
|
/**
|
|
23
31
|
* Currency that will be used to checkout, currency should always be Destination if "allowedSettlementCurrencies" in checkoutSettings is "LOCAL", and value might be either USD or Destination currency if "allowedSettlementCurrencies" is "LOCAL_AND_USD"
|
|
@@ -29,6 +37,10 @@ type StripeStore = {
|
|
|
29
37
|
* Optional company name
|
|
30
38
|
*/
|
|
31
39
|
companyName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional company name
|
|
42
|
+
*/
|
|
43
|
+
companyNameUsedWhenAsyncAddressUpdate: string;
|
|
32
44
|
/**
|
|
33
45
|
* Custom error message for address fields. Will be set when Submit button is clicked
|
|
34
46
|
*/
|
|
@@ -49,6 +61,14 @@ type StripeStore = {
|
|
|
49
61
|
hasPaymentError: boolean;
|
|
50
62
|
isFetchingLandedCost: boolean;
|
|
51
63
|
isFetchingSession: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Billing party id (used for async address update)
|
|
66
|
+
*/
|
|
67
|
+
partyBillingId: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Shipping party id (used for async address update)
|
|
70
|
+
*/
|
|
71
|
+
partyShippingId: string | null;
|
|
52
72
|
/**
|
|
53
73
|
* Toggle to indicate if we should refund the inventory when the payment is failed
|
|
54
74
|
*/
|
|
@@ -62,11 +82,13 @@ type StripeStore = {
|
|
|
62
82
|
stripe: Stripe | null;
|
|
63
83
|
stripeAddressElement: StripeAddressElement | null;
|
|
64
84
|
stripeAddressEventData: StripeAddressElementChangeEvent | null;
|
|
65
|
-
|
|
85
|
+
stripeAddressUsedWhenAsyncAddressUpdate: StripeAddressElementChangeEvent | null;
|
|
86
|
+
stripeAddressUsedWhenFetchingLC: AddressUsedWhenFetchingLC | null;
|
|
66
87
|
stripeAddressUsedWhenValidatingAddress: StripeAddressElementChangeEvent | null;
|
|
67
88
|
stripeBillingAddressElement: StripeAddressElement | null;
|
|
68
89
|
stripeBillingAddressEventData: StripeAddressElementChangeEvent | null;
|
|
69
|
-
|
|
90
|
+
stripeBillingAddressUsedWhenAsyncAddressUpdate: StripeAddressElementChangeEvent | null;
|
|
91
|
+
stripeBillingAddressUsedWhenFetchingLC: AddressUsedWhenFetchingLC | null;
|
|
70
92
|
stripeBillingAddressUsedWhenValidatingAddress: StripeAddressElementChangeEvent | null;
|
|
71
93
|
/**
|
|
72
94
|
* Stripe client secret for customer session
|
|
@@ -90,9 +112,9 @@ type StripeStore = {
|
|
|
90
112
|
*/
|
|
91
113
|
taxId: string;
|
|
92
114
|
/**
|
|
93
|
-
* Tax id used when
|
|
115
|
+
* Tax id used when async address update
|
|
94
116
|
*/
|
|
95
|
-
|
|
117
|
+
taxIdUsedWhenAsyncAddressUpdate: string;
|
|
96
118
|
translatedAddress: {
|
|
97
119
|
address: TranslatedAddressObject;
|
|
98
120
|
billingAddress: TranslatedAddressObject;
|
|
@@ -121,6 +143,9 @@ declare const initStripeElements: (props?: {
|
|
|
121
143
|
paypalEnabled?: boolean;
|
|
122
144
|
}) => Promise<void>;
|
|
123
145
|
declare const stripeStoreReset: () => void;
|
|
146
|
+
declare const stripeStoreAsyncAddressUpdate: () => Promise<{
|
|
147
|
+
partiesCreated: boolean;
|
|
148
|
+
}>;
|
|
124
149
|
declare const stripeCalculateLandedCost: () => Promise<void>;
|
|
125
150
|
declare const stripeStorePrefetchLandedCost: (params?: {
|
|
126
151
|
/**
|
|
@@ -129,7 +154,9 @@ declare const stripeStorePrefetchLandedCost: (params?: {
|
|
|
129
154
|
**/
|
|
130
155
|
applyingPromocode?: boolean;
|
|
131
156
|
retries?: number;
|
|
132
|
-
}) => Promise<
|
|
157
|
+
}) => Promise<{
|
|
158
|
+
isRequestNotReady: boolean;
|
|
159
|
+
}>;
|
|
133
160
|
declare const stripeStoreApplyPromoCode: () => Promise<void>;
|
|
134
161
|
declare const stripeStoreResetPromoCode: () => void;
|
|
135
162
|
declare const stripeStoreRemovePromoCode: () => Promise<void>;
|
|
@@ -201,4 +228,4 @@ declare const stripeStoreTranslateAddressToLatin: ({ addressInvalidCharactersLis
|
|
|
201
228
|
addressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
|
|
202
229
|
billingAddressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
|
|
203
230
|
}) => Promise<void>;
|
|
204
|
-
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
231
|
+
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
@@ -39,6 +39,11 @@ export declare class ZonosAddress {
|
|
|
39
39
|
* Local checkout session id to check if the address is filled after checkout is loaded
|
|
40
40
|
*/
|
|
41
41
|
checkoutSessionId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Track previous country and postal code to detect changes
|
|
44
|
+
*/
|
|
45
|
+
prevCountry: string | null;
|
|
46
|
+
prevPostalCode: string | null;
|
|
42
47
|
/**
|
|
43
48
|
* Event to emit when tax id is changed
|
|
44
49
|
*/
|
|
@@ -48,6 +53,7 @@ export declare class ZonosAddress {
|
|
|
48
53
|
*/
|
|
49
54
|
private trackingSent;
|
|
50
55
|
el: HTMLZonosAddressElement;
|
|
56
|
+
private prefetchLandedCost;
|
|
51
57
|
private getStripeAddressInstance;
|
|
52
58
|
private updateAddressEventData;
|
|
53
59
|
isAddressFilledChanged(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckoutSessionUpdateAttribute } from "../../../types/index";
|
|
2
|
+
export declare const updateCheckoutSessionAttributes: ({ attributes, checkoutSessionId, }: {
|
|
3
|
+
attributes: CheckoutSessionUpdateAttribute[];
|
|
4
|
+
checkoutSessionId: string;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
success: boolean;
|
|
7
|
+
} | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAbandonedCartRenewTokenValue: () => string | null;
|
|
@@ -27,6 +27,7 @@ export declare const setupCartDataWithSettings: (cartId: string) => Promise<{
|
|
|
27
27
|
type: import("../../types/generated/graphql.internal.types").CartAdjustmentType;
|
|
28
28
|
}>;
|
|
29
29
|
createdAt: string;
|
|
30
|
+
expiresAt: string | null;
|
|
30
31
|
id: string;
|
|
31
32
|
items: Array<{
|
|
32
33
|
amount: number;
|
|
@@ -9,6 +9,7 @@ type CheckoutSessionVariantTest = {
|
|
|
9
9
|
};
|
|
10
10
|
export type CheckoutSessionUpdateRequest = {
|
|
11
11
|
adjustmentsAmount: number;
|
|
12
|
+
billToPartyId?: string | null;
|
|
12
13
|
cartId: string | null;
|
|
13
14
|
currency?: string;
|
|
14
15
|
/**
|
|
@@ -23,6 +24,7 @@ export type CheckoutSessionUpdateRequest = {
|
|
|
23
24
|
value: string;
|
|
24
25
|
}[];
|
|
25
26
|
presentmentCountryCode: CountryCode | null;
|
|
27
|
+
shipToPartyId?: string | null;
|
|
26
28
|
skipPaymentIntent?: boolean;
|
|
27
29
|
varianceTestInput?: CheckoutSessionVariantTest[];
|
|
28
30
|
};
|
|
@@ -34,6 +36,20 @@ export type CheckoutSessionUpdateMetadataRequest = {
|
|
|
34
36
|
id: string;
|
|
35
37
|
metadata: CheckoutSessionUpdateMetadata;
|
|
36
38
|
};
|
|
39
|
+
export declare const checkoutSessionMutableAttributeKeys: readonly ["ZONOS_FORM_TYPE_USING", "APP_VERSION", "APP_VERSION_NPM_INTEGRATION", "LEGACY_CHECKOUT_FACADE"];
|
|
40
|
+
export declare const checkoutSessionImmutableAttributeKeys: readonly ["ORDER_DUPLICATION_CONSENT", "WITH_ABANDONED_CART_TOKEN"];
|
|
41
|
+
export declare const checkoutSessionAttributeKeys: ("ZONOS_FORM_TYPE_USING" | "APP_VERSION" | "APP_VERSION_NPM_INTEGRATION" | "LEGACY_CHECKOUT_FACADE" | "ORDER_DUPLICATION_CONSENT" | "WITH_ABANDONED_CART_TOKEN")[];
|
|
42
|
+
export type CheckoutSessionUpdateAttributeKey = (typeof checkoutSessionAttributeKeys)[number] | ({
|
|
43
|
+
_?: never;
|
|
44
|
+
} & string);
|
|
45
|
+
export type CheckoutSessionUpdateAttribute = {
|
|
46
|
+
key: CheckoutSessionUpdateAttributeKey;
|
|
47
|
+
value: string;
|
|
48
|
+
};
|
|
49
|
+
export type CheckoutSessionUpdateAttributesRequest = {
|
|
50
|
+
attributes: CheckoutSessionUpdateAttribute[];
|
|
51
|
+
id: string;
|
|
52
|
+
};
|
|
37
53
|
export type CheckoutSessionCreateRequest = {
|
|
38
54
|
adjustmentsAmount?: number;
|
|
39
55
|
cartId: string | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CountryCode } from "../../generated/graphql.internal.types";
|
|
2
|
+
export type CreatePartyRequest = {
|
|
3
|
+
address: {
|
|
4
|
+
city: string;
|
|
5
|
+
country: CountryCode;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
line1: string;
|
|
9
|
+
line2?: string | null;
|
|
10
|
+
phone: string;
|
|
11
|
+
postal_code?: string;
|
|
12
|
+
state?: string;
|
|
13
|
+
};
|
|
14
|
+
billingAddress: {
|
|
15
|
+
city: string;
|
|
16
|
+
country: CountryCode;
|
|
17
|
+
firstName: string;
|
|
18
|
+
lastName: string;
|
|
19
|
+
line1: string;
|
|
20
|
+
line2?: string | null;
|
|
21
|
+
phone: string;
|
|
22
|
+
postal_code?: string;
|
|
23
|
+
state?: string;
|
|
24
|
+
};
|
|
25
|
+
companyName: string;
|
|
26
|
+
email: string;
|
|
27
|
+
isTest: boolean;
|
|
28
|
+
rootId: string;
|
|
29
|
+
taxId?: string;
|
|
30
|
+
};
|
|
31
|
+
export type CreatePartyResponse = {
|
|
32
|
+
billToPartyId: string;
|
|
33
|
+
shipToPartyId: string;
|
|
34
|
+
};
|
|
@@ -10,6 +10,7 @@ export type GetTempCartByIdPayloadOptions = {
|
|
|
10
10
|
export type GetTempCartByIdPayload = {
|
|
11
11
|
isTestMode?: boolean;
|
|
12
12
|
options?: GetTempCartByIdPayloadOptions;
|
|
13
|
+
renewCartExpirationToken?: string;
|
|
13
14
|
tempCartUUID: string;
|
|
14
15
|
};
|
|
15
16
|
export type NormalizedTempCartItem = {
|
|
@@ -43,6 +44,7 @@ export type NormalizedTempCart = {
|
|
|
43
44
|
}[];
|
|
44
45
|
createdAt: string;
|
|
45
46
|
credentialToken: string;
|
|
47
|
+
expiresAt?: string | null;
|
|
46
48
|
id: string;
|
|
47
49
|
items: NormalizedTempCartItem[];
|
|
48
50
|
metadata: {
|
|
@@ -74,7 +74,9 @@ export declare const cursorOrdering: {
|
|
|
74
74
|
};
|
|
75
75
|
export type Cursor_Ordering = (typeof cursorOrdering)[keyof typeof cursorOrdering];
|
|
76
76
|
export declare const errorProjectNameEnum: {
|
|
77
|
+
readonly Conductor: "conductor";
|
|
77
78
|
readonly Dashboard: "dashboard";
|
|
79
|
+
readonly DashboardExpo: "dashboard_expo";
|
|
78
80
|
readonly Elements: "elements";
|
|
79
81
|
readonly ZonosCom: "zonos_com";
|
|
80
82
|
};
|
|
@@ -51,7 +51,9 @@ export type Cursor_Ordering =
|
|
|
51
51
|
(typeof cursorOrdering)[keyof typeof cursorOrdering];
|
|
52
52
|
|
|
53
53
|
export const errorProjectNameEnum = {
|
|
54
|
+
Conductor: 'conductor',
|
|
54
55
|
Dashboard: 'dashboard',
|
|
56
|
+
DashboardExpo: 'dashboard_expo',
|
|
55
57
|
Elements: 'elements',
|
|
56
58
|
ZonosCom: 'zonos_com',
|
|
57
59
|
} as const;
|
|
@@ -3538,17 +3538,18 @@ export type CartCalculateLandedCostMutation = {
|
|
|
3538
3538
|
note: string;
|
|
3539
3539
|
type: DeMinimisType;
|
|
3540
3540
|
}>;
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
description: string;
|
|
3544
|
-
}>;
|
|
3541
|
+
rootId: string;
|
|
3542
|
+
id: string;
|
|
3545
3543
|
fees: Array<{
|
|
3546
3544
|
amount: number;
|
|
3547
3545
|
currencyCode: CurrencyCode;
|
|
3548
3546
|
}>;
|
|
3549
|
-
id: string;
|
|
3550
3547
|
landedCostGuaranteeCode: LandedCostGuaranteeCode;
|
|
3551
3548
|
method: IncotermCode;
|
|
3549
|
+
remittance: Array<{
|
|
3550
|
+
amount: number;
|
|
3551
|
+
description: string;
|
|
3552
|
+
}>;
|
|
3552
3553
|
duties: Array<{
|
|
3553
3554
|
amount: number;
|
|
3554
3555
|
currencyCode: CurrencyCode;
|
|
@@ -3670,6 +3671,7 @@ export type CalculateLandedCostMutation = {
|
|
|
3670
3671
|
amount: number;
|
|
3671
3672
|
description: string;
|
|
3672
3673
|
}>;
|
|
3674
|
+
rootId: string;
|
|
3673
3675
|
shipmentRating: {
|
|
3674
3676
|
id: string;
|
|
3675
3677
|
};
|
|
@@ -3777,6 +3779,7 @@ export type LandedCostFragment = {
|
|
|
3777
3779
|
amount: number;
|
|
3778
3780
|
description: string;
|
|
3779
3781
|
}>;
|
|
3782
|
+
rootId: string;
|
|
3780
3783
|
shipmentRating: {
|
|
3781
3784
|
id: string;
|
|
3782
3785
|
};
|
|
@@ -3900,6 +3903,11 @@ export type GetTaxIdByCountryQuery = {
|
|
|
3900
3903
|
type: TaxIdType;
|
|
3901
3904
|
} | null> | null;
|
|
3902
3905
|
};
|
|
3906
|
+
export type LandedCostSettingsQuery = {
|
|
3907
|
+
landedCostSettings: {
|
|
3908
|
+
landedCostGuarantee: LandedCostGuaranteeType | null;
|
|
3909
|
+
} | null;
|
|
3910
|
+
};
|
|
3903
3911
|
export type CheckoutSessionCreateMutation = {
|
|
3904
3912
|
checkoutSessionCreate: {
|
|
3905
3913
|
cartId: string | null;
|
|
@@ -3967,6 +3975,11 @@ export type CheckoutSessionCreateMutation = {
|
|
|
3967
3975
|
}> | null;
|
|
3968
3976
|
};
|
|
3969
3977
|
};
|
|
3978
|
+
export type PartyCreateMutation = {
|
|
3979
|
+
partyCreate: {
|
|
3980
|
+
id: string;
|
|
3981
|
+
};
|
|
3982
|
+
};
|
|
3970
3983
|
export type CheckoutSessionPaymentIntentCreateMutation = {
|
|
3971
3984
|
checkoutSessionPaymentIntentCreate: {
|
|
3972
3985
|
cartId: string | null;
|
|
@@ -4082,6 +4095,7 @@ export type CartCheckoutWorkflowQuery = {
|
|
|
4082
4095
|
type: CartAdjustmentType;
|
|
4083
4096
|
}>;
|
|
4084
4097
|
createdAt: string;
|
|
4098
|
+
expiresAt: string | null;
|
|
4085
4099
|
id: string;
|
|
4086
4100
|
items: Array<{
|
|
4087
4101
|
amount: number;
|
|
@@ -4214,6 +4228,11 @@ export type CartCheckoutWorkflowQuery = {
|
|
|
4214
4228
|
} | null> | null;
|
|
4215
4229
|
};
|
|
4216
4230
|
};
|
|
4231
|
+
export type RenewCartExpirationTokenMutation = {
|
|
4232
|
+
cartUpdate: {
|
|
4233
|
+
expiresAt: string | null;
|
|
4234
|
+
};
|
|
4235
|
+
};
|
|
4217
4236
|
export type GetCheckoutSessionQuery = {
|
|
4218
4237
|
checkoutSession: {
|
|
4219
4238
|
landedCost: {
|
|
@@ -4226,6 +4245,10 @@ export type GetCheckoutSessionQuery = {
|
|
|
4226
4245
|
} | null;
|
|
4227
4246
|
order: {
|
|
4228
4247
|
id: string;
|
|
4248
|
+
parties: Array<{
|
|
4249
|
+
id: string;
|
|
4250
|
+
type: PartyType | null;
|
|
4251
|
+
}> | null;
|
|
4229
4252
|
} | null;
|
|
4230
4253
|
subtotals: {
|
|
4231
4254
|
presentmentCurrencyCode: CurrencyCode;
|
|
@@ -4293,6 +4316,23 @@ export type ShippingZonesQuery = {
|
|
|
4293
4316
|
countryCodes: Array<CountryCode> | null;
|
|
4294
4317
|
} | null> | null;
|
|
4295
4318
|
};
|
|
4319
|
+
export type GetCheckoutSessionAttributesQuery = {
|
|
4320
|
+
checkoutSession: {
|
|
4321
|
+
attributes: Array<{
|
|
4322
|
+
key: string;
|
|
4323
|
+
value: string;
|
|
4324
|
+
}>;
|
|
4325
|
+
};
|
|
4326
|
+
};
|
|
4327
|
+
export type CheckoutSessionUpdateAttributesMutation = {
|
|
4328
|
+
checkoutSessionUpdate: {
|
|
4329
|
+
attributes: Array<{
|
|
4330
|
+
key: string;
|
|
4331
|
+
value: string;
|
|
4332
|
+
}>;
|
|
4333
|
+
id: string;
|
|
4334
|
+
};
|
|
4335
|
+
};
|
|
4296
4336
|
export type CheckoutSessionBaseCurrencyUpdateMutation = {
|
|
4297
4337
|
checkoutSessionBaseCurrencyUpdate: {
|
|
4298
4338
|
subtotals: {
|
|
@@ -4851,6 +4891,7 @@ export type GetOrderQuery = {
|
|
|
4851
4891
|
} | null> | null;
|
|
4852
4892
|
mode: Mode;
|
|
4853
4893
|
parties: Array<{
|
|
4894
|
+
id: string;
|
|
4854
4895
|
location: {
|
|
4855
4896
|
administrativeArea: string | null;
|
|
4856
4897
|
administrativeAreaCode: string | null;
|
|
@@ -5074,6 +5115,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
5074
5115
|
checkoutSessionUpdate(variables?: {
|
|
5075
5116
|
[x: string]: never;
|
|
5076
5117
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckoutSessionUpdateMutation>;
|
|
5118
|
+
checkoutSessionUpdateAttributes(variables?: {
|
|
5119
|
+
[x: string]: never;
|
|
5120
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckoutSessionUpdateAttributesMutation>;
|
|
5077
5121
|
checkoutSessionUpdateMetadata(variables?: {
|
|
5078
5122
|
[x: string]: never;
|
|
5079
5123
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckoutSessionUpdateMetadataMutation>;
|
|
@@ -5101,6 +5145,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
5101
5145
|
getCheckoutSession(variables?: {
|
|
5102
5146
|
[x: string]: never;
|
|
5103
5147
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutSessionQuery>;
|
|
5148
|
+
getCheckoutSessionAttributes(variables?: {
|
|
5149
|
+
[x: string]: never;
|
|
5150
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutSessionAttributesQuery>;
|
|
5104
5151
|
getInclusivePriceSettingByCountry(variables?: {
|
|
5105
5152
|
[x: string]: never;
|
|
5106
5153
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetInclusivePriceSettingByCountryQuery>;
|
|
@@ -5119,6 +5166,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
5119
5166
|
helloSettings(variables?: {
|
|
5120
5167
|
[x: string]: never;
|
|
5121
5168
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<HelloSettingsQuery>;
|
|
5169
|
+
landedCostSettings(variables?: {
|
|
5170
|
+
[x: string]: never;
|
|
5171
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<LandedCostSettingsQuery>;
|
|
5122
5172
|
onlineStoreSettings(variables?: {
|
|
5123
5173
|
[x: string]: never;
|
|
5124
5174
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<OnlineStoreSettingsQuery>;
|
|
@@ -5134,6 +5184,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
5134
5184
|
organizations(variables?: {
|
|
5135
5185
|
[x: string]: never;
|
|
5136
5186
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<OrganizationsQuery>;
|
|
5187
|
+
partyCreate(variables?: {
|
|
5188
|
+
[x: string]: never;
|
|
5189
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<PartyCreateMutation>;
|
|
5137
5190
|
partyInfo(variables?: {
|
|
5138
5191
|
[x: string]: never;
|
|
5139
5192
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<PartyInfoQuery>;
|
|
@@ -5149,6 +5202,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
5149
5202
|
removeTrackingNumber(variables?: {
|
|
5150
5203
|
[x: string]: never;
|
|
5151
5204
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<RemoveTrackingNumberMutation>;
|
|
5205
|
+
renewCartExpirationToken(variables?: {
|
|
5206
|
+
[x: string]: never;
|
|
5207
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<RenewCartExpirationTokenMutation>;
|
|
5152
5208
|
selectCheckoutVarianceTest(variables?: {
|
|
5153
5209
|
[x: string]: never;
|
|
5154
5210
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<SelectCheckoutVarianceTestMutation>;
|