@spree/sdk 0.2.2 → 0.2.4

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.
@@ -594,6 +594,7 @@ declare const StoreCreditCardSchema: z.ZodObject<{
594
594
  year: z.ZodNumber;
595
595
  name: z.ZodNullable<z.ZodString>;
596
596
  default: z.ZodBoolean;
597
+ gateway_payment_profile_id: z.ZodNullable<z.ZodString>;
597
598
  }, z.core.$strip>;
598
599
  type StoreCreditCard = z.infer<typeof StoreCreditCardSchema>;
599
600
 
@@ -819,7 +820,7 @@ declare const StoreOrderSchema: z.ZodObject<{
819
820
  completed_at: z.ZodNullable<z.ZodString>;
820
821
  created_at: z.ZodString;
821
822
  updated_at: z.ZodString;
822
- order_promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
+ order_promotions: z.ZodArray<z.ZodObject<{
823
824
  id: z.ZodString;
824
825
  promotion_id: z.ZodString;
825
826
  name: z.ZodString;
@@ -827,8 +828,8 @@ declare const StoreOrderSchema: z.ZodObject<{
827
828
  code: z.ZodNullable<z.ZodString>;
828
829
  amount: z.ZodString;
829
830
  display_amount: z.ZodString;
830
- }, z.core.$strip>>>;
831
- line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
831
+ }, z.core.$strip>>;
832
+ line_items: z.ZodArray<z.ZodObject<{
832
833
  id: z.ZodString;
833
834
  variant_id: z.ZodString;
834
835
  quantity: z.ZodNumber;
@@ -876,8 +877,8 @@ declare const StoreOrderSchema: z.ZodObject<{
876
877
  expired: z.ZodBoolean;
877
878
  access_limit_exceeded: z.ZodBoolean;
878
879
  }, z.core.$strip>>;
879
- }, z.core.$strip>>>;
880
- shipments: z.ZodOptional<z.ZodArray<z.ZodObject<{
880
+ }, z.core.$strip>>;
881
+ shipments: z.ZodArray<z.ZodObject<{
881
882
  id: z.ZodString;
882
883
  number: z.ZodString;
883
884
  state: z.ZodString;
@@ -917,8 +918,8 @@ declare const StoreOrderSchema: z.ZodObject<{
917
918
  code: z.ZodNullable<z.ZodString>;
918
919
  }, z.core.$strip>;
919
920
  }, z.core.$strip>>;
920
- }, z.core.$strip>>>;
921
- payments: z.ZodOptional<z.ZodArray<z.ZodObject<{
921
+ }, z.core.$strip>>;
922
+ payments: z.ZodArray<z.ZodObject<{
922
923
  id: z.ZodString;
923
924
  payment_method_id: z.ZodString;
924
925
  state: z.ZodString;
@@ -928,14 +929,18 @@ declare const StoreOrderSchema: z.ZodObject<{
928
929
  display_amount: z.ZodString;
929
930
  created_at: z.ZodString;
930
931
  updated_at: z.ZodString;
932
+ source_type: z.ZodNullable<z.ZodString>;
933
+ source_id: z.ZodNullable<z.ZodString>;
934
+ source: z.ZodAny;
931
935
  payment_method: z.ZodObject<{
932
936
  id: z.ZodString;
933
937
  name: z.ZodString;
934
938
  description: z.ZodNullable<z.ZodString>;
935
939
  type: z.ZodString;
940
+ session_required: z.ZodBoolean;
936
941
  }, z.core.$strip>;
937
- }, z.core.$strip>>>;
938
- bill_address: z.ZodOptional<z.ZodObject<{
942
+ }, z.core.$strip>>;
943
+ bill_address: z.ZodNullable<z.ZodObject<{
939
944
  id: z.ZodString;
940
945
  firstname: z.ZodNullable<z.ZodString>;
941
946
  lastname: z.ZodNullable<z.ZodString>;
@@ -952,7 +957,7 @@ declare const StoreOrderSchema: z.ZodObject<{
952
957
  state_abbr: z.ZodNullable<z.ZodString>;
953
958
  state_name: z.ZodNullable<z.ZodString>;
954
959
  }, z.core.$strip>>;
955
- ship_address: z.ZodOptional<z.ZodObject<{
960
+ ship_address: z.ZodNullable<z.ZodObject<{
956
961
  id: z.ZodString;
957
962
  firstname: z.ZodNullable<z.ZodString>;
958
963
  lastname: z.ZodNullable<z.ZodString>;
@@ -974,6 +979,7 @@ declare const StoreOrderSchema: z.ZodObject<{
974
979
  name: z.ZodString;
975
980
  description: z.ZodNullable<z.ZodString>;
976
981
  type: z.ZodString;
982
+ session_required: z.ZodBoolean;
977
983
  }, z.core.$strip>>;
978
984
  }, z.core.$strip>;
979
985
  type StoreOrder = z.infer<typeof StoreOrderSchema>;
@@ -999,11 +1005,15 @@ declare const StorePaymentSchema: z.ZodObject<{
999
1005
  display_amount: z.ZodString;
1000
1006
  created_at: z.ZodString;
1001
1007
  updated_at: z.ZodString;
1008
+ source_type: z.ZodNullable<z.ZodString>;
1009
+ source_id: z.ZodNullable<z.ZodString>;
1010
+ source: z.ZodAny;
1002
1011
  payment_method: z.ZodObject<{
1003
1012
  id: z.ZodString;
1004
1013
  name: z.ZodString;
1005
1014
  description: z.ZodNullable<z.ZodString>;
1006
1015
  type: z.ZodString;
1016
+ session_required: z.ZodBoolean;
1007
1017
  }, z.core.$strip>;
1008
1018
  }, z.core.$strip>;
1009
1019
  type StorePayment = z.infer<typeof StorePaymentSchema>;
@@ -1013,9 +1023,61 @@ declare const StorePaymentMethodSchema: z.ZodObject<{
1013
1023
  name: z.ZodString;
1014
1024
  description: z.ZodNullable<z.ZodString>;
1015
1025
  type: z.ZodString;
1026
+ session_required: z.ZodBoolean;
1016
1027
  }, z.core.$strip>;
1017
1028
  type StorePaymentMethod = z.infer<typeof StorePaymentMethodSchema>;
1018
1029
 
1030
+ declare const StorePaymentSessionSchema: z.ZodObject<{
1031
+ id: z.ZodString;
1032
+ status: z.ZodString;
1033
+ currency: z.ZodString;
1034
+ external_id: z.ZodString;
1035
+ external_data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1036
+ customer_external_id: z.ZodNullable<z.ZodString>;
1037
+ expires_at: z.ZodNullable<z.ZodString>;
1038
+ created_at: z.ZodString;
1039
+ updated_at: z.ZodString;
1040
+ amount: z.ZodString;
1041
+ payment_method_id: z.ZodString;
1042
+ order_id: z.ZodString;
1043
+ payment_method: z.ZodObject<{
1044
+ id: z.ZodString;
1045
+ name: z.ZodString;
1046
+ description: z.ZodNullable<z.ZodString>;
1047
+ type: z.ZodString;
1048
+ session_required: z.ZodBoolean;
1049
+ }, z.core.$strip>;
1050
+ payment: z.ZodOptional<z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ payment_method_id: z.ZodString;
1053
+ state: z.ZodString;
1054
+ response_code: z.ZodNullable<z.ZodString>;
1055
+ number: z.ZodString;
1056
+ amount: z.ZodString;
1057
+ display_amount: z.ZodString;
1058
+ created_at: z.ZodString;
1059
+ updated_at: z.ZodString;
1060
+ source_type: z.ZodNullable<z.ZodString>;
1061
+ source_id: z.ZodNullable<z.ZodString>;
1062
+ source: z.ZodAny;
1063
+ payment_method: z.ZodObject<{
1064
+ id: z.ZodString;
1065
+ name: z.ZodString;
1066
+ description: z.ZodNullable<z.ZodString>;
1067
+ type: z.ZodString;
1068
+ session_required: z.ZodBoolean;
1069
+ }, z.core.$strip>;
1070
+ }, z.core.$strip>>;
1071
+ }, z.core.$strip>;
1072
+ type StorePaymentSession = z.infer<typeof StorePaymentSessionSchema>;
1073
+
1074
+ declare const StorePaymentSourceSchema: z.ZodObject<{
1075
+ id: z.ZodString;
1076
+ gateway_payment_profile_id: z.ZodNullable<z.ZodString>;
1077
+ public_metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1078
+ }, z.core.$strip>;
1079
+ type StorePaymentSource = z.infer<typeof StorePaymentSourceSchema>;
1080
+
1019
1081
  declare const StorePriceSchema: z.ZodObject<{
1020
1082
  id: z.ZodString;
1021
1083
  amount: z.ZodNullable<z.ZodString>;
@@ -1433,10 +1495,23 @@ declare const StoreStoreSchema: z.ZodObject<{
1433
1495
  name: z.ZodString;
1434
1496
  description: z.ZodNullable<z.ZodString>;
1435
1497
  type: z.ZodString;
1498
+ session_required: z.ZodBoolean;
1436
1499
  }, z.core.$strip>>;
1437
1500
  }, z.core.$strip>;
1438
1501
  type StoreStore = z.infer<typeof StoreStoreSchema>;
1439
1502
 
1503
+ declare const StoreStoreCreditSchema: z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ amount: z.ZodString;
1506
+ amount_used: z.ZodString;
1507
+ amount_remaining: z.ZodString;
1508
+ display_amount: z.ZodString;
1509
+ display_amount_used: z.ZodString;
1510
+ display_amount_remaining: z.ZodString;
1511
+ currency: z.ZodString;
1512
+ }, z.core.$strip>;
1513
+ type StoreStoreCredit = z.infer<typeof StoreStoreCreditSchema>;
1514
+
1440
1515
  declare const StoreTaxonSchema: z.ZodObject<any>;
1441
1516
  type StoreTaxon = z.infer<typeof StoreTaxonSchema>;
1442
1517
 
@@ -1709,4 +1784,4 @@ declare const StoreWishlistSchema: z.ZodObject<{
1709
1784
  }, z.core.$strip>;
1710
1785
  type StoreWishlist = z.infer<typeof StoreWishlistSchema>;
1711
1786
 
1712
- export { type AdminCustomer, AdminCustomerSchema, type AdminMetafield, AdminMetafieldSchema, type AdminOrder, AdminOrderSchema, type AdminPrice, AdminPriceSchema, type AdminProduct, AdminProductSchema, type AdminTaxon, AdminTaxonSchema, type AdminTaxonomy, AdminTaxonomySchema, type AdminVariant, AdminVariantSchema, type StoreAddress, StoreAddressSchema, type StoreBase, StoreBaseSchema, type StoreCountry, StoreCountrySchema, type StoreCreditCard, StoreCreditCardSchema, type StoreCustomer, StoreCustomerSchema, type StoreDigitalLink, StoreDigitalLinkSchema, type StoreGiftCard, StoreGiftCardSchema, type StoreImage, StoreImageSchema, type StoreLineItem, StoreLineItemSchema, type StoreMetafield, StoreMetafieldSchema, type StoreOptionType, StoreOptionTypeSchema, type StoreOptionValue, StoreOptionValueSchema, type StoreOrder, type StoreOrderPromotion, StoreOrderPromotionSchema, StoreOrderSchema, type StorePayment, type StorePaymentMethod, StorePaymentMethodSchema, StorePaymentSchema, type StorePrice, StorePriceSchema, type StoreProduct, StoreProductSchema, type StoreShipment, StoreShipmentSchema, type StoreShippingMethod, StoreShippingMethodSchema, type StoreShippingRate, StoreShippingRateSchema, type StoreState, StoreStateSchema, type StoreStockLocation, StoreStockLocationSchema, type StoreStore, StoreStoreSchema, type StoreTaxon, StoreTaxonSchema, type StoreTaxonomy, StoreTaxonomySchema, type StoreVariant, StoreVariantSchema, type StoreWishedItem, StoreWishedItemSchema, type StoreWishlist, StoreWishlistSchema };
1787
+ export { type AdminCustomer, AdminCustomerSchema, type AdminMetafield, AdminMetafieldSchema, type AdminOrder, AdminOrderSchema, type AdminPrice, AdminPriceSchema, type AdminProduct, AdminProductSchema, type AdminTaxon, AdminTaxonSchema, type AdminTaxonomy, AdminTaxonomySchema, type AdminVariant, AdminVariantSchema, type StoreAddress, StoreAddressSchema, type StoreBase, StoreBaseSchema, type StoreCountry, StoreCountrySchema, type StoreCreditCard, StoreCreditCardSchema, type StoreCustomer, StoreCustomerSchema, type StoreDigitalLink, StoreDigitalLinkSchema, type StoreGiftCard, StoreGiftCardSchema, type StoreImage, StoreImageSchema, type StoreLineItem, StoreLineItemSchema, type StoreMetafield, StoreMetafieldSchema, type StoreOptionType, StoreOptionTypeSchema, type StoreOptionValue, StoreOptionValueSchema, type StoreOrder, type StoreOrderPromotion, StoreOrderPromotionSchema, StoreOrderSchema, type StorePayment, type StorePaymentMethod, StorePaymentMethodSchema, StorePaymentSchema, type StorePaymentSession, StorePaymentSessionSchema, type StorePaymentSource, StorePaymentSourceSchema, type StorePrice, StorePriceSchema, type StoreProduct, StoreProductSchema, type StoreShipment, StoreShipmentSchema, type StoreShippingMethod, StoreShippingMethodSchema, type StoreShippingRate, StoreShippingRateSchema, type StoreState, StoreStateSchema, type StoreStockLocation, StoreStockLocationSchema, type StoreStore, type StoreStoreCredit, StoreStoreCreditSchema, StoreStoreSchema, type StoreTaxon, StoreTaxonSchema, type StoreTaxonomy, StoreTaxonomySchema, type StoreVariant, StoreVariantSchema, type StoreWishedItem, StoreWishedItemSchema, type StoreWishlist, StoreWishlistSchema };
@@ -594,6 +594,7 @@ declare const StoreCreditCardSchema: z.ZodObject<{
594
594
  year: z.ZodNumber;
595
595
  name: z.ZodNullable<z.ZodString>;
596
596
  default: z.ZodBoolean;
597
+ gateway_payment_profile_id: z.ZodNullable<z.ZodString>;
597
598
  }, z.core.$strip>;
598
599
  type StoreCreditCard = z.infer<typeof StoreCreditCardSchema>;
599
600
 
@@ -819,7 +820,7 @@ declare const StoreOrderSchema: z.ZodObject<{
819
820
  completed_at: z.ZodNullable<z.ZodString>;
820
821
  created_at: z.ZodString;
821
822
  updated_at: z.ZodString;
822
- order_promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
+ order_promotions: z.ZodArray<z.ZodObject<{
823
824
  id: z.ZodString;
824
825
  promotion_id: z.ZodString;
825
826
  name: z.ZodString;
@@ -827,8 +828,8 @@ declare const StoreOrderSchema: z.ZodObject<{
827
828
  code: z.ZodNullable<z.ZodString>;
828
829
  amount: z.ZodString;
829
830
  display_amount: z.ZodString;
830
- }, z.core.$strip>>>;
831
- line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
831
+ }, z.core.$strip>>;
832
+ line_items: z.ZodArray<z.ZodObject<{
832
833
  id: z.ZodString;
833
834
  variant_id: z.ZodString;
834
835
  quantity: z.ZodNumber;
@@ -876,8 +877,8 @@ declare const StoreOrderSchema: z.ZodObject<{
876
877
  expired: z.ZodBoolean;
877
878
  access_limit_exceeded: z.ZodBoolean;
878
879
  }, z.core.$strip>>;
879
- }, z.core.$strip>>>;
880
- shipments: z.ZodOptional<z.ZodArray<z.ZodObject<{
880
+ }, z.core.$strip>>;
881
+ shipments: z.ZodArray<z.ZodObject<{
881
882
  id: z.ZodString;
882
883
  number: z.ZodString;
883
884
  state: z.ZodString;
@@ -917,8 +918,8 @@ declare const StoreOrderSchema: z.ZodObject<{
917
918
  code: z.ZodNullable<z.ZodString>;
918
919
  }, z.core.$strip>;
919
920
  }, z.core.$strip>>;
920
- }, z.core.$strip>>>;
921
- payments: z.ZodOptional<z.ZodArray<z.ZodObject<{
921
+ }, z.core.$strip>>;
922
+ payments: z.ZodArray<z.ZodObject<{
922
923
  id: z.ZodString;
923
924
  payment_method_id: z.ZodString;
924
925
  state: z.ZodString;
@@ -928,14 +929,18 @@ declare const StoreOrderSchema: z.ZodObject<{
928
929
  display_amount: z.ZodString;
929
930
  created_at: z.ZodString;
930
931
  updated_at: z.ZodString;
932
+ source_type: z.ZodNullable<z.ZodString>;
933
+ source_id: z.ZodNullable<z.ZodString>;
934
+ source: z.ZodAny;
931
935
  payment_method: z.ZodObject<{
932
936
  id: z.ZodString;
933
937
  name: z.ZodString;
934
938
  description: z.ZodNullable<z.ZodString>;
935
939
  type: z.ZodString;
940
+ session_required: z.ZodBoolean;
936
941
  }, z.core.$strip>;
937
- }, z.core.$strip>>>;
938
- bill_address: z.ZodOptional<z.ZodObject<{
942
+ }, z.core.$strip>>;
943
+ bill_address: z.ZodNullable<z.ZodObject<{
939
944
  id: z.ZodString;
940
945
  firstname: z.ZodNullable<z.ZodString>;
941
946
  lastname: z.ZodNullable<z.ZodString>;
@@ -952,7 +957,7 @@ declare const StoreOrderSchema: z.ZodObject<{
952
957
  state_abbr: z.ZodNullable<z.ZodString>;
953
958
  state_name: z.ZodNullable<z.ZodString>;
954
959
  }, z.core.$strip>>;
955
- ship_address: z.ZodOptional<z.ZodObject<{
960
+ ship_address: z.ZodNullable<z.ZodObject<{
956
961
  id: z.ZodString;
957
962
  firstname: z.ZodNullable<z.ZodString>;
958
963
  lastname: z.ZodNullable<z.ZodString>;
@@ -974,6 +979,7 @@ declare const StoreOrderSchema: z.ZodObject<{
974
979
  name: z.ZodString;
975
980
  description: z.ZodNullable<z.ZodString>;
976
981
  type: z.ZodString;
982
+ session_required: z.ZodBoolean;
977
983
  }, z.core.$strip>>;
978
984
  }, z.core.$strip>;
979
985
  type StoreOrder = z.infer<typeof StoreOrderSchema>;
@@ -999,11 +1005,15 @@ declare const StorePaymentSchema: z.ZodObject<{
999
1005
  display_amount: z.ZodString;
1000
1006
  created_at: z.ZodString;
1001
1007
  updated_at: z.ZodString;
1008
+ source_type: z.ZodNullable<z.ZodString>;
1009
+ source_id: z.ZodNullable<z.ZodString>;
1010
+ source: z.ZodAny;
1002
1011
  payment_method: z.ZodObject<{
1003
1012
  id: z.ZodString;
1004
1013
  name: z.ZodString;
1005
1014
  description: z.ZodNullable<z.ZodString>;
1006
1015
  type: z.ZodString;
1016
+ session_required: z.ZodBoolean;
1007
1017
  }, z.core.$strip>;
1008
1018
  }, z.core.$strip>;
1009
1019
  type StorePayment = z.infer<typeof StorePaymentSchema>;
@@ -1013,9 +1023,61 @@ declare const StorePaymentMethodSchema: z.ZodObject<{
1013
1023
  name: z.ZodString;
1014
1024
  description: z.ZodNullable<z.ZodString>;
1015
1025
  type: z.ZodString;
1026
+ session_required: z.ZodBoolean;
1016
1027
  }, z.core.$strip>;
1017
1028
  type StorePaymentMethod = z.infer<typeof StorePaymentMethodSchema>;
1018
1029
 
1030
+ declare const StorePaymentSessionSchema: z.ZodObject<{
1031
+ id: z.ZodString;
1032
+ status: z.ZodString;
1033
+ currency: z.ZodString;
1034
+ external_id: z.ZodString;
1035
+ external_data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1036
+ customer_external_id: z.ZodNullable<z.ZodString>;
1037
+ expires_at: z.ZodNullable<z.ZodString>;
1038
+ created_at: z.ZodString;
1039
+ updated_at: z.ZodString;
1040
+ amount: z.ZodString;
1041
+ payment_method_id: z.ZodString;
1042
+ order_id: z.ZodString;
1043
+ payment_method: z.ZodObject<{
1044
+ id: z.ZodString;
1045
+ name: z.ZodString;
1046
+ description: z.ZodNullable<z.ZodString>;
1047
+ type: z.ZodString;
1048
+ session_required: z.ZodBoolean;
1049
+ }, z.core.$strip>;
1050
+ payment: z.ZodOptional<z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ payment_method_id: z.ZodString;
1053
+ state: z.ZodString;
1054
+ response_code: z.ZodNullable<z.ZodString>;
1055
+ number: z.ZodString;
1056
+ amount: z.ZodString;
1057
+ display_amount: z.ZodString;
1058
+ created_at: z.ZodString;
1059
+ updated_at: z.ZodString;
1060
+ source_type: z.ZodNullable<z.ZodString>;
1061
+ source_id: z.ZodNullable<z.ZodString>;
1062
+ source: z.ZodAny;
1063
+ payment_method: z.ZodObject<{
1064
+ id: z.ZodString;
1065
+ name: z.ZodString;
1066
+ description: z.ZodNullable<z.ZodString>;
1067
+ type: z.ZodString;
1068
+ session_required: z.ZodBoolean;
1069
+ }, z.core.$strip>;
1070
+ }, z.core.$strip>>;
1071
+ }, z.core.$strip>;
1072
+ type StorePaymentSession = z.infer<typeof StorePaymentSessionSchema>;
1073
+
1074
+ declare const StorePaymentSourceSchema: z.ZodObject<{
1075
+ id: z.ZodString;
1076
+ gateway_payment_profile_id: z.ZodNullable<z.ZodString>;
1077
+ public_metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1078
+ }, z.core.$strip>;
1079
+ type StorePaymentSource = z.infer<typeof StorePaymentSourceSchema>;
1080
+
1019
1081
  declare const StorePriceSchema: z.ZodObject<{
1020
1082
  id: z.ZodString;
1021
1083
  amount: z.ZodNullable<z.ZodString>;
@@ -1433,10 +1495,23 @@ declare const StoreStoreSchema: z.ZodObject<{
1433
1495
  name: z.ZodString;
1434
1496
  description: z.ZodNullable<z.ZodString>;
1435
1497
  type: z.ZodString;
1498
+ session_required: z.ZodBoolean;
1436
1499
  }, z.core.$strip>>;
1437
1500
  }, z.core.$strip>;
1438
1501
  type StoreStore = z.infer<typeof StoreStoreSchema>;
1439
1502
 
1503
+ declare const StoreStoreCreditSchema: z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ amount: z.ZodString;
1506
+ amount_used: z.ZodString;
1507
+ amount_remaining: z.ZodString;
1508
+ display_amount: z.ZodString;
1509
+ display_amount_used: z.ZodString;
1510
+ display_amount_remaining: z.ZodString;
1511
+ currency: z.ZodString;
1512
+ }, z.core.$strip>;
1513
+ type StoreStoreCredit = z.infer<typeof StoreStoreCreditSchema>;
1514
+
1440
1515
  declare const StoreTaxonSchema: z.ZodObject<any>;
1441
1516
  type StoreTaxon = z.infer<typeof StoreTaxonSchema>;
1442
1517
 
@@ -1709,4 +1784,4 @@ declare const StoreWishlistSchema: z.ZodObject<{
1709
1784
  }, z.core.$strip>;
1710
1785
  type StoreWishlist = z.infer<typeof StoreWishlistSchema>;
1711
1786
 
1712
- export { type AdminCustomer, AdminCustomerSchema, type AdminMetafield, AdminMetafieldSchema, type AdminOrder, AdminOrderSchema, type AdminPrice, AdminPriceSchema, type AdminProduct, AdminProductSchema, type AdminTaxon, AdminTaxonSchema, type AdminTaxonomy, AdminTaxonomySchema, type AdminVariant, AdminVariantSchema, type StoreAddress, StoreAddressSchema, type StoreBase, StoreBaseSchema, type StoreCountry, StoreCountrySchema, type StoreCreditCard, StoreCreditCardSchema, type StoreCustomer, StoreCustomerSchema, type StoreDigitalLink, StoreDigitalLinkSchema, type StoreGiftCard, StoreGiftCardSchema, type StoreImage, StoreImageSchema, type StoreLineItem, StoreLineItemSchema, type StoreMetafield, StoreMetafieldSchema, type StoreOptionType, StoreOptionTypeSchema, type StoreOptionValue, StoreOptionValueSchema, type StoreOrder, type StoreOrderPromotion, StoreOrderPromotionSchema, StoreOrderSchema, type StorePayment, type StorePaymentMethod, StorePaymentMethodSchema, StorePaymentSchema, type StorePrice, StorePriceSchema, type StoreProduct, StoreProductSchema, type StoreShipment, StoreShipmentSchema, type StoreShippingMethod, StoreShippingMethodSchema, type StoreShippingRate, StoreShippingRateSchema, type StoreState, StoreStateSchema, type StoreStockLocation, StoreStockLocationSchema, type StoreStore, StoreStoreSchema, type StoreTaxon, StoreTaxonSchema, type StoreTaxonomy, StoreTaxonomySchema, type StoreVariant, StoreVariantSchema, type StoreWishedItem, StoreWishedItemSchema, type StoreWishlist, StoreWishlistSchema };
1787
+ export { type AdminCustomer, AdminCustomerSchema, type AdminMetafield, AdminMetafieldSchema, type AdminOrder, AdminOrderSchema, type AdminPrice, AdminPriceSchema, type AdminProduct, AdminProductSchema, type AdminTaxon, AdminTaxonSchema, type AdminTaxonomy, AdminTaxonomySchema, type AdminVariant, AdminVariantSchema, type StoreAddress, StoreAddressSchema, type StoreBase, StoreBaseSchema, type StoreCountry, StoreCountrySchema, type StoreCreditCard, StoreCreditCardSchema, type StoreCustomer, StoreCustomerSchema, type StoreDigitalLink, StoreDigitalLinkSchema, type StoreGiftCard, StoreGiftCardSchema, type StoreImage, StoreImageSchema, type StoreLineItem, StoreLineItemSchema, type StoreMetafield, StoreMetafieldSchema, type StoreOptionType, StoreOptionTypeSchema, type StoreOptionValue, StoreOptionValueSchema, type StoreOrder, type StoreOrderPromotion, StoreOrderPromotionSchema, StoreOrderSchema, type StorePayment, type StorePaymentMethod, StorePaymentMethodSchema, StorePaymentSchema, type StorePaymentSession, StorePaymentSessionSchema, type StorePaymentSource, StorePaymentSourceSchema, type StorePrice, StorePriceSchema, type StoreProduct, StoreProductSchema, type StoreShipment, StoreShipmentSchema, type StoreShippingMethod, StoreShippingMethodSchema, type StoreShippingRate, StoreShippingRateSchema, type StoreState, StoreStateSchema, type StoreStockLocation, StoreStockLocationSchema, type StoreStore, type StoreStoreCredit, StoreStoreCreditSchema, StoreStoreSchema, type StoreTaxon, StoreTaxonSchema, type StoreTaxonomy, StoreTaxonomySchema, type StoreVariant, StoreVariantSchema, type StoreWishedItem, StoreWishedItemSchema, type StoreWishlist, StoreWishlistSchema };
package/dist/zod/index.js CHANGED
@@ -18,15 +18,6 @@ var StoreAddressSchema = z.object({
18
18
  state_abbr: z.string().nullable(),
19
19
  state_name: z.string().nullable()
20
20
  });
21
- var StoreOptionValueSchema = z.object({
22
- id: z.string(),
23
- option_type_id: z.string(),
24
- name: z.string(),
25
- presentation: z.string(),
26
- position: z.number(),
27
- option_type_name: z.string(),
28
- option_type_presentation: z.string()
29
- });
30
21
  var StoreDigitalLinkSchema = z.object({
31
22
  id: z.string(),
32
23
  access_counter: z.number(),
@@ -38,6 +29,15 @@ var StoreDigitalLinkSchema = z.object({
38
29
  expired: z.boolean(),
39
30
  access_limit_exceeded: z.boolean()
40
31
  });
32
+ var StoreOptionValueSchema = z.object({
33
+ id: z.string(),
34
+ option_type_id: z.string(),
35
+ name: z.string(),
36
+ presentation: z.string(),
37
+ position: z.number(),
38
+ option_type_name: z.string(),
39
+ option_type_presentation: z.string()
40
+ });
41
41
 
42
42
  // src/zod/generated/StoreLineItem.ts
43
43
  var StoreLineItemSchema = z.object({
@@ -84,7 +84,8 @@ var StorePaymentMethodSchema = z.object({
84
84
  id: z.string(),
85
85
  name: z.string(),
86
86
  description: z.string().nullable(),
87
- type: z.string()
87
+ type: z.string(),
88
+ session_required: z.boolean()
88
89
  });
89
90
 
90
91
  // src/zod/generated/StorePayment.ts
@@ -98,6 +99,9 @@ var StorePaymentSchema = z.object({
98
99
  display_amount: z.string(),
99
100
  created_at: z.string(),
100
101
  updated_at: z.string(),
102
+ source_type: z.string().nullable(),
103
+ source_id: z.string().nullable(),
104
+ source: z.any(),
101
105
  payment_method: StorePaymentMethodSchema
102
106
  });
103
107
  var StoreShippingMethodSchema = z.object({
@@ -174,12 +178,12 @@ var AdminOrderSchema = z.object({
174
178
  completed_at: z.string().nullable(),
175
179
  created_at: z.string(),
176
180
  updated_at: z.string(),
177
- order_promotions: z.array(StoreOrderPromotionSchema).optional(),
178
- line_items: z.array(StoreLineItemSchema).optional(),
179
- shipments: z.array(StoreShipmentSchema).optional(),
180
- payments: z.array(StorePaymentSchema).optional(),
181
- bill_address: StoreAddressSchema.optional(),
182
- ship_address: StoreAddressSchema.optional(),
181
+ order_promotions: z.array(StoreOrderPromotionSchema),
182
+ line_items: z.array(StoreLineItemSchema),
183
+ shipments: z.array(StoreShipmentSchema),
184
+ payments: z.array(StorePaymentSchema),
185
+ bill_address: StoreAddressSchema.nullable(),
186
+ ship_address: StoreAddressSchema.nullable(),
183
187
  payment_methods: z.array(StorePaymentMethodSchema),
184
188
  channel: z.string().nullable(),
185
189
  last_ip_address: z.string().nullable(),
@@ -441,7 +445,8 @@ var StoreCreditCardSchema = z.object({
441
445
  month: z.number(),
442
446
  year: z.number(),
443
447
  name: z.string().nullable(),
444
- default: z.boolean()
448
+ default: z.boolean(),
449
+ gateway_payment_profile_id: z.string().nullable()
445
450
  });
446
451
  var StoreCustomerSchema = z.object({
447
452
  id: z.string(),
@@ -503,14 +508,35 @@ var StoreOrderSchema = z.object({
503
508
  completed_at: z.string().nullable(),
504
509
  created_at: z.string(),
505
510
  updated_at: z.string(),
506
- order_promotions: z.array(StoreOrderPromotionSchema).optional(),
507
- line_items: z.array(StoreLineItemSchema).optional(),
508
- shipments: z.array(StoreShipmentSchema).optional(),
509
- payments: z.array(StorePaymentSchema).optional(),
510
- bill_address: StoreAddressSchema.optional(),
511
- ship_address: StoreAddressSchema.optional(),
511
+ order_promotions: z.array(StoreOrderPromotionSchema),
512
+ line_items: z.array(StoreLineItemSchema),
513
+ shipments: z.array(StoreShipmentSchema),
514
+ payments: z.array(StorePaymentSchema),
515
+ bill_address: StoreAddressSchema.nullable(),
516
+ ship_address: StoreAddressSchema.nullable(),
512
517
  payment_methods: z.array(StorePaymentMethodSchema)
513
518
  });
519
+ var StorePaymentSessionSchema = z.object({
520
+ id: z.string(),
521
+ status: z.string(),
522
+ currency: z.string(),
523
+ external_id: z.string(),
524
+ external_data: z.record(z.string(), z.unknown()),
525
+ customer_external_id: z.string().nullable(),
526
+ expires_at: z.string().nullable(),
527
+ created_at: z.string(),
528
+ updated_at: z.string(),
529
+ amount: z.string(),
530
+ payment_method_id: z.string(),
531
+ order_id: z.string(),
532
+ payment_method: StorePaymentMethodSchema,
533
+ payment: StorePaymentSchema.optional()
534
+ });
535
+ var StorePaymentSourceSchema = z.object({
536
+ id: z.string(),
537
+ gateway_payment_profile_id: z.string().nullable(),
538
+ public_metadata: z.record(z.string(), z.unknown()).nullable()
539
+ });
514
540
  var StoreVariantSchema = z.object({
515
541
  id: z.string(),
516
542
  product_id: z.string(),
@@ -590,6 +616,16 @@ var StoreStoreSchema = z.object({
590
616
  supported_locales: z.array(z.string()),
591
617
  payment_methods: z.array(StorePaymentMethodSchema)
592
618
  });
619
+ var StoreStoreCreditSchema = z.object({
620
+ id: z.string(),
621
+ amount: z.string(),
622
+ amount_used: z.string(),
623
+ amount_remaining: z.string(),
624
+ display_amount: z.string(),
625
+ display_amount_used: z.string(),
626
+ display_amount_remaining: z.string(),
627
+ currency: z.string()
628
+ });
593
629
  var StoreTaxonomySchema = z.object({
594
630
  id: z.string(),
595
631
  name: z.string(),
@@ -621,6 +657,6 @@ var StoreWishlistSchema = z.object({
621
657
  items: z.array(StoreWishedItemSchema).optional()
622
658
  });
623
659
 
624
- export { AdminCustomerSchema, AdminMetafieldSchema, AdminOrderSchema, AdminPriceSchema, AdminProductSchema, AdminTaxonSchema, AdminTaxonomySchema, AdminVariantSchema, StoreAddressSchema, StoreBaseSchema, StoreCountrySchema, StoreCreditCardSchema, StoreCustomerSchema, StoreDigitalLinkSchema, StoreGiftCardSchema, StoreImageSchema, StoreLineItemSchema, StoreMetafieldSchema, StoreOptionTypeSchema, StoreOptionValueSchema, StoreOrderPromotionSchema, StoreOrderSchema, StorePaymentMethodSchema, StorePaymentSchema, StorePriceSchema, StoreProductSchema, StoreShipmentSchema, StoreShippingMethodSchema, StoreShippingRateSchema, StoreStateSchema, StoreStockLocationSchema, StoreStoreSchema, StoreTaxonSchema, StoreTaxonomySchema, StoreVariantSchema, StoreWishedItemSchema, StoreWishlistSchema };
660
+ export { AdminCustomerSchema, AdminMetafieldSchema, AdminOrderSchema, AdminPriceSchema, AdminProductSchema, AdminTaxonSchema, AdminTaxonomySchema, AdminVariantSchema, StoreAddressSchema, StoreBaseSchema, StoreCountrySchema, StoreCreditCardSchema, StoreCustomerSchema, StoreDigitalLinkSchema, StoreGiftCardSchema, StoreImageSchema, StoreLineItemSchema, StoreMetafieldSchema, StoreOptionTypeSchema, StoreOptionValueSchema, StoreOrderPromotionSchema, StoreOrderSchema, StorePaymentMethodSchema, StorePaymentSchema, StorePaymentSessionSchema, StorePaymentSourceSchema, StorePriceSchema, StoreProductSchema, StoreShipmentSchema, StoreShippingMethodSchema, StoreShippingRateSchema, StoreStateSchema, StoreStockLocationSchema, StoreStoreCreditSchema, StoreStoreSchema, StoreTaxonSchema, StoreTaxonomySchema, StoreVariantSchema, StoreWishedItemSchema, StoreWishlistSchema };
625
661
  //# sourceMappingURL=index.js.map
626
662
  //# sourceMappingURL=index.js.map