@epcc-sdk/sdks-cart-checkout-order 0.8.2 → 0.8.3

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.
@@ -1061,12 +1061,12 @@ const zCartsItemsTaxesCommon = z.object({
1061
1061
  rate: z.number().register(z.globalRegistry, {
1062
1062
  description: "The tax rate as a decimal (12.5% -> 0.125). You must specify either `rate` or `amount`, but not both.\n"
1063
1063
  }).optional(),
1064
- amount: z.number().register(z.globalRegistry, {
1064
+ amount: z.int().register(z.globalRegistry, {
1065
1065
  description: "The tax as an absolute amount in the smallest currency unit (e.g., $10 -> 1000). You must specify either `rate` or `amount`, but not both.\n"
1066
1066
  }).optional(),
1067
1067
  type: z.literal("tax_item").register(z.globalRegistry, {
1068
1068
  description: "The type of object being returned. Use `tax_item`."
1069
- }),
1069
+ }).default("tax_item"),
1070
1070
  id: z.uuid().register(z.globalRegistry, {
1071
1071
  description: "The unique identifier for this tax item."
1072
1072
  }).readonly().optional()
@@ -1083,7 +1083,7 @@ const zCartsItemsTaxesWithRate = zCartsItemsTaxesCommon.and(
1083
1083
  );
1084
1084
  const zCartsItemsTaxesWithAmount = zCartsItemsTaxesCommon.and(
1085
1085
  z.object({
1086
- amount: z.number().register(z.globalRegistry, {
1086
+ amount: z.int().register(z.globalRegistry, {
1087
1087
  description: "The tax as an absolute amount in the smallest currency unit (e.g., $10 -> 1000). Required when using amount-based taxation.\n"
1088
1088
  }),
1089
1089
  rate: z.number().register(z.globalRegistry, {
@@ -2721,12 +2721,12 @@ const zCartsItemsTaxesCommonWritable = z.object({
2721
2721
  rate: z.number().register(z.globalRegistry, {
2722
2722
  description: "The tax rate as a decimal (12.5% -> 0.125). You must specify either `rate` or `amount`, but not both.\n"
2723
2723
  }).optional(),
2724
- amount: z.number().register(z.globalRegistry, {
2724
+ amount: z.int().register(z.globalRegistry, {
2725
2725
  description: "The tax as an absolute amount in the smallest currency unit (e.g., $10 -> 1000). You must specify either `rate` or `amount`, but not both.\n"
2726
2726
  }).optional(),
2727
2727
  type: z.literal("tax_item").register(z.globalRegistry, {
2728
2728
  description: "The type of object being returned. Use `tax_item`."
2729
- })
2729
+ }).default("tax_item")
2730
2730
  });
2731
2731
  const zCartsItemsTaxesWithRateWritable = zCartsItemsTaxesCommonWritable.and(
2732
2732
  z.object({
@@ -2740,7 +2740,7 @@ const zCartsItemsTaxesWithRateWritable = zCartsItemsTaxesCommonWritable.and(
2740
2740
  );
2741
2741
  const zCartsItemsTaxesWithAmountWritable = zCartsItemsTaxesCommonWritable.and(
2742
2742
  z.object({
2743
- amount: z.number().register(z.globalRegistry, {
2743
+ amount: z.int().register(z.globalRegistry, {
2744
2744
  description: "The tax as an absolute amount in the smallest currency unit (e.g., $10 -> 1000). Required when using amount-based taxation.\n"
2745
2745
  }),
2746
2746
  rate: z.number().register(z.globalRegistry, {