@wix/auto_sdk_ecom_subscription-contracts 1.0.118 → 1.0.119

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.
@@ -706,6 +706,15 @@ declare const GetSubscriptionContractResponse: z.ZodObject<{
706
706
  MANUAL: "MANUAL";
707
707
  PLATFORM: "PLATFORM";
708
708
  }>>;
709
+ taxableAddress: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
710
+ addressType: z.ZodOptional<z.ZodNever>;
711
+ }, z.core.$strip>, z.ZodObject<{
712
+ addressType: z.ZodEnum<{
713
+ BUSINESS: "BUSINESS";
714
+ BILLING: "BILLING";
715
+ SHIPPING: "SHIPPING";
716
+ }>;
717
+ }, z.core.$strip>]>>>;
709
718
  }, z.core.$strip>>>;
710
719
  activities: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
711
720
  _id: z.ZodOptional<z.ZodString>;
@@ -1628,6 +1637,15 @@ declare const QuerySubscriptionContractsResponse: z.ZodObject<{
1628
1637
  MANUAL: "MANUAL";
1629
1638
  PLATFORM: "PLATFORM";
1630
1639
  }>>;
1640
+ taxableAddress: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
1641
+ addressType: z.ZodOptional<z.ZodNever>;
1642
+ }, z.core.$strip>, z.ZodObject<{
1643
+ addressType: z.ZodEnum<{
1644
+ BUSINESS: "BUSINESS";
1645
+ BILLING: "BILLING";
1646
+ SHIPPING: "SHIPPING";
1647
+ }>;
1648
+ }, z.core.$strip>]>>>;
1631
1649
  }, z.core.$strip>>>;
1632
1650
  activities: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1633
1651
  _id: z.ZodOptional<z.ZodString>;
@@ -1062,7 +1062,18 @@ var GetSubscriptionContractResponse = z.object({
1062
1062
  "Must be a valid GUID"
1063
1063
  ).optional(),
1064
1064
  lineItemIds: z.array(z.string()).optional(),
1065
- source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional()
1065
+ source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional(),
1066
+ taxableAddress: z.intersection(
1067
+ z.object({}),
1068
+ z.xor([
1069
+ z.object({ addressType: z.never().optional() }),
1070
+ z.object({
1071
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1072
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1073
+ )
1074
+ })
1075
+ ])
1076
+ ).describe("Address type tax was calculated against for this fee.").optional()
1066
1077
  })
1067
1078
  ).max(100).optional(),
1068
1079
  activities: z.array(
@@ -2518,7 +2529,20 @@ var QuerySubscriptionContractsResponse = z.object({
2518
2529
  "MANUAL",
2519
2530
  "SHIPPING",
2520
2531
  "PLATFORM"
2521
- ]).describe("Specifies the entity that added the additional fee.").optional()
2532
+ ]).describe("Specifies the entity that added the additional fee.").optional(),
2533
+ taxableAddress: z.intersection(
2534
+ z.object({}),
2535
+ z.xor([
2536
+ z.object({ addressType: z.never().optional() }),
2537
+ z.object({
2538
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2539
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
2540
+ )
2541
+ })
2542
+ ])
2543
+ ).describe(
2544
+ "Address type tax was calculated against for this fee."
2545
+ ).optional()
2522
2546
  })
2523
2547
  ).max(100).optional(),
2524
2548
  activities: z.array(