@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.
@@ -1451,12 +1451,12 @@ const zCartsItemsTaxesCommon = z.object({
1451
1451
  rate: z.number().register(z.globalRegistry, {
1452
1452
  description: "The tax rate as a decimal (12.5% -> 0.125). You must specify either `rate` or `amount`, but not both.\n"
1453
1453
  }).optional(),
1454
- amount: z.number().register(z.globalRegistry, {
1454
+ amount: z.int().register(z.globalRegistry, {
1455
1455
  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"
1456
1456
  }).optional(),
1457
1457
  type: z.literal("tax_item").register(z.globalRegistry, {
1458
1458
  description: "The type of object being returned. Use `tax_item`."
1459
- }),
1459
+ }).default("tax_item"),
1460
1460
  id: z.uuid().register(z.globalRegistry, {
1461
1461
  description: "The unique identifier for this tax item."
1462
1462
  }).readonly().optional()
@@ -1473,7 +1473,7 @@ const zCartsItemsTaxesWithRate = zCartsItemsTaxesCommon.and(
1473
1473
  );
1474
1474
  const zCartsItemsTaxesWithAmount = zCartsItemsTaxesCommon.and(
1475
1475
  z.object({
1476
- amount: z.number().register(z.globalRegistry, {
1476
+ amount: z.int().register(z.globalRegistry, {
1477
1477
  description: "The tax as an absolute amount in the smallest currency unit (e.g., $10 -> 1000). Required when using amount-based taxation.\n"
1478
1478
  }),
1479
1479
  rate: z.number().register(z.globalRegistry, {
@@ -3111,12 +3111,12 @@ const zCartsItemsTaxesCommonWritable = z.object({
3111
3111
  rate: z.number().register(z.globalRegistry, {
3112
3112
  description: "The tax rate as a decimal (12.5% -> 0.125). You must specify either `rate` or `amount`, but not both.\n"
3113
3113
  }).optional(),
3114
- amount: z.number().register(z.globalRegistry, {
3114
+ amount: z.int().register(z.globalRegistry, {
3115
3115
  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"
3116
3116
  }).optional(),
3117
3117
  type: z.literal("tax_item").register(z.globalRegistry, {
3118
3118
  description: "The type of object being returned. Use `tax_item`."
3119
- })
3119
+ }).default("tax_item")
3120
3120
  });
3121
3121
  const zCartsItemsTaxesWithRateWritable = zCartsItemsTaxesCommonWritable.and(
3122
3122
  z.object({
@@ -3130,7 +3130,7 @@ const zCartsItemsTaxesWithRateWritable = zCartsItemsTaxesCommonWritable.and(
3130
3130
  );
3131
3131
  const zCartsItemsTaxesWithAmountWritable = zCartsItemsTaxesCommonWritable.and(
3132
3132
  z.object({
3133
- amount: z.number().register(z.globalRegistry, {
3133
+ amount: z.int().register(z.globalRegistry, {
3134
3134
  description: "The tax as an absolute amount in the smallest currency unit (e.g., $10 -> 1000). Required when using amount-based taxation.\n"
3135
3135
  }),
3136
3136
  rate: z.number().register(z.globalRegistry, {