@wix/auto_sdk_bookings_services 1.0.220 → 1.0.221

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.
Files changed (41) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-DOc1nZfu.d.ts → bookings-services-v2-service-services.universal-_bWigLGM.d.ts} +21 -9
  2. package/build/cjs/index.d.ts +11 -11
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +13 -1
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.d.ts +152 -0
  9. package/build/cjs/schemas.js +385 -5
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/{bookings-services-v2-service-services.universal-DOc1nZfu.d.mts → bookings-services-v2-service-services.universal-_bWigLGM.d.mts} +21 -9
  12. package/build/es/index.d.mts +11 -11
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +13 -1
  17. package/build/es/meta.mjs.map +1 -1
  18. package/build/es/schemas.d.mts +152 -0
  19. package/build/es/schemas.mjs +385 -5
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/{bookings-services-v2-service-services.universal-CrtyjfbZ.d.ts → bookings-services-v2-service-services.universal-CCfmktJC.d.ts} +9 -10
  22. package/build/internal/cjs/index.d.ts +11 -11
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +2 -2
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +13 -1
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/cjs/schemas.d.ts +152 -0
  29. package/build/internal/cjs/schemas.js +385 -5
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/{bookings-services-v2-service-services.universal-CrtyjfbZ.d.mts → bookings-services-v2-service-services.universal-CCfmktJC.d.mts} +9 -10
  32. package/build/internal/es/index.d.mts +11 -11
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +2 -2
  35. package/build/internal/es/index.typings.mjs.map +1 -1
  36. package/build/internal/es/meta.d.mts +13 -1
  37. package/build/internal/es/meta.mjs.map +1 -1
  38. package/build/internal/es/schemas.d.mts +152 -0
  39. package/build/internal/es/schemas.mjs +385 -5
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -106,7 +106,27 @@ var CreateServiceRequest = z.object({
106
106
  "The payment options a customer can use to pay for the service."
107
107
  ).optional(),
108
108
  pricingPlanIds: z.array(z.string()).max(75).optional(),
109
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
109
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
110
+ discountInfo: z.object({
111
+ discountName: z.string().describe(
112
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
113
+ ).min(1).max(50).optional(),
114
+ priceAfterDiscount: z.object({
115
+ value: z.string().describe(
116
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
117
+ ).optional(),
118
+ currency: z.string().describe(
119
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
120
+ ).optional(),
121
+ formattedValue: z.string().describe(
122
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
123
+ ).max(50).optional().nullable()
124
+ }).describe(
125
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
126
+ ).optional()
127
+ }).describe(
128
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
129
+ ).optional()
110
130
  }),
111
131
  z.xor([
112
132
  z.object({
@@ -731,6 +751,26 @@ var CreateServiceResponse = z.object({
731
751
  pricingPlanIds: z.array(z.string()).max(75).optional(),
732
752
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
733
753
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
754
+ ).optional(),
755
+ discountInfo: z.object({
756
+ discountName: z.string().describe(
757
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
758
+ ).min(1).max(50).optional(),
759
+ priceAfterDiscount: z.object({
760
+ value: z.string().describe(
761
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
762
+ ).optional(),
763
+ currency: z.string().describe(
764
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
765
+ ).optional(),
766
+ formattedValue: z.string().describe(
767
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
768
+ ).max(50).optional().nullable()
769
+ }).describe(
770
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
771
+ ).optional()
772
+ }).describe(
773
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
734
774
  ).optional()
735
775
  }),
736
776
  z.xor([
@@ -1347,7 +1387,27 @@ var BulkCreateServicesRequest = z.object({
1347
1387
  "The payment options a customer can use to pay for the service."
1348
1388
  ).optional(),
1349
1389
  pricingPlanIds: z.array(z.string()).max(75).optional(),
1350
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
1390
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
1391
+ discountInfo: z.object({
1392
+ discountName: z.string().describe(
1393
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
1394
+ ).min(1).max(50).optional(),
1395
+ priceAfterDiscount: z.object({
1396
+ value: z.string().describe(
1397
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
1398
+ ).optional(),
1399
+ currency: z.string().describe(
1400
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
1401
+ ).optional(),
1402
+ formattedValue: z.string().describe(
1403
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
1404
+ ).max(50).optional().nullable()
1405
+ }).describe(
1406
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
1407
+ ).optional()
1408
+ }).describe(
1409
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
1410
+ ).optional()
1351
1411
  }),
1352
1412
  z.xor([
1353
1413
  z.object({
@@ -2008,6 +2068,26 @@ var BulkCreateServicesResponse = z.object({
2008
2068
  pricingPlanIds: z.array(z.string()).max(75).optional(),
2009
2069
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
2010
2070
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
2071
+ ).optional(),
2072
+ discountInfo: z.object({
2073
+ discountName: z.string().describe(
2074
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
2075
+ ).min(1).max(50).optional(),
2076
+ priceAfterDiscount: z.object({
2077
+ value: z.string().describe(
2078
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
2079
+ ).optional(),
2080
+ currency: z.string().describe(
2081
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
2082
+ ).optional(),
2083
+ formattedValue: z.string().describe(
2084
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
2085
+ ).max(50).optional().nullable()
2086
+ }).describe(
2087
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
2088
+ ).optional()
2089
+ }).describe(
2090
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
2011
2091
  ).optional()
2012
2092
  }),
2013
2093
  z.xor([
@@ -2654,6 +2734,26 @@ var GetServiceResponse = z.object({
2654
2734
  pricingPlanIds: z.array(z.string()).max(75).optional(),
2655
2735
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
2656
2736
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
2737
+ ).optional(),
2738
+ discountInfo: z.object({
2739
+ discountName: z.string().describe(
2740
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
2741
+ ).min(1).max(50).optional(),
2742
+ priceAfterDiscount: z.object({
2743
+ value: z.string().describe(
2744
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
2745
+ ).optional(),
2746
+ currency: z.string().describe(
2747
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
2748
+ ).optional(),
2749
+ formattedValue: z.string().describe(
2750
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
2751
+ ).max(50).optional().nullable()
2752
+ }).describe(
2753
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
2754
+ ).optional()
2755
+ }).describe(
2756
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
2657
2757
  ).optional()
2658
2758
  }),
2659
2759
  z.xor([
@@ -3273,7 +3373,27 @@ var UpdateServiceRequest = z.object({
3273
3373
  "The payment options a customer can use to pay for the service."
3274
3374
  ).optional(),
3275
3375
  pricingPlanIds: z.array(z.string()).max(75).optional(),
3276
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
3376
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
3377
+ discountInfo: z.object({
3378
+ discountName: z.string().describe(
3379
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
3380
+ ).min(1).max(50).optional(),
3381
+ priceAfterDiscount: z.object({
3382
+ value: z.string().describe(
3383
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
3384
+ ).optional(),
3385
+ currency: z.string().describe(
3386
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
3387
+ ).optional(),
3388
+ formattedValue: z.string().describe(
3389
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
3390
+ ).max(50).optional().nullable()
3391
+ }).describe(
3392
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
3393
+ ).optional()
3394
+ }).describe(
3395
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
3396
+ ).optional()
3277
3397
  }),
3278
3398
  z.xor([
3279
3399
  z.object({
@@ -3898,6 +4018,26 @@ var UpdateServiceResponse = z.object({
3898
4018
  pricingPlanIds: z.array(z.string()).max(75).optional(),
3899
4019
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
3900
4020
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
4021
+ ).optional(),
4022
+ discountInfo: z.object({
4023
+ discountName: z.string().describe(
4024
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
4025
+ ).min(1).max(50).optional(),
4026
+ priceAfterDiscount: z.object({
4027
+ value: z.string().describe(
4028
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
4029
+ ).optional(),
4030
+ currency: z.string().describe(
4031
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
4032
+ ).optional(),
4033
+ formattedValue: z.string().describe(
4034
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
4035
+ ).max(50).optional().nullable()
4036
+ }).describe(
4037
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
4038
+ ).optional()
4039
+ }).describe(
4040
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
3901
4041
  ).optional()
3902
4042
  }),
3903
4043
  z.xor([
@@ -4522,7 +4662,27 @@ var BulkUpdateServicesRequest = z.object({
4522
4662
  "The payment options a customer can use to pay for the service."
4523
4663
  ).optional(),
4524
4664
  pricingPlanIds: z.array(z.string()).max(75).optional(),
4525
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
4665
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
4666
+ discountInfo: z.object({
4667
+ discountName: z.string().describe(
4668
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
4669
+ ).min(1).max(50).optional(),
4670
+ priceAfterDiscount: z.object({
4671
+ value: z.string().describe(
4672
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
4673
+ ).optional(),
4674
+ currency: z.string().describe(
4675
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
4676
+ ).optional(),
4677
+ formattedValue: z.string().describe(
4678
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
4679
+ ).max(50).optional().nullable()
4680
+ }).describe(
4681
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
4682
+ ).optional()
4683
+ }).describe(
4684
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
4685
+ ).optional()
4526
4686
  }),
4527
4687
  z.xor([
4528
4688
  z.object({
@@ -5192,6 +5352,26 @@ var BulkUpdateServicesResponse = z.object({
5192
5352
  pricingPlanIds: z.array(z.string()).max(75).optional(),
5193
5353
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
5194
5354
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
5355
+ ).optional(),
5356
+ discountInfo: z.object({
5357
+ discountName: z.string().describe(
5358
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
5359
+ ).min(1).max(50).optional(),
5360
+ priceAfterDiscount: z.object({
5361
+ value: z.string().describe(
5362
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
5363
+ ).optional(),
5364
+ currency: z.string().describe(
5365
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
5366
+ ).optional(),
5367
+ formattedValue: z.string().describe(
5368
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
5369
+ ).max(50).optional().nullable()
5370
+ }).describe(
5371
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
5372
+ ).optional()
5373
+ }).describe(
5374
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
5195
5375
  ).optional()
5196
5376
  }),
5197
5377
  z.xor([
@@ -5831,7 +6011,27 @@ var BulkUpdateServicesByFilterRequest = z.object({
5831
6011
  "The payment options a customer can use to pay for the service."
5832
6012
  ).optional(),
5833
6013
  pricingPlanIds: z.array(z.string()).max(75).optional(),
5834
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
6014
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
6015
+ discountInfo: z.object({
6016
+ discountName: z.string().describe(
6017
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
6018
+ ).min(1).max(50).optional(),
6019
+ priceAfterDiscount: z.object({
6020
+ value: z.string().describe(
6021
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
6022
+ ).optional(),
6023
+ currency: z.string().describe(
6024
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
6025
+ ).optional(),
6026
+ formattedValue: z.string().describe(
6027
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
6028
+ ).max(50).optional().nullable()
6029
+ }).describe(
6030
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
6031
+ ).optional()
6032
+ }).describe(
6033
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
6034
+ ).optional()
5835
6035
  }),
5836
6036
  z.xor([
5837
6037
  z.object({
@@ -6539,6 +6739,26 @@ var BulkDeleteServicesResponse = z.object({
6539
6739
  pricingPlanIds: z.array(z.string()).max(75).optional(),
6540
6740
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
6541
6741
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
6742
+ ).optional(),
6743
+ discountInfo: z.object({
6744
+ discountName: z.string().describe(
6745
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
6746
+ ).min(1).max(50).optional(),
6747
+ priceAfterDiscount: z.object({
6748
+ value: z.string().describe(
6749
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
6750
+ ).optional(),
6751
+ currency: z.string().describe(
6752
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
6753
+ ).optional(),
6754
+ formattedValue: z.string().describe(
6755
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
6756
+ ).max(50).optional().nullable()
6757
+ }).describe(
6758
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
6759
+ ).optional()
6760
+ }).describe(
6761
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
6542
6762
  ).optional()
6543
6763
  }),
6544
6764
  z.xor([
@@ -7525,6 +7745,26 @@ var QueryServicesResponse = z.object({
7525
7745
  pricingPlanIds: z.array(z.string()).max(75).optional(),
7526
7746
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
7527
7747
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
7748
+ ).optional(),
7749
+ discountInfo: z.object({
7750
+ discountName: z.string().describe(
7751
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
7752
+ ).min(1).max(50).optional(),
7753
+ priceAfterDiscount: z.object({
7754
+ value: z.string().describe(
7755
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
7756
+ ).optional(),
7757
+ currency: z.string().describe(
7758
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
7759
+ ).optional(),
7760
+ formattedValue: z.string().describe(
7761
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
7762
+ ).max(50).optional().nullable()
7763
+ }).describe(
7764
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
7765
+ ).optional()
7766
+ }).describe(
7767
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
7528
7768
  ).optional()
7529
7769
  }),
7530
7770
  z.xor([
@@ -8557,6 +8797,26 @@ var SearchServicesResponse = z.object({
8557
8797
  pricingPlanIds: z.array(z.string()).max(75).optional(),
8558
8798
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
8559
8799
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
8800
+ ).optional(),
8801
+ discountInfo: z.object({
8802
+ discountName: z.string().describe(
8803
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
8804
+ ).min(1).max(50).optional(),
8805
+ priceAfterDiscount: z.object({
8806
+ value: z.string().describe(
8807
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
8808
+ ).optional(),
8809
+ currency: z.string().describe(
8810
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
8811
+ ).optional(),
8812
+ formattedValue: z.string().describe(
8813
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
8814
+ ).max(50).optional().nullable()
8815
+ }).describe(
8816
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
8817
+ ).optional()
8818
+ }).describe(
8819
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
8560
8820
  ).optional()
8561
8821
  }),
8562
8822
  z.xor([
@@ -9679,6 +9939,26 @@ var QueryPoliciesResponse = z.object({
9679
9939
  pricingPlanIds: z.array(z.string()).max(75).optional(),
9680
9940
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
9681
9941
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
9942
+ ).optional(),
9943
+ discountInfo: z.object({
9944
+ discountName: z.string().describe(
9945
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
9946
+ ).min(1).max(50).optional(),
9947
+ priceAfterDiscount: z.object({
9948
+ value: z.string().describe(
9949
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
9950
+ ).optional(),
9951
+ currency: z.string().describe(
9952
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
9953
+ ).optional(),
9954
+ formattedValue: z.string().describe(
9955
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
9956
+ ).max(50).optional().nullable()
9957
+ }).describe(
9958
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
9959
+ ).optional()
9960
+ }).describe(
9961
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
9682
9962
  ).optional()
9683
9963
  }),
9684
9964
  z.xor([
@@ -10729,6 +11009,26 @@ var SetServiceLocationsResponse = z.object({
10729
11009
  pricingPlanIds: z.array(z.string()).max(75).optional(),
10730
11010
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
10731
11011
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
11012
+ ).optional(),
11013
+ discountInfo: z.object({
11014
+ discountName: z.string().describe(
11015
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
11016
+ ).min(1).max(50).optional(),
11017
+ priceAfterDiscount: z.object({
11018
+ value: z.string().describe(
11019
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
11020
+ ).optional(),
11021
+ currency: z.string().describe(
11022
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
11023
+ ).optional(),
11024
+ formattedValue: z.string().describe(
11025
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
11026
+ ).max(50).optional().nullable()
11027
+ }).describe(
11028
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
11029
+ ).optional()
11030
+ }).describe(
11031
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
10732
11032
  ).optional()
10733
11033
  }),
10734
11034
  z.xor([
@@ -11364,6 +11664,26 @@ var EnablePricingPlansForServiceResponse = z.object({
11364
11664
  pricingPlanIds: z.array(z.string()).max(75).optional(),
11365
11665
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
11366
11666
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
11667
+ ).optional(),
11668
+ discountInfo: z.object({
11669
+ discountName: z.string().describe(
11670
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
11671
+ ).min(1).max(50).optional(),
11672
+ priceAfterDiscount: z.object({
11673
+ value: z.string().describe(
11674
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
11675
+ ).optional(),
11676
+ currency: z.string().describe(
11677
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
11678
+ ).optional(),
11679
+ formattedValue: z.string().describe(
11680
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
11681
+ ).max(50).optional().nullable()
11682
+ }).describe(
11683
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
11684
+ ).optional()
11685
+ }).describe(
11686
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
11367
11687
  ).optional()
11368
11688
  }),
11369
11689
  z.xor([
@@ -11999,6 +12319,26 @@ var DisablePricingPlansForServiceResponse = z.object({
11999
12319
  pricingPlanIds: z.array(z.string()).max(75).optional(),
12000
12320
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
12001
12321
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
12322
+ ).optional(),
12323
+ discountInfo: z.object({
12324
+ discountName: z.string().describe(
12325
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
12326
+ ).min(1).max(50).optional(),
12327
+ priceAfterDiscount: z.object({
12328
+ value: z.string().describe(
12329
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
12330
+ ).optional(),
12331
+ currency: z.string().describe(
12332
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
12333
+ ).optional(),
12334
+ formattedValue: z.string().describe(
12335
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
12336
+ ).max(50).optional().nullable()
12337
+ }).describe(
12338
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
12339
+ ).optional()
12340
+ }).describe(
12341
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
12002
12342
  ).optional()
12003
12343
  }),
12004
12344
  z.xor([
@@ -12645,6 +12985,26 @@ var SetCustomSlugResponse = z.object({
12645
12985
  pricingPlanIds: z.array(z.string()).max(75).optional(),
12646
12986
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
12647
12987
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
12988
+ ).optional(),
12989
+ discountInfo: z.object({
12990
+ discountName: z.string().describe(
12991
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
12992
+ ).min(1).max(50).optional(),
12993
+ priceAfterDiscount: z.object({
12994
+ value: z.string().describe(
12995
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
12996
+ ).optional(),
12997
+ currency: z.string().describe(
12998
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
12999
+ ).optional(),
13000
+ formattedValue: z.string().describe(
13001
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
13002
+ ).max(50).optional().nullable()
13003
+ }).describe(
13004
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
13005
+ ).optional()
13006
+ }).describe(
13007
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
12648
13008
  ).optional()
12649
13009
  }),
12650
13010
  z.xor([
@@ -13293,6 +13653,26 @@ var CloneServiceResponse = z.object({
13293
13653
  pricingPlanIds: z.array(z.string()).max(75).optional(),
13294
13654
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
13295
13655
  "How customers can pay for add-ons when paying for the related booking with a [pricing plan](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/introduction).\nIf customers pay for the booking using any method other than a pricing plan, the value of this field is ignored."
13656
+ ).optional(),
13657
+ discountInfo: z.object({
13658
+ discountName: z.string().describe(
13659
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
13660
+ ).min(1).max(50).optional(),
13661
+ priceAfterDiscount: z.object({
13662
+ value: z.string().describe(
13663
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
13664
+ ).optional(),
13665
+ currency: z.string().describe(
13666
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
13667
+ ).optional(),
13668
+ formattedValue: z.string().describe(
13669
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
13670
+ ).max(50).optional().nullable()
13671
+ }).describe(
13672
+ "Estimated price after applying the discount. The final price is determined at checkout and may differ when additional discounts are applied or rules are re-evaluated with complete booking information.\n\nNot returned when the discount depends on booking or cart context, for example a discount that applies to a service only when booked together with another service, or when the discount requires information only available at checkout."
13673
+ ).optional()
13674
+ }).describe(
13675
+ "Estimated discount information for the service based on active [eCommerce discounts](https://dev.wix.com/docs/rest/business-solutions/e-commerce/extensions/discounts/introduction).\nThe final discount is determined during eCommerce checkout and may differ from the estimate,\nfor example when discounts depend on cart totals.\n\nA discount is considered active when its start time has passed and its end time hasn't.\nIf multiple active discounts apply, the most recently created one is returned.\n\nReturned only when `DISCOUNT_INFO_DETAILS` is requested."
13296
13676
  ).optional()
13297
13677
  }),
13298
13678
  z.xor([