@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
@@ -195,7 +195,27 @@ var CreateServiceRequest = z.object({
195
195
  "The payment options a customer can use to pay for the service."
196
196
  ).optional(),
197
197
  pricingPlanIds: z.array(z.string()).max(75).optional(),
198
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
198
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
199
+ discountInfo: z.object({
200
+ discountName: z.string().describe(
201
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
202
+ ).min(1).max(50).optional(),
203
+ priceAfterDiscount: z.object({
204
+ value: z.string().describe(
205
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
206
+ ).optional(),
207
+ currency: z.string().describe(
208
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
209
+ ).optional(),
210
+ formattedValue: z.string().describe(
211
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
212
+ ).max(50).optional().nullable()
213
+ }).describe(
214
+ "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."
215
+ ).optional()
216
+ }).describe(
217
+ "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."
218
+ ).optional()
199
219
  }),
200
220
  z.xor([
201
221
  z.object({
@@ -820,6 +840,26 @@ var CreateServiceResponse = z.object({
820
840
  pricingPlanIds: z.array(z.string()).max(75).optional(),
821
841
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
822
842
  "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."
843
+ ).optional(),
844
+ discountInfo: z.object({
845
+ discountName: z.string().describe(
846
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
847
+ ).min(1).max(50).optional(),
848
+ priceAfterDiscount: z.object({
849
+ value: z.string().describe(
850
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
851
+ ).optional(),
852
+ currency: z.string().describe(
853
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
854
+ ).optional(),
855
+ formattedValue: z.string().describe(
856
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
857
+ ).max(50).optional().nullable()
858
+ }).describe(
859
+ "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."
860
+ ).optional()
861
+ }).describe(
862
+ "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."
823
863
  ).optional()
824
864
  }),
825
865
  z.xor([
@@ -1436,7 +1476,27 @@ var BulkCreateServicesRequest = z.object({
1436
1476
  "The payment options a customer can use to pay for the service."
1437
1477
  ).optional(),
1438
1478
  pricingPlanIds: z.array(z.string()).max(75).optional(),
1439
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
1479
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
1480
+ discountInfo: z.object({
1481
+ discountName: z.string().describe(
1482
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
1483
+ ).min(1).max(50).optional(),
1484
+ priceAfterDiscount: z.object({
1485
+ value: z.string().describe(
1486
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
1487
+ ).optional(),
1488
+ currency: z.string().describe(
1489
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
1490
+ ).optional(),
1491
+ formattedValue: z.string().describe(
1492
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
1493
+ ).max(50).optional().nullable()
1494
+ }).describe(
1495
+ "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."
1496
+ ).optional()
1497
+ }).describe(
1498
+ "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."
1499
+ ).optional()
1440
1500
  }),
1441
1501
  z.xor([
1442
1502
  z.object({
@@ -2097,6 +2157,26 @@ var BulkCreateServicesResponse = z.object({
2097
2157
  pricingPlanIds: z.array(z.string()).max(75).optional(),
2098
2158
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
2099
2159
  "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."
2160
+ ).optional(),
2161
+ discountInfo: z.object({
2162
+ discountName: z.string().describe(
2163
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
2164
+ ).min(1).max(50).optional(),
2165
+ priceAfterDiscount: z.object({
2166
+ value: z.string().describe(
2167
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
2168
+ ).optional(),
2169
+ currency: z.string().describe(
2170
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
2171
+ ).optional(),
2172
+ formattedValue: z.string().describe(
2173
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
2174
+ ).max(50).optional().nullable()
2175
+ }).describe(
2176
+ "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."
2177
+ ).optional()
2178
+ }).describe(
2179
+ "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."
2100
2180
  ).optional()
2101
2181
  }),
2102
2182
  z.xor([
@@ -2743,6 +2823,26 @@ var GetServiceResponse = z.object({
2743
2823
  pricingPlanIds: z.array(z.string()).max(75).optional(),
2744
2824
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
2745
2825
  "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."
2826
+ ).optional(),
2827
+ discountInfo: z.object({
2828
+ discountName: z.string().describe(
2829
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
2830
+ ).min(1).max(50).optional(),
2831
+ priceAfterDiscount: z.object({
2832
+ value: z.string().describe(
2833
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
2834
+ ).optional(),
2835
+ currency: z.string().describe(
2836
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
2837
+ ).optional(),
2838
+ formattedValue: z.string().describe(
2839
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
2840
+ ).max(50).optional().nullable()
2841
+ }).describe(
2842
+ "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."
2843
+ ).optional()
2844
+ }).describe(
2845
+ "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."
2746
2846
  ).optional()
2747
2847
  }),
2748
2848
  z.xor([
@@ -3362,7 +3462,27 @@ var UpdateServiceRequest = z.object({
3362
3462
  "The payment options a customer can use to pay for the service."
3363
3463
  ).optional(),
3364
3464
  pricingPlanIds: z.array(z.string()).max(75).optional(),
3365
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
3465
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
3466
+ discountInfo: z.object({
3467
+ discountName: z.string().describe(
3468
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
3469
+ ).min(1).max(50).optional(),
3470
+ priceAfterDiscount: z.object({
3471
+ value: z.string().describe(
3472
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
3473
+ ).optional(),
3474
+ currency: z.string().describe(
3475
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
3476
+ ).optional(),
3477
+ formattedValue: z.string().describe(
3478
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
3479
+ ).max(50).optional().nullable()
3480
+ }).describe(
3481
+ "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."
3482
+ ).optional()
3483
+ }).describe(
3484
+ "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."
3485
+ ).optional()
3366
3486
  }),
3367
3487
  z.xor([
3368
3488
  z.object({
@@ -3987,6 +4107,26 @@ var UpdateServiceResponse = z.object({
3987
4107
  pricingPlanIds: z.array(z.string()).max(75).optional(),
3988
4108
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
3989
4109
  "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."
4110
+ ).optional(),
4111
+ discountInfo: z.object({
4112
+ discountName: z.string().describe(
4113
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
4114
+ ).min(1).max(50).optional(),
4115
+ priceAfterDiscount: z.object({
4116
+ value: z.string().describe(
4117
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
4118
+ ).optional(),
4119
+ currency: z.string().describe(
4120
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
4121
+ ).optional(),
4122
+ formattedValue: z.string().describe(
4123
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
4124
+ ).max(50).optional().nullable()
4125
+ }).describe(
4126
+ "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."
4127
+ ).optional()
4128
+ }).describe(
4129
+ "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."
3990
4130
  ).optional()
3991
4131
  }),
3992
4132
  z.xor([
@@ -4611,7 +4751,27 @@ var BulkUpdateServicesRequest = z.object({
4611
4751
  "The payment options a customer can use to pay for the service."
4612
4752
  ).optional(),
4613
4753
  pricingPlanIds: z.array(z.string()).max(75).optional(),
4614
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
4754
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
4755
+ discountInfo: z.object({
4756
+ discountName: z.string().describe(
4757
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
4758
+ ).min(1).max(50).optional(),
4759
+ priceAfterDiscount: z.object({
4760
+ value: z.string().describe(
4761
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
4762
+ ).optional(),
4763
+ currency: z.string().describe(
4764
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
4765
+ ).optional(),
4766
+ formattedValue: z.string().describe(
4767
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
4768
+ ).max(50).optional().nullable()
4769
+ }).describe(
4770
+ "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."
4771
+ ).optional()
4772
+ }).describe(
4773
+ "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."
4774
+ ).optional()
4615
4775
  }),
4616
4776
  z.xor([
4617
4777
  z.object({
@@ -5281,6 +5441,26 @@ var BulkUpdateServicesResponse = z.object({
5281
5441
  pricingPlanIds: z.array(z.string()).max(75).optional(),
5282
5442
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
5283
5443
  "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."
5444
+ ).optional(),
5445
+ discountInfo: z.object({
5446
+ discountName: z.string().describe(
5447
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
5448
+ ).min(1).max(50).optional(),
5449
+ priceAfterDiscount: z.object({
5450
+ value: z.string().describe(
5451
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
5452
+ ).optional(),
5453
+ currency: z.string().describe(
5454
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
5455
+ ).optional(),
5456
+ formattedValue: z.string().describe(
5457
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
5458
+ ).max(50).optional().nullable()
5459
+ }).describe(
5460
+ "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."
5461
+ ).optional()
5462
+ }).describe(
5463
+ "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."
5284
5464
  ).optional()
5285
5465
  }),
5286
5466
  z.xor([
@@ -5920,7 +6100,27 @@ var BulkUpdateServicesByFilterRequest = z.object({
5920
6100
  "The payment options a customer can use to pay for the service."
5921
6101
  ).optional(),
5922
6102
  pricingPlanIds: z.array(z.string()).max(75).optional(),
5923
- addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional()
6103
+ addOnOption: z.enum(["ONLINE", "IN_PERSON"]).optional(),
6104
+ discountInfo: z.object({
6105
+ discountName: z.string().describe(
6106
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
6107
+ ).min(1).max(50).optional(),
6108
+ priceAfterDiscount: z.object({
6109
+ value: z.string().describe(
6110
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
6111
+ ).optional(),
6112
+ currency: z.string().describe(
6113
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
6114
+ ).optional(),
6115
+ formattedValue: z.string().describe(
6116
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
6117
+ ).max(50).optional().nullable()
6118
+ }).describe(
6119
+ "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."
6120
+ ).optional()
6121
+ }).describe(
6122
+ "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."
6123
+ ).optional()
5924
6124
  }),
5925
6125
  z.xor([
5926
6126
  z.object({
@@ -6628,6 +6828,26 @@ var BulkDeleteServicesResponse = z.object({
6628
6828
  pricingPlanIds: z.array(z.string()).max(75).optional(),
6629
6829
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
6630
6830
  "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."
6831
+ ).optional(),
6832
+ discountInfo: z.object({
6833
+ discountName: z.string().describe(
6834
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
6835
+ ).min(1).max(50).optional(),
6836
+ priceAfterDiscount: z.object({
6837
+ value: z.string().describe(
6838
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
6839
+ ).optional(),
6840
+ currency: z.string().describe(
6841
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
6842
+ ).optional(),
6843
+ formattedValue: z.string().describe(
6844
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
6845
+ ).max(50).optional().nullable()
6846
+ }).describe(
6847
+ "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."
6848
+ ).optional()
6849
+ }).describe(
6850
+ "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."
6631
6851
  ).optional()
6632
6852
  }),
6633
6853
  z.xor([
@@ -7614,6 +7834,26 @@ var QueryServicesResponse = z.object({
7614
7834
  pricingPlanIds: z.array(z.string()).max(75).optional(),
7615
7835
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
7616
7836
  "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."
7837
+ ).optional(),
7838
+ discountInfo: z.object({
7839
+ discountName: z.string().describe(
7840
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
7841
+ ).min(1).max(50).optional(),
7842
+ priceAfterDiscount: z.object({
7843
+ value: z.string().describe(
7844
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
7845
+ ).optional(),
7846
+ currency: z.string().describe(
7847
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
7848
+ ).optional(),
7849
+ formattedValue: z.string().describe(
7850
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
7851
+ ).max(50).optional().nullable()
7852
+ }).describe(
7853
+ "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."
7854
+ ).optional()
7855
+ }).describe(
7856
+ "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."
7617
7857
  ).optional()
7618
7858
  }),
7619
7859
  z.xor([
@@ -8646,6 +8886,26 @@ var SearchServicesResponse = z.object({
8646
8886
  pricingPlanIds: z.array(z.string()).max(75).optional(),
8647
8887
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
8648
8888
  "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."
8889
+ ).optional(),
8890
+ discountInfo: z.object({
8891
+ discountName: z.string().describe(
8892
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
8893
+ ).min(1).max(50).optional(),
8894
+ priceAfterDiscount: z.object({
8895
+ value: z.string().describe(
8896
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
8897
+ ).optional(),
8898
+ currency: z.string().describe(
8899
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
8900
+ ).optional(),
8901
+ formattedValue: z.string().describe(
8902
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
8903
+ ).max(50).optional().nullable()
8904
+ }).describe(
8905
+ "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."
8906
+ ).optional()
8907
+ }).describe(
8908
+ "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."
8649
8909
  ).optional()
8650
8910
  }),
8651
8911
  z.xor([
@@ -9768,6 +10028,26 @@ var QueryPoliciesResponse = z.object({
9768
10028
  pricingPlanIds: z.array(z.string()).max(75).optional(),
9769
10029
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
9770
10030
  "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."
10031
+ ).optional(),
10032
+ discountInfo: z.object({
10033
+ discountName: z.string().describe(
10034
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
10035
+ ).min(1).max(50).optional(),
10036
+ priceAfterDiscount: z.object({
10037
+ value: z.string().describe(
10038
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
10039
+ ).optional(),
10040
+ currency: z.string().describe(
10041
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
10042
+ ).optional(),
10043
+ formattedValue: z.string().describe(
10044
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
10045
+ ).max(50).optional().nullable()
10046
+ }).describe(
10047
+ "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."
10048
+ ).optional()
10049
+ }).describe(
10050
+ "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."
9771
10051
  ).optional()
9772
10052
  }),
9773
10053
  z.xor([
@@ -10818,6 +11098,26 @@ var SetServiceLocationsResponse = z.object({
10818
11098
  pricingPlanIds: z.array(z.string()).max(75).optional(),
10819
11099
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
10820
11100
  "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."
11101
+ ).optional(),
11102
+ discountInfo: z.object({
11103
+ discountName: z.string().describe(
11104
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
11105
+ ).min(1).max(50).optional(),
11106
+ priceAfterDiscount: z.object({
11107
+ value: z.string().describe(
11108
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
11109
+ ).optional(),
11110
+ currency: z.string().describe(
11111
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
11112
+ ).optional(),
11113
+ formattedValue: z.string().describe(
11114
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
11115
+ ).max(50).optional().nullable()
11116
+ }).describe(
11117
+ "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."
11118
+ ).optional()
11119
+ }).describe(
11120
+ "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."
10821
11121
  ).optional()
10822
11122
  }),
10823
11123
  z.xor([
@@ -11453,6 +11753,26 @@ var EnablePricingPlansForServiceResponse = z.object({
11453
11753
  pricingPlanIds: z.array(z.string()).max(75).optional(),
11454
11754
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
11455
11755
  "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."
11756
+ ).optional(),
11757
+ discountInfo: z.object({
11758
+ discountName: z.string().describe(
11759
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
11760
+ ).min(1).max(50).optional(),
11761
+ priceAfterDiscount: z.object({
11762
+ value: z.string().describe(
11763
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
11764
+ ).optional(),
11765
+ currency: z.string().describe(
11766
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
11767
+ ).optional(),
11768
+ formattedValue: z.string().describe(
11769
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
11770
+ ).max(50).optional().nullable()
11771
+ }).describe(
11772
+ "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."
11773
+ ).optional()
11774
+ }).describe(
11775
+ "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."
11456
11776
  ).optional()
11457
11777
  }),
11458
11778
  z.xor([
@@ -12088,6 +12408,26 @@ var DisablePricingPlansForServiceResponse = z.object({
12088
12408
  pricingPlanIds: z.array(z.string()).max(75).optional(),
12089
12409
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
12090
12410
  "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."
12411
+ ).optional(),
12412
+ discountInfo: z.object({
12413
+ discountName: z.string().describe(
12414
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
12415
+ ).min(1).max(50).optional(),
12416
+ priceAfterDiscount: z.object({
12417
+ value: z.string().describe(
12418
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
12419
+ ).optional(),
12420
+ currency: z.string().describe(
12421
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
12422
+ ).optional(),
12423
+ formattedValue: z.string().describe(
12424
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
12425
+ ).max(50).optional().nullable()
12426
+ }).describe(
12427
+ "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."
12428
+ ).optional()
12429
+ }).describe(
12430
+ "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."
12091
12431
  ).optional()
12092
12432
  }),
12093
12433
  z.xor([
@@ -12734,6 +13074,26 @@ var SetCustomSlugResponse = z.object({
12734
13074
  pricingPlanIds: z.array(z.string()).max(75).optional(),
12735
13075
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
12736
13076
  "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."
13077
+ ).optional(),
13078
+ discountInfo: z.object({
13079
+ discountName: z.string().describe(
13080
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
13081
+ ).min(1).max(50).optional(),
13082
+ priceAfterDiscount: z.object({
13083
+ value: z.string().describe(
13084
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
13085
+ ).optional(),
13086
+ currency: z.string().describe(
13087
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
13088
+ ).optional(),
13089
+ formattedValue: z.string().describe(
13090
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
13091
+ ).max(50).optional().nullable()
13092
+ }).describe(
13093
+ "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."
13094
+ ).optional()
13095
+ }).describe(
13096
+ "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."
12737
13097
  ).optional()
12738
13098
  }),
12739
13099
  z.xor([
@@ -13382,6 +13742,26 @@ var CloneServiceResponse = z.object({
13382
13742
  pricingPlanIds: z.array(z.string()).max(75).optional(),
13383
13743
  addOnOption: z.enum(["ONLINE", "IN_PERSON"]).describe(
13384
13744
  "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."
13745
+ ).optional(),
13746
+ discountInfo: z.object({
13747
+ discountName: z.string().describe(
13748
+ "Name of the discount. For example, `Summer Sale - 20% Off`."
13749
+ ).min(1).max(50).optional(),
13750
+ priceAfterDiscount: z.object({
13751
+ value: z.string().describe(
13752
+ "Monetary amount. Decimal string with a period as a decimal separator. For example `25.05`."
13753
+ ).optional(),
13754
+ currency: z.string().describe(
13755
+ "Currency code in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). For example, `USD`."
13756
+ ).optional(),
13757
+ formattedValue: z.string().describe(
13758
+ "Monetary amount. Decimal string in local format. For example, `1 000,30`."
13759
+ ).max(50).optional().nullable()
13760
+ }).describe(
13761
+ "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."
13762
+ ).optional()
13763
+ }).describe(
13764
+ "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."
13385
13765
  ).optional()
13386
13766
  }),
13387
13767
  z.xor([