@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>;
@@ -1023,7 +1023,18 @@ var GetSubscriptionContractResponse = z.object({
1023
1023
  "Must be a valid GUID"
1024
1024
  ).optional(),
1025
1025
  lineItemIds: z.array(z.string()).optional(),
1026
- source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional()
1026
+ source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional(),
1027
+ taxableAddress: z.intersection(
1028
+ z.object({}),
1029
+ z.xor([
1030
+ z.object({ addressType: z.never().optional() }),
1031
+ z.object({
1032
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1033
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1034
+ )
1035
+ })
1036
+ ])
1037
+ ).describe("Address type tax was calculated against for this fee.").optional()
1027
1038
  })
1028
1039
  ).max(100).optional(),
1029
1040
  activities: z.array(
@@ -2479,7 +2490,20 @@ var QuerySubscriptionContractsResponse = z.object({
2479
2490
  "MANUAL",
2480
2491
  "SHIPPING",
2481
2492
  "PLATFORM"
2482
- ]).describe("Specifies the entity that added the additional fee.").optional()
2493
+ ]).describe("Specifies the entity that added the additional fee.").optional(),
2494
+ taxableAddress: z.intersection(
2495
+ z.object({}),
2496
+ z.xor([
2497
+ z.object({ addressType: z.never().optional() }),
2498
+ z.object({
2499
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2500
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
2501
+ )
2502
+ })
2503
+ ])
2504
+ ).describe(
2505
+ "Address type tax was calculated against for this fee."
2506
+ ).optional()
2483
2507
  })
2484
2508
  ).max(100).optional(),
2485
2509
  activities: z.array(