@kizlo/woocommerce 0.14.1 → 0.16.0
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/README.md +45 -0
- package/dist/checkout-validation.d.ts +1 -1
- package/dist/index.d.ts +2106 -2100
- package/dist/index.js +52 -13
- package/dist/{schema-ScTHhVY4.d.ts → schema-CWDJjtW7.d.ts} +3 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { a as StorefrontCountry, c as StorefrontFieldOverride, d as StorefrontPricing, f as CheckoutRegisteredFieldReference, i as StorefrontCheckout, l as StorefrontFieldRule, m as CheckoutValidationIssue, n as StorefrontAddress, o as StorefrontField, p as CheckoutValidationData, r as StorefrontCatalog, s as StorefrontFieldOption, t as Storefront, u as StorefrontFieldSchema } from "./schema-
|
|
1
|
+
import { a as StorefrontCountry, c as StorefrontFieldOverride, d as StorefrontPricing, f as CheckoutRegisteredFieldReference, i as StorefrontCheckout, l as StorefrontFieldRule, m as CheckoutValidationIssue, n as StorefrontAddress, o as StorefrontField, p as CheckoutValidationData, r as StorefrontCatalog, s as StorefrontFieldOption, t as Storefront, u as StorefrontFieldSchema } from "./schema-CWDJjtW7.js";
|
|
2
2
|
import * as kizlo0 from "kizlo";
|
|
3
3
|
import { WP_CustomFields, WP_Schema } from "kizlo";
|
|
4
4
|
import * as _kizlo_shared0 from "@kizlo/shared";
|
|
5
5
|
import z$1, { z } from "zod/v4";
|
|
6
|
-
import * as zod0 from "zod";
|
|
7
6
|
import z$2 from "zod";
|
|
8
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
7
|
|
|
10
8
|
//#region src/field-projections.d.ts
|
|
11
9
|
/** The native API is a projection of a registered value, never a second storage field. */
|
|
@@ -58,6 +56,12 @@ declare const AddressAdditionalFieldsSchema: z$1.ZodType<AddressAdditionalFields
|
|
|
58
56
|
declare const CheckoutAdditionalFieldsSchema: z$1.ZodType<CheckoutAdditionalFields$1, CheckoutAdditionalFieldsInput>;
|
|
59
57
|
//#endregion
|
|
60
58
|
//#region src/checkout/error.d.ts
|
|
59
|
+
declare const GET_CHECKOUT_ERROR_MAP: {
|
|
60
|
+
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
61
|
+
readonly status: 404;
|
|
62
|
+
readonly message: "No checkout order found.";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
61
65
|
declare const CONFIRM_CHECKOUT_ERROR_MAP: {
|
|
62
66
|
readonly CHECKOUT_ADDRESS_COUNTRY_INVALID: {
|
|
63
67
|
readonly status: 400;
|
|
@@ -478,9 +482,9 @@ declare const CONFIRM_CHECKOUT_ERROR_MAP: {
|
|
|
478
482
|
}, z$2.core.$strip>>;
|
|
479
483
|
}, z$2.core.$strip>;
|
|
480
484
|
};
|
|
481
|
-
readonly
|
|
485
|
+
readonly CHECKOUT_TOTAL_MISMATCH: {
|
|
482
486
|
readonly status: 409;
|
|
483
|
-
readonly message: "
|
|
487
|
+
readonly message: "The order total increased. Please review the updated total.";
|
|
484
488
|
readonly data: z$2.ZodObject<{
|
|
485
489
|
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
486
490
|
items: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -759,39 +763,2059 @@ declare const CONFIRM_CHECKOUT_ERROR_MAP: {
|
|
|
759
763
|
code: z$2.ZodString;
|
|
760
764
|
message: z$2.ZodString;
|
|
761
765
|
}, z$2.core.$strip>>;
|
|
762
|
-
totals: z$2.ZodObject<{
|
|
763
|
-
itemsTotal: z$2.ZodNumber;
|
|
764
|
-
itemsTaxTotal: z$2.ZodNumber;
|
|
765
|
-
feesTotal: z$2.ZodNumber;
|
|
766
|
-
feesTaxTotal: z$2.ZodNumber;
|
|
767
|
-
discountTotal: z$2.ZodNumber;
|
|
768
|
-
discountTaxTotal: z$2.ZodNumber;
|
|
769
|
-
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
770
|
-
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
771
|
-
total: z$2.ZodNumber;
|
|
772
|
-
taxTotal: z$2.ZodNumber;
|
|
773
|
-
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
774
|
-
name: z$2.ZodString;
|
|
775
|
-
price: z$2.ZodNumber;
|
|
776
|
-
rate: z$2.ZodString;
|
|
777
|
-
}, z$2.core.$strip>>;
|
|
778
|
-
}, z$2.core.$strip>;
|
|
779
|
-
currencyFormat: z$2.ZodObject<{
|
|
780
|
-
currencyCode: z$2.ZodString;
|
|
781
|
-
currencySymbol: z$2.ZodString;
|
|
782
|
-
currencyPrefix: z$2.ZodString;
|
|
783
|
-
currencySuffix: z$2.ZodString;
|
|
784
|
-
currencyMinorUnit: z$2.ZodNumber;
|
|
785
|
-
currencyDecimalSeparator: z$2.ZodString;
|
|
786
|
-
currencyThousandSeparator: z$2.ZodString;
|
|
787
|
-
}, z$2.core.$strip>;
|
|
788
|
-
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
789
|
-
}, z$2.core.$strip>>;
|
|
790
|
-
|
|
766
|
+
totals: z$2.ZodObject<{
|
|
767
|
+
itemsTotal: z$2.ZodNumber;
|
|
768
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
769
|
+
feesTotal: z$2.ZodNumber;
|
|
770
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
771
|
+
discountTotal: z$2.ZodNumber;
|
|
772
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
773
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
774
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
775
|
+
total: z$2.ZodNumber;
|
|
776
|
+
taxTotal: z$2.ZodNumber;
|
|
777
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
778
|
+
name: z$2.ZodString;
|
|
779
|
+
price: z$2.ZodNumber;
|
|
780
|
+
rate: z$2.ZodString;
|
|
781
|
+
}, z$2.core.$strip>>;
|
|
782
|
+
}, z$2.core.$strip>;
|
|
783
|
+
currencyFormat: z$2.ZodObject<{
|
|
784
|
+
currencyCode: z$2.ZodString;
|
|
785
|
+
currencySymbol: z$2.ZodString;
|
|
786
|
+
currencyPrefix: z$2.ZodString;
|
|
787
|
+
currencySuffix: z$2.ZodString;
|
|
788
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
789
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
790
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
791
|
+
}, z$2.core.$strip>;
|
|
792
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
793
|
+
}, z$2.core.$strip>>;
|
|
794
|
+
expectedTotal: z$2.ZodOptional<z$2.ZodString>;
|
|
795
|
+
actualTotal: z$2.ZodOptional<z$2.ZodString>;
|
|
796
|
+
}, z$2.core.$strip>;
|
|
797
|
+
};
|
|
798
|
+
readonly CHECKOUT_CART_INVALID: {
|
|
799
|
+
readonly status: 409;
|
|
800
|
+
readonly message: "An item in the cart is no longer valid.";
|
|
801
|
+
readonly data: z$2.ZodObject<{
|
|
802
|
+
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
803
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
804
|
+
key: z$2.ZodString;
|
|
805
|
+
productId: z$2.ZodNumber;
|
|
806
|
+
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
807
|
+
type: z$2.ZodString;
|
|
808
|
+
name: z$2.ZodString;
|
|
809
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
810
|
+
slug: z$2.ZodString;
|
|
811
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
812
|
+
shortDescription: z$2.ZodString;
|
|
813
|
+
description: z$2.ZodString;
|
|
814
|
+
quantity: z$2.ZodNumber;
|
|
815
|
+
quantityLimits: z$2.ZodObject<{
|
|
816
|
+
minimum: z$2.ZodNumber;
|
|
817
|
+
maximum: z$2.ZodNumber;
|
|
818
|
+
multipleOf: z$2.ZodNumber;
|
|
819
|
+
editable: z$2.ZodBoolean;
|
|
820
|
+
}, z$2.core.$strip>;
|
|
821
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
822
|
+
allowsBackorders: z$2.ZodBoolean;
|
|
823
|
+
showsBackorderBadge: z$2.ZodBoolean;
|
|
824
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
825
|
+
catalogVisibility: z$2.ZodString;
|
|
826
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
827
|
+
id: z$2.ZodNumber;
|
|
828
|
+
name: z$2.ZodString;
|
|
829
|
+
src: z$2.ZodString;
|
|
830
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
831
|
+
type: z$2.ZodLiteral<"image">;
|
|
832
|
+
alt: z$2.ZodString;
|
|
833
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
834
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
835
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
836
|
+
src: z$2.ZodString;
|
|
837
|
+
width: z$2.ZodNumber;
|
|
838
|
+
height: z$2.ZodNumber;
|
|
839
|
+
}, z$2.core.$strict>>>;
|
|
840
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
841
|
+
}, z$2.core.$strict>>;
|
|
842
|
+
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
843
|
+
name: z$2.ZodString;
|
|
844
|
+
attribute: z$2.ZodString;
|
|
845
|
+
value: z$2.ZodString;
|
|
846
|
+
}, z$2.core.$strip>>;
|
|
847
|
+
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
848
|
+
name: z$2.ZodString;
|
|
849
|
+
value: z$2.ZodString;
|
|
850
|
+
display: z$2.ZodNullable<z$2.ZodString>;
|
|
851
|
+
}, z$2.core.$strip>>;
|
|
852
|
+
prices: z$2.ZodObject<{
|
|
853
|
+
price: z$2.ZodNumber;
|
|
854
|
+
regularPrice: z$2.ZodNumber;
|
|
855
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
856
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
857
|
+
minAmount: z$2.ZodNumber;
|
|
858
|
+
maxAmount: z$2.ZodNumber;
|
|
859
|
+
}, z$2.core.$strip>>;
|
|
860
|
+
}, z$2.core.$strip>;
|
|
861
|
+
totals: z$2.ZodObject<{
|
|
862
|
+
subtotal: z$2.ZodNumber;
|
|
863
|
+
subtotalTax: z$2.ZodNumber;
|
|
864
|
+
total: z$2.ZodNumber;
|
|
865
|
+
totalTax: z$2.ZodNumber;
|
|
866
|
+
}, z$2.core.$strip>;
|
|
867
|
+
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
868
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
869
|
+
}, z$2.core.$strip>>;
|
|
870
|
+
itemCount: z$2.ZodNumber;
|
|
871
|
+
itemsWeight: z$2.ZodNumber;
|
|
872
|
+
billingAddress: z$2.ZodObject<{
|
|
873
|
+
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
874
|
+
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
875
|
+
email: z$2.ZodString;
|
|
876
|
+
firstName: z$2.ZodString;
|
|
877
|
+
lastName: z$2.ZodString;
|
|
878
|
+
company: z$2.ZodString;
|
|
879
|
+
address1: z$2.ZodString;
|
|
880
|
+
address2: z$2.ZodString;
|
|
881
|
+
city: z$2.ZodString;
|
|
882
|
+
state: z$2.ZodString;
|
|
883
|
+
postcode: z$2.ZodString;
|
|
884
|
+
country: z$2.ZodString;
|
|
885
|
+
phone: z$2.ZodString;
|
|
886
|
+
}, z$2.core.$strip>;
|
|
887
|
+
shippingAddress: z$2.ZodObject<{
|
|
888
|
+
firstName: z$2.ZodString;
|
|
889
|
+
lastName: z$2.ZodString;
|
|
890
|
+
company: z$2.ZodString;
|
|
891
|
+
address1: z$2.ZodString;
|
|
892
|
+
address2: z$2.ZodString;
|
|
893
|
+
city: z$2.ZodString;
|
|
894
|
+
state: z$2.ZodString;
|
|
895
|
+
postcode: z$2.ZodString;
|
|
896
|
+
country: z$2.ZodString;
|
|
897
|
+
phone: z$2.ZodString;
|
|
898
|
+
additionalFields: z$2.ZodType<{
|
|
899
|
+
[x: string]: string | boolean | undefined;
|
|
900
|
+
}, Partial<{
|
|
901
|
+
[x: string]: string | boolean | undefined;
|
|
902
|
+
}>, z$2.core.$ZodTypeInternals<{
|
|
903
|
+
[x: string]: string | boolean | undefined;
|
|
904
|
+
}, Partial<{
|
|
905
|
+
[x: string]: string | boolean | undefined;
|
|
906
|
+
}>>>;
|
|
907
|
+
}, z$2.core.$strip>;
|
|
908
|
+
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
909
|
+
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
910
|
+
name: z$2.ZodString;
|
|
911
|
+
destination: z$2.ZodObject<{
|
|
912
|
+
address1: z$2.ZodString;
|
|
913
|
+
address2: z$2.ZodString;
|
|
914
|
+
city: z$2.ZodString;
|
|
915
|
+
state: z$2.ZodString;
|
|
916
|
+
postcode: z$2.ZodString;
|
|
917
|
+
country: z$2.ZodString;
|
|
918
|
+
}, z$2.core.$strip>;
|
|
919
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
920
|
+
key: z$2.ZodString;
|
|
921
|
+
name: z$2.ZodString;
|
|
922
|
+
quantity: z$2.ZodNumber;
|
|
923
|
+
}, z$2.core.$strip>>;
|
|
924
|
+
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
925
|
+
id: z$2.ZodString;
|
|
926
|
+
name: z$2.ZodString;
|
|
927
|
+
description: z$2.ZodString;
|
|
928
|
+
deliveryTime: z$2.ZodString;
|
|
929
|
+
price: z$2.ZodNumber;
|
|
930
|
+
taxes: z$2.ZodNumber;
|
|
931
|
+
methodId: z$2.ZodString;
|
|
932
|
+
instanceId: z$2.ZodNumber;
|
|
933
|
+
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
934
|
+
key: z$2.ZodString;
|
|
935
|
+
value: z$2.ZodString;
|
|
936
|
+
}, z$2.core.$strip>>;
|
|
937
|
+
selected: z$2.ZodBoolean;
|
|
938
|
+
}, z$2.core.$strip>>;
|
|
939
|
+
}, z$2.core.$strip>>;
|
|
940
|
+
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
941
|
+
code: z$2.ZodString;
|
|
942
|
+
discountType: z$2.ZodString;
|
|
943
|
+
totals: z$2.ZodObject<{
|
|
944
|
+
discount: z$2.ZodNumber;
|
|
945
|
+
discountTax: z$2.ZodNumber;
|
|
946
|
+
}, z$2.core.$strip>;
|
|
947
|
+
}, z$2.core.$strip>>;
|
|
948
|
+
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
949
|
+
id: z$2.ZodString;
|
|
950
|
+
name: z$2.ZodString;
|
|
951
|
+
totals: z$2.ZodObject<{
|
|
952
|
+
total: z$2.ZodNumber;
|
|
953
|
+
tax: z$2.ZodNumber;
|
|
954
|
+
}, z$2.core.$strip>;
|
|
955
|
+
}, z$2.core.$strip>>;
|
|
956
|
+
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
957
|
+
id: z$2.ZodNumber;
|
|
958
|
+
name: z$2.ZodString;
|
|
959
|
+
slug: z$2.ZodString;
|
|
960
|
+
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
961
|
+
type: z$2.ZodString;
|
|
962
|
+
variationDescription: z$2.ZodString;
|
|
963
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
964
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
965
|
+
shortDescription: z$2.ZodString;
|
|
966
|
+
description: z$2.ZodString;
|
|
967
|
+
isPasswordProtected: z$2.ZodBoolean;
|
|
968
|
+
isOnSale: z$2.ZodBoolean;
|
|
969
|
+
prices: z$2.ZodObject<{
|
|
970
|
+
price: z$2.ZodNumber;
|
|
971
|
+
regularPrice: z$2.ZodNumber;
|
|
972
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
973
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
974
|
+
minAmount: z$2.ZodNumber;
|
|
975
|
+
maxAmount: z$2.ZodNumber;
|
|
976
|
+
}, z$2.core.$strip>>;
|
|
977
|
+
}, z$2.core.$strip>;
|
|
978
|
+
currencyFormat: z$2.ZodObject<{
|
|
979
|
+
currencyCode: z$2.ZodString;
|
|
980
|
+
currencySymbol: z$2.ZodString;
|
|
981
|
+
currencyPrefix: z$2.ZodString;
|
|
982
|
+
currencySuffix: z$2.ZodString;
|
|
983
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
984
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
985
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
986
|
+
}, z$2.core.$strip>;
|
|
987
|
+
priceHtml: z$2.ZodString;
|
|
988
|
+
averageRating: z$2.ZodNumber;
|
|
989
|
+
reviewCount: z$2.ZodNumber;
|
|
990
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
991
|
+
id: z$2.ZodNumber;
|
|
992
|
+
name: z$2.ZodString;
|
|
993
|
+
src: z$2.ZodString;
|
|
994
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
995
|
+
type: z$2.ZodLiteral<"image">;
|
|
996
|
+
alt: z$2.ZodString;
|
|
997
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
998
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
999
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1000
|
+
src: z$2.ZodString;
|
|
1001
|
+
width: z$2.ZodNumber;
|
|
1002
|
+
height: z$2.ZodNumber;
|
|
1003
|
+
}, z$2.core.$strict>>>;
|
|
1004
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1005
|
+
}, z$2.core.$strict>>;
|
|
1006
|
+
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
1007
|
+
id: z$2.ZodNumber;
|
|
1008
|
+
name: z$2.ZodString;
|
|
1009
|
+
slug: z$2.ZodString;
|
|
1010
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1011
|
+
}, z$2.core.$strip>>;
|
|
1012
|
+
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
1013
|
+
id: z$2.ZodNumber;
|
|
1014
|
+
name: z$2.ZodString;
|
|
1015
|
+
slug: z$2.ZodString;
|
|
1016
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1017
|
+
}, z$2.core.$strip>>;
|
|
1018
|
+
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
1019
|
+
id: z$2.ZodNumber;
|
|
1020
|
+
name: z$2.ZodString;
|
|
1021
|
+
slug: z$2.ZodString;
|
|
1022
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1023
|
+
}, z$2.core.$strip>>;
|
|
1024
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1025
|
+
id: z$2.ZodNumber;
|
|
1026
|
+
name: z$2.ZodString;
|
|
1027
|
+
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
1028
|
+
hasVariations: z$2.ZodBoolean;
|
|
1029
|
+
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
1030
|
+
id: z$2.ZodNumber;
|
|
1031
|
+
name: z$2.ZodString;
|
|
1032
|
+
slug: z$2.ZodString;
|
|
1033
|
+
isDefault: z$2.ZodBoolean;
|
|
1034
|
+
}, z$2.core.$strip>>;
|
|
1035
|
+
}, z$2.core.$strip>>;
|
|
1036
|
+
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
1037
|
+
id: z$2.ZodNumber;
|
|
1038
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1039
|
+
name: z$2.ZodString;
|
|
1040
|
+
value: z$2.ZodNullable<z$2.ZodString>;
|
|
1041
|
+
}, z$2.core.$strip>>;
|
|
1042
|
+
}, z$2.core.$strip>>;
|
|
1043
|
+
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
1044
|
+
hasOptions: z$2.ZodBoolean;
|
|
1045
|
+
isPurchasable: z$2.ZodBoolean;
|
|
1046
|
+
isInStock: z$2.ZodBoolean;
|
|
1047
|
+
isOnBackorder: z$2.ZodBoolean;
|
|
1048
|
+
stockAvailability: z$2.ZodObject<{
|
|
1049
|
+
text: z$2.ZodString;
|
|
1050
|
+
class: z$2.ZodString;
|
|
1051
|
+
}, z$2.core.$strip>;
|
|
1052
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1053
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1054
|
+
addToCart: z$2.ZodObject<{
|
|
1055
|
+
text: z$2.ZodString;
|
|
1056
|
+
description: z$2.ZodString;
|
|
1057
|
+
singleText: z$2.ZodString;
|
|
1058
|
+
minimum: z$2.ZodNumber;
|
|
1059
|
+
maximum: z$2.ZodNumber;
|
|
1060
|
+
multipleOf: z$2.ZodNumber;
|
|
1061
|
+
}, z$2.core.$strip>;
|
|
1062
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1063
|
+
}, z$2.core.$strip>>;
|
|
1064
|
+
needsPayment: z$2.ZodBoolean;
|
|
1065
|
+
needsShipping: z$2.ZodBoolean;
|
|
1066
|
+
hasCalculatedShipping: z$2.ZodBoolean;
|
|
1067
|
+
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
1068
|
+
id: z$2.ZodString;
|
|
1069
|
+
title: z$2.ZodString;
|
|
1070
|
+
description: z$2.ZodString;
|
|
1071
|
+
order: z$2.ZodNumber;
|
|
1072
|
+
enabled: z$2.ZodBoolean;
|
|
1073
|
+
}, z$2.core.$strip>>;
|
|
1074
|
+
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
1075
|
+
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
1076
|
+
code: z$2.ZodString;
|
|
1077
|
+
message: z$2.ZodString;
|
|
1078
|
+
}, z$2.core.$strip>>;
|
|
1079
|
+
totals: z$2.ZodObject<{
|
|
1080
|
+
itemsTotal: z$2.ZodNumber;
|
|
1081
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
1082
|
+
feesTotal: z$2.ZodNumber;
|
|
1083
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
1084
|
+
discountTotal: z$2.ZodNumber;
|
|
1085
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
1086
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1087
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1088
|
+
total: z$2.ZodNumber;
|
|
1089
|
+
taxTotal: z$2.ZodNumber;
|
|
1090
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
1091
|
+
name: z$2.ZodString;
|
|
1092
|
+
price: z$2.ZodNumber;
|
|
1093
|
+
rate: z$2.ZodString;
|
|
1094
|
+
}, z$2.core.$strip>>;
|
|
1095
|
+
}, z$2.core.$strip>;
|
|
1096
|
+
currencyFormat: z$2.ZodObject<{
|
|
1097
|
+
currencyCode: z$2.ZodString;
|
|
1098
|
+
currencySymbol: z$2.ZodString;
|
|
1099
|
+
currencyPrefix: z$2.ZodString;
|
|
1100
|
+
currencySuffix: z$2.ZodString;
|
|
1101
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
1102
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
1103
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
1104
|
+
}, z$2.core.$strip>;
|
|
1105
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1106
|
+
}, z$2.core.$strip>>;
|
|
1107
|
+
}, z$2.core.$strip>;
|
|
1108
|
+
};
|
|
1109
|
+
readonly CHECKOUT_COUPONS_REMOVED: {
|
|
1110
|
+
readonly status: 409;
|
|
1111
|
+
readonly message: "One or more coupons were removed from the cart.";
|
|
1112
|
+
readonly data: z$2.ZodObject<{
|
|
1113
|
+
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
1114
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
1115
|
+
key: z$2.ZodString;
|
|
1116
|
+
productId: z$2.ZodNumber;
|
|
1117
|
+
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1118
|
+
type: z$2.ZodString;
|
|
1119
|
+
name: z$2.ZodString;
|
|
1120
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
1121
|
+
slug: z$2.ZodString;
|
|
1122
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1123
|
+
shortDescription: z$2.ZodString;
|
|
1124
|
+
description: z$2.ZodString;
|
|
1125
|
+
quantity: z$2.ZodNumber;
|
|
1126
|
+
quantityLimits: z$2.ZodObject<{
|
|
1127
|
+
minimum: z$2.ZodNumber;
|
|
1128
|
+
maximum: z$2.ZodNumber;
|
|
1129
|
+
multipleOf: z$2.ZodNumber;
|
|
1130
|
+
editable: z$2.ZodBoolean;
|
|
1131
|
+
}, z$2.core.$strip>;
|
|
1132
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1133
|
+
allowsBackorders: z$2.ZodBoolean;
|
|
1134
|
+
showsBackorderBadge: z$2.ZodBoolean;
|
|
1135
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1136
|
+
catalogVisibility: z$2.ZodString;
|
|
1137
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
1138
|
+
id: z$2.ZodNumber;
|
|
1139
|
+
name: z$2.ZodString;
|
|
1140
|
+
src: z$2.ZodString;
|
|
1141
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
1142
|
+
type: z$2.ZodLiteral<"image">;
|
|
1143
|
+
alt: z$2.ZodString;
|
|
1144
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1145
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1146
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1147
|
+
src: z$2.ZodString;
|
|
1148
|
+
width: z$2.ZodNumber;
|
|
1149
|
+
height: z$2.ZodNumber;
|
|
1150
|
+
}, z$2.core.$strict>>>;
|
|
1151
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1152
|
+
}, z$2.core.$strict>>;
|
|
1153
|
+
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1154
|
+
name: z$2.ZodString;
|
|
1155
|
+
attribute: z$2.ZodString;
|
|
1156
|
+
value: z$2.ZodString;
|
|
1157
|
+
}, z$2.core.$strip>>;
|
|
1158
|
+
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
1159
|
+
name: z$2.ZodString;
|
|
1160
|
+
value: z$2.ZodString;
|
|
1161
|
+
display: z$2.ZodNullable<z$2.ZodString>;
|
|
1162
|
+
}, z$2.core.$strip>>;
|
|
1163
|
+
prices: z$2.ZodObject<{
|
|
1164
|
+
price: z$2.ZodNumber;
|
|
1165
|
+
regularPrice: z$2.ZodNumber;
|
|
1166
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1167
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
1168
|
+
minAmount: z$2.ZodNumber;
|
|
1169
|
+
maxAmount: z$2.ZodNumber;
|
|
1170
|
+
}, z$2.core.$strip>>;
|
|
1171
|
+
}, z$2.core.$strip>;
|
|
1172
|
+
totals: z$2.ZodObject<{
|
|
1173
|
+
subtotal: z$2.ZodNumber;
|
|
1174
|
+
subtotalTax: z$2.ZodNumber;
|
|
1175
|
+
total: z$2.ZodNumber;
|
|
1176
|
+
totalTax: z$2.ZodNumber;
|
|
1177
|
+
}, z$2.core.$strip>;
|
|
1178
|
+
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1179
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1180
|
+
}, z$2.core.$strip>>;
|
|
1181
|
+
itemCount: z$2.ZodNumber;
|
|
1182
|
+
itemsWeight: z$2.ZodNumber;
|
|
1183
|
+
billingAddress: z$2.ZodObject<{
|
|
1184
|
+
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
1185
|
+
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
1186
|
+
email: z$2.ZodString;
|
|
1187
|
+
firstName: z$2.ZodString;
|
|
1188
|
+
lastName: z$2.ZodString;
|
|
1189
|
+
company: z$2.ZodString;
|
|
1190
|
+
address1: z$2.ZodString;
|
|
1191
|
+
address2: z$2.ZodString;
|
|
1192
|
+
city: z$2.ZodString;
|
|
1193
|
+
state: z$2.ZodString;
|
|
1194
|
+
postcode: z$2.ZodString;
|
|
1195
|
+
country: z$2.ZodString;
|
|
1196
|
+
phone: z$2.ZodString;
|
|
1197
|
+
}, z$2.core.$strip>;
|
|
1198
|
+
shippingAddress: z$2.ZodObject<{
|
|
1199
|
+
firstName: z$2.ZodString;
|
|
1200
|
+
lastName: z$2.ZodString;
|
|
1201
|
+
company: z$2.ZodString;
|
|
1202
|
+
address1: z$2.ZodString;
|
|
1203
|
+
address2: z$2.ZodString;
|
|
1204
|
+
city: z$2.ZodString;
|
|
1205
|
+
state: z$2.ZodString;
|
|
1206
|
+
postcode: z$2.ZodString;
|
|
1207
|
+
country: z$2.ZodString;
|
|
1208
|
+
phone: z$2.ZodString;
|
|
1209
|
+
additionalFields: z$2.ZodType<{
|
|
1210
|
+
[x: string]: string | boolean | undefined;
|
|
1211
|
+
}, Partial<{
|
|
1212
|
+
[x: string]: string | boolean | undefined;
|
|
1213
|
+
}>, z$2.core.$ZodTypeInternals<{
|
|
1214
|
+
[x: string]: string | boolean | undefined;
|
|
1215
|
+
}, Partial<{
|
|
1216
|
+
[x: string]: string | boolean | undefined;
|
|
1217
|
+
}>>>;
|
|
1218
|
+
}, z$2.core.$strip>;
|
|
1219
|
+
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
1220
|
+
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
1221
|
+
name: z$2.ZodString;
|
|
1222
|
+
destination: z$2.ZodObject<{
|
|
1223
|
+
address1: z$2.ZodString;
|
|
1224
|
+
address2: z$2.ZodString;
|
|
1225
|
+
city: z$2.ZodString;
|
|
1226
|
+
state: z$2.ZodString;
|
|
1227
|
+
postcode: z$2.ZodString;
|
|
1228
|
+
country: z$2.ZodString;
|
|
1229
|
+
}, z$2.core.$strip>;
|
|
1230
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
1231
|
+
key: z$2.ZodString;
|
|
1232
|
+
name: z$2.ZodString;
|
|
1233
|
+
quantity: z$2.ZodNumber;
|
|
1234
|
+
}, z$2.core.$strip>>;
|
|
1235
|
+
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
1236
|
+
id: z$2.ZodString;
|
|
1237
|
+
name: z$2.ZodString;
|
|
1238
|
+
description: z$2.ZodString;
|
|
1239
|
+
deliveryTime: z$2.ZodString;
|
|
1240
|
+
price: z$2.ZodNumber;
|
|
1241
|
+
taxes: z$2.ZodNumber;
|
|
1242
|
+
methodId: z$2.ZodString;
|
|
1243
|
+
instanceId: z$2.ZodNumber;
|
|
1244
|
+
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
1245
|
+
key: z$2.ZodString;
|
|
1246
|
+
value: z$2.ZodString;
|
|
1247
|
+
}, z$2.core.$strip>>;
|
|
1248
|
+
selected: z$2.ZodBoolean;
|
|
1249
|
+
}, z$2.core.$strip>>;
|
|
1250
|
+
}, z$2.core.$strip>>;
|
|
1251
|
+
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
1252
|
+
code: z$2.ZodString;
|
|
1253
|
+
discountType: z$2.ZodString;
|
|
1254
|
+
totals: z$2.ZodObject<{
|
|
1255
|
+
discount: z$2.ZodNumber;
|
|
1256
|
+
discountTax: z$2.ZodNumber;
|
|
1257
|
+
}, z$2.core.$strip>;
|
|
1258
|
+
}, z$2.core.$strip>>;
|
|
1259
|
+
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
1260
|
+
id: z$2.ZodString;
|
|
1261
|
+
name: z$2.ZodString;
|
|
1262
|
+
totals: z$2.ZodObject<{
|
|
1263
|
+
total: z$2.ZodNumber;
|
|
1264
|
+
tax: z$2.ZodNumber;
|
|
1265
|
+
}, z$2.core.$strip>;
|
|
1266
|
+
}, z$2.core.$strip>>;
|
|
1267
|
+
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
1268
|
+
id: z$2.ZodNumber;
|
|
1269
|
+
name: z$2.ZodString;
|
|
1270
|
+
slug: z$2.ZodString;
|
|
1271
|
+
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1272
|
+
type: z$2.ZodString;
|
|
1273
|
+
variationDescription: z$2.ZodString;
|
|
1274
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1275
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
1276
|
+
shortDescription: z$2.ZodString;
|
|
1277
|
+
description: z$2.ZodString;
|
|
1278
|
+
isPasswordProtected: z$2.ZodBoolean;
|
|
1279
|
+
isOnSale: z$2.ZodBoolean;
|
|
1280
|
+
prices: z$2.ZodObject<{
|
|
1281
|
+
price: z$2.ZodNumber;
|
|
1282
|
+
regularPrice: z$2.ZodNumber;
|
|
1283
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1284
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
1285
|
+
minAmount: z$2.ZodNumber;
|
|
1286
|
+
maxAmount: z$2.ZodNumber;
|
|
1287
|
+
}, z$2.core.$strip>>;
|
|
1288
|
+
}, z$2.core.$strip>;
|
|
1289
|
+
currencyFormat: z$2.ZodObject<{
|
|
1290
|
+
currencyCode: z$2.ZodString;
|
|
1291
|
+
currencySymbol: z$2.ZodString;
|
|
1292
|
+
currencyPrefix: z$2.ZodString;
|
|
1293
|
+
currencySuffix: z$2.ZodString;
|
|
1294
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
1295
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
1296
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
1297
|
+
}, z$2.core.$strip>;
|
|
1298
|
+
priceHtml: z$2.ZodString;
|
|
1299
|
+
averageRating: z$2.ZodNumber;
|
|
1300
|
+
reviewCount: z$2.ZodNumber;
|
|
1301
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
1302
|
+
id: z$2.ZodNumber;
|
|
1303
|
+
name: z$2.ZodString;
|
|
1304
|
+
src: z$2.ZodString;
|
|
1305
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
1306
|
+
type: z$2.ZodLiteral<"image">;
|
|
1307
|
+
alt: z$2.ZodString;
|
|
1308
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1309
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1310
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1311
|
+
src: z$2.ZodString;
|
|
1312
|
+
width: z$2.ZodNumber;
|
|
1313
|
+
height: z$2.ZodNumber;
|
|
1314
|
+
}, z$2.core.$strict>>>;
|
|
1315
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1316
|
+
}, z$2.core.$strict>>;
|
|
1317
|
+
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
1318
|
+
id: z$2.ZodNumber;
|
|
1319
|
+
name: z$2.ZodString;
|
|
1320
|
+
slug: z$2.ZodString;
|
|
1321
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1322
|
+
}, z$2.core.$strip>>;
|
|
1323
|
+
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
1324
|
+
id: z$2.ZodNumber;
|
|
1325
|
+
name: z$2.ZodString;
|
|
1326
|
+
slug: z$2.ZodString;
|
|
1327
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1328
|
+
}, z$2.core.$strip>>;
|
|
1329
|
+
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
1330
|
+
id: z$2.ZodNumber;
|
|
1331
|
+
name: z$2.ZodString;
|
|
1332
|
+
slug: z$2.ZodString;
|
|
1333
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1334
|
+
}, z$2.core.$strip>>;
|
|
1335
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1336
|
+
id: z$2.ZodNumber;
|
|
1337
|
+
name: z$2.ZodString;
|
|
1338
|
+
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
1339
|
+
hasVariations: z$2.ZodBoolean;
|
|
1340
|
+
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
1341
|
+
id: z$2.ZodNumber;
|
|
1342
|
+
name: z$2.ZodString;
|
|
1343
|
+
slug: z$2.ZodString;
|
|
1344
|
+
isDefault: z$2.ZodBoolean;
|
|
1345
|
+
}, z$2.core.$strip>>;
|
|
1346
|
+
}, z$2.core.$strip>>;
|
|
1347
|
+
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
1348
|
+
id: z$2.ZodNumber;
|
|
1349
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1350
|
+
name: z$2.ZodString;
|
|
1351
|
+
value: z$2.ZodNullable<z$2.ZodString>;
|
|
1352
|
+
}, z$2.core.$strip>>;
|
|
1353
|
+
}, z$2.core.$strip>>;
|
|
1354
|
+
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
1355
|
+
hasOptions: z$2.ZodBoolean;
|
|
1356
|
+
isPurchasable: z$2.ZodBoolean;
|
|
1357
|
+
isInStock: z$2.ZodBoolean;
|
|
1358
|
+
isOnBackorder: z$2.ZodBoolean;
|
|
1359
|
+
stockAvailability: z$2.ZodObject<{
|
|
1360
|
+
text: z$2.ZodString;
|
|
1361
|
+
class: z$2.ZodString;
|
|
1362
|
+
}, z$2.core.$strip>;
|
|
1363
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1364
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1365
|
+
addToCart: z$2.ZodObject<{
|
|
1366
|
+
text: z$2.ZodString;
|
|
1367
|
+
description: z$2.ZodString;
|
|
1368
|
+
singleText: z$2.ZodString;
|
|
1369
|
+
minimum: z$2.ZodNumber;
|
|
1370
|
+
maximum: z$2.ZodNumber;
|
|
1371
|
+
multipleOf: z$2.ZodNumber;
|
|
1372
|
+
}, z$2.core.$strip>;
|
|
1373
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1374
|
+
}, z$2.core.$strip>>;
|
|
1375
|
+
needsPayment: z$2.ZodBoolean;
|
|
1376
|
+
needsShipping: z$2.ZodBoolean;
|
|
1377
|
+
hasCalculatedShipping: z$2.ZodBoolean;
|
|
1378
|
+
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
1379
|
+
id: z$2.ZodString;
|
|
1380
|
+
title: z$2.ZodString;
|
|
1381
|
+
description: z$2.ZodString;
|
|
1382
|
+
order: z$2.ZodNumber;
|
|
1383
|
+
enabled: z$2.ZodBoolean;
|
|
1384
|
+
}, z$2.core.$strip>>;
|
|
1385
|
+
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
1386
|
+
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
1387
|
+
code: z$2.ZodString;
|
|
1388
|
+
message: z$2.ZodString;
|
|
1389
|
+
}, z$2.core.$strip>>;
|
|
1390
|
+
totals: z$2.ZodObject<{
|
|
1391
|
+
itemsTotal: z$2.ZodNumber;
|
|
1392
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
1393
|
+
feesTotal: z$2.ZodNumber;
|
|
1394
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
1395
|
+
discountTotal: z$2.ZodNumber;
|
|
1396
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
1397
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1398
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1399
|
+
total: z$2.ZodNumber;
|
|
1400
|
+
taxTotal: z$2.ZodNumber;
|
|
1401
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
1402
|
+
name: z$2.ZodString;
|
|
1403
|
+
price: z$2.ZodNumber;
|
|
1404
|
+
rate: z$2.ZodString;
|
|
1405
|
+
}, z$2.core.$strip>>;
|
|
1406
|
+
}, z$2.core.$strip>;
|
|
1407
|
+
currencyFormat: z$2.ZodObject<{
|
|
1408
|
+
currencyCode: z$2.ZodString;
|
|
1409
|
+
currencySymbol: z$2.ZodString;
|
|
1410
|
+
currencyPrefix: z$2.ZodString;
|
|
1411
|
+
currencySuffix: z$2.ZodString;
|
|
1412
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
1413
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
1414
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
1415
|
+
}, z$2.core.$strip>;
|
|
1416
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1417
|
+
}, z$2.core.$strip>>;
|
|
1418
|
+
}, z$2.core.$strip>;
|
|
1419
|
+
};
|
|
1420
|
+
readonly CHECKOUT_COUPON_RESERVATION_FAILED: {
|
|
1421
|
+
readonly status: 409;
|
|
1422
|
+
readonly message: "A coupon could not be reserved for this order.";
|
|
1423
|
+
readonly data: z$2.ZodObject<{
|
|
1424
|
+
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
1425
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
1426
|
+
key: z$2.ZodString;
|
|
1427
|
+
productId: z$2.ZodNumber;
|
|
1428
|
+
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1429
|
+
type: z$2.ZodString;
|
|
1430
|
+
name: z$2.ZodString;
|
|
1431
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
1432
|
+
slug: z$2.ZodString;
|
|
1433
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1434
|
+
shortDescription: z$2.ZodString;
|
|
1435
|
+
description: z$2.ZodString;
|
|
1436
|
+
quantity: z$2.ZodNumber;
|
|
1437
|
+
quantityLimits: z$2.ZodObject<{
|
|
1438
|
+
minimum: z$2.ZodNumber;
|
|
1439
|
+
maximum: z$2.ZodNumber;
|
|
1440
|
+
multipleOf: z$2.ZodNumber;
|
|
1441
|
+
editable: z$2.ZodBoolean;
|
|
1442
|
+
}, z$2.core.$strip>;
|
|
1443
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1444
|
+
allowsBackorders: z$2.ZodBoolean;
|
|
1445
|
+
showsBackorderBadge: z$2.ZodBoolean;
|
|
1446
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1447
|
+
catalogVisibility: z$2.ZodString;
|
|
1448
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
1449
|
+
id: z$2.ZodNumber;
|
|
1450
|
+
name: z$2.ZodString;
|
|
1451
|
+
src: z$2.ZodString;
|
|
1452
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
1453
|
+
type: z$2.ZodLiteral<"image">;
|
|
1454
|
+
alt: z$2.ZodString;
|
|
1455
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1456
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1457
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1458
|
+
src: z$2.ZodString;
|
|
1459
|
+
width: z$2.ZodNumber;
|
|
1460
|
+
height: z$2.ZodNumber;
|
|
1461
|
+
}, z$2.core.$strict>>>;
|
|
1462
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1463
|
+
}, z$2.core.$strict>>;
|
|
1464
|
+
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1465
|
+
name: z$2.ZodString;
|
|
1466
|
+
attribute: z$2.ZodString;
|
|
1467
|
+
value: z$2.ZodString;
|
|
1468
|
+
}, z$2.core.$strip>>;
|
|
1469
|
+
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
1470
|
+
name: z$2.ZodString;
|
|
1471
|
+
value: z$2.ZodString;
|
|
1472
|
+
display: z$2.ZodNullable<z$2.ZodString>;
|
|
1473
|
+
}, z$2.core.$strip>>;
|
|
1474
|
+
prices: z$2.ZodObject<{
|
|
1475
|
+
price: z$2.ZodNumber;
|
|
1476
|
+
regularPrice: z$2.ZodNumber;
|
|
1477
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1478
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
1479
|
+
minAmount: z$2.ZodNumber;
|
|
1480
|
+
maxAmount: z$2.ZodNumber;
|
|
1481
|
+
}, z$2.core.$strip>>;
|
|
1482
|
+
}, z$2.core.$strip>;
|
|
1483
|
+
totals: z$2.ZodObject<{
|
|
1484
|
+
subtotal: z$2.ZodNumber;
|
|
1485
|
+
subtotalTax: z$2.ZodNumber;
|
|
1486
|
+
total: z$2.ZodNumber;
|
|
1487
|
+
totalTax: z$2.ZodNumber;
|
|
1488
|
+
}, z$2.core.$strip>;
|
|
1489
|
+
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1490
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1491
|
+
}, z$2.core.$strip>>;
|
|
1492
|
+
itemCount: z$2.ZodNumber;
|
|
1493
|
+
itemsWeight: z$2.ZodNumber;
|
|
1494
|
+
billingAddress: z$2.ZodObject<{
|
|
1495
|
+
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
1496
|
+
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
1497
|
+
email: z$2.ZodString;
|
|
1498
|
+
firstName: z$2.ZodString;
|
|
1499
|
+
lastName: z$2.ZodString;
|
|
1500
|
+
company: z$2.ZodString;
|
|
1501
|
+
address1: z$2.ZodString;
|
|
1502
|
+
address2: z$2.ZodString;
|
|
1503
|
+
city: z$2.ZodString;
|
|
1504
|
+
state: z$2.ZodString;
|
|
1505
|
+
postcode: z$2.ZodString;
|
|
1506
|
+
country: z$2.ZodString;
|
|
1507
|
+
phone: z$2.ZodString;
|
|
1508
|
+
}, z$2.core.$strip>;
|
|
1509
|
+
shippingAddress: z$2.ZodObject<{
|
|
1510
|
+
firstName: z$2.ZodString;
|
|
1511
|
+
lastName: z$2.ZodString;
|
|
1512
|
+
company: z$2.ZodString;
|
|
1513
|
+
address1: z$2.ZodString;
|
|
1514
|
+
address2: z$2.ZodString;
|
|
1515
|
+
city: z$2.ZodString;
|
|
1516
|
+
state: z$2.ZodString;
|
|
1517
|
+
postcode: z$2.ZodString;
|
|
1518
|
+
country: z$2.ZodString;
|
|
1519
|
+
phone: z$2.ZodString;
|
|
1520
|
+
additionalFields: z$2.ZodType<{
|
|
1521
|
+
[x: string]: string | boolean | undefined;
|
|
1522
|
+
}, Partial<{
|
|
1523
|
+
[x: string]: string | boolean | undefined;
|
|
1524
|
+
}>, z$2.core.$ZodTypeInternals<{
|
|
1525
|
+
[x: string]: string | boolean | undefined;
|
|
1526
|
+
}, Partial<{
|
|
1527
|
+
[x: string]: string | boolean | undefined;
|
|
1528
|
+
}>>>;
|
|
1529
|
+
}, z$2.core.$strip>;
|
|
1530
|
+
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
1531
|
+
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
1532
|
+
name: z$2.ZodString;
|
|
1533
|
+
destination: z$2.ZodObject<{
|
|
1534
|
+
address1: z$2.ZodString;
|
|
1535
|
+
address2: z$2.ZodString;
|
|
1536
|
+
city: z$2.ZodString;
|
|
1537
|
+
state: z$2.ZodString;
|
|
1538
|
+
postcode: z$2.ZodString;
|
|
1539
|
+
country: z$2.ZodString;
|
|
1540
|
+
}, z$2.core.$strip>;
|
|
1541
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
1542
|
+
key: z$2.ZodString;
|
|
1543
|
+
name: z$2.ZodString;
|
|
1544
|
+
quantity: z$2.ZodNumber;
|
|
1545
|
+
}, z$2.core.$strip>>;
|
|
1546
|
+
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
1547
|
+
id: z$2.ZodString;
|
|
1548
|
+
name: z$2.ZodString;
|
|
1549
|
+
description: z$2.ZodString;
|
|
1550
|
+
deliveryTime: z$2.ZodString;
|
|
1551
|
+
price: z$2.ZodNumber;
|
|
1552
|
+
taxes: z$2.ZodNumber;
|
|
1553
|
+
methodId: z$2.ZodString;
|
|
1554
|
+
instanceId: z$2.ZodNumber;
|
|
1555
|
+
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
1556
|
+
key: z$2.ZodString;
|
|
1557
|
+
value: z$2.ZodString;
|
|
1558
|
+
}, z$2.core.$strip>>;
|
|
1559
|
+
selected: z$2.ZodBoolean;
|
|
1560
|
+
}, z$2.core.$strip>>;
|
|
1561
|
+
}, z$2.core.$strip>>;
|
|
1562
|
+
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
1563
|
+
code: z$2.ZodString;
|
|
1564
|
+
discountType: z$2.ZodString;
|
|
1565
|
+
totals: z$2.ZodObject<{
|
|
1566
|
+
discount: z$2.ZodNumber;
|
|
1567
|
+
discountTax: z$2.ZodNumber;
|
|
1568
|
+
}, z$2.core.$strip>;
|
|
1569
|
+
}, z$2.core.$strip>>;
|
|
1570
|
+
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
1571
|
+
id: z$2.ZodString;
|
|
1572
|
+
name: z$2.ZodString;
|
|
1573
|
+
totals: z$2.ZodObject<{
|
|
1574
|
+
total: z$2.ZodNumber;
|
|
1575
|
+
tax: z$2.ZodNumber;
|
|
1576
|
+
}, z$2.core.$strip>;
|
|
1577
|
+
}, z$2.core.$strip>>;
|
|
1578
|
+
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
1579
|
+
id: z$2.ZodNumber;
|
|
1580
|
+
name: z$2.ZodString;
|
|
1581
|
+
slug: z$2.ZodString;
|
|
1582
|
+
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1583
|
+
type: z$2.ZodString;
|
|
1584
|
+
variationDescription: z$2.ZodString;
|
|
1585
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1586
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
1587
|
+
shortDescription: z$2.ZodString;
|
|
1588
|
+
description: z$2.ZodString;
|
|
1589
|
+
isPasswordProtected: z$2.ZodBoolean;
|
|
1590
|
+
isOnSale: z$2.ZodBoolean;
|
|
1591
|
+
prices: z$2.ZodObject<{
|
|
1592
|
+
price: z$2.ZodNumber;
|
|
1593
|
+
regularPrice: z$2.ZodNumber;
|
|
1594
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1595
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
1596
|
+
minAmount: z$2.ZodNumber;
|
|
1597
|
+
maxAmount: z$2.ZodNumber;
|
|
1598
|
+
}, z$2.core.$strip>>;
|
|
1599
|
+
}, z$2.core.$strip>;
|
|
1600
|
+
currencyFormat: z$2.ZodObject<{
|
|
1601
|
+
currencyCode: z$2.ZodString;
|
|
1602
|
+
currencySymbol: z$2.ZodString;
|
|
1603
|
+
currencyPrefix: z$2.ZodString;
|
|
1604
|
+
currencySuffix: z$2.ZodString;
|
|
1605
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
1606
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
1607
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
1608
|
+
}, z$2.core.$strip>;
|
|
1609
|
+
priceHtml: z$2.ZodString;
|
|
1610
|
+
averageRating: z$2.ZodNumber;
|
|
1611
|
+
reviewCount: z$2.ZodNumber;
|
|
1612
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
1613
|
+
id: z$2.ZodNumber;
|
|
1614
|
+
name: z$2.ZodString;
|
|
1615
|
+
src: z$2.ZodString;
|
|
1616
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
1617
|
+
type: z$2.ZodLiteral<"image">;
|
|
1618
|
+
alt: z$2.ZodString;
|
|
1619
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1620
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1621
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1622
|
+
src: z$2.ZodString;
|
|
1623
|
+
width: z$2.ZodNumber;
|
|
1624
|
+
height: z$2.ZodNumber;
|
|
1625
|
+
}, z$2.core.$strict>>>;
|
|
1626
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1627
|
+
}, z$2.core.$strict>>;
|
|
1628
|
+
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
1629
|
+
id: z$2.ZodNumber;
|
|
1630
|
+
name: z$2.ZodString;
|
|
1631
|
+
slug: z$2.ZodString;
|
|
1632
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1633
|
+
}, z$2.core.$strip>>;
|
|
1634
|
+
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
1635
|
+
id: z$2.ZodNumber;
|
|
1636
|
+
name: z$2.ZodString;
|
|
1637
|
+
slug: z$2.ZodString;
|
|
1638
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1639
|
+
}, z$2.core.$strip>>;
|
|
1640
|
+
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
1641
|
+
id: z$2.ZodNumber;
|
|
1642
|
+
name: z$2.ZodString;
|
|
1643
|
+
slug: z$2.ZodString;
|
|
1644
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1645
|
+
}, z$2.core.$strip>>;
|
|
1646
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1647
|
+
id: z$2.ZodNumber;
|
|
1648
|
+
name: z$2.ZodString;
|
|
1649
|
+
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
1650
|
+
hasVariations: z$2.ZodBoolean;
|
|
1651
|
+
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
1652
|
+
id: z$2.ZodNumber;
|
|
1653
|
+
name: z$2.ZodString;
|
|
1654
|
+
slug: z$2.ZodString;
|
|
1655
|
+
isDefault: z$2.ZodBoolean;
|
|
1656
|
+
}, z$2.core.$strip>>;
|
|
1657
|
+
}, z$2.core.$strip>>;
|
|
1658
|
+
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
1659
|
+
id: z$2.ZodNumber;
|
|
1660
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1661
|
+
name: z$2.ZodString;
|
|
1662
|
+
value: z$2.ZodNullable<z$2.ZodString>;
|
|
1663
|
+
}, z$2.core.$strip>>;
|
|
1664
|
+
}, z$2.core.$strip>>;
|
|
1665
|
+
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
1666
|
+
hasOptions: z$2.ZodBoolean;
|
|
1667
|
+
isPurchasable: z$2.ZodBoolean;
|
|
1668
|
+
isInStock: z$2.ZodBoolean;
|
|
1669
|
+
isOnBackorder: z$2.ZodBoolean;
|
|
1670
|
+
stockAvailability: z$2.ZodObject<{
|
|
1671
|
+
text: z$2.ZodString;
|
|
1672
|
+
class: z$2.ZodString;
|
|
1673
|
+
}, z$2.core.$strip>;
|
|
1674
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1675
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1676
|
+
addToCart: z$2.ZodObject<{
|
|
1677
|
+
text: z$2.ZodString;
|
|
1678
|
+
description: z$2.ZodString;
|
|
1679
|
+
singleText: z$2.ZodString;
|
|
1680
|
+
minimum: z$2.ZodNumber;
|
|
1681
|
+
maximum: z$2.ZodNumber;
|
|
1682
|
+
multipleOf: z$2.ZodNumber;
|
|
1683
|
+
}, z$2.core.$strip>;
|
|
1684
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1685
|
+
}, z$2.core.$strip>>;
|
|
1686
|
+
needsPayment: z$2.ZodBoolean;
|
|
1687
|
+
needsShipping: z$2.ZodBoolean;
|
|
1688
|
+
hasCalculatedShipping: z$2.ZodBoolean;
|
|
1689
|
+
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
1690
|
+
id: z$2.ZodString;
|
|
1691
|
+
title: z$2.ZodString;
|
|
1692
|
+
description: z$2.ZodString;
|
|
1693
|
+
order: z$2.ZodNumber;
|
|
1694
|
+
enabled: z$2.ZodBoolean;
|
|
1695
|
+
}, z$2.core.$strip>>;
|
|
1696
|
+
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
1697
|
+
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
1698
|
+
code: z$2.ZodString;
|
|
1699
|
+
message: z$2.ZodString;
|
|
1700
|
+
}, z$2.core.$strip>>;
|
|
1701
|
+
totals: z$2.ZodObject<{
|
|
1702
|
+
itemsTotal: z$2.ZodNumber;
|
|
1703
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
1704
|
+
feesTotal: z$2.ZodNumber;
|
|
1705
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
1706
|
+
discountTotal: z$2.ZodNumber;
|
|
1707
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
1708
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1709
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1710
|
+
total: z$2.ZodNumber;
|
|
1711
|
+
taxTotal: z$2.ZodNumber;
|
|
1712
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
1713
|
+
name: z$2.ZodString;
|
|
1714
|
+
price: z$2.ZodNumber;
|
|
1715
|
+
rate: z$2.ZodString;
|
|
1716
|
+
}, z$2.core.$strip>>;
|
|
1717
|
+
}, z$2.core.$strip>;
|
|
1718
|
+
currencyFormat: z$2.ZodObject<{
|
|
1719
|
+
currencyCode: z$2.ZodString;
|
|
1720
|
+
currencySymbol: z$2.ZodString;
|
|
1721
|
+
currencyPrefix: z$2.ZodString;
|
|
1722
|
+
currencySuffix: z$2.ZodString;
|
|
1723
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
1724
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
1725
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
1726
|
+
}, z$2.core.$strip>;
|
|
1727
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1728
|
+
}, z$2.core.$strip>>;
|
|
1729
|
+
}, z$2.core.$strip>;
|
|
1730
|
+
};
|
|
1731
|
+
readonly CHECKOUT_PRODUCT_INSUFFICIENT_STOCK: {
|
|
1732
|
+
readonly status: 409;
|
|
1733
|
+
readonly message: "Not enough stock for one or more items in the cart.";
|
|
1734
|
+
readonly data: z$2.ZodObject<{
|
|
1735
|
+
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
1736
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
1737
|
+
key: z$2.ZodString;
|
|
1738
|
+
productId: z$2.ZodNumber;
|
|
1739
|
+
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1740
|
+
type: z$2.ZodString;
|
|
1741
|
+
name: z$2.ZodString;
|
|
1742
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
1743
|
+
slug: z$2.ZodString;
|
|
1744
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1745
|
+
shortDescription: z$2.ZodString;
|
|
1746
|
+
description: z$2.ZodString;
|
|
1747
|
+
quantity: z$2.ZodNumber;
|
|
1748
|
+
quantityLimits: z$2.ZodObject<{
|
|
1749
|
+
minimum: z$2.ZodNumber;
|
|
1750
|
+
maximum: z$2.ZodNumber;
|
|
1751
|
+
multipleOf: z$2.ZodNumber;
|
|
1752
|
+
editable: z$2.ZodBoolean;
|
|
1753
|
+
}, z$2.core.$strip>;
|
|
1754
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1755
|
+
allowsBackorders: z$2.ZodBoolean;
|
|
1756
|
+
showsBackorderBadge: z$2.ZodBoolean;
|
|
1757
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1758
|
+
catalogVisibility: z$2.ZodString;
|
|
1759
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
1760
|
+
id: z$2.ZodNumber;
|
|
1761
|
+
name: z$2.ZodString;
|
|
1762
|
+
src: z$2.ZodString;
|
|
1763
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
1764
|
+
type: z$2.ZodLiteral<"image">;
|
|
1765
|
+
alt: z$2.ZodString;
|
|
1766
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1767
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1768
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1769
|
+
src: z$2.ZodString;
|
|
1770
|
+
width: z$2.ZodNumber;
|
|
1771
|
+
height: z$2.ZodNumber;
|
|
1772
|
+
}, z$2.core.$strict>>>;
|
|
1773
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1774
|
+
}, z$2.core.$strict>>;
|
|
1775
|
+
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1776
|
+
name: z$2.ZodString;
|
|
1777
|
+
attribute: z$2.ZodString;
|
|
1778
|
+
value: z$2.ZodString;
|
|
1779
|
+
}, z$2.core.$strip>>;
|
|
1780
|
+
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
1781
|
+
name: z$2.ZodString;
|
|
1782
|
+
value: z$2.ZodString;
|
|
1783
|
+
display: z$2.ZodNullable<z$2.ZodString>;
|
|
1784
|
+
}, z$2.core.$strip>>;
|
|
1785
|
+
prices: z$2.ZodObject<{
|
|
1786
|
+
price: z$2.ZodNumber;
|
|
1787
|
+
regularPrice: z$2.ZodNumber;
|
|
1788
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1789
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
1790
|
+
minAmount: z$2.ZodNumber;
|
|
1791
|
+
maxAmount: z$2.ZodNumber;
|
|
1792
|
+
}, z$2.core.$strip>>;
|
|
1793
|
+
}, z$2.core.$strip>;
|
|
1794
|
+
totals: z$2.ZodObject<{
|
|
1795
|
+
subtotal: z$2.ZodNumber;
|
|
1796
|
+
subtotalTax: z$2.ZodNumber;
|
|
1797
|
+
total: z$2.ZodNumber;
|
|
1798
|
+
totalTax: z$2.ZodNumber;
|
|
1799
|
+
}, z$2.core.$strip>;
|
|
1800
|
+
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
1801
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1802
|
+
}, z$2.core.$strip>>;
|
|
1803
|
+
itemCount: z$2.ZodNumber;
|
|
1804
|
+
itemsWeight: z$2.ZodNumber;
|
|
1805
|
+
billingAddress: z$2.ZodObject<{
|
|
1806
|
+
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
1807
|
+
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
1808
|
+
email: z$2.ZodString;
|
|
1809
|
+
firstName: z$2.ZodString;
|
|
1810
|
+
lastName: z$2.ZodString;
|
|
1811
|
+
company: z$2.ZodString;
|
|
1812
|
+
address1: z$2.ZodString;
|
|
1813
|
+
address2: z$2.ZodString;
|
|
1814
|
+
city: z$2.ZodString;
|
|
1815
|
+
state: z$2.ZodString;
|
|
1816
|
+
postcode: z$2.ZodString;
|
|
1817
|
+
country: z$2.ZodString;
|
|
1818
|
+
phone: z$2.ZodString;
|
|
1819
|
+
}, z$2.core.$strip>;
|
|
1820
|
+
shippingAddress: z$2.ZodObject<{
|
|
1821
|
+
firstName: z$2.ZodString;
|
|
1822
|
+
lastName: z$2.ZodString;
|
|
1823
|
+
company: z$2.ZodString;
|
|
1824
|
+
address1: z$2.ZodString;
|
|
1825
|
+
address2: z$2.ZodString;
|
|
1826
|
+
city: z$2.ZodString;
|
|
1827
|
+
state: z$2.ZodString;
|
|
1828
|
+
postcode: z$2.ZodString;
|
|
1829
|
+
country: z$2.ZodString;
|
|
1830
|
+
phone: z$2.ZodString;
|
|
1831
|
+
additionalFields: z$2.ZodType<{
|
|
1832
|
+
[x: string]: string | boolean | undefined;
|
|
1833
|
+
}, Partial<{
|
|
1834
|
+
[x: string]: string | boolean | undefined;
|
|
1835
|
+
}>, z$2.core.$ZodTypeInternals<{
|
|
1836
|
+
[x: string]: string | boolean | undefined;
|
|
1837
|
+
}, Partial<{
|
|
1838
|
+
[x: string]: string | boolean | undefined;
|
|
1839
|
+
}>>>;
|
|
1840
|
+
}, z$2.core.$strip>;
|
|
1841
|
+
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
1842
|
+
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
1843
|
+
name: z$2.ZodString;
|
|
1844
|
+
destination: z$2.ZodObject<{
|
|
1845
|
+
address1: z$2.ZodString;
|
|
1846
|
+
address2: z$2.ZodString;
|
|
1847
|
+
city: z$2.ZodString;
|
|
1848
|
+
state: z$2.ZodString;
|
|
1849
|
+
postcode: z$2.ZodString;
|
|
1850
|
+
country: z$2.ZodString;
|
|
1851
|
+
}, z$2.core.$strip>;
|
|
1852
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
1853
|
+
key: z$2.ZodString;
|
|
1854
|
+
name: z$2.ZodString;
|
|
1855
|
+
quantity: z$2.ZodNumber;
|
|
1856
|
+
}, z$2.core.$strip>>;
|
|
1857
|
+
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
1858
|
+
id: z$2.ZodString;
|
|
1859
|
+
name: z$2.ZodString;
|
|
1860
|
+
description: z$2.ZodString;
|
|
1861
|
+
deliveryTime: z$2.ZodString;
|
|
1862
|
+
price: z$2.ZodNumber;
|
|
1863
|
+
taxes: z$2.ZodNumber;
|
|
1864
|
+
methodId: z$2.ZodString;
|
|
1865
|
+
instanceId: z$2.ZodNumber;
|
|
1866
|
+
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
1867
|
+
key: z$2.ZodString;
|
|
1868
|
+
value: z$2.ZodString;
|
|
1869
|
+
}, z$2.core.$strip>>;
|
|
1870
|
+
selected: z$2.ZodBoolean;
|
|
1871
|
+
}, z$2.core.$strip>>;
|
|
1872
|
+
}, z$2.core.$strip>>;
|
|
1873
|
+
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
1874
|
+
code: z$2.ZodString;
|
|
1875
|
+
discountType: z$2.ZodString;
|
|
1876
|
+
totals: z$2.ZodObject<{
|
|
1877
|
+
discount: z$2.ZodNumber;
|
|
1878
|
+
discountTax: z$2.ZodNumber;
|
|
1879
|
+
}, z$2.core.$strip>;
|
|
1880
|
+
}, z$2.core.$strip>>;
|
|
1881
|
+
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
1882
|
+
id: z$2.ZodString;
|
|
1883
|
+
name: z$2.ZodString;
|
|
1884
|
+
totals: z$2.ZodObject<{
|
|
1885
|
+
total: z$2.ZodNumber;
|
|
1886
|
+
tax: z$2.ZodNumber;
|
|
1887
|
+
}, z$2.core.$strip>;
|
|
1888
|
+
}, z$2.core.$strip>>;
|
|
1889
|
+
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
1890
|
+
id: z$2.ZodNumber;
|
|
1891
|
+
name: z$2.ZodString;
|
|
1892
|
+
slug: z$2.ZodString;
|
|
1893
|
+
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1894
|
+
type: z$2.ZodString;
|
|
1895
|
+
variationDescription: z$2.ZodString;
|
|
1896
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1897
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
1898
|
+
shortDescription: z$2.ZodString;
|
|
1899
|
+
description: z$2.ZodString;
|
|
1900
|
+
isPasswordProtected: z$2.ZodBoolean;
|
|
1901
|
+
isOnSale: z$2.ZodBoolean;
|
|
1902
|
+
prices: z$2.ZodObject<{
|
|
1903
|
+
price: z$2.ZodNumber;
|
|
1904
|
+
regularPrice: z$2.ZodNumber;
|
|
1905
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1906
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
1907
|
+
minAmount: z$2.ZodNumber;
|
|
1908
|
+
maxAmount: z$2.ZodNumber;
|
|
1909
|
+
}, z$2.core.$strip>>;
|
|
1910
|
+
}, z$2.core.$strip>;
|
|
1911
|
+
currencyFormat: z$2.ZodObject<{
|
|
1912
|
+
currencyCode: z$2.ZodString;
|
|
1913
|
+
currencySymbol: z$2.ZodString;
|
|
1914
|
+
currencyPrefix: z$2.ZodString;
|
|
1915
|
+
currencySuffix: z$2.ZodString;
|
|
1916
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
1917
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
1918
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
1919
|
+
}, z$2.core.$strip>;
|
|
1920
|
+
priceHtml: z$2.ZodString;
|
|
1921
|
+
averageRating: z$2.ZodNumber;
|
|
1922
|
+
reviewCount: z$2.ZodNumber;
|
|
1923
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
1924
|
+
id: z$2.ZodNumber;
|
|
1925
|
+
name: z$2.ZodString;
|
|
1926
|
+
src: z$2.ZodString;
|
|
1927
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
1928
|
+
type: z$2.ZodLiteral<"image">;
|
|
1929
|
+
alt: z$2.ZodString;
|
|
1930
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1931
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
1932
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
1933
|
+
src: z$2.ZodString;
|
|
1934
|
+
width: z$2.ZodNumber;
|
|
1935
|
+
height: z$2.ZodNumber;
|
|
1936
|
+
}, z$2.core.$strict>>>;
|
|
1937
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
1938
|
+
}, z$2.core.$strict>>;
|
|
1939
|
+
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
1940
|
+
id: z$2.ZodNumber;
|
|
1941
|
+
name: z$2.ZodString;
|
|
1942
|
+
slug: z$2.ZodString;
|
|
1943
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1944
|
+
}, z$2.core.$strip>>;
|
|
1945
|
+
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
1946
|
+
id: z$2.ZodNumber;
|
|
1947
|
+
name: z$2.ZodString;
|
|
1948
|
+
slug: z$2.ZodString;
|
|
1949
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1950
|
+
}, z$2.core.$strip>>;
|
|
1951
|
+
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
1952
|
+
id: z$2.ZodNumber;
|
|
1953
|
+
name: z$2.ZodString;
|
|
1954
|
+
slug: z$2.ZodString;
|
|
1955
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
1956
|
+
}, z$2.core.$strip>>;
|
|
1957
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1958
|
+
id: z$2.ZodNumber;
|
|
1959
|
+
name: z$2.ZodString;
|
|
1960
|
+
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
1961
|
+
hasVariations: z$2.ZodBoolean;
|
|
1962
|
+
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
1963
|
+
id: z$2.ZodNumber;
|
|
1964
|
+
name: z$2.ZodString;
|
|
1965
|
+
slug: z$2.ZodString;
|
|
1966
|
+
isDefault: z$2.ZodBoolean;
|
|
1967
|
+
}, z$2.core.$strip>>;
|
|
1968
|
+
}, z$2.core.$strip>>;
|
|
1969
|
+
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
1970
|
+
id: z$2.ZodNumber;
|
|
1971
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
1972
|
+
name: z$2.ZodString;
|
|
1973
|
+
value: z$2.ZodNullable<z$2.ZodString>;
|
|
1974
|
+
}, z$2.core.$strip>>;
|
|
1975
|
+
}, z$2.core.$strip>>;
|
|
1976
|
+
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
1977
|
+
hasOptions: z$2.ZodBoolean;
|
|
1978
|
+
isPurchasable: z$2.ZodBoolean;
|
|
1979
|
+
isInStock: z$2.ZodBoolean;
|
|
1980
|
+
isOnBackorder: z$2.ZodBoolean;
|
|
1981
|
+
stockAvailability: z$2.ZodObject<{
|
|
1982
|
+
text: z$2.ZodString;
|
|
1983
|
+
class: z$2.ZodString;
|
|
1984
|
+
}, z$2.core.$strip>;
|
|
1985
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
1986
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
1987
|
+
addToCart: z$2.ZodObject<{
|
|
1988
|
+
text: z$2.ZodString;
|
|
1989
|
+
description: z$2.ZodString;
|
|
1990
|
+
singleText: z$2.ZodString;
|
|
1991
|
+
minimum: z$2.ZodNumber;
|
|
1992
|
+
maximum: z$2.ZodNumber;
|
|
1993
|
+
multipleOf: z$2.ZodNumber;
|
|
1994
|
+
}, z$2.core.$strip>;
|
|
1995
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
1996
|
+
}, z$2.core.$strip>>;
|
|
1997
|
+
needsPayment: z$2.ZodBoolean;
|
|
1998
|
+
needsShipping: z$2.ZodBoolean;
|
|
1999
|
+
hasCalculatedShipping: z$2.ZodBoolean;
|
|
2000
|
+
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
2001
|
+
id: z$2.ZodString;
|
|
2002
|
+
title: z$2.ZodString;
|
|
2003
|
+
description: z$2.ZodString;
|
|
2004
|
+
order: z$2.ZodNumber;
|
|
2005
|
+
enabled: z$2.ZodBoolean;
|
|
2006
|
+
}, z$2.core.$strip>>;
|
|
2007
|
+
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
2008
|
+
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
2009
|
+
code: z$2.ZodString;
|
|
2010
|
+
message: z$2.ZodString;
|
|
2011
|
+
}, z$2.core.$strip>>;
|
|
2012
|
+
totals: z$2.ZodObject<{
|
|
2013
|
+
itemsTotal: z$2.ZodNumber;
|
|
2014
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
2015
|
+
feesTotal: z$2.ZodNumber;
|
|
2016
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
2017
|
+
discountTotal: z$2.ZodNumber;
|
|
2018
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
2019
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2020
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2021
|
+
total: z$2.ZodNumber;
|
|
2022
|
+
taxTotal: z$2.ZodNumber;
|
|
2023
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
2024
|
+
name: z$2.ZodString;
|
|
2025
|
+
price: z$2.ZodNumber;
|
|
2026
|
+
rate: z$2.ZodString;
|
|
2027
|
+
}, z$2.core.$strip>>;
|
|
2028
|
+
}, z$2.core.$strip>;
|
|
2029
|
+
currencyFormat: z$2.ZodObject<{
|
|
2030
|
+
currencyCode: z$2.ZodString;
|
|
2031
|
+
currencySymbol: z$2.ZodString;
|
|
2032
|
+
currencyPrefix: z$2.ZodString;
|
|
2033
|
+
currencySuffix: z$2.ZodString;
|
|
2034
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
2035
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
2036
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
2037
|
+
}, z$2.core.$strip>;
|
|
2038
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2039
|
+
}, z$2.core.$strip>>;
|
|
2040
|
+
}, z$2.core.$strip>;
|
|
2041
|
+
};
|
|
2042
|
+
readonly CHECKOUT_PRODUCT_NOT_PURCHASABLE: {
|
|
2043
|
+
readonly status: 409;
|
|
2044
|
+
readonly message: "An item in the cart is no longer purchasable.";
|
|
2045
|
+
readonly data: z$2.ZodObject<{
|
|
2046
|
+
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
2047
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
2048
|
+
key: z$2.ZodString;
|
|
2049
|
+
productId: z$2.ZodNumber;
|
|
2050
|
+
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2051
|
+
type: z$2.ZodString;
|
|
2052
|
+
name: z$2.ZodString;
|
|
2053
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
2054
|
+
slug: z$2.ZodString;
|
|
2055
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2056
|
+
shortDescription: z$2.ZodString;
|
|
2057
|
+
description: z$2.ZodString;
|
|
2058
|
+
quantity: z$2.ZodNumber;
|
|
2059
|
+
quantityLimits: z$2.ZodObject<{
|
|
2060
|
+
minimum: z$2.ZodNumber;
|
|
2061
|
+
maximum: z$2.ZodNumber;
|
|
2062
|
+
multipleOf: z$2.ZodNumber;
|
|
2063
|
+
editable: z$2.ZodBoolean;
|
|
2064
|
+
}, z$2.core.$strip>;
|
|
2065
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2066
|
+
allowsBackorders: z$2.ZodBoolean;
|
|
2067
|
+
showsBackorderBadge: z$2.ZodBoolean;
|
|
2068
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
2069
|
+
catalogVisibility: z$2.ZodString;
|
|
2070
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
2071
|
+
id: z$2.ZodNumber;
|
|
2072
|
+
name: z$2.ZodString;
|
|
2073
|
+
src: z$2.ZodString;
|
|
2074
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
2075
|
+
type: z$2.ZodLiteral<"image">;
|
|
2076
|
+
alt: z$2.ZodString;
|
|
2077
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2078
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2079
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
2080
|
+
src: z$2.ZodString;
|
|
2081
|
+
width: z$2.ZodNumber;
|
|
2082
|
+
height: z$2.ZodNumber;
|
|
2083
|
+
}, z$2.core.$strict>>>;
|
|
2084
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
2085
|
+
}, z$2.core.$strict>>;
|
|
2086
|
+
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
2087
|
+
name: z$2.ZodString;
|
|
2088
|
+
attribute: z$2.ZodString;
|
|
2089
|
+
value: z$2.ZodString;
|
|
2090
|
+
}, z$2.core.$strip>>;
|
|
2091
|
+
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
2092
|
+
name: z$2.ZodString;
|
|
2093
|
+
value: z$2.ZodString;
|
|
2094
|
+
display: z$2.ZodNullable<z$2.ZodString>;
|
|
2095
|
+
}, z$2.core.$strip>>;
|
|
2096
|
+
prices: z$2.ZodObject<{
|
|
2097
|
+
price: z$2.ZodNumber;
|
|
2098
|
+
regularPrice: z$2.ZodNumber;
|
|
2099
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2100
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
2101
|
+
minAmount: z$2.ZodNumber;
|
|
2102
|
+
maxAmount: z$2.ZodNumber;
|
|
2103
|
+
}, z$2.core.$strip>>;
|
|
2104
|
+
}, z$2.core.$strip>;
|
|
2105
|
+
totals: z$2.ZodObject<{
|
|
2106
|
+
subtotal: z$2.ZodNumber;
|
|
2107
|
+
subtotalTax: z$2.ZodNumber;
|
|
2108
|
+
total: z$2.ZodNumber;
|
|
2109
|
+
totalTax: z$2.ZodNumber;
|
|
2110
|
+
}, z$2.core.$strip>;
|
|
2111
|
+
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2112
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2113
|
+
}, z$2.core.$strip>>;
|
|
2114
|
+
itemCount: z$2.ZodNumber;
|
|
2115
|
+
itemsWeight: z$2.ZodNumber;
|
|
2116
|
+
billingAddress: z$2.ZodObject<{
|
|
2117
|
+
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
2118
|
+
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
2119
|
+
email: z$2.ZodString;
|
|
2120
|
+
firstName: z$2.ZodString;
|
|
2121
|
+
lastName: z$2.ZodString;
|
|
2122
|
+
company: z$2.ZodString;
|
|
2123
|
+
address1: z$2.ZodString;
|
|
2124
|
+
address2: z$2.ZodString;
|
|
2125
|
+
city: z$2.ZodString;
|
|
2126
|
+
state: z$2.ZodString;
|
|
2127
|
+
postcode: z$2.ZodString;
|
|
2128
|
+
country: z$2.ZodString;
|
|
2129
|
+
phone: z$2.ZodString;
|
|
2130
|
+
}, z$2.core.$strip>;
|
|
2131
|
+
shippingAddress: z$2.ZodObject<{
|
|
2132
|
+
firstName: z$2.ZodString;
|
|
2133
|
+
lastName: z$2.ZodString;
|
|
2134
|
+
company: z$2.ZodString;
|
|
2135
|
+
address1: z$2.ZodString;
|
|
2136
|
+
address2: z$2.ZodString;
|
|
2137
|
+
city: z$2.ZodString;
|
|
2138
|
+
state: z$2.ZodString;
|
|
2139
|
+
postcode: z$2.ZodString;
|
|
2140
|
+
country: z$2.ZodString;
|
|
2141
|
+
phone: z$2.ZodString;
|
|
2142
|
+
additionalFields: z$2.ZodType<{
|
|
2143
|
+
[x: string]: string | boolean | undefined;
|
|
2144
|
+
}, Partial<{
|
|
2145
|
+
[x: string]: string | boolean | undefined;
|
|
2146
|
+
}>, z$2.core.$ZodTypeInternals<{
|
|
2147
|
+
[x: string]: string | boolean | undefined;
|
|
2148
|
+
}, Partial<{
|
|
2149
|
+
[x: string]: string | boolean | undefined;
|
|
2150
|
+
}>>>;
|
|
2151
|
+
}, z$2.core.$strip>;
|
|
2152
|
+
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
2153
|
+
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
2154
|
+
name: z$2.ZodString;
|
|
2155
|
+
destination: z$2.ZodObject<{
|
|
2156
|
+
address1: z$2.ZodString;
|
|
2157
|
+
address2: z$2.ZodString;
|
|
2158
|
+
city: z$2.ZodString;
|
|
2159
|
+
state: z$2.ZodString;
|
|
2160
|
+
postcode: z$2.ZodString;
|
|
2161
|
+
country: z$2.ZodString;
|
|
2162
|
+
}, z$2.core.$strip>;
|
|
2163
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
2164
|
+
key: z$2.ZodString;
|
|
2165
|
+
name: z$2.ZodString;
|
|
2166
|
+
quantity: z$2.ZodNumber;
|
|
2167
|
+
}, z$2.core.$strip>>;
|
|
2168
|
+
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
2169
|
+
id: z$2.ZodString;
|
|
2170
|
+
name: z$2.ZodString;
|
|
2171
|
+
description: z$2.ZodString;
|
|
2172
|
+
deliveryTime: z$2.ZodString;
|
|
2173
|
+
price: z$2.ZodNumber;
|
|
2174
|
+
taxes: z$2.ZodNumber;
|
|
2175
|
+
methodId: z$2.ZodString;
|
|
2176
|
+
instanceId: z$2.ZodNumber;
|
|
2177
|
+
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
2178
|
+
key: z$2.ZodString;
|
|
2179
|
+
value: z$2.ZodString;
|
|
2180
|
+
}, z$2.core.$strip>>;
|
|
2181
|
+
selected: z$2.ZodBoolean;
|
|
2182
|
+
}, z$2.core.$strip>>;
|
|
2183
|
+
}, z$2.core.$strip>>;
|
|
2184
|
+
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
2185
|
+
code: z$2.ZodString;
|
|
2186
|
+
discountType: z$2.ZodString;
|
|
2187
|
+
totals: z$2.ZodObject<{
|
|
2188
|
+
discount: z$2.ZodNumber;
|
|
2189
|
+
discountTax: z$2.ZodNumber;
|
|
2190
|
+
}, z$2.core.$strip>;
|
|
2191
|
+
}, z$2.core.$strip>>;
|
|
2192
|
+
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
2193
|
+
id: z$2.ZodString;
|
|
2194
|
+
name: z$2.ZodString;
|
|
2195
|
+
totals: z$2.ZodObject<{
|
|
2196
|
+
total: z$2.ZodNumber;
|
|
2197
|
+
tax: z$2.ZodNumber;
|
|
2198
|
+
}, z$2.core.$strip>;
|
|
2199
|
+
}, z$2.core.$strip>>;
|
|
2200
|
+
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
2201
|
+
id: z$2.ZodNumber;
|
|
2202
|
+
name: z$2.ZodString;
|
|
2203
|
+
slug: z$2.ZodString;
|
|
2204
|
+
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2205
|
+
type: z$2.ZodString;
|
|
2206
|
+
variationDescription: z$2.ZodString;
|
|
2207
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2208
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
2209
|
+
shortDescription: z$2.ZodString;
|
|
2210
|
+
description: z$2.ZodString;
|
|
2211
|
+
isPasswordProtected: z$2.ZodBoolean;
|
|
2212
|
+
isOnSale: z$2.ZodBoolean;
|
|
2213
|
+
prices: z$2.ZodObject<{
|
|
2214
|
+
price: z$2.ZodNumber;
|
|
2215
|
+
regularPrice: z$2.ZodNumber;
|
|
2216
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2217
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
2218
|
+
minAmount: z$2.ZodNumber;
|
|
2219
|
+
maxAmount: z$2.ZodNumber;
|
|
2220
|
+
}, z$2.core.$strip>>;
|
|
2221
|
+
}, z$2.core.$strip>;
|
|
2222
|
+
currencyFormat: z$2.ZodObject<{
|
|
2223
|
+
currencyCode: z$2.ZodString;
|
|
2224
|
+
currencySymbol: z$2.ZodString;
|
|
2225
|
+
currencyPrefix: z$2.ZodString;
|
|
2226
|
+
currencySuffix: z$2.ZodString;
|
|
2227
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
2228
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
2229
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
2230
|
+
}, z$2.core.$strip>;
|
|
2231
|
+
priceHtml: z$2.ZodString;
|
|
2232
|
+
averageRating: z$2.ZodNumber;
|
|
2233
|
+
reviewCount: z$2.ZodNumber;
|
|
2234
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
2235
|
+
id: z$2.ZodNumber;
|
|
2236
|
+
name: z$2.ZodString;
|
|
2237
|
+
src: z$2.ZodString;
|
|
2238
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
2239
|
+
type: z$2.ZodLiteral<"image">;
|
|
2240
|
+
alt: z$2.ZodString;
|
|
2241
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2242
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2243
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
2244
|
+
src: z$2.ZodString;
|
|
2245
|
+
width: z$2.ZodNumber;
|
|
2246
|
+
height: z$2.ZodNumber;
|
|
2247
|
+
}, z$2.core.$strict>>>;
|
|
2248
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
2249
|
+
}, z$2.core.$strict>>;
|
|
2250
|
+
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
2251
|
+
id: z$2.ZodNumber;
|
|
2252
|
+
name: z$2.ZodString;
|
|
2253
|
+
slug: z$2.ZodString;
|
|
2254
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2255
|
+
}, z$2.core.$strip>>;
|
|
2256
|
+
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
2257
|
+
id: z$2.ZodNumber;
|
|
2258
|
+
name: z$2.ZodString;
|
|
2259
|
+
slug: z$2.ZodString;
|
|
2260
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2261
|
+
}, z$2.core.$strip>>;
|
|
2262
|
+
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
2263
|
+
id: z$2.ZodNumber;
|
|
2264
|
+
name: z$2.ZodString;
|
|
2265
|
+
slug: z$2.ZodString;
|
|
2266
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2267
|
+
}, z$2.core.$strip>>;
|
|
2268
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
2269
|
+
id: z$2.ZodNumber;
|
|
2270
|
+
name: z$2.ZodString;
|
|
2271
|
+
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
2272
|
+
hasVariations: z$2.ZodBoolean;
|
|
2273
|
+
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
2274
|
+
id: z$2.ZodNumber;
|
|
2275
|
+
name: z$2.ZodString;
|
|
2276
|
+
slug: z$2.ZodString;
|
|
2277
|
+
isDefault: z$2.ZodBoolean;
|
|
2278
|
+
}, z$2.core.$strip>>;
|
|
2279
|
+
}, z$2.core.$strip>>;
|
|
2280
|
+
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
2281
|
+
id: z$2.ZodNumber;
|
|
2282
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
2283
|
+
name: z$2.ZodString;
|
|
2284
|
+
value: z$2.ZodNullable<z$2.ZodString>;
|
|
2285
|
+
}, z$2.core.$strip>>;
|
|
2286
|
+
}, z$2.core.$strip>>;
|
|
2287
|
+
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
2288
|
+
hasOptions: z$2.ZodBoolean;
|
|
2289
|
+
isPurchasable: z$2.ZodBoolean;
|
|
2290
|
+
isInStock: z$2.ZodBoolean;
|
|
2291
|
+
isOnBackorder: z$2.ZodBoolean;
|
|
2292
|
+
stockAvailability: z$2.ZodObject<{
|
|
2293
|
+
text: z$2.ZodString;
|
|
2294
|
+
class: z$2.ZodString;
|
|
2295
|
+
}, z$2.core.$strip>;
|
|
2296
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2297
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
2298
|
+
addToCart: z$2.ZodObject<{
|
|
2299
|
+
text: z$2.ZodString;
|
|
2300
|
+
description: z$2.ZodString;
|
|
2301
|
+
singleText: z$2.ZodString;
|
|
2302
|
+
minimum: z$2.ZodNumber;
|
|
2303
|
+
maximum: z$2.ZodNumber;
|
|
2304
|
+
multipleOf: z$2.ZodNumber;
|
|
2305
|
+
}, z$2.core.$strip>;
|
|
2306
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2307
|
+
}, z$2.core.$strip>>;
|
|
2308
|
+
needsPayment: z$2.ZodBoolean;
|
|
2309
|
+
needsShipping: z$2.ZodBoolean;
|
|
2310
|
+
hasCalculatedShipping: z$2.ZodBoolean;
|
|
2311
|
+
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
2312
|
+
id: z$2.ZodString;
|
|
2313
|
+
title: z$2.ZodString;
|
|
2314
|
+
description: z$2.ZodString;
|
|
2315
|
+
order: z$2.ZodNumber;
|
|
2316
|
+
enabled: z$2.ZodBoolean;
|
|
2317
|
+
}, z$2.core.$strip>>;
|
|
2318
|
+
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
2319
|
+
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
2320
|
+
code: z$2.ZodString;
|
|
2321
|
+
message: z$2.ZodString;
|
|
2322
|
+
}, z$2.core.$strip>>;
|
|
2323
|
+
totals: z$2.ZodObject<{
|
|
2324
|
+
itemsTotal: z$2.ZodNumber;
|
|
2325
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
2326
|
+
feesTotal: z$2.ZodNumber;
|
|
2327
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
2328
|
+
discountTotal: z$2.ZodNumber;
|
|
2329
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
2330
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2331
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2332
|
+
total: z$2.ZodNumber;
|
|
2333
|
+
taxTotal: z$2.ZodNumber;
|
|
2334
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
2335
|
+
name: z$2.ZodString;
|
|
2336
|
+
price: z$2.ZodNumber;
|
|
2337
|
+
rate: z$2.ZodString;
|
|
2338
|
+
}, z$2.core.$strip>>;
|
|
2339
|
+
}, z$2.core.$strip>;
|
|
2340
|
+
currencyFormat: z$2.ZodObject<{
|
|
2341
|
+
currencyCode: z$2.ZodString;
|
|
2342
|
+
currencySymbol: z$2.ZodString;
|
|
2343
|
+
currencyPrefix: z$2.ZodString;
|
|
2344
|
+
currencySuffix: z$2.ZodString;
|
|
2345
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
2346
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
2347
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
2348
|
+
}, z$2.core.$strip>;
|
|
2349
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2350
|
+
}, z$2.core.$strip>>;
|
|
2351
|
+
}, z$2.core.$strip>;
|
|
2352
|
+
};
|
|
2353
|
+
readonly CHECKOUT_PRODUCT_OUT_OF_STOCK: {
|
|
2354
|
+
readonly status: 409;
|
|
2355
|
+
readonly message: "An item in the cart is out of stock.";
|
|
2356
|
+
readonly data: z$2.ZodObject<{
|
|
2357
|
+
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
2358
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
2359
|
+
key: z$2.ZodString;
|
|
2360
|
+
productId: z$2.ZodNumber;
|
|
2361
|
+
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2362
|
+
type: z$2.ZodString;
|
|
2363
|
+
name: z$2.ZodString;
|
|
2364
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
2365
|
+
slug: z$2.ZodString;
|
|
2366
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2367
|
+
shortDescription: z$2.ZodString;
|
|
2368
|
+
description: z$2.ZodString;
|
|
2369
|
+
quantity: z$2.ZodNumber;
|
|
2370
|
+
quantityLimits: z$2.ZodObject<{
|
|
2371
|
+
minimum: z$2.ZodNumber;
|
|
2372
|
+
maximum: z$2.ZodNumber;
|
|
2373
|
+
multipleOf: z$2.ZodNumber;
|
|
2374
|
+
editable: z$2.ZodBoolean;
|
|
2375
|
+
}, z$2.core.$strip>;
|
|
2376
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2377
|
+
allowsBackorders: z$2.ZodBoolean;
|
|
2378
|
+
showsBackorderBadge: z$2.ZodBoolean;
|
|
2379
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
2380
|
+
catalogVisibility: z$2.ZodString;
|
|
2381
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
2382
|
+
id: z$2.ZodNumber;
|
|
2383
|
+
name: z$2.ZodString;
|
|
2384
|
+
src: z$2.ZodString;
|
|
2385
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
2386
|
+
type: z$2.ZodLiteral<"image">;
|
|
2387
|
+
alt: z$2.ZodString;
|
|
2388
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2389
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2390
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
2391
|
+
src: z$2.ZodString;
|
|
2392
|
+
width: z$2.ZodNumber;
|
|
2393
|
+
height: z$2.ZodNumber;
|
|
2394
|
+
}, z$2.core.$strict>>>;
|
|
2395
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
2396
|
+
}, z$2.core.$strict>>;
|
|
2397
|
+
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
2398
|
+
name: z$2.ZodString;
|
|
2399
|
+
attribute: z$2.ZodString;
|
|
2400
|
+
value: z$2.ZodString;
|
|
2401
|
+
}, z$2.core.$strip>>;
|
|
2402
|
+
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
2403
|
+
name: z$2.ZodString;
|
|
2404
|
+
value: z$2.ZodString;
|
|
2405
|
+
display: z$2.ZodNullable<z$2.ZodString>;
|
|
2406
|
+
}, z$2.core.$strip>>;
|
|
2407
|
+
prices: z$2.ZodObject<{
|
|
2408
|
+
price: z$2.ZodNumber;
|
|
2409
|
+
regularPrice: z$2.ZodNumber;
|
|
2410
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2411
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
2412
|
+
minAmount: z$2.ZodNumber;
|
|
2413
|
+
maxAmount: z$2.ZodNumber;
|
|
2414
|
+
}, z$2.core.$strip>>;
|
|
2415
|
+
}, z$2.core.$strip>;
|
|
2416
|
+
totals: z$2.ZodObject<{
|
|
2417
|
+
subtotal: z$2.ZodNumber;
|
|
2418
|
+
subtotalTax: z$2.ZodNumber;
|
|
2419
|
+
total: z$2.ZodNumber;
|
|
2420
|
+
totalTax: z$2.ZodNumber;
|
|
2421
|
+
}, z$2.core.$strip>;
|
|
2422
|
+
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
2423
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2424
|
+
}, z$2.core.$strip>>;
|
|
2425
|
+
itemCount: z$2.ZodNumber;
|
|
2426
|
+
itemsWeight: z$2.ZodNumber;
|
|
2427
|
+
billingAddress: z$2.ZodObject<{
|
|
2428
|
+
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
2429
|
+
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
2430
|
+
email: z$2.ZodString;
|
|
2431
|
+
firstName: z$2.ZodString;
|
|
2432
|
+
lastName: z$2.ZodString;
|
|
2433
|
+
company: z$2.ZodString;
|
|
2434
|
+
address1: z$2.ZodString;
|
|
2435
|
+
address2: z$2.ZodString;
|
|
2436
|
+
city: z$2.ZodString;
|
|
2437
|
+
state: z$2.ZodString;
|
|
2438
|
+
postcode: z$2.ZodString;
|
|
2439
|
+
country: z$2.ZodString;
|
|
2440
|
+
phone: z$2.ZodString;
|
|
2441
|
+
}, z$2.core.$strip>;
|
|
2442
|
+
shippingAddress: z$2.ZodObject<{
|
|
2443
|
+
firstName: z$2.ZodString;
|
|
2444
|
+
lastName: z$2.ZodString;
|
|
2445
|
+
company: z$2.ZodString;
|
|
2446
|
+
address1: z$2.ZodString;
|
|
2447
|
+
address2: z$2.ZodString;
|
|
2448
|
+
city: z$2.ZodString;
|
|
2449
|
+
state: z$2.ZodString;
|
|
2450
|
+
postcode: z$2.ZodString;
|
|
2451
|
+
country: z$2.ZodString;
|
|
2452
|
+
phone: z$2.ZodString;
|
|
2453
|
+
additionalFields: z$2.ZodType<{
|
|
2454
|
+
[x: string]: string | boolean | undefined;
|
|
2455
|
+
}, Partial<{
|
|
2456
|
+
[x: string]: string | boolean | undefined;
|
|
2457
|
+
}>, z$2.core.$ZodTypeInternals<{
|
|
2458
|
+
[x: string]: string | boolean | undefined;
|
|
2459
|
+
}, Partial<{
|
|
2460
|
+
[x: string]: string | boolean | undefined;
|
|
2461
|
+
}>>>;
|
|
2462
|
+
}, z$2.core.$strip>;
|
|
2463
|
+
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
2464
|
+
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
2465
|
+
name: z$2.ZodString;
|
|
2466
|
+
destination: z$2.ZodObject<{
|
|
2467
|
+
address1: z$2.ZodString;
|
|
2468
|
+
address2: z$2.ZodString;
|
|
2469
|
+
city: z$2.ZodString;
|
|
2470
|
+
state: z$2.ZodString;
|
|
2471
|
+
postcode: z$2.ZodString;
|
|
2472
|
+
country: z$2.ZodString;
|
|
2473
|
+
}, z$2.core.$strip>;
|
|
2474
|
+
items: z$2.ZodArray<z$2.ZodObject<{
|
|
2475
|
+
key: z$2.ZodString;
|
|
2476
|
+
name: z$2.ZodString;
|
|
2477
|
+
quantity: z$2.ZodNumber;
|
|
2478
|
+
}, z$2.core.$strip>>;
|
|
2479
|
+
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
2480
|
+
id: z$2.ZodString;
|
|
2481
|
+
name: z$2.ZodString;
|
|
2482
|
+
description: z$2.ZodString;
|
|
2483
|
+
deliveryTime: z$2.ZodString;
|
|
2484
|
+
price: z$2.ZodNumber;
|
|
2485
|
+
taxes: z$2.ZodNumber;
|
|
2486
|
+
methodId: z$2.ZodString;
|
|
2487
|
+
instanceId: z$2.ZodNumber;
|
|
2488
|
+
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
2489
|
+
key: z$2.ZodString;
|
|
2490
|
+
value: z$2.ZodString;
|
|
2491
|
+
}, z$2.core.$strip>>;
|
|
2492
|
+
selected: z$2.ZodBoolean;
|
|
2493
|
+
}, z$2.core.$strip>>;
|
|
2494
|
+
}, z$2.core.$strip>>;
|
|
2495
|
+
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
2496
|
+
code: z$2.ZodString;
|
|
2497
|
+
discountType: z$2.ZodString;
|
|
2498
|
+
totals: z$2.ZodObject<{
|
|
2499
|
+
discount: z$2.ZodNumber;
|
|
2500
|
+
discountTax: z$2.ZodNumber;
|
|
2501
|
+
}, z$2.core.$strip>;
|
|
2502
|
+
}, z$2.core.$strip>>;
|
|
2503
|
+
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
2504
|
+
id: z$2.ZodString;
|
|
2505
|
+
name: z$2.ZodString;
|
|
2506
|
+
totals: z$2.ZodObject<{
|
|
2507
|
+
total: z$2.ZodNumber;
|
|
2508
|
+
tax: z$2.ZodNumber;
|
|
2509
|
+
}, z$2.core.$strip>;
|
|
2510
|
+
}, z$2.core.$strip>>;
|
|
2511
|
+
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
2512
|
+
id: z$2.ZodNumber;
|
|
2513
|
+
name: z$2.ZodString;
|
|
2514
|
+
slug: z$2.ZodString;
|
|
2515
|
+
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2516
|
+
type: z$2.ZodString;
|
|
2517
|
+
variationDescription: z$2.ZodString;
|
|
2518
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2519
|
+
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
2520
|
+
shortDescription: z$2.ZodString;
|
|
2521
|
+
description: z$2.ZodString;
|
|
2522
|
+
isPasswordProtected: z$2.ZodBoolean;
|
|
2523
|
+
isOnSale: z$2.ZodBoolean;
|
|
2524
|
+
prices: z$2.ZodObject<{
|
|
2525
|
+
price: z$2.ZodNumber;
|
|
2526
|
+
regularPrice: z$2.ZodNumber;
|
|
2527
|
+
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2528
|
+
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
2529
|
+
minAmount: z$2.ZodNumber;
|
|
2530
|
+
maxAmount: z$2.ZodNumber;
|
|
2531
|
+
}, z$2.core.$strip>>;
|
|
2532
|
+
}, z$2.core.$strip>;
|
|
2533
|
+
currencyFormat: z$2.ZodObject<{
|
|
2534
|
+
currencyCode: z$2.ZodString;
|
|
2535
|
+
currencySymbol: z$2.ZodString;
|
|
2536
|
+
currencyPrefix: z$2.ZodString;
|
|
2537
|
+
currencySuffix: z$2.ZodString;
|
|
2538
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
2539
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
2540
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
2541
|
+
}, z$2.core.$strip>;
|
|
2542
|
+
priceHtml: z$2.ZodString;
|
|
2543
|
+
averageRating: z$2.ZodNumber;
|
|
2544
|
+
reviewCount: z$2.ZodNumber;
|
|
2545
|
+
images: z$2.ZodArray<z$2.ZodObject<{
|
|
2546
|
+
id: z$2.ZodNumber;
|
|
2547
|
+
name: z$2.ZodString;
|
|
2548
|
+
src: z$2.ZodString;
|
|
2549
|
+
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
2550
|
+
type: z$2.ZodLiteral<"image">;
|
|
2551
|
+
alt: z$2.ZodString;
|
|
2552
|
+
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2553
|
+
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
2554
|
+
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
2555
|
+
src: z$2.ZodString;
|
|
2556
|
+
width: z$2.ZodNumber;
|
|
2557
|
+
height: z$2.ZodNumber;
|
|
2558
|
+
}, z$2.core.$strict>>>;
|
|
2559
|
+
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
2560
|
+
}, z$2.core.$strict>>;
|
|
2561
|
+
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
2562
|
+
id: z$2.ZodNumber;
|
|
2563
|
+
name: z$2.ZodString;
|
|
2564
|
+
slug: z$2.ZodString;
|
|
2565
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2566
|
+
}, z$2.core.$strip>>;
|
|
2567
|
+
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
2568
|
+
id: z$2.ZodNumber;
|
|
2569
|
+
name: z$2.ZodString;
|
|
2570
|
+
slug: z$2.ZodString;
|
|
2571
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2572
|
+
}, z$2.core.$strip>>;
|
|
2573
|
+
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
2574
|
+
id: z$2.ZodNumber;
|
|
2575
|
+
name: z$2.ZodString;
|
|
2576
|
+
slug: z$2.ZodString;
|
|
2577
|
+
url: z$2.ZodNullable<z$2.ZodString>;
|
|
2578
|
+
}, z$2.core.$strip>>;
|
|
2579
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
2580
|
+
id: z$2.ZodNumber;
|
|
2581
|
+
name: z$2.ZodString;
|
|
2582
|
+
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
2583
|
+
hasVariations: z$2.ZodBoolean;
|
|
2584
|
+
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
2585
|
+
id: z$2.ZodNumber;
|
|
2586
|
+
name: z$2.ZodString;
|
|
2587
|
+
slug: z$2.ZodString;
|
|
2588
|
+
isDefault: z$2.ZodBoolean;
|
|
2589
|
+
}, z$2.core.$strip>>;
|
|
2590
|
+
}, z$2.core.$strip>>;
|
|
2591
|
+
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
2592
|
+
id: z$2.ZodNumber;
|
|
2593
|
+
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
2594
|
+
name: z$2.ZodString;
|
|
2595
|
+
value: z$2.ZodNullable<z$2.ZodString>;
|
|
2596
|
+
}, z$2.core.$strip>>;
|
|
2597
|
+
}, z$2.core.$strip>>;
|
|
2598
|
+
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
2599
|
+
hasOptions: z$2.ZodBoolean;
|
|
2600
|
+
isPurchasable: z$2.ZodBoolean;
|
|
2601
|
+
isInStock: z$2.ZodBoolean;
|
|
2602
|
+
isOnBackorder: z$2.ZodBoolean;
|
|
2603
|
+
stockAvailability: z$2.ZodObject<{
|
|
2604
|
+
text: z$2.ZodString;
|
|
2605
|
+
class: z$2.ZodString;
|
|
2606
|
+
}, z$2.core.$strip>;
|
|
2607
|
+
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2608
|
+
isSoldIndividually: z$2.ZodBoolean;
|
|
2609
|
+
addToCart: z$2.ZodObject<{
|
|
2610
|
+
text: z$2.ZodString;
|
|
2611
|
+
description: z$2.ZodString;
|
|
2612
|
+
singleText: z$2.ZodString;
|
|
2613
|
+
minimum: z$2.ZodNumber;
|
|
2614
|
+
maximum: z$2.ZodNumber;
|
|
2615
|
+
multipleOf: z$2.ZodNumber;
|
|
2616
|
+
}, z$2.core.$strip>;
|
|
2617
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2618
|
+
}, z$2.core.$strip>>;
|
|
2619
|
+
needsPayment: z$2.ZodBoolean;
|
|
2620
|
+
needsShipping: z$2.ZodBoolean;
|
|
2621
|
+
hasCalculatedShipping: z$2.ZodBoolean;
|
|
2622
|
+
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
2623
|
+
id: z$2.ZodString;
|
|
2624
|
+
title: z$2.ZodString;
|
|
2625
|
+
description: z$2.ZodString;
|
|
2626
|
+
order: z$2.ZodNumber;
|
|
2627
|
+
enabled: z$2.ZodBoolean;
|
|
2628
|
+
}, z$2.core.$strip>>;
|
|
2629
|
+
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
2630
|
+
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
2631
|
+
code: z$2.ZodString;
|
|
2632
|
+
message: z$2.ZodString;
|
|
2633
|
+
}, z$2.core.$strip>>;
|
|
2634
|
+
totals: z$2.ZodObject<{
|
|
2635
|
+
itemsTotal: z$2.ZodNumber;
|
|
2636
|
+
itemsTaxTotal: z$2.ZodNumber;
|
|
2637
|
+
feesTotal: z$2.ZodNumber;
|
|
2638
|
+
feesTaxTotal: z$2.ZodNumber;
|
|
2639
|
+
discountTotal: z$2.ZodNumber;
|
|
2640
|
+
discountTaxTotal: z$2.ZodNumber;
|
|
2641
|
+
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2642
|
+
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
2643
|
+
total: z$2.ZodNumber;
|
|
2644
|
+
taxTotal: z$2.ZodNumber;
|
|
2645
|
+
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
2646
|
+
name: z$2.ZodString;
|
|
2647
|
+
price: z$2.ZodNumber;
|
|
2648
|
+
rate: z$2.ZodString;
|
|
2649
|
+
}, z$2.core.$strip>>;
|
|
2650
|
+
}, z$2.core.$strip>;
|
|
2651
|
+
currencyFormat: z$2.ZodObject<{
|
|
2652
|
+
currencyCode: z$2.ZodString;
|
|
2653
|
+
currencySymbol: z$2.ZodString;
|
|
2654
|
+
currencyPrefix: z$2.ZodString;
|
|
2655
|
+
currencySuffix: z$2.ZodString;
|
|
2656
|
+
currencyMinorUnit: z$2.ZodNumber;
|
|
2657
|
+
currencyDecimalSeparator: z$2.ZodString;
|
|
2658
|
+
currencyThousandSeparator: z$2.ZodString;
|
|
2659
|
+
}, z$2.core.$strip>;
|
|
2660
|
+
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
2661
|
+
}, z$2.core.$strip>>;
|
|
2662
|
+
}, z$2.core.$strip>;
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
declare const RETRY_CHECKOUT_ERROR_MAP: {
|
|
2666
|
+
readonly CHECKOUT_EMAIL_INVALID: {
|
|
2667
|
+
readonly status: 400;
|
|
2668
|
+
readonly message: "The billing email is invalid.";
|
|
2669
|
+
};
|
|
2670
|
+
readonly CHECKOUT_PAYMENT_FAILED: {
|
|
2671
|
+
readonly status: 400;
|
|
2672
|
+
readonly message: "Payment could not be processed.";
|
|
2673
|
+
};
|
|
2674
|
+
readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
|
|
2675
|
+
readonly status: 400;
|
|
2676
|
+
readonly message: "The selected payment method is not available.";
|
|
2677
|
+
};
|
|
2678
|
+
readonly CHECKOUT_PAYMENT_METHOD_MISSING: {
|
|
2679
|
+
readonly status: 400;
|
|
2680
|
+
readonly message: "A payment method is required.";
|
|
2681
|
+
};
|
|
2682
|
+
readonly CHECKOUT_VALIDATION_FAILED: {
|
|
2683
|
+
readonly status: 400;
|
|
2684
|
+
readonly message: "Checkout validation failed.";
|
|
2685
|
+
readonly data: z$2.ZodObject<{
|
|
2686
|
+
issues: z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2687
|
+
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2688
|
+
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2689
|
+
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2690
|
+
message: z$2.ZodString;
|
|
2691
|
+
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2692
|
+
id: z$2.ZodString;
|
|
2693
|
+
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2694
|
+
billingAddress: "billingAddress";
|
|
2695
|
+
shippingAddress: "shippingAddress";
|
|
2696
|
+
additionalFields: "additionalFields";
|
|
2697
|
+
}>>;
|
|
2698
|
+
}, z$2.core.$strip>>;
|
|
2699
|
+
scope: z$2.ZodLiteral<"field">;
|
|
2700
|
+
target: z$2.ZodArray<z$2.ZodString>;
|
|
2701
|
+
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
2702
|
+
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2703
|
+
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2704
|
+
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2705
|
+
message: z$2.ZodString;
|
|
2706
|
+
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2707
|
+
id: z$2.ZodString;
|
|
2708
|
+
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2709
|
+
billingAddress: "billingAddress";
|
|
2710
|
+
shippingAddress: "shippingAddress";
|
|
2711
|
+
additionalFields: "additionalFields";
|
|
2712
|
+
}>>;
|
|
2713
|
+
}, z$2.core.$strip>>;
|
|
2714
|
+
scope: z$2.ZodLiteral<"group">;
|
|
2715
|
+
target: z$2.ZodArray<z$2.ZodString>;
|
|
2716
|
+
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
2717
|
+
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2718
|
+
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2719
|
+
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2720
|
+
message: z$2.ZodString;
|
|
2721
|
+
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2722
|
+
id: z$2.ZodString;
|
|
2723
|
+
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2724
|
+
billingAddress: "billingAddress";
|
|
2725
|
+
shippingAddress: "shippingAddress";
|
|
2726
|
+
additionalFields: "additionalFields";
|
|
2727
|
+
}>>;
|
|
2728
|
+
}, z$2.core.$strip>>;
|
|
2729
|
+
scope: z$2.ZodLiteral<"unresolved">;
|
|
2730
|
+
target: z$2.ZodNull;
|
|
2731
|
+
}, z$2.core.$strip>], "scope">>;
|
|
2732
|
+
}, z$2.core.$strict>;
|
|
2733
|
+
};
|
|
2734
|
+
readonly CHECKOUT_PAYMENT_RESULT_INVALID: {
|
|
2735
|
+
readonly status: 500;
|
|
2736
|
+
readonly message: "The payment gateway returned an invalid result.";
|
|
2737
|
+
};
|
|
2738
|
+
readonly CHECKOUT_ORDER_FORBIDDEN: {
|
|
2739
|
+
readonly status: 403;
|
|
2740
|
+
readonly message: "You are not allowed to pay for this order.";
|
|
2741
|
+
};
|
|
2742
|
+
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
2743
|
+
readonly status: 404;
|
|
2744
|
+
readonly message: "Order not found.";
|
|
2745
|
+
};
|
|
2746
|
+
readonly CHECKOUT_ORDER_STATUS_INVALID: {
|
|
2747
|
+
readonly status: 409;
|
|
2748
|
+
readonly message: "This order is not in a state that can be paid.";
|
|
2749
|
+
};
|
|
2750
|
+
};
|
|
2751
|
+
declare const UPDATE_CHECKOUT_ERROR_MAP: {
|
|
2752
|
+
readonly CHECKOUT_COUPON_INVALID: {
|
|
2753
|
+
readonly status: 400;
|
|
2754
|
+
readonly message: "A coupon on the cart is no longer valid.";
|
|
2755
|
+
};
|
|
2756
|
+
readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
|
|
2757
|
+
readonly status: 400;
|
|
2758
|
+
readonly message: "The selected payment method is not available.";
|
|
2759
|
+
};
|
|
2760
|
+
readonly CHECKOUT_VALIDATION_FAILED: {
|
|
2761
|
+
readonly status: 400;
|
|
2762
|
+
readonly message: "Checkout validation failed.";
|
|
2763
|
+
readonly data: z$2.ZodObject<{
|
|
2764
|
+
issues: z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2765
|
+
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2766
|
+
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2767
|
+
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2768
|
+
message: z$2.ZodString;
|
|
2769
|
+
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2770
|
+
id: z$2.ZodString;
|
|
2771
|
+
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2772
|
+
billingAddress: "billingAddress";
|
|
2773
|
+
shippingAddress: "shippingAddress";
|
|
2774
|
+
additionalFields: "additionalFields";
|
|
2775
|
+
}>>;
|
|
2776
|
+
}, z$2.core.$strip>>;
|
|
2777
|
+
scope: z$2.ZodLiteral<"field">;
|
|
2778
|
+
target: z$2.ZodArray<z$2.ZodString>;
|
|
2779
|
+
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
2780
|
+
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2781
|
+
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2782
|
+
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2783
|
+
message: z$2.ZodString;
|
|
2784
|
+
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2785
|
+
id: z$2.ZodString;
|
|
2786
|
+
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2787
|
+
billingAddress: "billingAddress";
|
|
2788
|
+
shippingAddress: "shippingAddress";
|
|
2789
|
+
additionalFields: "additionalFields";
|
|
2790
|
+
}>>;
|
|
2791
|
+
}, z$2.core.$strip>>;
|
|
2792
|
+
scope: z$2.ZodLiteral<"group">;
|
|
2793
|
+
target: z$2.ZodArray<z$2.ZodString>;
|
|
2794
|
+
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
2795
|
+
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2796
|
+
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2797
|
+
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2798
|
+
message: z$2.ZodString;
|
|
2799
|
+
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2800
|
+
id: z$2.ZodString;
|
|
2801
|
+
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2802
|
+
billingAddress: "billingAddress";
|
|
2803
|
+
shippingAddress: "shippingAddress";
|
|
2804
|
+
additionalFields: "additionalFields";
|
|
2805
|
+
}>>;
|
|
2806
|
+
}, z$2.core.$strip>>;
|
|
2807
|
+
scope: z$2.ZodLiteral<"unresolved">;
|
|
2808
|
+
target: z$2.ZodNull;
|
|
2809
|
+
}, z$2.core.$strip>], "scope">>;
|
|
2810
|
+
}, z$2.core.$strict>;
|
|
791
2811
|
};
|
|
792
|
-
readonly
|
|
2812
|
+
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
2813
|
+
readonly status: 404;
|
|
2814
|
+
readonly message: "No checkout order found.";
|
|
2815
|
+
};
|
|
2816
|
+
readonly CHECKOUT_CART_EMPTY: {
|
|
793
2817
|
readonly status: 409;
|
|
794
|
-
readonly message: "
|
|
2818
|
+
readonly message: "The cart is empty.";
|
|
795
2819
|
readonly data: z$2.ZodObject<{
|
|
796
2820
|
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
797
2821
|
items: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -1100,9 +3124,9 @@ declare const CONFIRM_CHECKOUT_ERROR_MAP: {
|
|
|
1100
3124
|
}, z$2.core.$strip>>;
|
|
1101
3125
|
}, z$2.core.$strip>;
|
|
1102
3126
|
};
|
|
1103
|
-
readonly
|
|
3127
|
+
readonly CHECKOUT_CART_INVALID: {
|
|
1104
3128
|
readonly status: 409;
|
|
1105
|
-
readonly message: "
|
|
3129
|
+
readonly message: "An item in the cart is no longer valid.";
|
|
1106
3130
|
readonly data: z$2.ZodObject<{
|
|
1107
3131
|
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
1108
3132
|
items: z$2.ZodArray<z$2.ZodObject<{
|
|
@@ -2345,92 +4369,6 @@ declare const CONFIRM_CHECKOUT_ERROR_MAP: {
|
|
|
2345
4369
|
}, z$2.core.$strip>;
|
|
2346
4370
|
};
|
|
2347
4371
|
};
|
|
2348
|
-
declare const RETRY_CHECKOUT_ERROR_MAP: {
|
|
2349
|
-
readonly CHECKOUT_EMAIL_INVALID: {
|
|
2350
|
-
readonly status: 400;
|
|
2351
|
-
readonly message: "The billing email is invalid.";
|
|
2352
|
-
};
|
|
2353
|
-
readonly CHECKOUT_PAYMENT_FAILED: {
|
|
2354
|
-
readonly status: 400;
|
|
2355
|
-
readonly message: "Payment could not be processed.";
|
|
2356
|
-
};
|
|
2357
|
-
readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
|
|
2358
|
-
readonly status: 400;
|
|
2359
|
-
readonly message: "The selected payment method is not available.";
|
|
2360
|
-
};
|
|
2361
|
-
readonly CHECKOUT_PAYMENT_METHOD_MISSING: {
|
|
2362
|
-
readonly status: 400;
|
|
2363
|
-
readonly message: "A payment method is required.";
|
|
2364
|
-
};
|
|
2365
|
-
readonly CHECKOUT_VALIDATION_FAILED: {
|
|
2366
|
-
readonly status: 400;
|
|
2367
|
-
readonly message: "Checkout validation failed.";
|
|
2368
|
-
readonly data: z$2.ZodObject<{
|
|
2369
|
-
issues: z$2.ZodArray<z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
|
|
2370
|
-
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2371
|
-
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2372
|
-
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2373
|
-
message: z$2.ZodString;
|
|
2374
|
-
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2375
|
-
id: z$2.ZodString;
|
|
2376
|
-
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2377
|
-
billingAddress: "billingAddress";
|
|
2378
|
-
shippingAddress: "shippingAddress";
|
|
2379
|
-
additionalFields: "additionalFields";
|
|
2380
|
-
}>>;
|
|
2381
|
-
}, z$2.core.$strip>>;
|
|
2382
|
-
scope: z$2.ZodLiteral<"field">;
|
|
2383
|
-
target: z$2.ZodArray<z$2.ZodString>;
|
|
2384
|
-
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
2385
|
-
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2386
|
-
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2387
|
-
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2388
|
-
message: z$2.ZodString;
|
|
2389
|
-
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2390
|
-
id: z$2.ZodString;
|
|
2391
|
-
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2392
|
-
billingAddress: "billingAddress";
|
|
2393
|
-
shippingAddress: "shippingAddress";
|
|
2394
|
-
additionalFields: "additionalFields";
|
|
2395
|
-
}>>;
|
|
2396
|
-
}, z$2.core.$strip>>;
|
|
2397
|
-
scope: z$2.ZodLiteral<"group">;
|
|
2398
|
-
target: z$2.ZodArray<z$2.ZodString>;
|
|
2399
|
-
}, z$2.core.$strip>, z$2.ZodObject<{
|
|
2400
|
-
source: z$2.ZodNullable<z$2.ZodString>;
|
|
2401
|
-
sourcePath: z$2.ZodArray<z$2.ZodString>;
|
|
2402
|
-
code: z$2.ZodNullable<z$2.ZodString>;
|
|
2403
|
-
message: z$2.ZodString;
|
|
2404
|
-
registeredFields: z$2.ZodArray<z$2.ZodObject<{
|
|
2405
|
-
id: z$2.ZodString;
|
|
2406
|
-
bucket: z$2.ZodNullable<z$2.ZodEnum<{
|
|
2407
|
-
billingAddress: "billingAddress";
|
|
2408
|
-
shippingAddress: "shippingAddress";
|
|
2409
|
-
additionalFields: "additionalFields";
|
|
2410
|
-
}>>;
|
|
2411
|
-
}, z$2.core.$strip>>;
|
|
2412
|
-
scope: z$2.ZodLiteral<"unresolved">;
|
|
2413
|
-
target: z$2.ZodNull;
|
|
2414
|
-
}, z$2.core.$strip>], "scope">>;
|
|
2415
|
-
}, z$2.core.$strict>;
|
|
2416
|
-
};
|
|
2417
|
-
readonly CHECKOUT_PAYMENT_RESULT_INVALID: {
|
|
2418
|
-
readonly status: 500;
|
|
2419
|
-
readonly message: "The payment gateway returned an invalid result.";
|
|
2420
|
-
};
|
|
2421
|
-
readonly CHECKOUT_ORDER_FORBIDDEN: {
|
|
2422
|
-
readonly status: 403;
|
|
2423
|
-
readonly message: "You are not allowed to pay for this order.";
|
|
2424
|
-
};
|
|
2425
|
-
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
2426
|
-
readonly status: 404;
|
|
2427
|
-
readonly message: "Order not found.";
|
|
2428
|
-
};
|
|
2429
|
-
readonly CHECKOUT_ORDER_STATUS_INVALID: {
|
|
2430
|
-
readonly status: 409;
|
|
2431
|
-
readonly message: "This order is not in a state that can be paid.";
|
|
2432
|
-
};
|
|
2433
|
-
};
|
|
2434
4372
|
//#endregion
|
|
2435
4373
|
//#region src/schema.d.ts
|
|
2436
4374
|
declare const ShippingAddress: z$1.ZodObject<{
|
|
@@ -3374,318 +5312,12 @@ declare const Checkout: z$2.ZodObject<{
|
|
|
3374
5312
|
}, Partial<{
|
|
3375
5313
|
[x: string]: string | boolean | undefined;
|
|
3376
5314
|
}>>>;
|
|
3377
|
-
cart: z$2.ZodNullable<z$2.ZodObject<{
|
|
3378
|
-
items: z$2.ZodArray<z$2.ZodObject<{
|
|
3379
|
-
key: z$2.ZodString;
|
|
3380
|
-
productId: z$2.ZodNumber;
|
|
3381
|
-
variationId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3382
|
-
type: z$2.ZodString;
|
|
3383
|
-
name: z$2.ZodString;
|
|
3384
|
-
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
3385
|
-
slug: z$2.ZodString;
|
|
3386
|
-
url: z$2.ZodNullable<z$2.ZodString>;
|
|
3387
|
-
shortDescription: z$2.ZodString;
|
|
3388
|
-
description: z$2.ZodString;
|
|
3389
|
-
quantity: z$2.ZodNumber;
|
|
3390
|
-
quantityLimits: z$2.ZodObject<{
|
|
3391
|
-
minimum: z$2.ZodNumber;
|
|
3392
|
-
maximum: z$2.ZodNumber;
|
|
3393
|
-
multipleOf: z$2.ZodNumber;
|
|
3394
|
-
editable: z$2.ZodBoolean;
|
|
3395
|
-
}, z$2.core.$strip>;
|
|
3396
|
-
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3397
|
-
allowsBackorders: z$2.ZodBoolean;
|
|
3398
|
-
showsBackorderBadge: z$2.ZodBoolean;
|
|
3399
|
-
isSoldIndividually: z$2.ZodBoolean;
|
|
3400
|
-
catalogVisibility: z$2.ZodString;
|
|
3401
|
-
images: z$2.ZodArray<z$2.ZodObject<{
|
|
3402
|
-
id: z$2.ZodNumber;
|
|
3403
|
-
name: z$2.ZodString;
|
|
3404
|
-
src: z$2.ZodString;
|
|
3405
|
-
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
3406
|
-
type: z$2.ZodLiteral<"image">;
|
|
3407
|
-
alt: z$2.ZodString;
|
|
3408
|
-
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3409
|
-
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3410
|
-
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
3411
|
-
src: z$2.ZodString;
|
|
3412
|
-
width: z$2.ZodNumber;
|
|
3413
|
-
height: z$2.ZodNumber;
|
|
3414
|
-
}, z$2.core.$strict>>>;
|
|
3415
|
-
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
3416
|
-
}, z$2.core.$strict>>;
|
|
3417
|
-
selectedAttributes: z$2.ZodArray<z$2.ZodObject<{
|
|
3418
|
-
name: z$2.ZodString;
|
|
3419
|
-
attribute: z$2.ZodString;
|
|
3420
|
-
value: z$2.ZodString;
|
|
3421
|
-
}, z$2.core.$strip>>;
|
|
3422
|
-
itemData: z$2.ZodArray<z$2.ZodObject<{
|
|
3423
|
-
name: z$2.ZodString;
|
|
3424
|
-
value: z$2.ZodString;
|
|
3425
|
-
display: z$2.ZodNullable<z$2.ZodString>;
|
|
3426
|
-
}, z$2.core.$strip>>;
|
|
3427
|
-
prices: z$2.ZodObject<{
|
|
3428
|
-
price: z$2.ZodNumber;
|
|
3429
|
-
regularPrice: z$2.ZodNumber;
|
|
3430
|
-
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3431
|
-
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
3432
|
-
minAmount: z$2.ZodNumber;
|
|
3433
|
-
maxAmount: z$2.ZodNumber;
|
|
3434
|
-
}, z$2.core.$strip>>;
|
|
3435
|
-
}, z$2.core.$strip>;
|
|
3436
|
-
totals: z$2.ZodObject<{
|
|
3437
|
-
subtotal: z$2.ZodNumber;
|
|
3438
|
-
subtotalTax: z$2.ZodNumber;
|
|
3439
|
-
total: z$2.ZodNumber;
|
|
3440
|
-
totalTax: z$2.ZodNumber;
|
|
3441
|
-
}, z$2.core.$strip>;
|
|
3442
|
-
custom: z$2.ZodType<Record<string, unknown>, Record<string, unknown>, z$2.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
3443
|
-
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3444
|
-
}, z$2.core.$strip>>;
|
|
3445
|
-
itemCount: z$2.ZodNumber;
|
|
3446
|
-
itemsWeight: z$2.ZodNumber;
|
|
3447
|
-
billingAddress: z$2.ZodObject<{
|
|
3448
|
-
additionalFields: z$2.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, z$2.core.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
3449
|
-
taxId: z$2.ZodDefault<z$2.ZodString>;
|
|
3450
|
-
email: z$2.ZodString;
|
|
3451
|
-
firstName: z$2.ZodString;
|
|
3452
|
-
lastName: z$2.ZodString;
|
|
3453
|
-
company: z$2.ZodString;
|
|
3454
|
-
address1: z$2.ZodString;
|
|
3455
|
-
address2: z$2.ZodString;
|
|
3456
|
-
city: z$2.ZodString;
|
|
3457
|
-
state: z$2.ZodString;
|
|
3458
|
-
postcode: z$2.ZodString;
|
|
3459
|
-
country: z$2.ZodString;
|
|
3460
|
-
phone: z$2.ZodString;
|
|
3461
|
-
}, z$2.core.$strip>;
|
|
3462
|
-
shippingAddress: z$2.ZodObject<{
|
|
3463
|
-
firstName: z$2.ZodString;
|
|
3464
|
-
lastName: z$2.ZodString;
|
|
3465
|
-
company: z$2.ZodString;
|
|
3466
|
-
address1: z$2.ZodString;
|
|
3467
|
-
address2: z$2.ZodString;
|
|
3468
|
-
city: z$2.ZodString;
|
|
3469
|
-
state: z$2.ZodString;
|
|
3470
|
-
postcode: z$2.ZodString;
|
|
3471
|
-
country: z$2.ZodString;
|
|
3472
|
-
phone: z$2.ZodString;
|
|
3473
|
-
additionalFields: z$2.ZodType<{
|
|
3474
|
-
[x: string]: string | boolean | undefined;
|
|
3475
|
-
}, Partial<{
|
|
3476
|
-
[x: string]: string | boolean | undefined;
|
|
3477
|
-
}>, z$2.core.$ZodTypeInternals<{
|
|
3478
|
-
[x: string]: string | boolean | undefined;
|
|
3479
|
-
}, Partial<{
|
|
3480
|
-
[x: string]: string | boolean | undefined;
|
|
3481
|
-
}>>>;
|
|
3482
|
-
}, z$2.core.$strip>;
|
|
3483
|
-
shippingPackages: z$2.ZodArray<z$2.ZodObject<{
|
|
3484
|
-
id: z$2.ZodUnion<readonly [z$2.ZodNumber, z$2.ZodString]>;
|
|
3485
|
-
name: z$2.ZodString;
|
|
3486
|
-
destination: z$2.ZodObject<{
|
|
3487
|
-
address1: z$2.ZodString;
|
|
3488
|
-
address2: z$2.ZodString;
|
|
3489
|
-
city: z$2.ZodString;
|
|
3490
|
-
state: z$2.ZodString;
|
|
3491
|
-
postcode: z$2.ZodString;
|
|
3492
|
-
country: z$2.ZodString;
|
|
3493
|
-
}, z$2.core.$strip>;
|
|
3494
|
-
items: z$2.ZodArray<z$2.ZodObject<{
|
|
3495
|
-
key: z$2.ZodString;
|
|
3496
|
-
name: z$2.ZodString;
|
|
3497
|
-
quantity: z$2.ZodNumber;
|
|
3498
|
-
}, z$2.core.$strip>>;
|
|
3499
|
-
rates: z$2.ZodArray<z$2.ZodObject<{
|
|
3500
|
-
id: z$2.ZodString;
|
|
3501
|
-
name: z$2.ZodString;
|
|
3502
|
-
description: z$2.ZodString;
|
|
3503
|
-
deliveryTime: z$2.ZodString;
|
|
3504
|
-
price: z$2.ZodNumber;
|
|
3505
|
-
taxes: z$2.ZodNumber;
|
|
3506
|
-
methodId: z$2.ZodString;
|
|
3507
|
-
instanceId: z$2.ZodNumber;
|
|
3508
|
-
metadata: z$2.ZodArray<z$2.ZodObject<{
|
|
3509
|
-
key: z$2.ZodString;
|
|
3510
|
-
value: z$2.ZodString;
|
|
3511
|
-
}, z$2.core.$strip>>;
|
|
3512
|
-
selected: z$2.ZodBoolean;
|
|
3513
|
-
}, z$2.core.$strip>>;
|
|
3514
|
-
}, z$2.core.$strip>>;
|
|
3515
|
-
coupons: z$2.ZodArray<z$2.ZodObject<{
|
|
3516
|
-
code: z$2.ZodString;
|
|
3517
|
-
discountType: z$2.ZodString;
|
|
3518
|
-
totals: z$2.ZodObject<{
|
|
3519
|
-
discount: z$2.ZodNumber;
|
|
3520
|
-
discountTax: z$2.ZodNumber;
|
|
3521
|
-
}, z$2.core.$strip>;
|
|
3522
|
-
}, z$2.core.$strip>>;
|
|
3523
|
-
fees: z$2.ZodArray<z$2.ZodObject<{
|
|
3524
|
-
id: z$2.ZodString;
|
|
3525
|
-
name: z$2.ZodString;
|
|
3526
|
-
totals: z$2.ZodObject<{
|
|
3527
|
-
total: z$2.ZodNumber;
|
|
3528
|
-
tax: z$2.ZodNumber;
|
|
3529
|
-
}, z$2.core.$strip>;
|
|
3530
|
-
}, z$2.core.$strip>>;
|
|
3531
|
-
crossSells: z$2.ZodArray<z$2.ZodObject<{
|
|
3532
|
-
id: z$2.ZodNumber;
|
|
3533
|
-
name: z$2.ZodString;
|
|
3534
|
-
slug: z$2.ZodString;
|
|
3535
|
-
parentId: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3536
|
-
type: z$2.ZodString;
|
|
3537
|
-
variationDescription: z$2.ZodString;
|
|
3538
|
-
url: z$2.ZodNullable<z$2.ZodString>;
|
|
3539
|
-
sku: z$2.ZodNullable<z$2.ZodString>;
|
|
3540
|
-
shortDescription: z$2.ZodString;
|
|
3541
|
-
description: z$2.ZodString;
|
|
3542
|
-
isPasswordProtected: z$2.ZodBoolean;
|
|
3543
|
-
isOnSale: z$2.ZodBoolean;
|
|
3544
|
-
prices: z$2.ZodObject<{
|
|
3545
|
-
price: z$2.ZodNumber;
|
|
3546
|
-
regularPrice: z$2.ZodNumber;
|
|
3547
|
-
salePrice: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3548
|
-
priceRange: z$2.ZodNullable<z$2.ZodObject<{
|
|
3549
|
-
minAmount: z$2.ZodNumber;
|
|
3550
|
-
maxAmount: z$2.ZodNumber;
|
|
3551
|
-
}, z$2.core.$strip>>;
|
|
3552
|
-
}, z$2.core.$strip>;
|
|
3553
|
-
currencyFormat: z$2.ZodObject<{
|
|
3554
|
-
currencyCode: z$2.ZodString;
|
|
3555
|
-
currencySymbol: z$2.ZodString;
|
|
3556
|
-
currencyPrefix: z$2.ZodString;
|
|
3557
|
-
currencySuffix: z$2.ZodString;
|
|
3558
|
-
currencyMinorUnit: z$2.ZodNumber;
|
|
3559
|
-
currencyDecimalSeparator: z$2.ZodString;
|
|
3560
|
-
currencyThousandSeparator: z$2.ZodString;
|
|
3561
|
-
}, z$2.core.$strip>;
|
|
3562
|
-
priceHtml: z$2.ZodString;
|
|
3563
|
-
averageRating: z$2.ZodNumber;
|
|
3564
|
-
reviewCount: z$2.ZodNumber;
|
|
3565
|
-
images: z$2.ZodArray<z$2.ZodObject<{
|
|
3566
|
-
id: z$2.ZodNumber;
|
|
3567
|
-
name: z$2.ZodString;
|
|
3568
|
-
src: z$2.ZodString;
|
|
3569
|
-
mime: z$2.ZodOptional<z$2.ZodString>;
|
|
3570
|
-
type: z$2.ZodLiteral<"image">;
|
|
3571
|
-
alt: z$2.ZodString;
|
|
3572
|
-
width: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3573
|
-
height: z$2.ZodOptional<z$2.ZodNumber>;
|
|
3574
|
-
variants: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
3575
|
-
src: z$2.ZodString;
|
|
3576
|
-
width: z$2.ZodNumber;
|
|
3577
|
-
height: z$2.ZodNumber;
|
|
3578
|
-
}, z$2.core.$strict>>>;
|
|
3579
|
-
srcset: z$2.ZodOptional<z$2.ZodString>;
|
|
3580
|
-
}, z$2.core.$strict>>;
|
|
3581
|
-
categories: z$2.ZodArray<z$2.ZodObject<{
|
|
3582
|
-
id: z$2.ZodNumber;
|
|
3583
|
-
name: z$2.ZodString;
|
|
3584
|
-
slug: z$2.ZodString;
|
|
3585
|
-
url: z$2.ZodNullable<z$2.ZodString>;
|
|
3586
|
-
}, z$2.core.$strip>>;
|
|
3587
|
-
tags: z$2.ZodArray<z$2.ZodObject<{
|
|
3588
|
-
id: z$2.ZodNumber;
|
|
3589
|
-
name: z$2.ZodString;
|
|
3590
|
-
slug: z$2.ZodString;
|
|
3591
|
-
url: z$2.ZodNullable<z$2.ZodString>;
|
|
3592
|
-
}, z$2.core.$strip>>;
|
|
3593
|
-
brands: z$2.ZodArray<z$2.ZodObject<{
|
|
3594
|
-
id: z$2.ZodNumber;
|
|
3595
|
-
name: z$2.ZodString;
|
|
3596
|
-
slug: z$2.ZodString;
|
|
3597
|
-
url: z$2.ZodNullable<z$2.ZodString>;
|
|
3598
|
-
}, z$2.core.$strip>>;
|
|
3599
|
-
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
3600
|
-
id: z$2.ZodNumber;
|
|
3601
|
-
name: z$2.ZodString;
|
|
3602
|
-
taxonomy: z$2.ZodNullable<z$2.ZodString>;
|
|
3603
|
-
hasVariations: z$2.ZodBoolean;
|
|
3604
|
-
terms: z$2.ZodArray<z$2.ZodObject<{
|
|
3605
|
-
id: z$2.ZodNumber;
|
|
3606
|
-
name: z$2.ZodString;
|
|
3607
|
-
slug: z$2.ZodString;
|
|
3608
|
-
isDefault: z$2.ZodBoolean;
|
|
3609
|
-
}, z$2.core.$strip>>;
|
|
3610
|
-
}, z$2.core.$strip>>;
|
|
3611
|
-
variations: z$2.ZodArray<z$2.ZodObject<{
|
|
3612
|
-
id: z$2.ZodNumber;
|
|
3613
|
-
attributes: z$2.ZodArray<z$2.ZodObject<{
|
|
3614
|
-
name: z$2.ZodString;
|
|
3615
|
-
value: z$2.ZodNullable<z$2.ZodString>;
|
|
3616
|
-
}, z$2.core.$strip>>;
|
|
3617
|
-
}, z$2.core.$strip>>;
|
|
3618
|
-
groupedProductIds: z$2.ZodArray<z$2.ZodNumber>;
|
|
3619
|
-
hasOptions: z$2.ZodBoolean;
|
|
3620
|
-
isPurchasable: z$2.ZodBoolean;
|
|
3621
|
-
isInStock: z$2.ZodBoolean;
|
|
3622
|
-
isOnBackorder: z$2.ZodBoolean;
|
|
3623
|
-
stockAvailability: z$2.ZodObject<{
|
|
3624
|
-
text: z$2.ZodString;
|
|
3625
|
-
class: z$2.ZodString;
|
|
3626
|
-
}, z$2.core.$strip>;
|
|
3627
|
-
lowStockRemaining: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3628
|
-
isSoldIndividually: z$2.ZodBoolean;
|
|
3629
|
-
addToCart: z$2.ZodObject<{
|
|
3630
|
-
text: z$2.ZodString;
|
|
3631
|
-
description: z$2.ZodString;
|
|
3632
|
-
singleText: z$2.ZodString;
|
|
3633
|
-
minimum: z$2.ZodNumber;
|
|
3634
|
-
maximum: z$2.ZodNumber;
|
|
3635
|
-
multipleOf: z$2.ZodNumber;
|
|
3636
|
-
}, z$2.core.$strip>;
|
|
3637
|
-
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3638
|
-
}, z$2.core.$strip>>;
|
|
3639
|
-
needsPayment: z$2.ZodBoolean;
|
|
3640
|
-
needsShipping: z$2.ZodBoolean;
|
|
3641
|
-
hasCalculatedShipping: z$2.ZodBoolean;
|
|
3642
|
-
paymentMethods: z$2.ZodArray<z$2.ZodObject<{
|
|
3643
|
-
id: z$2.ZodString;
|
|
3644
|
-
title: z$2.ZodString;
|
|
3645
|
-
description: z$2.ZodString;
|
|
3646
|
-
order: z$2.ZodNumber;
|
|
3647
|
-
enabled: z$2.ZodBoolean;
|
|
3648
|
-
}, z$2.core.$strip>>;
|
|
3649
|
-
paymentRequirements: z$2.ZodArray<z$2.ZodString>;
|
|
3650
|
-
errors: z$2.ZodArray<z$2.ZodObject<{
|
|
3651
|
-
code: z$2.ZodString;
|
|
3652
|
-
message: z$2.ZodString;
|
|
3653
|
-
}, z$2.core.$strip>>;
|
|
3654
|
-
totals: z$2.ZodObject<{
|
|
3655
|
-
itemsTotal: z$2.ZodNumber;
|
|
3656
|
-
itemsTaxTotal: z$2.ZodNumber;
|
|
3657
|
-
feesTotal: z$2.ZodNumber;
|
|
3658
|
-
feesTaxTotal: z$2.ZodNumber;
|
|
3659
|
-
discountTotal: z$2.ZodNumber;
|
|
3660
|
-
discountTaxTotal: z$2.ZodNumber;
|
|
3661
|
-
shippingTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3662
|
-
shippingTaxTotal: z$2.ZodNullable<z$2.ZodNumber>;
|
|
3663
|
-
total: z$2.ZodNumber;
|
|
3664
|
-
taxTotal: z$2.ZodNumber;
|
|
3665
|
-
taxLines: z$2.ZodArray<z$2.ZodObject<{
|
|
3666
|
-
name: z$2.ZodString;
|
|
3667
|
-
price: z$2.ZodNumber;
|
|
3668
|
-
rate: z$2.ZodString;
|
|
3669
|
-
}, z$2.core.$strip>>;
|
|
3670
|
-
}, z$2.core.$strip>;
|
|
3671
|
-
currencyFormat: z$2.ZodObject<{
|
|
3672
|
-
currencyCode: z$2.ZodString;
|
|
3673
|
-
currencySymbol: z$2.ZodString;
|
|
3674
|
-
currencyPrefix: z$2.ZodString;
|
|
3675
|
-
currencySuffix: z$2.ZodString;
|
|
3676
|
-
currencyMinorUnit: z$2.ZodNumber;
|
|
3677
|
-
currencyDecimalSeparator: z$2.ZodString;
|
|
3678
|
-
currencyThousandSeparator: z$2.ZodString;
|
|
3679
|
-
}, z$2.core.$strip>;
|
|
3680
|
-
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3681
|
-
}, z$2.core.$strip>>;
|
|
3682
5315
|
extensions: z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>;
|
|
3683
5316
|
}, z$2.core.$strip>;
|
|
3684
|
-
type Checkout = Omit<z$2.output<typeof Checkout>, "additionalFields" | "billingAddress" | "shippingAddress"
|
|
5317
|
+
type Checkout = Omit<z$2.output<typeof Checkout>, "additionalFields" | "billingAddress" | "shippingAddress"> & {
|
|
3685
5318
|
additionalFields: CheckoutAdditionalFields$1;
|
|
3686
5319
|
billingAddress: CartBillingAddress;
|
|
3687
5320
|
shippingAddress: CartShippingAddress;
|
|
3688
|
-
cart: Cart | null;
|
|
3689
5321
|
};
|
|
3690
5322
|
declare const UpdateCheckoutInput: z$2.ZodObject<{
|
|
3691
5323
|
paymentMethod: z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -3743,6 +5375,7 @@ declare const ConfirmCheckoutInput: z$2.ZodObject<{
|
|
|
3743
5375
|
}>>;
|
|
3744
5376
|
}, z$2.core.$strip>>;
|
|
3745
5377
|
paymentMethod: z$2.ZodString;
|
|
5378
|
+
expectedTotal: z$2.ZodOptional<z$2.ZodString>;
|
|
3746
5379
|
customerNote: z$2.ZodOptional<z$2.ZodString>;
|
|
3747
5380
|
createAccount: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
3748
5381
|
customerPassword: z$2.ZodOptional<z$2.ZodString>;
|
|
@@ -4142,9 +5775,9 @@ declare const SwatchType: z.ZodEnum<{
|
|
|
4142
5775
|
type SwatchType = z.infer<typeof SwatchType>;
|
|
4143
5776
|
declare const PRODUCT_TYPES: readonly ["simple", "grouped", "external", "variable", "variation"];
|
|
4144
5777
|
declare const ProductType: z.ZodEnum<{
|
|
4145
|
-
external: "external";
|
|
4146
5778
|
simple: "simple";
|
|
4147
5779
|
grouped: "grouped";
|
|
5780
|
+
external: "external";
|
|
4148
5781
|
variable: "variable";
|
|
4149
5782
|
variation: "variation";
|
|
4150
5783
|
}>;
|
|
@@ -5706,11 +7339,11 @@ declare const RetrieveProductInput: z.ZodObject<{
|
|
|
5706
7339
|
}, z.core.$strip>;
|
|
5707
7340
|
type RetrieveProductInput = z.input<typeof RetrieveProductInput>;
|
|
5708
7341
|
declare const ProductOrderBy: z.ZodEnum<{
|
|
5709
|
-
slug: "slug";
|
|
5710
7342
|
date: "date";
|
|
5711
|
-
price: "price";
|
|
5712
7343
|
id: "id";
|
|
5713
7344
|
title: "title";
|
|
7345
|
+
slug: "slug";
|
|
7346
|
+
price: "price";
|
|
5714
7347
|
modified: "modified";
|
|
5715
7348
|
include: "include";
|
|
5716
7349
|
popularity: "popularity";
|
|
@@ -5722,8 +7355,8 @@ type ProductOrderBy = z.infer<typeof ProductOrderBy>;
|
|
|
5722
7355
|
declare const PRODUCT_DATE_COLUMNS: readonly ["date", "date_gmt", "modified", "modified_gmt"];
|
|
5723
7356
|
declare const ProductDateColumn: z.ZodEnum<{
|
|
5724
7357
|
date: "date";
|
|
5725
|
-
date_gmt: "date_gmt";
|
|
5726
7358
|
modified: "modified";
|
|
7359
|
+
date_gmt: "date_gmt";
|
|
5727
7360
|
modified_gmt: "modified_gmt";
|
|
5728
7361
|
}>;
|
|
5729
7362
|
type ProductDateColumn = z.infer<typeof ProductDateColumn>;
|
|
@@ -5748,11 +7381,11 @@ declare const ProductStockStatus: z.ZodEnum<{
|
|
|
5748
7381
|
type ProductStockStatus = z.infer<typeof ProductStockStatus>;
|
|
5749
7382
|
declare const PRODUCT_CATALOG_VISIBILITIES: readonly ["any", "visible", "catalog", "search", "hidden"];
|
|
5750
7383
|
declare const ProductCatalogVisibility: z.ZodEnum<{
|
|
5751
|
-
any: "any";
|
|
5752
7384
|
search: "search";
|
|
5753
|
-
|
|
5754
|
-
catalog: "catalog";
|
|
7385
|
+
any: "any";
|
|
5755
7386
|
hidden: "hidden";
|
|
7387
|
+
catalog: "catalog";
|
|
7388
|
+
visible: "visible";
|
|
5756
7389
|
}>;
|
|
5757
7390
|
type ProductCatalogVisibility = z.infer<typeof ProductCatalogVisibility>;
|
|
5758
7391
|
declare const PRODUCT_RATINGS: readonly [1, 2, 3, 4, 5];
|
|
@@ -5790,8 +7423,8 @@ declare const ListProductInput: z.ZodObject<{
|
|
|
5790
7423
|
before: z.ZodOptional<z.ZodString>;
|
|
5791
7424
|
dateColumn: z.ZodOptional<z.ZodEnum<{
|
|
5792
7425
|
date: "date";
|
|
5793
|
-
date_gmt: "date_gmt";
|
|
5794
7426
|
modified: "modified";
|
|
7427
|
+
date_gmt: "date_gmt";
|
|
5795
7428
|
modified_gmt: "modified_gmt";
|
|
5796
7429
|
}>>;
|
|
5797
7430
|
exclude: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
@@ -5802,11 +7435,11 @@ declare const ListProductInput: z.ZodObject<{
|
|
|
5802
7435
|
desc: "desc";
|
|
5803
7436
|
}>>;
|
|
5804
7437
|
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
5805
|
-
slug: "slug";
|
|
5806
7438
|
date: "date";
|
|
5807
|
-
price: "price";
|
|
5808
7439
|
id: "id";
|
|
5809
7440
|
title: "title";
|
|
7441
|
+
slug: "slug";
|
|
7442
|
+
price: "price";
|
|
5810
7443
|
modified: "modified";
|
|
5811
7444
|
include: "include";
|
|
5812
7445
|
popularity: "popularity";
|
|
@@ -5864,11 +7497,11 @@ declare const ListProductInput: z.ZodObject<{
|
|
|
5864
7497
|
and: "and";
|
|
5865
7498
|
}>>;
|
|
5866
7499
|
catalogVisibility: z.ZodOptional<z.ZodEnum<{
|
|
5867
|
-
any: "any";
|
|
5868
7500
|
search: "search";
|
|
5869
|
-
|
|
5870
|
-
catalog: "catalog";
|
|
7501
|
+
any: "any";
|
|
5871
7502
|
hidden: "hidden";
|
|
7503
|
+
catalog: "catalog";
|
|
7504
|
+
visible: "visible";
|
|
5872
7505
|
}>>;
|
|
5873
7506
|
rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>, z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>]>>;
|
|
5874
7507
|
related: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
@@ -6033,15 +7666,10 @@ declare const ProductAttributeCount: z.ZodObject<{
|
|
|
6033
7666
|
}, z.core.$strip>;
|
|
6034
7667
|
type ProductAttributeCount = z.input<typeof ProductAttributeCount>;
|
|
6035
7668
|
declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
any: "any";
|
|
6041
|
-
search: "search";
|
|
6042
|
-
visible: "visible";
|
|
6043
|
-
catalog: "catalog";
|
|
6044
|
-
hidden: "hidden";
|
|
7669
|
+
search: z.ZodOptional<z.ZodString>;
|
|
7670
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
7671
|
+
asc: "asc";
|
|
7672
|
+
desc: "desc";
|
|
6045
7673
|
}>>;
|
|
6046
7674
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6047
7675
|
taxonomy: z.ZodString;
|
|
@@ -6053,33 +7681,30 @@ declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
|
6053
7681
|
and: "and";
|
|
6054
7682
|
}>>;
|
|
6055
7683
|
}, z.core.$strip>>>;
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
}>>;
|
|
6060
|
-
search: z.ZodOptional<z.ZodString>;
|
|
7684
|
+
type: z.ZodOptional<z.ZodString>;
|
|
7685
|
+
slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
7686
|
+
sku: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
6061
7687
|
related: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
6062
|
-
|
|
7688
|
+
include: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
7689
|
+
rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>, z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>]>>;
|
|
6063
7690
|
page: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
6064
7691
|
perPage: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
6065
7692
|
after: z.ZodOptional<z.ZodString>;
|
|
6066
7693
|
before: z.ZodOptional<z.ZodString>;
|
|
6067
7694
|
dateColumn: z.ZodOptional<z.ZodEnum<{
|
|
6068
7695
|
date: "date";
|
|
6069
|
-
date_gmt: "date_gmt";
|
|
6070
7696
|
modified: "modified";
|
|
7697
|
+
date_gmt: "date_gmt";
|
|
6071
7698
|
modified_gmt: "modified_gmt";
|
|
6072
7699
|
}>>;
|
|
6073
7700
|
exclude: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
6074
|
-
include: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
6075
7701
|
offset: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>;
|
|
6076
|
-
rating: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>, z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>]>>;
|
|
6077
7702
|
orderBy: z.ZodOptional<z.ZodEnum<{
|
|
6078
|
-
slug: "slug";
|
|
6079
7703
|
date: "date";
|
|
6080
|
-
price: "price";
|
|
6081
7704
|
id: "id";
|
|
6082
7705
|
title: "title";
|
|
7706
|
+
slug: "slug";
|
|
7707
|
+
price: "price";
|
|
6083
7708
|
modified: "modified";
|
|
6084
7709
|
include: "include";
|
|
6085
7710
|
popularity: "popularity";
|
|
@@ -6087,6 +7712,7 @@ declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
|
6087
7712
|
menu_order: "menu_order";
|
|
6088
7713
|
comment_count: "comment_count";
|
|
6089
7714
|
}>>;
|
|
7715
|
+
parent: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
6090
7716
|
parentExclude: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
6091
7717
|
featured: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>;
|
|
6092
7718
|
category: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodString]>, z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodString]>>]>>;
|
|
@@ -6123,6 +7749,13 @@ declare const RetrieveProductFiltersInput: z.ZodObject<{
|
|
|
6123
7749
|
in: "in";
|
|
6124
7750
|
and: "and";
|
|
6125
7751
|
}>>;
|
|
7752
|
+
catalogVisibility: z.ZodOptional<z.ZodEnum<{
|
|
7753
|
+
search: "search";
|
|
7754
|
+
any: "any";
|
|
7755
|
+
hidden: "hidden";
|
|
7756
|
+
catalog: "catalog";
|
|
7757
|
+
visible: "visible";
|
|
7758
|
+
}>>;
|
|
6126
7759
|
taxonomies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6127
7760
|
taxonomy: z.ZodString;
|
|
6128
7761
|
termIds: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>, z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodCoercedNumber<string | number>>>]>>;
|
|
@@ -6148,7 +7781,11 @@ type RetrieveProductFiltersInput = z.input<typeof RetrieveProductFiltersInput>;
|
|
|
6148
7781
|
type RetrieveProductFiltersInputOut = z.output<typeof RetrieveProductFiltersInput>;
|
|
6149
7782
|
//#endregion
|
|
6150
7783
|
//#region src/index.d.ts
|
|
6151
|
-
|
|
7784
|
+
interface WooCommerceOptions {
|
|
7785
|
+
/** Allow logged-out checkout, subject to the store's guest-checkout settings. @default true */
|
|
7786
|
+
allowGuest?: boolean;
|
|
7787
|
+
}
|
|
7788
|
+
declare function woocommerce(options?: WooCommerceOptions): kizlo0.Integration<"woocommerce", {
|
|
6152
7789
|
cart: {
|
|
6153
7790
|
get: kizlo0.Procedure<"api", {}, Cart, {}>;
|
|
6154
7791
|
update: kizlo0.Procedure<"api", {
|
|
@@ -6474,1641 +8111,10 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
6474
8111
|
} | null, kizlo0.DefinedErrorMapLike>;
|
|
6475
8112
|
};
|
|
6476
8113
|
checkout: {
|
|
6477
|
-
get: kizlo0.Procedure<"api",
|
|
6478
|
-
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
6479
|
-
readonly status: 404;
|
|
6480
|
-
readonly message: "No checkout order found.";
|
|
6481
|
-
};
|
|
6482
|
-
}>;
|
|
8114
|
+
get: kizlo0.Procedure<"api", Record<never, never>, Checkout, typeof GET_CHECKOUT_ERROR_MAP>;
|
|
6483
8115
|
update: kizlo0.Procedure<"api", {
|
|
6484
|
-
body:
|
|
6485
|
-
|
|
6486
|
-
customerNote?: string | undefined;
|
|
6487
|
-
paymentMethod?: string | undefined;
|
|
6488
|
-
recalculateTotals?: boolean | undefined;
|
|
6489
|
-
additionalFields?: CheckoutAdditionalFieldsInput | undefined;
|
|
6490
|
-
};
|
|
6491
|
-
}, Checkout, {
|
|
6492
|
-
readonly CHECKOUT_COUPON_INVALID: {
|
|
6493
|
-
readonly status: 400;
|
|
6494
|
-
readonly message: "A coupon on the cart is no longer valid.";
|
|
6495
|
-
};
|
|
6496
|
-
readonly CHECKOUT_PAYMENT_METHOD_DISABLED: {
|
|
6497
|
-
readonly status: 400;
|
|
6498
|
-
readonly message: "The selected payment method is not available.";
|
|
6499
|
-
};
|
|
6500
|
-
readonly CHECKOUT_VALIDATION_FAILED: {
|
|
6501
|
-
readonly status: 400;
|
|
6502
|
-
readonly message: "Checkout validation failed.";
|
|
6503
|
-
readonly data: zod0.ZodObject<{
|
|
6504
|
-
issues: zod0.ZodArray<zod0.ZodDiscriminatedUnion<[zod0.ZodObject<{
|
|
6505
|
-
source: zod0.ZodNullable<zod0.ZodString>;
|
|
6506
|
-
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
6507
|
-
code: zod0.ZodNullable<zod0.ZodString>;
|
|
6508
|
-
message: zod0.ZodString;
|
|
6509
|
-
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
6510
|
-
id: zod0.ZodString;
|
|
6511
|
-
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
6512
|
-
billingAddress: "billingAddress";
|
|
6513
|
-
shippingAddress: "shippingAddress";
|
|
6514
|
-
additionalFields: "additionalFields";
|
|
6515
|
-
}>>;
|
|
6516
|
-
}, zod_v4_core0.$strip>>;
|
|
6517
|
-
scope: zod0.ZodLiteral<"field">;
|
|
6518
|
-
target: zod0.ZodArray<zod0.ZodString>;
|
|
6519
|
-
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
6520
|
-
source: zod0.ZodNullable<zod0.ZodString>;
|
|
6521
|
-
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
6522
|
-
code: zod0.ZodNullable<zod0.ZodString>;
|
|
6523
|
-
message: zod0.ZodString;
|
|
6524
|
-
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
6525
|
-
id: zod0.ZodString;
|
|
6526
|
-
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
6527
|
-
billingAddress: "billingAddress";
|
|
6528
|
-
shippingAddress: "shippingAddress";
|
|
6529
|
-
additionalFields: "additionalFields";
|
|
6530
|
-
}>>;
|
|
6531
|
-
}, zod_v4_core0.$strip>>;
|
|
6532
|
-
scope: zod0.ZodLiteral<"group">;
|
|
6533
|
-
target: zod0.ZodArray<zod0.ZodString>;
|
|
6534
|
-
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
6535
|
-
source: zod0.ZodNullable<zod0.ZodString>;
|
|
6536
|
-
sourcePath: zod0.ZodArray<zod0.ZodString>;
|
|
6537
|
-
code: zod0.ZodNullable<zod0.ZodString>;
|
|
6538
|
-
message: zod0.ZodString;
|
|
6539
|
-
registeredFields: zod0.ZodArray<zod0.ZodObject<{
|
|
6540
|
-
id: zod0.ZodString;
|
|
6541
|
-
bucket: zod0.ZodNullable<zod0.ZodEnum<{
|
|
6542
|
-
billingAddress: "billingAddress";
|
|
6543
|
-
shippingAddress: "shippingAddress";
|
|
6544
|
-
additionalFields: "additionalFields";
|
|
6545
|
-
}>>;
|
|
6546
|
-
}, zod_v4_core0.$strip>>;
|
|
6547
|
-
scope: zod0.ZodLiteral<"unresolved">;
|
|
6548
|
-
target: zod0.ZodNull;
|
|
6549
|
-
}, zod_v4_core0.$strip>], "scope">>;
|
|
6550
|
-
}, zod_v4_core0.$strict>;
|
|
6551
|
-
};
|
|
6552
|
-
readonly CHECKOUT_ORDER_NOT_FOUND: {
|
|
6553
|
-
readonly status: 404;
|
|
6554
|
-
readonly message: "No checkout order found.";
|
|
6555
|
-
};
|
|
6556
|
-
readonly CHECKOUT_CART_EMPTY: {
|
|
6557
|
-
readonly status: 409;
|
|
6558
|
-
readonly message: "The cart is empty.";
|
|
6559
|
-
readonly data: zod0.ZodObject<{
|
|
6560
|
-
cart: zod0.ZodNullable<zod0.ZodObject<{
|
|
6561
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
6562
|
-
key: zod0.ZodString;
|
|
6563
|
-
productId: zod0.ZodNumber;
|
|
6564
|
-
variationId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6565
|
-
type: zod0.ZodString;
|
|
6566
|
-
name: zod0.ZodString;
|
|
6567
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
6568
|
-
slug: zod0.ZodString;
|
|
6569
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
6570
|
-
shortDescription: zod0.ZodString;
|
|
6571
|
-
description: zod0.ZodString;
|
|
6572
|
-
quantity: zod0.ZodNumber;
|
|
6573
|
-
quantityLimits: zod0.ZodObject<{
|
|
6574
|
-
minimum: zod0.ZodNumber;
|
|
6575
|
-
maximum: zod0.ZodNumber;
|
|
6576
|
-
multipleOf: zod0.ZodNumber;
|
|
6577
|
-
editable: zod0.ZodBoolean;
|
|
6578
|
-
}, zod_v4_core0.$strip>;
|
|
6579
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6580
|
-
allowsBackorders: zod0.ZodBoolean;
|
|
6581
|
-
showsBackorderBadge: zod0.ZodBoolean;
|
|
6582
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
6583
|
-
catalogVisibility: zod0.ZodString;
|
|
6584
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
6585
|
-
id: zod0.ZodNumber;
|
|
6586
|
-
name: zod0.ZodString;
|
|
6587
|
-
src: zod0.ZodString;
|
|
6588
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
6589
|
-
type: zod0.ZodLiteral<"image">;
|
|
6590
|
-
alt: zod0.ZodString;
|
|
6591
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6592
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6593
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
6594
|
-
src: zod0.ZodString;
|
|
6595
|
-
width: zod0.ZodNumber;
|
|
6596
|
-
height: zod0.ZodNumber;
|
|
6597
|
-
}, zod_v4_core0.$strict>>>;
|
|
6598
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
6599
|
-
}, zod_v4_core0.$strict>>;
|
|
6600
|
-
selectedAttributes: zod0.ZodArray<zod0.ZodObject<{
|
|
6601
|
-
name: zod0.ZodString;
|
|
6602
|
-
attribute: zod0.ZodString;
|
|
6603
|
-
value: zod0.ZodString;
|
|
6604
|
-
}, zod_v4_core0.$strip>>;
|
|
6605
|
-
itemData: zod0.ZodArray<zod0.ZodObject<{
|
|
6606
|
-
name: zod0.ZodString;
|
|
6607
|
-
value: zod0.ZodString;
|
|
6608
|
-
display: zod0.ZodNullable<zod0.ZodString>;
|
|
6609
|
-
}, zod_v4_core0.$strip>>;
|
|
6610
|
-
prices: zod0.ZodObject<{
|
|
6611
|
-
price: zod0.ZodNumber;
|
|
6612
|
-
regularPrice: zod0.ZodNumber;
|
|
6613
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6614
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
6615
|
-
minAmount: zod0.ZodNumber;
|
|
6616
|
-
maxAmount: zod0.ZodNumber;
|
|
6617
|
-
}, zod_v4_core0.$strip>>;
|
|
6618
|
-
}, zod_v4_core0.$strip>;
|
|
6619
|
-
totals: zod0.ZodObject<{
|
|
6620
|
-
subtotal: zod0.ZodNumber;
|
|
6621
|
-
subtotalTax: zod0.ZodNumber;
|
|
6622
|
-
total: zod0.ZodNumber;
|
|
6623
|
-
totalTax: zod0.ZodNumber;
|
|
6624
|
-
}, zod_v4_core0.$strip>;
|
|
6625
|
-
custom: zod0.ZodType<Record<string, unknown>, Record<string, unknown>, zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
6626
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
6627
|
-
}, zod_v4_core0.$strip>>;
|
|
6628
|
-
itemCount: zod0.ZodNumber;
|
|
6629
|
-
itemsWeight: zod0.ZodNumber;
|
|
6630
|
-
billingAddress: zod0.ZodObject<{
|
|
6631
|
-
additionalFields: zod0.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, zod_v4_core0.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
6632
|
-
taxId: zod0.ZodDefault<zod0.ZodString>;
|
|
6633
|
-
email: zod0.ZodString;
|
|
6634
|
-
firstName: zod0.ZodString;
|
|
6635
|
-
lastName: zod0.ZodString;
|
|
6636
|
-
company: zod0.ZodString;
|
|
6637
|
-
address1: zod0.ZodString;
|
|
6638
|
-
address2: zod0.ZodString;
|
|
6639
|
-
city: zod0.ZodString;
|
|
6640
|
-
state: zod0.ZodString;
|
|
6641
|
-
postcode: zod0.ZodString;
|
|
6642
|
-
country: zod0.ZodString;
|
|
6643
|
-
phone: zod0.ZodString;
|
|
6644
|
-
}, zod_v4_core0.$strip>;
|
|
6645
|
-
shippingAddress: zod0.ZodObject<{
|
|
6646
|
-
firstName: zod0.ZodString;
|
|
6647
|
-
lastName: zod0.ZodString;
|
|
6648
|
-
company: zod0.ZodString;
|
|
6649
|
-
address1: zod0.ZodString;
|
|
6650
|
-
address2: zod0.ZodString;
|
|
6651
|
-
city: zod0.ZodString;
|
|
6652
|
-
state: zod0.ZodString;
|
|
6653
|
-
postcode: zod0.ZodString;
|
|
6654
|
-
country: zod0.ZodString;
|
|
6655
|
-
phone: zod0.ZodString;
|
|
6656
|
-
additionalFields: zod0.ZodType<{
|
|
6657
|
-
[x: string]: string | boolean | undefined;
|
|
6658
|
-
}, Partial<{
|
|
6659
|
-
[x: string]: string | boolean | undefined;
|
|
6660
|
-
}>, zod_v4_core0.$ZodTypeInternals<{
|
|
6661
|
-
[x: string]: string | boolean | undefined;
|
|
6662
|
-
}, Partial<{
|
|
6663
|
-
[x: string]: string | boolean | undefined;
|
|
6664
|
-
}>>>;
|
|
6665
|
-
}, zod_v4_core0.$strip>;
|
|
6666
|
-
shippingPackages: zod0.ZodArray<zod0.ZodObject<{
|
|
6667
|
-
id: zod0.ZodUnion<readonly [zod0.ZodNumber, zod0.ZodString]>;
|
|
6668
|
-
name: zod0.ZodString;
|
|
6669
|
-
destination: zod0.ZodObject<{
|
|
6670
|
-
address1: zod0.ZodString;
|
|
6671
|
-
address2: zod0.ZodString;
|
|
6672
|
-
city: zod0.ZodString;
|
|
6673
|
-
state: zod0.ZodString;
|
|
6674
|
-
postcode: zod0.ZodString;
|
|
6675
|
-
country: zod0.ZodString;
|
|
6676
|
-
}, zod_v4_core0.$strip>;
|
|
6677
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
6678
|
-
key: zod0.ZodString;
|
|
6679
|
-
name: zod0.ZodString;
|
|
6680
|
-
quantity: zod0.ZodNumber;
|
|
6681
|
-
}, zod_v4_core0.$strip>>;
|
|
6682
|
-
rates: zod0.ZodArray<zod0.ZodObject<{
|
|
6683
|
-
id: zod0.ZodString;
|
|
6684
|
-
name: zod0.ZodString;
|
|
6685
|
-
description: zod0.ZodString;
|
|
6686
|
-
deliveryTime: zod0.ZodString;
|
|
6687
|
-
price: zod0.ZodNumber;
|
|
6688
|
-
taxes: zod0.ZodNumber;
|
|
6689
|
-
methodId: zod0.ZodString;
|
|
6690
|
-
instanceId: zod0.ZodNumber;
|
|
6691
|
-
metadata: zod0.ZodArray<zod0.ZodObject<{
|
|
6692
|
-
key: zod0.ZodString;
|
|
6693
|
-
value: zod0.ZodString;
|
|
6694
|
-
}, zod_v4_core0.$strip>>;
|
|
6695
|
-
selected: zod0.ZodBoolean;
|
|
6696
|
-
}, zod_v4_core0.$strip>>;
|
|
6697
|
-
}, zod_v4_core0.$strip>>;
|
|
6698
|
-
coupons: zod0.ZodArray<zod0.ZodObject<{
|
|
6699
|
-
code: zod0.ZodString;
|
|
6700
|
-
discountType: zod0.ZodString;
|
|
6701
|
-
totals: zod0.ZodObject<{
|
|
6702
|
-
discount: zod0.ZodNumber;
|
|
6703
|
-
discountTax: zod0.ZodNumber;
|
|
6704
|
-
}, zod_v4_core0.$strip>;
|
|
6705
|
-
}, zod_v4_core0.$strip>>;
|
|
6706
|
-
fees: zod0.ZodArray<zod0.ZodObject<{
|
|
6707
|
-
id: zod0.ZodString;
|
|
6708
|
-
name: zod0.ZodString;
|
|
6709
|
-
totals: zod0.ZodObject<{
|
|
6710
|
-
total: zod0.ZodNumber;
|
|
6711
|
-
tax: zod0.ZodNumber;
|
|
6712
|
-
}, zod_v4_core0.$strip>;
|
|
6713
|
-
}, zod_v4_core0.$strip>>;
|
|
6714
|
-
crossSells: zod0.ZodArray<zod0.ZodObject<{
|
|
6715
|
-
id: zod0.ZodNumber;
|
|
6716
|
-
name: zod0.ZodString;
|
|
6717
|
-
slug: zod0.ZodString;
|
|
6718
|
-
parentId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6719
|
-
type: zod0.ZodString;
|
|
6720
|
-
variationDescription: zod0.ZodString;
|
|
6721
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
6722
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
6723
|
-
shortDescription: zod0.ZodString;
|
|
6724
|
-
description: zod0.ZodString;
|
|
6725
|
-
isPasswordProtected: zod0.ZodBoolean;
|
|
6726
|
-
isOnSale: zod0.ZodBoolean;
|
|
6727
|
-
prices: zod0.ZodObject<{
|
|
6728
|
-
price: zod0.ZodNumber;
|
|
6729
|
-
regularPrice: zod0.ZodNumber;
|
|
6730
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6731
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
6732
|
-
minAmount: zod0.ZodNumber;
|
|
6733
|
-
maxAmount: zod0.ZodNumber;
|
|
6734
|
-
}, zod_v4_core0.$strip>>;
|
|
6735
|
-
}, zod_v4_core0.$strip>;
|
|
6736
|
-
currencyFormat: zod0.ZodObject<{
|
|
6737
|
-
currencyCode: zod0.ZodString;
|
|
6738
|
-
currencySymbol: zod0.ZodString;
|
|
6739
|
-
currencyPrefix: zod0.ZodString;
|
|
6740
|
-
currencySuffix: zod0.ZodString;
|
|
6741
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
6742
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
6743
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
6744
|
-
}, zod_v4_core0.$strip>;
|
|
6745
|
-
priceHtml: zod0.ZodString;
|
|
6746
|
-
averageRating: zod0.ZodNumber;
|
|
6747
|
-
reviewCount: zod0.ZodNumber;
|
|
6748
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
6749
|
-
id: zod0.ZodNumber;
|
|
6750
|
-
name: zod0.ZodString;
|
|
6751
|
-
src: zod0.ZodString;
|
|
6752
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
6753
|
-
type: zod0.ZodLiteral<"image">;
|
|
6754
|
-
alt: zod0.ZodString;
|
|
6755
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6756
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6757
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
6758
|
-
src: zod0.ZodString;
|
|
6759
|
-
width: zod0.ZodNumber;
|
|
6760
|
-
height: zod0.ZodNumber;
|
|
6761
|
-
}, zod_v4_core0.$strict>>>;
|
|
6762
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
6763
|
-
}, zod_v4_core0.$strict>>;
|
|
6764
|
-
categories: zod0.ZodArray<zod0.ZodObject<{
|
|
6765
|
-
id: zod0.ZodNumber;
|
|
6766
|
-
name: zod0.ZodString;
|
|
6767
|
-
slug: zod0.ZodString;
|
|
6768
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
6769
|
-
}, zod_v4_core0.$strip>>;
|
|
6770
|
-
tags: zod0.ZodArray<zod0.ZodObject<{
|
|
6771
|
-
id: zod0.ZodNumber;
|
|
6772
|
-
name: zod0.ZodString;
|
|
6773
|
-
slug: zod0.ZodString;
|
|
6774
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
6775
|
-
}, zod_v4_core0.$strip>>;
|
|
6776
|
-
brands: zod0.ZodArray<zod0.ZodObject<{
|
|
6777
|
-
id: zod0.ZodNumber;
|
|
6778
|
-
name: zod0.ZodString;
|
|
6779
|
-
slug: zod0.ZodString;
|
|
6780
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
6781
|
-
}, zod_v4_core0.$strip>>;
|
|
6782
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
6783
|
-
id: zod0.ZodNumber;
|
|
6784
|
-
name: zod0.ZodString;
|
|
6785
|
-
taxonomy: zod0.ZodNullable<zod0.ZodString>;
|
|
6786
|
-
hasVariations: zod0.ZodBoolean;
|
|
6787
|
-
terms: zod0.ZodArray<zod0.ZodObject<{
|
|
6788
|
-
id: zod0.ZodNumber;
|
|
6789
|
-
name: zod0.ZodString;
|
|
6790
|
-
slug: zod0.ZodString;
|
|
6791
|
-
isDefault: zod0.ZodBoolean;
|
|
6792
|
-
}, zod_v4_core0.$strip>>;
|
|
6793
|
-
}, zod_v4_core0.$strip>>;
|
|
6794
|
-
variations: zod0.ZodArray<zod0.ZodObject<{
|
|
6795
|
-
id: zod0.ZodNumber;
|
|
6796
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
6797
|
-
name: zod0.ZodString;
|
|
6798
|
-
value: zod0.ZodNullable<zod0.ZodString>;
|
|
6799
|
-
}, zod_v4_core0.$strip>>;
|
|
6800
|
-
}, zod_v4_core0.$strip>>;
|
|
6801
|
-
groupedProductIds: zod0.ZodArray<zod0.ZodNumber>;
|
|
6802
|
-
hasOptions: zod0.ZodBoolean;
|
|
6803
|
-
isPurchasable: zod0.ZodBoolean;
|
|
6804
|
-
isInStock: zod0.ZodBoolean;
|
|
6805
|
-
isOnBackorder: zod0.ZodBoolean;
|
|
6806
|
-
stockAvailability: zod0.ZodObject<{
|
|
6807
|
-
text: zod0.ZodString;
|
|
6808
|
-
class: zod0.ZodString;
|
|
6809
|
-
}, zod_v4_core0.$strip>;
|
|
6810
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6811
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
6812
|
-
addToCart: zod0.ZodObject<{
|
|
6813
|
-
text: zod0.ZodString;
|
|
6814
|
-
description: zod0.ZodString;
|
|
6815
|
-
singleText: zod0.ZodString;
|
|
6816
|
-
minimum: zod0.ZodNumber;
|
|
6817
|
-
maximum: zod0.ZodNumber;
|
|
6818
|
-
multipleOf: zod0.ZodNumber;
|
|
6819
|
-
}, zod_v4_core0.$strip>;
|
|
6820
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
6821
|
-
}, zod_v4_core0.$strip>>;
|
|
6822
|
-
needsPayment: zod0.ZodBoolean;
|
|
6823
|
-
needsShipping: zod0.ZodBoolean;
|
|
6824
|
-
hasCalculatedShipping: zod0.ZodBoolean;
|
|
6825
|
-
paymentMethods: zod0.ZodArray<zod0.ZodObject<{
|
|
6826
|
-
id: zod0.ZodString;
|
|
6827
|
-
title: zod0.ZodString;
|
|
6828
|
-
description: zod0.ZodString;
|
|
6829
|
-
order: zod0.ZodNumber;
|
|
6830
|
-
enabled: zod0.ZodBoolean;
|
|
6831
|
-
}, zod_v4_core0.$strip>>;
|
|
6832
|
-
paymentRequirements: zod0.ZodArray<zod0.ZodString>;
|
|
6833
|
-
errors: zod0.ZodArray<zod0.ZodObject<{
|
|
6834
|
-
code: zod0.ZodString;
|
|
6835
|
-
message: zod0.ZodString;
|
|
6836
|
-
}, zod_v4_core0.$strip>>;
|
|
6837
|
-
totals: zod0.ZodObject<{
|
|
6838
|
-
itemsTotal: zod0.ZodNumber;
|
|
6839
|
-
itemsTaxTotal: zod0.ZodNumber;
|
|
6840
|
-
feesTotal: zod0.ZodNumber;
|
|
6841
|
-
feesTaxTotal: zod0.ZodNumber;
|
|
6842
|
-
discountTotal: zod0.ZodNumber;
|
|
6843
|
-
discountTaxTotal: zod0.ZodNumber;
|
|
6844
|
-
shippingTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6845
|
-
shippingTaxTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6846
|
-
total: zod0.ZodNumber;
|
|
6847
|
-
taxTotal: zod0.ZodNumber;
|
|
6848
|
-
taxLines: zod0.ZodArray<zod0.ZodObject<{
|
|
6849
|
-
name: zod0.ZodString;
|
|
6850
|
-
price: zod0.ZodNumber;
|
|
6851
|
-
rate: zod0.ZodString;
|
|
6852
|
-
}, zod_v4_core0.$strip>>;
|
|
6853
|
-
}, zod_v4_core0.$strip>;
|
|
6854
|
-
currencyFormat: zod0.ZodObject<{
|
|
6855
|
-
currencyCode: zod0.ZodString;
|
|
6856
|
-
currencySymbol: zod0.ZodString;
|
|
6857
|
-
currencyPrefix: zod0.ZodString;
|
|
6858
|
-
currencySuffix: zod0.ZodString;
|
|
6859
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
6860
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
6861
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
6862
|
-
}, zod_v4_core0.$strip>;
|
|
6863
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
6864
|
-
}, zod_v4_core0.$strip>>;
|
|
6865
|
-
}, zod_v4_core0.$strip>;
|
|
6866
|
-
};
|
|
6867
|
-
readonly CHECKOUT_CART_INVALID: {
|
|
6868
|
-
readonly status: 409;
|
|
6869
|
-
readonly message: "An item in the cart is no longer valid.";
|
|
6870
|
-
readonly data: zod0.ZodObject<{
|
|
6871
|
-
cart: zod0.ZodNullable<zod0.ZodObject<{
|
|
6872
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
6873
|
-
key: zod0.ZodString;
|
|
6874
|
-
productId: zod0.ZodNumber;
|
|
6875
|
-
variationId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6876
|
-
type: zod0.ZodString;
|
|
6877
|
-
name: zod0.ZodString;
|
|
6878
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
6879
|
-
slug: zod0.ZodString;
|
|
6880
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
6881
|
-
shortDescription: zod0.ZodString;
|
|
6882
|
-
description: zod0.ZodString;
|
|
6883
|
-
quantity: zod0.ZodNumber;
|
|
6884
|
-
quantityLimits: zod0.ZodObject<{
|
|
6885
|
-
minimum: zod0.ZodNumber;
|
|
6886
|
-
maximum: zod0.ZodNumber;
|
|
6887
|
-
multipleOf: zod0.ZodNumber;
|
|
6888
|
-
editable: zod0.ZodBoolean;
|
|
6889
|
-
}, zod_v4_core0.$strip>;
|
|
6890
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6891
|
-
allowsBackorders: zod0.ZodBoolean;
|
|
6892
|
-
showsBackorderBadge: zod0.ZodBoolean;
|
|
6893
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
6894
|
-
catalogVisibility: zod0.ZodString;
|
|
6895
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
6896
|
-
id: zod0.ZodNumber;
|
|
6897
|
-
name: zod0.ZodString;
|
|
6898
|
-
src: zod0.ZodString;
|
|
6899
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
6900
|
-
type: zod0.ZodLiteral<"image">;
|
|
6901
|
-
alt: zod0.ZodString;
|
|
6902
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6903
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
6904
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
6905
|
-
src: zod0.ZodString;
|
|
6906
|
-
width: zod0.ZodNumber;
|
|
6907
|
-
height: zod0.ZodNumber;
|
|
6908
|
-
}, zod_v4_core0.$strict>>>;
|
|
6909
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
6910
|
-
}, zod_v4_core0.$strict>>;
|
|
6911
|
-
selectedAttributes: zod0.ZodArray<zod0.ZodObject<{
|
|
6912
|
-
name: zod0.ZodString;
|
|
6913
|
-
attribute: zod0.ZodString;
|
|
6914
|
-
value: zod0.ZodString;
|
|
6915
|
-
}, zod_v4_core0.$strip>>;
|
|
6916
|
-
itemData: zod0.ZodArray<zod0.ZodObject<{
|
|
6917
|
-
name: zod0.ZodString;
|
|
6918
|
-
value: zod0.ZodString;
|
|
6919
|
-
display: zod0.ZodNullable<zod0.ZodString>;
|
|
6920
|
-
}, zod_v4_core0.$strip>>;
|
|
6921
|
-
prices: zod0.ZodObject<{
|
|
6922
|
-
price: zod0.ZodNumber;
|
|
6923
|
-
regularPrice: zod0.ZodNumber;
|
|
6924
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
6925
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
6926
|
-
minAmount: zod0.ZodNumber;
|
|
6927
|
-
maxAmount: zod0.ZodNumber;
|
|
6928
|
-
}, zod_v4_core0.$strip>>;
|
|
6929
|
-
}, zod_v4_core0.$strip>;
|
|
6930
|
-
totals: zod0.ZodObject<{
|
|
6931
|
-
subtotal: zod0.ZodNumber;
|
|
6932
|
-
subtotalTax: zod0.ZodNumber;
|
|
6933
|
-
total: zod0.ZodNumber;
|
|
6934
|
-
totalTax: zod0.ZodNumber;
|
|
6935
|
-
}, zod_v4_core0.$strip>;
|
|
6936
|
-
custom: zod0.ZodType<Record<string, unknown>, Record<string, unknown>, zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
6937
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
6938
|
-
}, zod_v4_core0.$strip>>;
|
|
6939
|
-
itemCount: zod0.ZodNumber;
|
|
6940
|
-
itemsWeight: zod0.ZodNumber;
|
|
6941
|
-
billingAddress: zod0.ZodObject<{
|
|
6942
|
-
additionalFields: zod0.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, zod_v4_core0.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
6943
|
-
taxId: zod0.ZodDefault<zod0.ZodString>;
|
|
6944
|
-
email: zod0.ZodString;
|
|
6945
|
-
firstName: zod0.ZodString;
|
|
6946
|
-
lastName: zod0.ZodString;
|
|
6947
|
-
company: zod0.ZodString;
|
|
6948
|
-
address1: zod0.ZodString;
|
|
6949
|
-
address2: zod0.ZodString;
|
|
6950
|
-
city: zod0.ZodString;
|
|
6951
|
-
state: zod0.ZodString;
|
|
6952
|
-
postcode: zod0.ZodString;
|
|
6953
|
-
country: zod0.ZodString;
|
|
6954
|
-
phone: zod0.ZodString;
|
|
6955
|
-
}, zod_v4_core0.$strip>;
|
|
6956
|
-
shippingAddress: zod0.ZodObject<{
|
|
6957
|
-
firstName: zod0.ZodString;
|
|
6958
|
-
lastName: zod0.ZodString;
|
|
6959
|
-
company: zod0.ZodString;
|
|
6960
|
-
address1: zod0.ZodString;
|
|
6961
|
-
address2: zod0.ZodString;
|
|
6962
|
-
city: zod0.ZodString;
|
|
6963
|
-
state: zod0.ZodString;
|
|
6964
|
-
postcode: zod0.ZodString;
|
|
6965
|
-
country: zod0.ZodString;
|
|
6966
|
-
phone: zod0.ZodString;
|
|
6967
|
-
additionalFields: zod0.ZodType<{
|
|
6968
|
-
[x: string]: string | boolean | undefined;
|
|
6969
|
-
}, Partial<{
|
|
6970
|
-
[x: string]: string | boolean | undefined;
|
|
6971
|
-
}>, zod_v4_core0.$ZodTypeInternals<{
|
|
6972
|
-
[x: string]: string | boolean | undefined;
|
|
6973
|
-
}, Partial<{
|
|
6974
|
-
[x: string]: string | boolean | undefined;
|
|
6975
|
-
}>>>;
|
|
6976
|
-
}, zod_v4_core0.$strip>;
|
|
6977
|
-
shippingPackages: zod0.ZodArray<zod0.ZodObject<{
|
|
6978
|
-
id: zod0.ZodUnion<readonly [zod0.ZodNumber, zod0.ZodString]>;
|
|
6979
|
-
name: zod0.ZodString;
|
|
6980
|
-
destination: zod0.ZodObject<{
|
|
6981
|
-
address1: zod0.ZodString;
|
|
6982
|
-
address2: zod0.ZodString;
|
|
6983
|
-
city: zod0.ZodString;
|
|
6984
|
-
state: zod0.ZodString;
|
|
6985
|
-
postcode: zod0.ZodString;
|
|
6986
|
-
country: zod0.ZodString;
|
|
6987
|
-
}, zod_v4_core0.$strip>;
|
|
6988
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
6989
|
-
key: zod0.ZodString;
|
|
6990
|
-
name: zod0.ZodString;
|
|
6991
|
-
quantity: zod0.ZodNumber;
|
|
6992
|
-
}, zod_v4_core0.$strip>>;
|
|
6993
|
-
rates: zod0.ZodArray<zod0.ZodObject<{
|
|
6994
|
-
id: zod0.ZodString;
|
|
6995
|
-
name: zod0.ZodString;
|
|
6996
|
-
description: zod0.ZodString;
|
|
6997
|
-
deliveryTime: zod0.ZodString;
|
|
6998
|
-
price: zod0.ZodNumber;
|
|
6999
|
-
taxes: zod0.ZodNumber;
|
|
7000
|
-
methodId: zod0.ZodString;
|
|
7001
|
-
instanceId: zod0.ZodNumber;
|
|
7002
|
-
metadata: zod0.ZodArray<zod0.ZodObject<{
|
|
7003
|
-
key: zod0.ZodString;
|
|
7004
|
-
value: zod0.ZodString;
|
|
7005
|
-
}, zod_v4_core0.$strip>>;
|
|
7006
|
-
selected: zod0.ZodBoolean;
|
|
7007
|
-
}, zod_v4_core0.$strip>>;
|
|
7008
|
-
}, zod_v4_core0.$strip>>;
|
|
7009
|
-
coupons: zod0.ZodArray<zod0.ZodObject<{
|
|
7010
|
-
code: zod0.ZodString;
|
|
7011
|
-
discountType: zod0.ZodString;
|
|
7012
|
-
totals: zod0.ZodObject<{
|
|
7013
|
-
discount: zod0.ZodNumber;
|
|
7014
|
-
discountTax: zod0.ZodNumber;
|
|
7015
|
-
}, zod_v4_core0.$strip>;
|
|
7016
|
-
}, zod_v4_core0.$strip>>;
|
|
7017
|
-
fees: zod0.ZodArray<zod0.ZodObject<{
|
|
7018
|
-
id: zod0.ZodString;
|
|
7019
|
-
name: zod0.ZodString;
|
|
7020
|
-
totals: zod0.ZodObject<{
|
|
7021
|
-
total: zod0.ZodNumber;
|
|
7022
|
-
tax: zod0.ZodNumber;
|
|
7023
|
-
}, zod_v4_core0.$strip>;
|
|
7024
|
-
}, zod_v4_core0.$strip>>;
|
|
7025
|
-
crossSells: zod0.ZodArray<zod0.ZodObject<{
|
|
7026
|
-
id: zod0.ZodNumber;
|
|
7027
|
-
name: zod0.ZodString;
|
|
7028
|
-
slug: zod0.ZodString;
|
|
7029
|
-
parentId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7030
|
-
type: zod0.ZodString;
|
|
7031
|
-
variationDescription: zod0.ZodString;
|
|
7032
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7033
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7034
|
-
shortDescription: zod0.ZodString;
|
|
7035
|
-
description: zod0.ZodString;
|
|
7036
|
-
isPasswordProtected: zod0.ZodBoolean;
|
|
7037
|
-
isOnSale: zod0.ZodBoolean;
|
|
7038
|
-
prices: zod0.ZodObject<{
|
|
7039
|
-
price: zod0.ZodNumber;
|
|
7040
|
-
regularPrice: zod0.ZodNumber;
|
|
7041
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7042
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7043
|
-
minAmount: zod0.ZodNumber;
|
|
7044
|
-
maxAmount: zod0.ZodNumber;
|
|
7045
|
-
}, zod_v4_core0.$strip>>;
|
|
7046
|
-
}, zod_v4_core0.$strip>;
|
|
7047
|
-
currencyFormat: zod0.ZodObject<{
|
|
7048
|
-
currencyCode: zod0.ZodString;
|
|
7049
|
-
currencySymbol: zod0.ZodString;
|
|
7050
|
-
currencyPrefix: zod0.ZodString;
|
|
7051
|
-
currencySuffix: zod0.ZodString;
|
|
7052
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7053
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7054
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7055
|
-
}, zod_v4_core0.$strip>;
|
|
7056
|
-
priceHtml: zod0.ZodString;
|
|
7057
|
-
averageRating: zod0.ZodNumber;
|
|
7058
|
-
reviewCount: zod0.ZodNumber;
|
|
7059
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7060
|
-
id: zod0.ZodNumber;
|
|
7061
|
-
name: zod0.ZodString;
|
|
7062
|
-
src: zod0.ZodString;
|
|
7063
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7064
|
-
type: zod0.ZodLiteral<"image">;
|
|
7065
|
-
alt: zod0.ZodString;
|
|
7066
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7067
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7068
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
7069
|
-
src: zod0.ZodString;
|
|
7070
|
-
width: zod0.ZodNumber;
|
|
7071
|
-
height: zod0.ZodNumber;
|
|
7072
|
-
}, zod_v4_core0.$strict>>>;
|
|
7073
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
7074
|
-
}, zod_v4_core0.$strict>>;
|
|
7075
|
-
categories: zod0.ZodArray<zod0.ZodObject<{
|
|
7076
|
-
id: zod0.ZodNumber;
|
|
7077
|
-
name: zod0.ZodString;
|
|
7078
|
-
slug: zod0.ZodString;
|
|
7079
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7080
|
-
}, zod_v4_core0.$strip>>;
|
|
7081
|
-
tags: zod0.ZodArray<zod0.ZodObject<{
|
|
7082
|
-
id: zod0.ZodNumber;
|
|
7083
|
-
name: zod0.ZodString;
|
|
7084
|
-
slug: zod0.ZodString;
|
|
7085
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7086
|
-
}, zod_v4_core0.$strip>>;
|
|
7087
|
-
brands: zod0.ZodArray<zod0.ZodObject<{
|
|
7088
|
-
id: zod0.ZodNumber;
|
|
7089
|
-
name: zod0.ZodString;
|
|
7090
|
-
slug: zod0.ZodString;
|
|
7091
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7092
|
-
}, zod_v4_core0.$strip>>;
|
|
7093
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7094
|
-
id: zod0.ZodNumber;
|
|
7095
|
-
name: zod0.ZodString;
|
|
7096
|
-
taxonomy: zod0.ZodNullable<zod0.ZodString>;
|
|
7097
|
-
hasVariations: zod0.ZodBoolean;
|
|
7098
|
-
terms: zod0.ZodArray<zod0.ZodObject<{
|
|
7099
|
-
id: zod0.ZodNumber;
|
|
7100
|
-
name: zod0.ZodString;
|
|
7101
|
-
slug: zod0.ZodString;
|
|
7102
|
-
isDefault: zod0.ZodBoolean;
|
|
7103
|
-
}, zod_v4_core0.$strip>>;
|
|
7104
|
-
}, zod_v4_core0.$strip>>;
|
|
7105
|
-
variations: zod0.ZodArray<zod0.ZodObject<{
|
|
7106
|
-
id: zod0.ZodNumber;
|
|
7107
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7108
|
-
name: zod0.ZodString;
|
|
7109
|
-
value: zod0.ZodNullable<zod0.ZodString>;
|
|
7110
|
-
}, zod_v4_core0.$strip>>;
|
|
7111
|
-
}, zod_v4_core0.$strip>>;
|
|
7112
|
-
groupedProductIds: zod0.ZodArray<zod0.ZodNumber>;
|
|
7113
|
-
hasOptions: zod0.ZodBoolean;
|
|
7114
|
-
isPurchasable: zod0.ZodBoolean;
|
|
7115
|
-
isInStock: zod0.ZodBoolean;
|
|
7116
|
-
isOnBackorder: zod0.ZodBoolean;
|
|
7117
|
-
stockAvailability: zod0.ZodObject<{
|
|
7118
|
-
text: zod0.ZodString;
|
|
7119
|
-
class: zod0.ZodString;
|
|
7120
|
-
}, zod_v4_core0.$strip>;
|
|
7121
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7122
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
7123
|
-
addToCart: zod0.ZodObject<{
|
|
7124
|
-
text: zod0.ZodString;
|
|
7125
|
-
description: zod0.ZodString;
|
|
7126
|
-
singleText: zod0.ZodString;
|
|
7127
|
-
minimum: zod0.ZodNumber;
|
|
7128
|
-
maximum: zod0.ZodNumber;
|
|
7129
|
-
multipleOf: zod0.ZodNumber;
|
|
7130
|
-
}, zod_v4_core0.$strip>;
|
|
7131
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7132
|
-
}, zod_v4_core0.$strip>>;
|
|
7133
|
-
needsPayment: zod0.ZodBoolean;
|
|
7134
|
-
needsShipping: zod0.ZodBoolean;
|
|
7135
|
-
hasCalculatedShipping: zod0.ZodBoolean;
|
|
7136
|
-
paymentMethods: zod0.ZodArray<zod0.ZodObject<{
|
|
7137
|
-
id: zod0.ZodString;
|
|
7138
|
-
title: zod0.ZodString;
|
|
7139
|
-
description: zod0.ZodString;
|
|
7140
|
-
order: zod0.ZodNumber;
|
|
7141
|
-
enabled: zod0.ZodBoolean;
|
|
7142
|
-
}, zod_v4_core0.$strip>>;
|
|
7143
|
-
paymentRequirements: zod0.ZodArray<zod0.ZodString>;
|
|
7144
|
-
errors: zod0.ZodArray<zod0.ZodObject<{
|
|
7145
|
-
code: zod0.ZodString;
|
|
7146
|
-
message: zod0.ZodString;
|
|
7147
|
-
}, zod_v4_core0.$strip>>;
|
|
7148
|
-
totals: zod0.ZodObject<{
|
|
7149
|
-
itemsTotal: zod0.ZodNumber;
|
|
7150
|
-
itemsTaxTotal: zod0.ZodNumber;
|
|
7151
|
-
feesTotal: zod0.ZodNumber;
|
|
7152
|
-
feesTaxTotal: zod0.ZodNumber;
|
|
7153
|
-
discountTotal: zod0.ZodNumber;
|
|
7154
|
-
discountTaxTotal: zod0.ZodNumber;
|
|
7155
|
-
shippingTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7156
|
-
shippingTaxTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7157
|
-
total: zod0.ZodNumber;
|
|
7158
|
-
taxTotal: zod0.ZodNumber;
|
|
7159
|
-
taxLines: zod0.ZodArray<zod0.ZodObject<{
|
|
7160
|
-
name: zod0.ZodString;
|
|
7161
|
-
price: zod0.ZodNumber;
|
|
7162
|
-
rate: zod0.ZodString;
|
|
7163
|
-
}, zod_v4_core0.$strip>>;
|
|
7164
|
-
}, zod_v4_core0.$strip>;
|
|
7165
|
-
currencyFormat: zod0.ZodObject<{
|
|
7166
|
-
currencyCode: zod0.ZodString;
|
|
7167
|
-
currencySymbol: zod0.ZodString;
|
|
7168
|
-
currencyPrefix: zod0.ZodString;
|
|
7169
|
-
currencySuffix: zod0.ZodString;
|
|
7170
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7171
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7172
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7173
|
-
}, zod_v4_core0.$strip>;
|
|
7174
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7175
|
-
}, zod_v4_core0.$strip>>;
|
|
7176
|
-
}, zod_v4_core0.$strip>;
|
|
7177
|
-
};
|
|
7178
|
-
readonly CHECKOUT_PRODUCT_INSUFFICIENT_STOCK: {
|
|
7179
|
-
readonly status: 409;
|
|
7180
|
-
readonly message: "Not enough stock for one or more items in the cart.";
|
|
7181
|
-
readonly data: zod0.ZodObject<{
|
|
7182
|
-
cart: zod0.ZodNullable<zod0.ZodObject<{
|
|
7183
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
7184
|
-
key: zod0.ZodString;
|
|
7185
|
-
productId: zod0.ZodNumber;
|
|
7186
|
-
variationId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7187
|
-
type: zod0.ZodString;
|
|
7188
|
-
name: zod0.ZodString;
|
|
7189
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7190
|
-
slug: zod0.ZodString;
|
|
7191
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7192
|
-
shortDescription: zod0.ZodString;
|
|
7193
|
-
description: zod0.ZodString;
|
|
7194
|
-
quantity: zod0.ZodNumber;
|
|
7195
|
-
quantityLimits: zod0.ZodObject<{
|
|
7196
|
-
minimum: zod0.ZodNumber;
|
|
7197
|
-
maximum: zod0.ZodNumber;
|
|
7198
|
-
multipleOf: zod0.ZodNumber;
|
|
7199
|
-
editable: zod0.ZodBoolean;
|
|
7200
|
-
}, zod_v4_core0.$strip>;
|
|
7201
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7202
|
-
allowsBackorders: zod0.ZodBoolean;
|
|
7203
|
-
showsBackorderBadge: zod0.ZodBoolean;
|
|
7204
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
7205
|
-
catalogVisibility: zod0.ZodString;
|
|
7206
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7207
|
-
id: zod0.ZodNumber;
|
|
7208
|
-
name: zod0.ZodString;
|
|
7209
|
-
src: zod0.ZodString;
|
|
7210
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7211
|
-
type: zod0.ZodLiteral<"image">;
|
|
7212
|
-
alt: zod0.ZodString;
|
|
7213
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7214
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7215
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
7216
|
-
src: zod0.ZodString;
|
|
7217
|
-
width: zod0.ZodNumber;
|
|
7218
|
-
height: zod0.ZodNumber;
|
|
7219
|
-
}, zod_v4_core0.$strict>>>;
|
|
7220
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
7221
|
-
}, zod_v4_core0.$strict>>;
|
|
7222
|
-
selectedAttributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7223
|
-
name: zod0.ZodString;
|
|
7224
|
-
attribute: zod0.ZodString;
|
|
7225
|
-
value: zod0.ZodString;
|
|
7226
|
-
}, zod_v4_core0.$strip>>;
|
|
7227
|
-
itemData: zod0.ZodArray<zod0.ZodObject<{
|
|
7228
|
-
name: zod0.ZodString;
|
|
7229
|
-
value: zod0.ZodString;
|
|
7230
|
-
display: zod0.ZodNullable<zod0.ZodString>;
|
|
7231
|
-
}, zod_v4_core0.$strip>>;
|
|
7232
|
-
prices: zod0.ZodObject<{
|
|
7233
|
-
price: zod0.ZodNumber;
|
|
7234
|
-
regularPrice: zod0.ZodNumber;
|
|
7235
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7236
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7237
|
-
minAmount: zod0.ZodNumber;
|
|
7238
|
-
maxAmount: zod0.ZodNumber;
|
|
7239
|
-
}, zod_v4_core0.$strip>>;
|
|
7240
|
-
}, zod_v4_core0.$strip>;
|
|
7241
|
-
totals: zod0.ZodObject<{
|
|
7242
|
-
subtotal: zod0.ZodNumber;
|
|
7243
|
-
subtotalTax: zod0.ZodNumber;
|
|
7244
|
-
total: zod0.ZodNumber;
|
|
7245
|
-
totalTax: zod0.ZodNumber;
|
|
7246
|
-
}, zod_v4_core0.$strip>;
|
|
7247
|
-
custom: zod0.ZodType<Record<string, unknown>, Record<string, unknown>, zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
7248
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7249
|
-
}, zod_v4_core0.$strip>>;
|
|
7250
|
-
itemCount: zod0.ZodNumber;
|
|
7251
|
-
itemsWeight: zod0.ZodNumber;
|
|
7252
|
-
billingAddress: zod0.ZodObject<{
|
|
7253
|
-
additionalFields: zod0.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, zod_v4_core0.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
7254
|
-
taxId: zod0.ZodDefault<zod0.ZodString>;
|
|
7255
|
-
email: zod0.ZodString;
|
|
7256
|
-
firstName: zod0.ZodString;
|
|
7257
|
-
lastName: zod0.ZodString;
|
|
7258
|
-
company: zod0.ZodString;
|
|
7259
|
-
address1: zod0.ZodString;
|
|
7260
|
-
address2: zod0.ZodString;
|
|
7261
|
-
city: zod0.ZodString;
|
|
7262
|
-
state: zod0.ZodString;
|
|
7263
|
-
postcode: zod0.ZodString;
|
|
7264
|
-
country: zod0.ZodString;
|
|
7265
|
-
phone: zod0.ZodString;
|
|
7266
|
-
}, zod_v4_core0.$strip>;
|
|
7267
|
-
shippingAddress: zod0.ZodObject<{
|
|
7268
|
-
firstName: zod0.ZodString;
|
|
7269
|
-
lastName: zod0.ZodString;
|
|
7270
|
-
company: zod0.ZodString;
|
|
7271
|
-
address1: zod0.ZodString;
|
|
7272
|
-
address2: zod0.ZodString;
|
|
7273
|
-
city: zod0.ZodString;
|
|
7274
|
-
state: zod0.ZodString;
|
|
7275
|
-
postcode: zod0.ZodString;
|
|
7276
|
-
country: zod0.ZodString;
|
|
7277
|
-
phone: zod0.ZodString;
|
|
7278
|
-
additionalFields: zod0.ZodType<{
|
|
7279
|
-
[x: string]: string | boolean | undefined;
|
|
7280
|
-
}, Partial<{
|
|
7281
|
-
[x: string]: string | boolean | undefined;
|
|
7282
|
-
}>, zod_v4_core0.$ZodTypeInternals<{
|
|
7283
|
-
[x: string]: string | boolean | undefined;
|
|
7284
|
-
}, Partial<{
|
|
7285
|
-
[x: string]: string | boolean | undefined;
|
|
7286
|
-
}>>>;
|
|
7287
|
-
}, zod_v4_core0.$strip>;
|
|
7288
|
-
shippingPackages: zod0.ZodArray<zod0.ZodObject<{
|
|
7289
|
-
id: zod0.ZodUnion<readonly [zod0.ZodNumber, zod0.ZodString]>;
|
|
7290
|
-
name: zod0.ZodString;
|
|
7291
|
-
destination: zod0.ZodObject<{
|
|
7292
|
-
address1: zod0.ZodString;
|
|
7293
|
-
address2: zod0.ZodString;
|
|
7294
|
-
city: zod0.ZodString;
|
|
7295
|
-
state: zod0.ZodString;
|
|
7296
|
-
postcode: zod0.ZodString;
|
|
7297
|
-
country: zod0.ZodString;
|
|
7298
|
-
}, zod_v4_core0.$strip>;
|
|
7299
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
7300
|
-
key: zod0.ZodString;
|
|
7301
|
-
name: zod0.ZodString;
|
|
7302
|
-
quantity: zod0.ZodNumber;
|
|
7303
|
-
}, zod_v4_core0.$strip>>;
|
|
7304
|
-
rates: zod0.ZodArray<zod0.ZodObject<{
|
|
7305
|
-
id: zod0.ZodString;
|
|
7306
|
-
name: zod0.ZodString;
|
|
7307
|
-
description: zod0.ZodString;
|
|
7308
|
-
deliveryTime: zod0.ZodString;
|
|
7309
|
-
price: zod0.ZodNumber;
|
|
7310
|
-
taxes: zod0.ZodNumber;
|
|
7311
|
-
methodId: zod0.ZodString;
|
|
7312
|
-
instanceId: zod0.ZodNumber;
|
|
7313
|
-
metadata: zod0.ZodArray<zod0.ZodObject<{
|
|
7314
|
-
key: zod0.ZodString;
|
|
7315
|
-
value: zod0.ZodString;
|
|
7316
|
-
}, zod_v4_core0.$strip>>;
|
|
7317
|
-
selected: zod0.ZodBoolean;
|
|
7318
|
-
}, zod_v4_core0.$strip>>;
|
|
7319
|
-
}, zod_v4_core0.$strip>>;
|
|
7320
|
-
coupons: zod0.ZodArray<zod0.ZodObject<{
|
|
7321
|
-
code: zod0.ZodString;
|
|
7322
|
-
discountType: zod0.ZodString;
|
|
7323
|
-
totals: zod0.ZodObject<{
|
|
7324
|
-
discount: zod0.ZodNumber;
|
|
7325
|
-
discountTax: zod0.ZodNumber;
|
|
7326
|
-
}, zod_v4_core0.$strip>;
|
|
7327
|
-
}, zod_v4_core0.$strip>>;
|
|
7328
|
-
fees: zod0.ZodArray<zod0.ZodObject<{
|
|
7329
|
-
id: zod0.ZodString;
|
|
7330
|
-
name: zod0.ZodString;
|
|
7331
|
-
totals: zod0.ZodObject<{
|
|
7332
|
-
total: zod0.ZodNumber;
|
|
7333
|
-
tax: zod0.ZodNumber;
|
|
7334
|
-
}, zod_v4_core0.$strip>;
|
|
7335
|
-
}, zod_v4_core0.$strip>>;
|
|
7336
|
-
crossSells: zod0.ZodArray<zod0.ZodObject<{
|
|
7337
|
-
id: zod0.ZodNumber;
|
|
7338
|
-
name: zod0.ZodString;
|
|
7339
|
-
slug: zod0.ZodString;
|
|
7340
|
-
parentId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7341
|
-
type: zod0.ZodString;
|
|
7342
|
-
variationDescription: zod0.ZodString;
|
|
7343
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7344
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7345
|
-
shortDescription: zod0.ZodString;
|
|
7346
|
-
description: zod0.ZodString;
|
|
7347
|
-
isPasswordProtected: zod0.ZodBoolean;
|
|
7348
|
-
isOnSale: zod0.ZodBoolean;
|
|
7349
|
-
prices: zod0.ZodObject<{
|
|
7350
|
-
price: zod0.ZodNumber;
|
|
7351
|
-
regularPrice: zod0.ZodNumber;
|
|
7352
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7353
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7354
|
-
minAmount: zod0.ZodNumber;
|
|
7355
|
-
maxAmount: zod0.ZodNumber;
|
|
7356
|
-
}, zod_v4_core0.$strip>>;
|
|
7357
|
-
}, zod_v4_core0.$strip>;
|
|
7358
|
-
currencyFormat: zod0.ZodObject<{
|
|
7359
|
-
currencyCode: zod0.ZodString;
|
|
7360
|
-
currencySymbol: zod0.ZodString;
|
|
7361
|
-
currencyPrefix: zod0.ZodString;
|
|
7362
|
-
currencySuffix: zod0.ZodString;
|
|
7363
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7364
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7365
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7366
|
-
}, zod_v4_core0.$strip>;
|
|
7367
|
-
priceHtml: zod0.ZodString;
|
|
7368
|
-
averageRating: zod0.ZodNumber;
|
|
7369
|
-
reviewCount: zod0.ZodNumber;
|
|
7370
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7371
|
-
id: zod0.ZodNumber;
|
|
7372
|
-
name: zod0.ZodString;
|
|
7373
|
-
src: zod0.ZodString;
|
|
7374
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7375
|
-
type: zod0.ZodLiteral<"image">;
|
|
7376
|
-
alt: zod0.ZodString;
|
|
7377
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7378
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7379
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
7380
|
-
src: zod0.ZodString;
|
|
7381
|
-
width: zod0.ZodNumber;
|
|
7382
|
-
height: zod0.ZodNumber;
|
|
7383
|
-
}, zod_v4_core0.$strict>>>;
|
|
7384
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
7385
|
-
}, zod_v4_core0.$strict>>;
|
|
7386
|
-
categories: zod0.ZodArray<zod0.ZodObject<{
|
|
7387
|
-
id: zod0.ZodNumber;
|
|
7388
|
-
name: zod0.ZodString;
|
|
7389
|
-
slug: zod0.ZodString;
|
|
7390
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7391
|
-
}, zod_v4_core0.$strip>>;
|
|
7392
|
-
tags: zod0.ZodArray<zod0.ZodObject<{
|
|
7393
|
-
id: zod0.ZodNumber;
|
|
7394
|
-
name: zod0.ZodString;
|
|
7395
|
-
slug: zod0.ZodString;
|
|
7396
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7397
|
-
}, zod_v4_core0.$strip>>;
|
|
7398
|
-
brands: zod0.ZodArray<zod0.ZodObject<{
|
|
7399
|
-
id: zod0.ZodNumber;
|
|
7400
|
-
name: zod0.ZodString;
|
|
7401
|
-
slug: zod0.ZodString;
|
|
7402
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7403
|
-
}, zod_v4_core0.$strip>>;
|
|
7404
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7405
|
-
id: zod0.ZodNumber;
|
|
7406
|
-
name: zod0.ZodString;
|
|
7407
|
-
taxonomy: zod0.ZodNullable<zod0.ZodString>;
|
|
7408
|
-
hasVariations: zod0.ZodBoolean;
|
|
7409
|
-
terms: zod0.ZodArray<zod0.ZodObject<{
|
|
7410
|
-
id: zod0.ZodNumber;
|
|
7411
|
-
name: zod0.ZodString;
|
|
7412
|
-
slug: zod0.ZodString;
|
|
7413
|
-
isDefault: zod0.ZodBoolean;
|
|
7414
|
-
}, zod_v4_core0.$strip>>;
|
|
7415
|
-
}, zod_v4_core0.$strip>>;
|
|
7416
|
-
variations: zod0.ZodArray<zod0.ZodObject<{
|
|
7417
|
-
id: zod0.ZodNumber;
|
|
7418
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7419
|
-
name: zod0.ZodString;
|
|
7420
|
-
value: zod0.ZodNullable<zod0.ZodString>;
|
|
7421
|
-
}, zod_v4_core0.$strip>>;
|
|
7422
|
-
}, zod_v4_core0.$strip>>;
|
|
7423
|
-
groupedProductIds: zod0.ZodArray<zod0.ZodNumber>;
|
|
7424
|
-
hasOptions: zod0.ZodBoolean;
|
|
7425
|
-
isPurchasable: zod0.ZodBoolean;
|
|
7426
|
-
isInStock: zod0.ZodBoolean;
|
|
7427
|
-
isOnBackorder: zod0.ZodBoolean;
|
|
7428
|
-
stockAvailability: zod0.ZodObject<{
|
|
7429
|
-
text: zod0.ZodString;
|
|
7430
|
-
class: zod0.ZodString;
|
|
7431
|
-
}, zod_v4_core0.$strip>;
|
|
7432
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7433
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
7434
|
-
addToCart: zod0.ZodObject<{
|
|
7435
|
-
text: zod0.ZodString;
|
|
7436
|
-
description: zod0.ZodString;
|
|
7437
|
-
singleText: zod0.ZodString;
|
|
7438
|
-
minimum: zod0.ZodNumber;
|
|
7439
|
-
maximum: zod0.ZodNumber;
|
|
7440
|
-
multipleOf: zod0.ZodNumber;
|
|
7441
|
-
}, zod_v4_core0.$strip>;
|
|
7442
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7443
|
-
}, zod_v4_core0.$strip>>;
|
|
7444
|
-
needsPayment: zod0.ZodBoolean;
|
|
7445
|
-
needsShipping: zod0.ZodBoolean;
|
|
7446
|
-
hasCalculatedShipping: zod0.ZodBoolean;
|
|
7447
|
-
paymentMethods: zod0.ZodArray<zod0.ZodObject<{
|
|
7448
|
-
id: zod0.ZodString;
|
|
7449
|
-
title: zod0.ZodString;
|
|
7450
|
-
description: zod0.ZodString;
|
|
7451
|
-
order: zod0.ZodNumber;
|
|
7452
|
-
enabled: zod0.ZodBoolean;
|
|
7453
|
-
}, zod_v4_core0.$strip>>;
|
|
7454
|
-
paymentRequirements: zod0.ZodArray<zod0.ZodString>;
|
|
7455
|
-
errors: zod0.ZodArray<zod0.ZodObject<{
|
|
7456
|
-
code: zod0.ZodString;
|
|
7457
|
-
message: zod0.ZodString;
|
|
7458
|
-
}, zod_v4_core0.$strip>>;
|
|
7459
|
-
totals: zod0.ZodObject<{
|
|
7460
|
-
itemsTotal: zod0.ZodNumber;
|
|
7461
|
-
itemsTaxTotal: zod0.ZodNumber;
|
|
7462
|
-
feesTotal: zod0.ZodNumber;
|
|
7463
|
-
feesTaxTotal: zod0.ZodNumber;
|
|
7464
|
-
discountTotal: zod0.ZodNumber;
|
|
7465
|
-
discountTaxTotal: zod0.ZodNumber;
|
|
7466
|
-
shippingTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7467
|
-
shippingTaxTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7468
|
-
total: zod0.ZodNumber;
|
|
7469
|
-
taxTotal: zod0.ZodNumber;
|
|
7470
|
-
taxLines: zod0.ZodArray<zod0.ZodObject<{
|
|
7471
|
-
name: zod0.ZodString;
|
|
7472
|
-
price: zod0.ZodNumber;
|
|
7473
|
-
rate: zod0.ZodString;
|
|
7474
|
-
}, zod_v4_core0.$strip>>;
|
|
7475
|
-
}, zod_v4_core0.$strip>;
|
|
7476
|
-
currencyFormat: zod0.ZodObject<{
|
|
7477
|
-
currencyCode: zod0.ZodString;
|
|
7478
|
-
currencySymbol: zod0.ZodString;
|
|
7479
|
-
currencyPrefix: zod0.ZodString;
|
|
7480
|
-
currencySuffix: zod0.ZodString;
|
|
7481
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7482
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7483
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7484
|
-
}, zod_v4_core0.$strip>;
|
|
7485
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7486
|
-
}, zod_v4_core0.$strip>>;
|
|
7487
|
-
}, zod_v4_core0.$strip>;
|
|
7488
|
-
};
|
|
7489
|
-
readonly CHECKOUT_PRODUCT_NOT_PURCHASABLE: {
|
|
7490
|
-
readonly status: 409;
|
|
7491
|
-
readonly message: "An item in the cart is no longer purchasable.";
|
|
7492
|
-
readonly data: zod0.ZodObject<{
|
|
7493
|
-
cart: zod0.ZodNullable<zod0.ZodObject<{
|
|
7494
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
7495
|
-
key: zod0.ZodString;
|
|
7496
|
-
productId: zod0.ZodNumber;
|
|
7497
|
-
variationId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7498
|
-
type: zod0.ZodString;
|
|
7499
|
-
name: zod0.ZodString;
|
|
7500
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7501
|
-
slug: zod0.ZodString;
|
|
7502
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7503
|
-
shortDescription: zod0.ZodString;
|
|
7504
|
-
description: zod0.ZodString;
|
|
7505
|
-
quantity: zod0.ZodNumber;
|
|
7506
|
-
quantityLimits: zod0.ZodObject<{
|
|
7507
|
-
minimum: zod0.ZodNumber;
|
|
7508
|
-
maximum: zod0.ZodNumber;
|
|
7509
|
-
multipleOf: zod0.ZodNumber;
|
|
7510
|
-
editable: zod0.ZodBoolean;
|
|
7511
|
-
}, zod_v4_core0.$strip>;
|
|
7512
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7513
|
-
allowsBackorders: zod0.ZodBoolean;
|
|
7514
|
-
showsBackorderBadge: zod0.ZodBoolean;
|
|
7515
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
7516
|
-
catalogVisibility: zod0.ZodString;
|
|
7517
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7518
|
-
id: zod0.ZodNumber;
|
|
7519
|
-
name: zod0.ZodString;
|
|
7520
|
-
src: zod0.ZodString;
|
|
7521
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7522
|
-
type: zod0.ZodLiteral<"image">;
|
|
7523
|
-
alt: zod0.ZodString;
|
|
7524
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7525
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7526
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
7527
|
-
src: zod0.ZodString;
|
|
7528
|
-
width: zod0.ZodNumber;
|
|
7529
|
-
height: zod0.ZodNumber;
|
|
7530
|
-
}, zod_v4_core0.$strict>>>;
|
|
7531
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
7532
|
-
}, zod_v4_core0.$strict>>;
|
|
7533
|
-
selectedAttributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7534
|
-
name: zod0.ZodString;
|
|
7535
|
-
attribute: zod0.ZodString;
|
|
7536
|
-
value: zod0.ZodString;
|
|
7537
|
-
}, zod_v4_core0.$strip>>;
|
|
7538
|
-
itemData: zod0.ZodArray<zod0.ZodObject<{
|
|
7539
|
-
name: zod0.ZodString;
|
|
7540
|
-
value: zod0.ZodString;
|
|
7541
|
-
display: zod0.ZodNullable<zod0.ZodString>;
|
|
7542
|
-
}, zod_v4_core0.$strip>>;
|
|
7543
|
-
prices: zod0.ZodObject<{
|
|
7544
|
-
price: zod0.ZodNumber;
|
|
7545
|
-
regularPrice: zod0.ZodNumber;
|
|
7546
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7547
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7548
|
-
minAmount: zod0.ZodNumber;
|
|
7549
|
-
maxAmount: zod0.ZodNumber;
|
|
7550
|
-
}, zod_v4_core0.$strip>>;
|
|
7551
|
-
}, zod_v4_core0.$strip>;
|
|
7552
|
-
totals: zod0.ZodObject<{
|
|
7553
|
-
subtotal: zod0.ZodNumber;
|
|
7554
|
-
subtotalTax: zod0.ZodNumber;
|
|
7555
|
-
total: zod0.ZodNumber;
|
|
7556
|
-
totalTax: zod0.ZodNumber;
|
|
7557
|
-
}, zod_v4_core0.$strip>;
|
|
7558
|
-
custom: zod0.ZodType<Record<string, unknown>, Record<string, unknown>, zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
7559
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7560
|
-
}, zod_v4_core0.$strip>>;
|
|
7561
|
-
itemCount: zod0.ZodNumber;
|
|
7562
|
-
itemsWeight: zod0.ZodNumber;
|
|
7563
|
-
billingAddress: zod0.ZodObject<{
|
|
7564
|
-
additionalFields: zod0.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, zod_v4_core0.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
7565
|
-
taxId: zod0.ZodDefault<zod0.ZodString>;
|
|
7566
|
-
email: zod0.ZodString;
|
|
7567
|
-
firstName: zod0.ZodString;
|
|
7568
|
-
lastName: zod0.ZodString;
|
|
7569
|
-
company: zod0.ZodString;
|
|
7570
|
-
address1: zod0.ZodString;
|
|
7571
|
-
address2: zod0.ZodString;
|
|
7572
|
-
city: zod0.ZodString;
|
|
7573
|
-
state: zod0.ZodString;
|
|
7574
|
-
postcode: zod0.ZodString;
|
|
7575
|
-
country: zod0.ZodString;
|
|
7576
|
-
phone: zod0.ZodString;
|
|
7577
|
-
}, zod_v4_core0.$strip>;
|
|
7578
|
-
shippingAddress: zod0.ZodObject<{
|
|
7579
|
-
firstName: zod0.ZodString;
|
|
7580
|
-
lastName: zod0.ZodString;
|
|
7581
|
-
company: zod0.ZodString;
|
|
7582
|
-
address1: zod0.ZodString;
|
|
7583
|
-
address2: zod0.ZodString;
|
|
7584
|
-
city: zod0.ZodString;
|
|
7585
|
-
state: zod0.ZodString;
|
|
7586
|
-
postcode: zod0.ZodString;
|
|
7587
|
-
country: zod0.ZodString;
|
|
7588
|
-
phone: zod0.ZodString;
|
|
7589
|
-
additionalFields: zod0.ZodType<{
|
|
7590
|
-
[x: string]: string | boolean | undefined;
|
|
7591
|
-
}, Partial<{
|
|
7592
|
-
[x: string]: string | boolean | undefined;
|
|
7593
|
-
}>, zod_v4_core0.$ZodTypeInternals<{
|
|
7594
|
-
[x: string]: string | boolean | undefined;
|
|
7595
|
-
}, Partial<{
|
|
7596
|
-
[x: string]: string | boolean | undefined;
|
|
7597
|
-
}>>>;
|
|
7598
|
-
}, zod_v4_core0.$strip>;
|
|
7599
|
-
shippingPackages: zod0.ZodArray<zod0.ZodObject<{
|
|
7600
|
-
id: zod0.ZodUnion<readonly [zod0.ZodNumber, zod0.ZodString]>;
|
|
7601
|
-
name: zod0.ZodString;
|
|
7602
|
-
destination: zod0.ZodObject<{
|
|
7603
|
-
address1: zod0.ZodString;
|
|
7604
|
-
address2: zod0.ZodString;
|
|
7605
|
-
city: zod0.ZodString;
|
|
7606
|
-
state: zod0.ZodString;
|
|
7607
|
-
postcode: zod0.ZodString;
|
|
7608
|
-
country: zod0.ZodString;
|
|
7609
|
-
}, zod_v4_core0.$strip>;
|
|
7610
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
7611
|
-
key: zod0.ZodString;
|
|
7612
|
-
name: zod0.ZodString;
|
|
7613
|
-
quantity: zod0.ZodNumber;
|
|
7614
|
-
}, zod_v4_core0.$strip>>;
|
|
7615
|
-
rates: zod0.ZodArray<zod0.ZodObject<{
|
|
7616
|
-
id: zod0.ZodString;
|
|
7617
|
-
name: zod0.ZodString;
|
|
7618
|
-
description: zod0.ZodString;
|
|
7619
|
-
deliveryTime: zod0.ZodString;
|
|
7620
|
-
price: zod0.ZodNumber;
|
|
7621
|
-
taxes: zod0.ZodNumber;
|
|
7622
|
-
methodId: zod0.ZodString;
|
|
7623
|
-
instanceId: zod0.ZodNumber;
|
|
7624
|
-
metadata: zod0.ZodArray<zod0.ZodObject<{
|
|
7625
|
-
key: zod0.ZodString;
|
|
7626
|
-
value: zod0.ZodString;
|
|
7627
|
-
}, zod_v4_core0.$strip>>;
|
|
7628
|
-
selected: zod0.ZodBoolean;
|
|
7629
|
-
}, zod_v4_core0.$strip>>;
|
|
7630
|
-
}, zod_v4_core0.$strip>>;
|
|
7631
|
-
coupons: zod0.ZodArray<zod0.ZodObject<{
|
|
7632
|
-
code: zod0.ZodString;
|
|
7633
|
-
discountType: zod0.ZodString;
|
|
7634
|
-
totals: zod0.ZodObject<{
|
|
7635
|
-
discount: zod0.ZodNumber;
|
|
7636
|
-
discountTax: zod0.ZodNumber;
|
|
7637
|
-
}, zod_v4_core0.$strip>;
|
|
7638
|
-
}, zod_v4_core0.$strip>>;
|
|
7639
|
-
fees: zod0.ZodArray<zod0.ZodObject<{
|
|
7640
|
-
id: zod0.ZodString;
|
|
7641
|
-
name: zod0.ZodString;
|
|
7642
|
-
totals: zod0.ZodObject<{
|
|
7643
|
-
total: zod0.ZodNumber;
|
|
7644
|
-
tax: zod0.ZodNumber;
|
|
7645
|
-
}, zod_v4_core0.$strip>;
|
|
7646
|
-
}, zod_v4_core0.$strip>>;
|
|
7647
|
-
crossSells: zod0.ZodArray<zod0.ZodObject<{
|
|
7648
|
-
id: zod0.ZodNumber;
|
|
7649
|
-
name: zod0.ZodString;
|
|
7650
|
-
slug: zod0.ZodString;
|
|
7651
|
-
parentId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7652
|
-
type: zod0.ZodString;
|
|
7653
|
-
variationDescription: zod0.ZodString;
|
|
7654
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7655
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7656
|
-
shortDescription: zod0.ZodString;
|
|
7657
|
-
description: zod0.ZodString;
|
|
7658
|
-
isPasswordProtected: zod0.ZodBoolean;
|
|
7659
|
-
isOnSale: zod0.ZodBoolean;
|
|
7660
|
-
prices: zod0.ZodObject<{
|
|
7661
|
-
price: zod0.ZodNumber;
|
|
7662
|
-
regularPrice: zod0.ZodNumber;
|
|
7663
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7664
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7665
|
-
minAmount: zod0.ZodNumber;
|
|
7666
|
-
maxAmount: zod0.ZodNumber;
|
|
7667
|
-
}, zod_v4_core0.$strip>>;
|
|
7668
|
-
}, zod_v4_core0.$strip>;
|
|
7669
|
-
currencyFormat: zod0.ZodObject<{
|
|
7670
|
-
currencyCode: zod0.ZodString;
|
|
7671
|
-
currencySymbol: zod0.ZodString;
|
|
7672
|
-
currencyPrefix: zod0.ZodString;
|
|
7673
|
-
currencySuffix: zod0.ZodString;
|
|
7674
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7675
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7676
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7677
|
-
}, zod_v4_core0.$strip>;
|
|
7678
|
-
priceHtml: zod0.ZodString;
|
|
7679
|
-
averageRating: zod0.ZodNumber;
|
|
7680
|
-
reviewCount: zod0.ZodNumber;
|
|
7681
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7682
|
-
id: zod0.ZodNumber;
|
|
7683
|
-
name: zod0.ZodString;
|
|
7684
|
-
src: zod0.ZodString;
|
|
7685
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7686
|
-
type: zod0.ZodLiteral<"image">;
|
|
7687
|
-
alt: zod0.ZodString;
|
|
7688
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7689
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7690
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
7691
|
-
src: zod0.ZodString;
|
|
7692
|
-
width: zod0.ZodNumber;
|
|
7693
|
-
height: zod0.ZodNumber;
|
|
7694
|
-
}, zod_v4_core0.$strict>>>;
|
|
7695
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
7696
|
-
}, zod_v4_core0.$strict>>;
|
|
7697
|
-
categories: zod0.ZodArray<zod0.ZodObject<{
|
|
7698
|
-
id: zod0.ZodNumber;
|
|
7699
|
-
name: zod0.ZodString;
|
|
7700
|
-
slug: zod0.ZodString;
|
|
7701
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7702
|
-
}, zod_v4_core0.$strip>>;
|
|
7703
|
-
tags: zod0.ZodArray<zod0.ZodObject<{
|
|
7704
|
-
id: zod0.ZodNumber;
|
|
7705
|
-
name: zod0.ZodString;
|
|
7706
|
-
slug: zod0.ZodString;
|
|
7707
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7708
|
-
}, zod_v4_core0.$strip>>;
|
|
7709
|
-
brands: zod0.ZodArray<zod0.ZodObject<{
|
|
7710
|
-
id: zod0.ZodNumber;
|
|
7711
|
-
name: zod0.ZodString;
|
|
7712
|
-
slug: zod0.ZodString;
|
|
7713
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7714
|
-
}, zod_v4_core0.$strip>>;
|
|
7715
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7716
|
-
id: zod0.ZodNumber;
|
|
7717
|
-
name: zod0.ZodString;
|
|
7718
|
-
taxonomy: zod0.ZodNullable<zod0.ZodString>;
|
|
7719
|
-
hasVariations: zod0.ZodBoolean;
|
|
7720
|
-
terms: zod0.ZodArray<zod0.ZodObject<{
|
|
7721
|
-
id: zod0.ZodNumber;
|
|
7722
|
-
name: zod0.ZodString;
|
|
7723
|
-
slug: zod0.ZodString;
|
|
7724
|
-
isDefault: zod0.ZodBoolean;
|
|
7725
|
-
}, zod_v4_core0.$strip>>;
|
|
7726
|
-
}, zod_v4_core0.$strip>>;
|
|
7727
|
-
variations: zod0.ZodArray<zod0.ZodObject<{
|
|
7728
|
-
id: zod0.ZodNumber;
|
|
7729
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7730
|
-
name: zod0.ZodString;
|
|
7731
|
-
value: zod0.ZodNullable<zod0.ZodString>;
|
|
7732
|
-
}, zod_v4_core0.$strip>>;
|
|
7733
|
-
}, zod_v4_core0.$strip>>;
|
|
7734
|
-
groupedProductIds: zod0.ZodArray<zod0.ZodNumber>;
|
|
7735
|
-
hasOptions: zod0.ZodBoolean;
|
|
7736
|
-
isPurchasable: zod0.ZodBoolean;
|
|
7737
|
-
isInStock: zod0.ZodBoolean;
|
|
7738
|
-
isOnBackorder: zod0.ZodBoolean;
|
|
7739
|
-
stockAvailability: zod0.ZodObject<{
|
|
7740
|
-
text: zod0.ZodString;
|
|
7741
|
-
class: zod0.ZodString;
|
|
7742
|
-
}, zod_v4_core0.$strip>;
|
|
7743
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7744
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
7745
|
-
addToCart: zod0.ZodObject<{
|
|
7746
|
-
text: zod0.ZodString;
|
|
7747
|
-
description: zod0.ZodString;
|
|
7748
|
-
singleText: zod0.ZodString;
|
|
7749
|
-
minimum: zod0.ZodNumber;
|
|
7750
|
-
maximum: zod0.ZodNumber;
|
|
7751
|
-
multipleOf: zod0.ZodNumber;
|
|
7752
|
-
}, zod_v4_core0.$strip>;
|
|
7753
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7754
|
-
}, zod_v4_core0.$strip>>;
|
|
7755
|
-
needsPayment: zod0.ZodBoolean;
|
|
7756
|
-
needsShipping: zod0.ZodBoolean;
|
|
7757
|
-
hasCalculatedShipping: zod0.ZodBoolean;
|
|
7758
|
-
paymentMethods: zod0.ZodArray<zod0.ZodObject<{
|
|
7759
|
-
id: zod0.ZodString;
|
|
7760
|
-
title: zod0.ZodString;
|
|
7761
|
-
description: zod0.ZodString;
|
|
7762
|
-
order: zod0.ZodNumber;
|
|
7763
|
-
enabled: zod0.ZodBoolean;
|
|
7764
|
-
}, zod_v4_core0.$strip>>;
|
|
7765
|
-
paymentRequirements: zod0.ZodArray<zod0.ZodString>;
|
|
7766
|
-
errors: zod0.ZodArray<zod0.ZodObject<{
|
|
7767
|
-
code: zod0.ZodString;
|
|
7768
|
-
message: zod0.ZodString;
|
|
7769
|
-
}, zod_v4_core0.$strip>>;
|
|
7770
|
-
totals: zod0.ZodObject<{
|
|
7771
|
-
itemsTotal: zod0.ZodNumber;
|
|
7772
|
-
itemsTaxTotal: zod0.ZodNumber;
|
|
7773
|
-
feesTotal: zod0.ZodNumber;
|
|
7774
|
-
feesTaxTotal: zod0.ZodNumber;
|
|
7775
|
-
discountTotal: zod0.ZodNumber;
|
|
7776
|
-
discountTaxTotal: zod0.ZodNumber;
|
|
7777
|
-
shippingTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7778
|
-
shippingTaxTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7779
|
-
total: zod0.ZodNumber;
|
|
7780
|
-
taxTotal: zod0.ZodNumber;
|
|
7781
|
-
taxLines: zod0.ZodArray<zod0.ZodObject<{
|
|
7782
|
-
name: zod0.ZodString;
|
|
7783
|
-
price: zod0.ZodNumber;
|
|
7784
|
-
rate: zod0.ZodString;
|
|
7785
|
-
}, zod_v4_core0.$strip>>;
|
|
7786
|
-
}, zod_v4_core0.$strip>;
|
|
7787
|
-
currencyFormat: zod0.ZodObject<{
|
|
7788
|
-
currencyCode: zod0.ZodString;
|
|
7789
|
-
currencySymbol: zod0.ZodString;
|
|
7790
|
-
currencyPrefix: zod0.ZodString;
|
|
7791
|
-
currencySuffix: zod0.ZodString;
|
|
7792
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7793
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7794
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7795
|
-
}, zod_v4_core0.$strip>;
|
|
7796
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7797
|
-
}, zod_v4_core0.$strip>>;
|
|
7798
|
-
}, zod_v4_core0.$strip>;
|
|
7799
|
-
};
|
|
7800
|
-
readonly CHECKOUT_PRODUCT_OUT_OF_STOCK: {
|
|
7801
|
-
readonly status: 409;
|
|
7802
|
-
readonly message: "An item in the cart is out of stock.";
|
|
7803
|
-
readonly data: zod0.ZodObject<{
|
|
7804
|
-
cart: zod0.ZodNullable<zod0.ZodObject<{
|
|
7805
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
7806
|
-
key: zod0.ZodString;
|
|
7807
|
-
productId: zod0.ZodNumber;
|
|
7808
|
-
variationId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7809
|
-
type: zod0.ZodString;
|
|
7810
|
-
name: zod0.ZodString;
|
|
7811
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7812
|
-
slug: zod0.ZodString;
|
|
7813
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7814
|
-
shortDescription: zod0.ZodString;
|
|
7815
|
-
description: zod0.ZodString;
|
|
7816
|
-
quantity: zod0.ZodNumber;
|
|
7817
|
-
quantityLimits: zod0.ZodObject<{
|
|
7818
|
-
minimum: zod0.ZodNumber;
|
|
7819
|
-
maximum: zod0.ZodNumber;
|
|
7820
|
-
multipleOf: zod0.ZodNumber;
|
|
7821
|
-
editable: zod0.ZodBoolean;
|
|
7822
|
-
}, zod_v4_core0.$strip>;
|
|
7823
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7824
|
-
allowsBackorders: zod0.ZodBoolean;
|
|
7825
|
-
showsBackorderBadge: zod0.ZodBoolean;
|
|
7826
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
7827
|
-
catalogVisibility: zod0.ZodString;
|
|
7828
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7829
|
-
id: zod0.ZodNumber;
|
|
7830
|
-
name: zod0.ZodString;
|
|
7831
|
-
src: zod0.ZodString;
|
|
7832
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7833
|
-
type: zod0.ZodLiteral<"image">;
|
|
7834
|
-
alt: zod0.ZodString;
|
|
7835
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7836
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
7837
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
7838
|
-
src: zod0.ZodString;
|
|
7839
|
-
width: zod0.ZodNumber;
|
|
7840
|
-
height: zod0.ZodNumber;
|
|
7841
|
-
}, zod_v4_core0.$strict>>>;
|
|
7842
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
7843
|
-
}, zod_v4_core0.$strict>>;
|
|
7844
|
-
selectedAttributes: zod0.ZodArray<zod0.ZodObject<{
|
|
7845
|
-
name: zod0.ZodString;
|
|
7846
|
-
attribute: zod0.ZodString;
|
|
7847
|
-
value: zod0.ZodString;
|
|
7848
|
-
}, zod_v4_core0.$strip>>;
|
|
7849
|
-
itemData: zod0.ZodArray<zod0.ZodObject<{
|
|
7850
|
-
name: zod0.ZodString;
|
|
7851
|
-
value: zod0.ZodString;
|
|
7852
|
-
display: zod0.ZodNullable<zod0.ZodString>;
|
|
7853
|
-
}, zod_v4_core0.$strip>>;
|
|
7854
|
-
prices: zod0.ZodObject<{
|
|
7855
|
-
price: zod0.ZodNumber;
|
|
7856
|
-
regularPrice: zod0.ZodNumber;
|
|
7857
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7858
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7859
|
-
minAmount: zod0.ZodNumber;
|
|
7860
|
-
maxAmount: zod0.ZodNumber;
|
|
7861
|
-
}, zod_v4_core0.$strip>>;
|
|
7862
|
-
}, zod_v4_core0.$strip>;
|
|
7863
|
-
totals: zod0.ZodObject<{
|
|
7864
|
-
subtotal: zod0.ZodNumber;
|
|
7865
|
-
subtotalTax: zod0.ZodNumber;
|
|
7866
|
-
total: zod0.ZodNumber;
|
|
7867
|
-
totalTax: zod0.ZodNumber;
|
|
7868
|
-
}, zod_v4_core0.$strip>;
|
|
7869
|
-
custom: zod0.ZodType<Record<string, unknown>, Record<string, unknown>, zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
7870
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
7871
|
-
}, zod_v4_core0.$strip>>;
|
|
7872
|
-
itemCount: zod0.ZodNumber;
|
|
7873
|
-
itemsWeight: zod0.ZodNumber;
|
|
7874
|
-
billingAddress: zod0.ZodObject<{
|
|
7875
|
-
additionalFields: zod0.ZodType<BillingAdditionalFields, BillingAdditionalFieldsInput, zod_v4_core0.$ZodTypeInternals<BillingAdditionalFields, BillingAdditionalFieldsInput>>;
|
|
7876
|
-
taxId: zod0.ZodDefault<zod0.ZodString>;
|
|
7877
|
-
email: zod0.ZodString;
|
|
7878
|
-
firstName: zod0.ZodString;
|
|
7879
|
-
lastName: zod0.ZodString;
|
|
7880
|
-
company: zod0.ZodString;
|
|
7881
|
-
address1: zod0.ZodString;
|
|
7882
|
-
address2: zod0.ZodString;
|
|
7883
|
-
city: zod0.ZodString;
|
|
7884
|
-
state: zod0.ZodString;
|
|
7885
|
-
postcode: zod0.ZodString;
|
|
7886
|
-
country: zod0.ZodString;
|
|
7887
|
-
phone: zod0.ZodString;
|
|
7888
|
-
}, zod_v4_core0.$strip>;
|
|
7889
|
-
shippingAddress: zod0.ZodObject<{
|
|
7890
|
-
firstName: zod0.ZodString;
|
|
7891
|
-
lastName: zod0.ZodString;
|
|
7892
|
-
company: zod0.ZodString;
|
|
7893
|
-
address1: zod0.ZodString;
|
|
7894
|
-
address2: zod0.ZodString;
|
|
7895
|
-
city: zod0.ZodString;
|
|
7896
|
-
state: zod0.ZodString;
|
|
7897
|
-
postcode: zod0.ZodString;
|
|
7898
|
-
country: zod0.ZodString;
|
|
7899
|
-
phone: zod0.ZodString;
|
|
7900
|
-
additionalFields: zod0.ZodType<{
|
|
7901
|
-
[x: string]: string | boolean | undefined;
|
|
7902
|
-
}, Partial<{
|
|
7903
|
-
[x: string]: string | boolean | undefined;
|
|
7904
|
-
}>, zod_v4_core0.$ZodTypeInternals<{
|
|
7905
|
-
[x: string]: string | boolean | undefined;
|
|
7906
|
-
}, Partial<{
|
|
7907
|
-
[x: string]: string | boolean | undefined;
|
|
7908
|
-
}>>>;
|
|
7909
|
-
}, zod_v4_core0.$strip>;
|
|
7910
|
-
shippingPackages: zod0.ZodArray<zod0.ZodObject<{
|
|
7911
|
-
id: zod0.ZodUnion<readonly [zod0.ZodNumber, zod0.ZodString]>;
|
|
7912
|
-
name: zod0.ZodString;
|
|
7913
|
-
destination: zod0.ZodObject<{
|
|
7914
|
-
address1: zod0.ZodString;
|
|
7915
|
-
address2: zod0.ZodString;
|
|
7916
|
-
city: zod0.ZodString;
|
|
7917
|
-
state: zod0.ZodString;
|
|
7918
|
-
postcode: zod0.ZodString;
|
|
7919
|
-
country: zod0.ZodString;
|
|
7920
|
-
}, zod_v4_core0.$strip>;
|
|
7921
|
-
items: zod0.ZodArray<zod0.ZodObject<{
|
|
7922
|
-
key: zod0.ZodString;
|
|
7923
|
-
name: zod0.ZodString;
|
|
7924
|
-
quantity: zod0.ZodNumber;
|
|
7925
|
-
}, zod_v4_core0.$strip>>;
|
|
7926
|
-
rates: zod0.ZodArray<zod0.ZodObject<{
|
|
7927
|
-
id: zod0.ZodString;
|
|
7928
|
-
name: zod0.ZodString;
|
|
7929
|
-
description: zod0.ZodString;
|
|
7930
|
-
deliveryTime: zod0.ZodString;
|
|
7931
|
-
price: zod0.ZodNumber;
|
|
7932
|
-
taxes: zod0.ZodNumber;
|
|
7933
|
-
methodId: zod0.ZodString;
|
|
7934
|
-
instanceId: zod0.ZodNumber;
|
|
7935
|
-
metadata: zod0.ZodArray<zod0.ZodObject<{
|
|
7936
|
-
key: zod0.ZodString;
|
|
7937
|
-
value: zod0.ZodString;
|
|
7938
|
-
}, zod_v4_core0.$strip>>;
|
|
7939
|
-
selected: zod0.ZodBoolean;
|
|
7940
|
-
}, zod_v4_core0.$strip>>;
|
|
7941
|
-
}, zod_v4_core0.$strip>>;
|
|
7942
|
-
coupons: zod0.ZodArray<zod0.ZodObject<{
|
|
7943
|
-
code: zod0.ZodString;
|
|
7944
|
-
discountType: zod0.ZodString;
|
|
7945
|
-
totals: zod0.ZodObject<{
|
|
7946
|
-
discount: zod0.ZodNumber;
|
|
7947
|
-
discountTax: zod0.ZodNumber;
|
|
7948
|
-
}, zod_v4_core0.$strip>;
|
|
7949
|
-
}, zod_v4_core0.$strip>>;
|
|
7950
|
-
fees: zod0.ZodArray<zod0.ZodObject<{
|
|
7951
|
-
id: zod0.ZodString;
|
|
7952
|
-
name: zod0.ZodString;
|
|
7953
|
-
totals: zod0.ZodObject<{
|
|
7954
|
-
total: zod0.ZodNumber;
|
|
7955
|
-
tax: zod0.ZodNumber;
|
|
7956
|
-
}, zod_v4_core0.$strip>;
|
|
7957
|
-
}, zod_v4_core0.$strip>>;
|
|
7958
|
-
crossSells: zod0.ZodArray<zod0.ZodObject<{
|
|
7959
|
-
id: zod0.ZodNumber;
|
|
7960
|
-
name: zod0.ZodString;
|
|
7961
|
-
slug: zod0.ZodString;
|
|
7962
|
-
parentId: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7963
|
-
type: zod0.ZodString;
|
|
7964
|
-
variationDescription: zod0.ZodString;
|
|
7965
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
7966
|
-
sku: zod0.ZodNullable<zod0.ZodString>;
|
|
7967
|
-
shortDescription: zod0.ZodString;
|
|
7968
|
-
description: zod0.ZodString;
|
|
7969
|
-
isPasswordProtected: zod0.ZodBoolean;
|
|
7970
|
-
isOnSale: zod0.ZodBoolean;
|
|
7971
|
-
prices: zod0.ZodObject<{
|
|
7972
|
-
price: zod0.ZodNumber;
|
|
7973
|
-
regularPrice: zod0.ZodNumber;
|
|
7974
|
-
salePrice: zod0.ZodNullable<zod0.ZodNumber>;
|
|
7975
|
-
priceRange: zod0.ZodNullable<zod0.ZodObject<{
|
|
7976
|
-
minAmount: zod0.ZodNumber;
|
|
7977
|
-
maxAmount: zod0.ZodNumber;
|
|
7978
|
-
}, zod_v4_core0.$strip>>;
|
|
7979
|
-
}, zod_v4_core0.$strip>;
|
|
7980
|
-
currencyFormat: zod0.ZodObject<{
|
|
7981
|
-
currencyCode: zod0.ZodString;
|
|
7982
|
-
currencySymbol: zod0.ZodString;
|
|
7983
|
-
currencyPrefix: zod0.ZodString;
|
|
7984
|
-
currencySuffix: zod0.ZodString;
|
|
7985
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
7986
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
7987
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
7988
|
-
}, zod_v4_core0.$strip>;
|
|
7989
|
-
priceHtml: zod0.ZodString;
|
|
7990
|
-
averageRating: zod0.ZodNumber;
|
|
7991
|
-
reviewCount: zod0.ZodNumber;
|
|
7992
|
-
images: zod0.ZodArray<zod0.ZodObject<{
|
|
7993
|
-
id: zod0.ZodNumber;
|
|
7994
|
-
name: zod0.ZodString;
|
|
7995
|
-
src: zod0.ZodString;
|
|
7996
|
-
mime: zod0.ZodOptional<zod0.ZodString>;
|
|
7997
|
-
type: zod0.ZodLiteral<"image">;
|
|
7998
|
-
alt: zod0.ZodString;
|
|
7999
|
-
width: zod0.ZodOptional<zod0.ZodNumber>;
|
|
8000
|
-
height: zod0.ZodOptional<zod0.ZodNumber>;
|
|
8001
|
-
variants: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
8002
|
-
src: zod0.ZodString;
|
|
8003
|
-
width: zod0.ZodNumber;
|
|
8004
|
-
height: zod0.ZodNumber;
|
|
8005
|
-
}, zod_v4_core0.$strict>>>;
|
|
8006
|
-
srcset: zod0.ZodOptional<zod0.ZodString>;
|
|
8007
|
-
}, zod_v4_core0.$strict>>;
|
|
8008
|
-
categories: zod0.ZodArray<zod0.ZodObject<{
|
|
8009
|
-
id: zod0.ZodNumber;
|
|
8010
|
-
name: zod0.ZodString;
|
|
8011
|
-
slug: zod0.ZodString;
|
|
8012
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
8013
|
-
}, zod_v4_core0.$strip>>;
|
|
8014
|
-
tags: zod0.ZodArray<zod0.ZodObject<{
|
|
8015
|
-
id: zod0.ZodNumber;
|
|
8016
|
-
name: zod0.ZodString;
|
|
8017
|
-
slug: zod0.ZodString;
|
|
8018
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
8019
|
-
}, zod_v4_core0.$strip>>;
|
|
8020
|
-
brands: zod0.ZodArray<zod0.ZodObject<{
|
|
8021
|
-
id: zod0.ZodNumber;
|
|
8022
|
-
name: zod0.ZodString;
|
|
8023
|
-
slug: zod0.ZodString;
|
|
8024
|
-
url: zod0.ZodNullable<zod0.ZodString>;
|
|
8025
|
-
}, zod_v4_core0.$strip>>;
|
|
8026
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
8027
|
-
id: zod0.ZodNumber;
|
|
8028
|
-
name: zod0.ZodString;
|
|
8029
|
-
taxonomy: zod0.ZodNullable<zod0.ZodString>;
|
|
8030
|
-
hasVariations: zod0.ZodBoolean;
|
|
8031
|
-
terms: zod0.ZodArray<zod0.ZodObject<{
|
|
8032
|
-
id: zod0.ZodNumber;
|
|
8033
|
-
name: zod0.ZodString;
|
|
8034
|
-
slug: zod0.ZodString;
|
|
8035
|
-
isDefault: zod0.ZodBoolean;
|
|
8036
|
-
}, zod_v4_core0.$strip>>;
|
|
8037
|
-
}, zod_v4_core0.$strip>>;
|
|
8038
|
-
variations: zod0.ZodArray<zod0.ZodObject<{
|
|
8039
|
-
id: zod0.ZodNumber;
|
|
8040
|
-
attributes: zod0.ZodArray<zod0.ZodObject<{
|
|
8041
|
-
name: zod0.ZodString;
|
|
8042
|
-
value: zod0.ZodNullable<zod0.ZodString>;
|
|
8043
|
-
}, zod_v4_core0.$strip>>;
|
|
8044
|
-
}, zod_v4_core0.$strip>>;
|
|
8045
|
-
groupedProductIds: zod0.ZodArray<zod0.ZodNumber>;
|
|
8046
|
-
hasOptions: zod0.ZodBoolean;
|
|
8047
|
-
isPurchasable: zod0.ZodBoolean;
|
|
8048
|
-
isInStock: zod0.ZodBoolean;
|
|
8049
|
-
isOnBackorder: zod0.ZodBoolean;
|
|
8050
|
-
stockAvailability: zod0.ZodObject<{
|
|
8051
|
-
text: zod0.ZodString;
|
|
8052
|
-
class: zod0.ZodString;
|
|
8053
|
-
}, zod_v4_core0.$strip>;
|
|
8054
|
-
lowStockRemaining: zod0.ZodNullable<zod0.ZodNumber>;
|
|
8055
|
-
isSoldIndividually: zod0.ZodBoolean;
|
|
8056
|
-
addToCart: zod0.ZodObject<{
|
|
8057
|
-
text: zod0.ZodString;
|
|
8058
|
-
description: zod0.ZodString;
|
|
8059
|
-
singleText: zod0.ZodString;
|
|
8060
|
-
minimum: zod0.ZodNumber;
|
|
8061
|
-
maximum: zod0.ZodNumber;
|
|
8062
|
-
multipleOf: zod0.ZodNumber;
|
|
8063
|
-
}, zod_v4_core0.$strip>;
|
|
8064
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
8065
|
-
}, zod_v4_core0.$strip>>;
|
|
8066
|
-
needsPayment: zod0.ZodBoolean;
|
|
8067
|
-
needsShipping: zod0.ZodBoolean;
|
|
8068
|
-
hasCalculatedShipping: zod0.ZodBoolean;
|
|
8069
|
-
paymentMethods: zod0.ZodArray<zod0.ZodObject<{
|
|
8070
|
-
id: zod0.ZodString;
|
|
8071
|
-
title: zod0.ZodString;
|
|
8072
|
-
description: zod0.ZodString;
|
|
8073
|
-
order: zod0.ZodNumber;
|
|
8074
|
-
enabled: zod0.ZodBoolean;
|
|
8075
|
-
}, zod_v4_core0.$strip>>;
|
|
8076
|
-
paymentRequirements: zod0.ZodArray<zod0.ZodString>;
|
|
8077
|
-
errors: zod0.ZodArray<zod0.ZodObject<{
|
|
8078
|
-
code: zod0.ZodString;
|
|
8079
|
-
message: zod0.ZodString;
|
|
8080
|
-
}, zod_v4_core0.$strip>>;
|
|
8081
|
-
totals: zod0.ZodObject<{
|
|
8082
|
-
itemsTotal: zod0.ZodNumber;
|
|
8083
|
-
itemsTaxTotal: zod0.ZodNumber;
|
|
8084
|
-
feesTotal: zod0.ZodNumber;
|
|
8085
|
-
feesTaxTotal: zod0.ZodNumber;
|
|
8086
|
-
discountTotal: zod0.ZodNumber;
|
|
8087
|
-
discountTaxTotal: zod0.ZodNumber;
|
|
8088
|
-
shippingTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
8089
|
-
shippingTaxTotal: zod0.ZodNullable<zod0.ZodNumber>;
|
|
8090
|
-
total: zod0.ZodNumber;
|
|
8091
|
-
taxTotal: zod0.ZodNumber;
|
|
8092
|
-
taxLines: zod0.ZodArray<zod0.ZodObject<{
|
|
8093
|
-
name: zod0.ZodString;
|
|
8094
|
-
price: zod0.ZodNumber;
|
|
8095
|
-
rate: zod0.ZodString;
|
|
8096
|
-
}, zod_v4_core0.$strip>>;
|
|
8097
|
-
}, zod_v4_core0.$strip>;
|
|
8098
|
-
currencyFormat: zod0.ZodObject<{
|
|
8099
|
-
currencyCode: zod0.ZodString;
|
|
8100
|
-
currencySymbol: zod0.ZodString;
|
|
8101
|
-
currencyPrefix: zod0.ZodString;
|
|
8102
|
-
currencySuffix: zod0.ZodString;
|
|
8103
|
-
currencyMinorUnit: zod0.ZodNumber;
|
|
8104
|
-
currencyDecimalSeparator: zod0.ZodString;
|
|
8105
|
-
currencyThousandSeparator: zod0.ZodString;
|
|
8106
|
-
}, zod_v4_core0.$strip>;
|
|
8107
|
-
extensions: zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>;
|
|
8108
|
-
}, zod_v4_core0.$strip>>;
|
|
8109
|
-
}, zod_v4_core0.$strip>;
|
|
8110
|
-
};
|
|
8111
|
-
}>;
|
|
8116
|
+
body: UpdateCheckoutInput;
|
|
8117
|
+
}, Checkout, typeof UPDATE_CHECKOUT_ERROR_MAP>;
|
|
8112
8118
|
confirm: kizlo0.Procedure<"api", {
|
|
8113
8119
|
body: ConfirmCheckoutInput;
|
|
8114
8120
|
}, Checkout, typeof CONFIRM_CHECKOUT_ERROR_MAP>;
|
|
@@ -8244,4 +8250,4 @@ declare function woocommerce(): kizlo0.Integration<"woocommerce", {
|
|
|
8244
8250
|
};
|
|
8245
8251
|
}>;
|
|
8246
8252
|
//#endregion
|
|
8247
|
-
export { AddCartItemInput, type AddressAdditionalFields, type AddressAdditionalFieldsInput, ApplyCouponInput, type BillingAdditionalFields, type BillingAdditionalFieldsInput, BillingFieldProjections, Cart, CartAdditionalFields, CartBillingAddress, CartBillingAddressInput, CartBillingAddressSubmission, CartCoupon, CartCouponTotals, CartError, CartFee, CartFeeTotals, CartItem, CartItemData, CartItemQuantityLimits, CartItemTotals, CartPaymentMethod, CartSelectedAttribute, CartShippingAddress, CartShippingAddressInput, CartShippingAddressSubmission, CartShippingDestination, CartShippingItem, CartShippingPackage, CartShippingRate, CartShippingRateMetadata, CartTaxLine, CartTotals, Checkout, CheckoutAdditionalFields, type CheckoutAdditionalFieldsInput, CheckoutExtensions, CheckoutPaymentData, CheckoutPaymentResult, CheckoutRegisteredFieldReference, CheckoutValidationData, CheckoutValidationIssue, ConfirmCheckoutInput, type ContactAdditionalFields, GetOrderInput, ListProductInput, ListProductInputOut, Order, OrderFee, OrderItem, OrderItemProduct, OrderTotals, PRODUCT_ATTRIBUTE_RELATIONS, PRODUCT_CATALOG_VISIBILITIES, PRODUCT_DATE_COLUMNS, PRODUCT_RATINGS, PRODUCT_STOCK_STATUSES, PRODUCT_TYPES, Product, ProductAddToCart, ProductAttributeCount, ProductAttributeFilter, ProductAttributeRelation, ProductAttributeSummary, ProductAttributeTermSummary, ProductBrandSummary, ProductCatalogVisibility, ProductCategorySummary, ProductCustomFieldsSchema, ProductDateColumn, ProductDimensions, ProductExtensions, ProductFilters, ProductFiltersAttributeTerm, ProductFiltersPriceRange, ProductFiltersRatingCount, ProductFiltersStockStatus, ProductFiltersTaxonomyTerm, ProductFiltersTerm, ProductList, ProductOrderBy, ProductPriceRange, ProductPrices, ProductRating, ProductRecommendations, ProductStockAvailability, ProductStockStatus, ProductSummary, ProductTagSummary, ProductTaxonomyFilter, ProductTaxonomyOperator, ProductTermSummary, ProductType, ProductVariationAttributeSummary, ProductVariationSummary, type RegisteredFieldGroup, type RegisteredFieldLocations, type RegisteredFieldTarget, RemoveCartItemInput, RemoveCouponInput, RetrieveProductFiltersInput, RetrieveProductFiltersInputOut, RetrieveProductInput, RetryCheckoutInput, SWATCH_TYPES, SelectCartShippingRateInput, Storefront, StorefrontAddress, StorefrontCatalog, StorefrontCheckout, StorefrontCountry, StorefrontField, StorefrontFieldOption, StorefrontFieldOverride, StorefrontFieldRule, StorefrontFieldSchema, StorefrontPricing, SwatchType, UpdateCartInput, UpdateCartItemInput, UpdateCheckoutInput, resolveRegisteredFieldTarget, woocommerce };
|
|
8253
|
+
export { AddCartItemInput, type AddressAdditionalFields, type AddressAdditionalFieldsInput, ApplyCouponInput, type BillingAdditionalFields, type BillingAdditionalFieldsInput, BillingFieldProjections, Cart, CartAdditionalFields, CartBillingAddress, CartBillingAddressInput, CartBillingAddressSubmission, CartCoupon, CartCouponTotals, CartError, CartFee, CartFeeTotals, CartItem, CartItemData, CartItemQuantityLimits, CartItemTotals, CartPaymentMethod, CartSelectedAttribute, CartShippingAddress, CartShippingAddressInput, CartShippingAddressSubmission, CartShippingDestination, CartShippingItem, CartShippingPackage, CartShippingRate, CartShippingRateMetadata, CartTaxLine, CartTotals, Checkout, CheckoutAdditionalFields, type CheckoutAdditionalFieldsInput, CheckoutExtensions, CheckoutPaymentData, CheckoutPaymentResult, CheckoutRegisteredFieldReference, CheckoutValidationData, CheckoutValidationIssue, ConfirmCheckoutInput, type ContactAdditionalFields, GetOrderInput, ListProductInput, ListProductInputOut, Order, OrderFee, OrderItem, OrderItemProduct, OrderTotals, PRODUCT_ATTRIBUTE_RELATIONS, PRODUCT_CATALOG_VISIBILITIES, PRODUCT_DATE_COLUMNS, PRODUCT_RATINGS, PRODUCT_STOCK_STATUSES, PRODUCT_TYPES, Product, ProductAddToCart, ProductAttributeCount, ProductAttributeFilter, ProductAttributeRelation, ProductAttributeSummary, ProductAttributeTermSummary, ProductBrandSummary, ProductCatalogVisibility, ProductCategorySummary, ProductCustomFieldsSchema, ProductDateColumn, ProductDimensions, ProductExtensions, ProductFilters, ProductFiltersAttributeTerm, ProductFiltersPriceRange, ProductFiltersRatingCount, ProductFiltersStockStatus, ProductFiltersTaxonomyTerm, ProductFiltersTerm, ProductList, ProductOrderBy, ProductPriceRange, ProductPrices, ProductRating, ProductRecommendations, ProductStockAvailability, ProductStockStatus, ProductSummary, ProductTagSummary, ProductTaxonomyFilter, ProductTaxonomyOperator, ProductTermSummary, ProductType, ProductVariationAttributeSummary, ProductVariationSummary, type RegisteredFieldGroup, type RegisteredFieldLocations, type RegisteredFieldTarget, RemoveCartItemInput, RemoveCouponInput, RetrieveProductFiltersInput, RetrieveProductFiltersInputOut, RetrieveProductInput, RetryCheckoutInput, SWATCH_TYPES, SelectCartShippingRateInput, Storefront, StorefrontAddress, StorefrontCatalog, StorefrontCheckout, StorefrontCountry, StorefrontField, StorefrontFieldOption, StorefrontFieldOverride, StorefrontFieldRule, StorefrontFieldSchema, StorefrontPricing, SwatchType, UpdateCartInput, UpdateCartItemInput, UpdateCheckoutInput, WooCommerceOptions, resolveRegisteredFieldTarget, woocommerce };
|