chargebee 3.34.0 → 3.36.0

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 (198) hide show
  1. package/CHANGELOG.md +237 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +230 -2
  4. package/cjs/resources/webhook/eventType.js +25 -1
  5. package/cjs/schema/addon.schema.js +221 -40
  6. package/cjs/schema/alert.schema.js +17 -2
  7. package/cjs/schema/alert_status.schema.js +6 -1
  8. package/cjs/schema/attached_item.schema.js +101 -26
  9. package/cjs/schema/business_entity.schema.js +43 -6
  10. package/cjs/schema/business_rule.schema.js +2 -2
  11. package/cjs/schema/business_ruleset.schema.js +2 -2
  12. package/cjs/schema/collections_payment_promise.schema.js +43 -0
  13. package/cjs/schema/comment.schema.js +17 -4
  14. package/cjs/schema/coupon.schema.js +218 -37
  15. package/cjs/schema/coupon_code.schema.js +36 -6
  16. package/cjs/schema/coupon_set.schema.js +108 -27
  17. package/cjs/schema/credit_note.schema.js +497 -105
  18. package/cjs/schema/credit_unit.schema.js +12 -2
  19. package/cjs/schema/customer.schema.js +212 -62
  20. package/cjs/schema/differential_price.schema.js +100 -12
  21. package/cjs/schema/dispute.schema.js +125 -33
  22. package/cjs/schema/einvoice.schema.js +27 -6
  23. package/cjs/schema/email_log.schema.js +15 -4
  24. package/cjs/schema/entitlement.schema.js +35 -6
  25. package/cjs/schema/entitlement_override.schema.js +17 -1
  26. package/cjs/schema/estimate.schema.js +585 -40
  27. package/cjs/schema/event.schema.js +1334 -585
  28. package/cjs/schema/export.schema.js +4459 -1412
  29. package/cjs/schema/feature.schema.js +73 -11
  30. package/cjs/schema/gateway_request_log.schema.js +309 -0
  31. package/cjs/schema/gateway_webhook_log.schema.js +257 -0
  32. package/cjs/schema/gift.schema.js +51 -5
  33. package/cjs/schema/grant_block.schema.js +45 -12
  34. package/cjs/schema/hosted_page.schema.js +564 -68
  35. package/cjs/schema/index.js +6 -0
  36. package/cjs/schema/invoice.schema.js +843 -123
  37. package/cjs/schema/item.schema.js +151 -28
  38. package/cjs/schema/item_entitlement.schema.js +23 -2
  39. package/cjs/schema/item_family.schema.js +29 -8
  40. package/cjs/schema/item_price.schema.js +263 -48
  41. package/cjs/schema/ledger_account_balance.schema.js +11 -2
  42. package/cjs/schema/ledger_operation.schema.js +44 -17
  43. package/cjs/schema/metered_feature.schema.js +10 -1
  44. package/cjs/schema/omnichannel_one_time_order.schema.js +42 -4
  45. package/cjs/schema/omnichannel_subscription.schema.js +146 -32
  46. package/cjs/schema/order.schema.js +233 -61
  47. package/cjs/schema/organization_detail.schema.js +36 -0
  48. package/cjs/schema/payment_schedule.schema.js +39 -8
  49. package/cjs/schema/payment_schedule_scheme.schema.js +37 -7
  50. package/cjs/schema/payment_source.schema.js +375 -148
  51. package/cjs/schema/payment_voucher.schema.js +33 -5
  52. package/cjs/schema/plan.schema.js +345 -57
  53. package/cjs/schema/price_ramp.schema.js +153 -0
  54. package/cjs/schema/price_variant.schema.js +88 -18
  55. package/cjs/schema/pricing_page_session.schema.js +36 -2
  56. package/cjs/schema/promotional_credit.schema.js +27 -6
  57. package/cjs/schema/purchase.schema.js +210 -12
  58. package/cjs/schema/quote.schema.js +907 -87
  59. package/cjs/schema/quote_entitlement.schema.js +6 -2
  60. package/cjs/schema/ramp.schema.js +242 -24
  61. package/cjs/schema/retry_segment.schema.js +12 -0
  62. package/cjs/schema/site_migration_detail.schema.js +50 -16
  63. package/cjs/schema/subscription.schema.js +1002 -173
  64. package/cjs/schema/subscription_entitlement.schema.js +9 -1
  65. package/cjs/schema/transaction.schema.js +780 -342
  66. package/cjs/schema/unbilled_charge.schema.js +141 -13
  67. package/cjs/schema/usage.schema.js +59 -11
  68. package/cjs/schema/usage_event.schema.js +13 -1
  69. package/cjs/schema/usage_summary.schema.js +1 -0
  70. package/cjs/schema/virtual_bank_account.schema.js +42 -10
  71. package/cjs/schema/webhook_endpoint.schema.js +50 -2
  72. package/esm/environment.js +1 -1
  73. package/esm/resources/api_endpoints.js +230 -2
  74. package/esm/resources/webhook/eventType.js +25 -1
  75. package/esm/schema/addon.schema.js +221 -40
  76. package/esm/schema/alert.schema.js +17 -2
  77. package/esm/schema/alert_status.schema.js +6 -1
  78. package/esm/schema/attached_item.schema.js +101 -26
  79. package/esm/schema/business_entity.schema.js +42 -5
  80. package/esm/schema/business_rule.schema.js +2 -2
  81. package/esm/schema/business_ruleset.schema.js +2 -2
  82. package/esm/schema/collections_payment_promise.schema.js +40 -0
  83. package/esm/schema/comment.schema.js +17 -4
  84. package/esm/schema/coupon.schema.js +218 -37
  85. package/esm/schema/coupon_code.schema.js +36 -6
  86. package/esm/schema/coupon_set.schema.js +108 -27
  87. package/esm/schema/credit_note.schema.js +497 -105
  88. package/esm/schema/credit_unit.schema.js +12 -2
  89. package/esm/schema/customer.schema.js +212 -62
  90. package/esm/schema/differential_price.schema.js +100 -12
  91. package/esm/schema/dispute.schema.js +125 -33
  92. package/esm/schema/einvoice.schema.js +27 -6
  93. package/esm/schema/email_log.schema.js +15 -4
  94. package/esm/schema/entitlement.schema.js +35 -6
  95. package/esm/schema/entitlement_override.schema.js +17 -1
  96. package/esm/schema/estimate.schema.js +585 -40
  97. package/esm/schema/event.schema.js +1334 -585
  98. package/esm/schema/export.schema.js +4459 -1412
  99. package/esm/schema/feature.schema.js +73 -11
  100. package/esm/schema/gateway_request_log.schema.js +306 -0
  101. package/esm/schema/gateway_webhook_log.schema.js +254 -0
  102. package/esm/schema/gift.schema.js +51 -5
  103. package/esm/schema/grant_block.schema.js +45 -12
  104. package/esm/schema/hosted_page.schema.js +564 -68
  105. package/esm/schema/index.js +6 -0
  106. package/esm/schema/invoice.schema.js +842 -122
  107. package/esm/schema/item.schema.js +151 -28
  108. package/esm/schema/item_entitlement.schema.js +23 -2
  109. package/esm/schema/item_family.schema.js +29 -8
  110. package/esm/schema/item_price.schema.js +263 -48
  111. package/esm/schema/ledger_account_balance.schema.js +10 -1
  112. package/esm/schema/ledger_operation.schema.js +44 -17
  113. package/esm/schema/metered_feature.schema.js +10 -1
  114. package/esm/schema/omnichannel_one_time_order.schema.js +42 -4
  115. package/esm/schema/omnichannel_subscription.schema.js +146 -32
  116. package/esm/schema/order.schema.js +233 -61
  117. package/esm/schema/organization_detail.schema.js +33 -0
  118. package/esm/schema/payment_schedule.schema.js +39 -8
  119. package/esm/schema/payment_schedule_scheme.schema.js +37 -7
  120. package/esm/schema/payment_source.schema.js +375 -148
  121. package/esm/schema/payment_voucher.schema.js +33 -5
  122. package/esm/schema/plan.schema.js +345 -57
  123. package/esm/schema/price_ramp.schema.js +150 -0
  124. package/esm/schema/price_variant.schema.js +88 -18
  125. package/esm/schema/pricing_page_session.schema.js +36 -2
  126. package/esm/schema/promotional_credit.schema.js +27 -6
  127. package/esm/schema/purchase.schema.js +210 -12
  128. package/esm/schema/quote.schema.js +907 -87
  129. package/esm/schema/quote_entitlement.schema.js +6 -2
  130. package/esm/schema/ramp.schema.js +242 -24
  131. package/esm/schema/retry_segment.schema.js +9 -0
  132. package/esm/schema/site_migration_detail.schema.js +50 -16
  133. package/esm/schema/subscription.schema.js +1002 -173
  134. package/esm/schema/subscription_entitlement.schema.js +9 -1
  135. package/esm/schema/transaction.schema.js +780 -342
  136. package/esm/schema/unbilled_charge.schema.js +141 -13
  137. package/esm/schema/usage.schema.js +59 -11
  138. package/esm/schema/usage_event.schema.js +13 -1
  139. package/esm/schema/usage_summary.schema.js +1 -0
  140. package/esm/schema/virtual_bank_account.schema.js +42 -10
  141. package/esm/schema/webhook_endpoint.schema.js +50 -2
  142. package/package.json +1 -1
  143. package/types/core.d.ts +63 -74
  144. package/types/index.d.ts +29 -1
  145. package/types/resources/BillingLineItem.d.ts +10 -0
  146. package/types/resources/BillingMetadata.d.ts +9 -0
  147. package/types/resources/BusinessEntity.d.ts +52 -0
  148. package/types/resources/Citation.d.ts +13 -0
  149. package/types/resources/CollectionsDispute.d.ts +24 -0
  150. package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
  151. package/types/resources/CollectionsReminderSequence.d.ts +35 -0
  152. package/types/resources/Comment.d.ts +2 -1
  153. package/types/resources/Content.d.ts +23 -1
  154. package/types/resources/CreditNote.d.ts +1 -0
  155. package/types/resources/CustomData.d.ts +14 -0
  156. package/types/resources/Discount.d.ts +1 -0
  157. package/types/resources/DraftEstimate.d.ts +13 -0
  158. package/types/resources/DraftRequest.d.ts +45 -0
  159. package/types/resources/EmailAttachment.d.ts +16 -0
  160. package/types/resources/EmailConversation.d.ts +18 -0
  161. package/types/resources/EmailLog.d.ts +1 -0
  162. package/types/resources/EmailMessage.d.ts +40 -0
  163. package/types/resources/Estimate.d.ts +3 -0
  164. package/types/resources/Event.d.ts +25 -1
  165. package/types/resources/Execution.d.ts +12 -0
  166. package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
  167. package/types/resources/GatewayRequestLog.d.ts +82 -0
  168. package/types/resources/GatewayWebhookLog.d.ts +74 -0
  169. package/types/resources/GrantBlock.d.ts +5 -0
  170. package/types/resources/GroupByAttribute.d.ts +15 -0
  171. package/types/resources/GroupByRecommendation.d.ts +10 -0
  172. package/types/resources/HostedPage.d.ts +18 -0
  173. package/types/resources/Invoice.d.ts +19 -0
  174. package/types/resources/ItemPrice.d.ts +1 -0
  175. package/types/resources/LedgerAccountBalance.d.ts +19 -0
  176. package/types/resources/Meter.d.ts +1 -0
  177. package/types/resources/MeteredFeature.d.ts +1 -0
  178. package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
  179. package/types/resources/OmnichannelSubscription.d.ts +6 -1
  180. package/types/resources/OmnichannelSubscriptionItem.d.ts +4 -1
  181. package/types/resources/OrganizationDetail.d.ts +84 -0
  182. package/types/resources/PaymentSchedule.d.ts +1 -1
  183. package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
  184. package/types/resources/PaymentSource.d.ts +19 -0
  185. package/types/resources/PreferenceVariant.d.ts +10 -0
  186. package/types/resources/PriceRamp.d.ts +113 -0
  187. package/types/resources/PrivateNote.d.ts +18 -0
  188. package/types/resources/Purchase.d.ts +6 -0
  189. package/types/resources/Ramp.d.ts +6 -0
  190. package/types/resources/RampInterval.d.ts +12 -0
  191. package/types/resources/RecordedPurchase.d.ts +5 -1
  192. package/types/resources/RetrySegment.d.ts +36 -0
  193. package/types/resources/Subscription.d.ts +3 -0
  194. package/types/resources/Transaction.d.ts +4 -0
  195. package/types/resources/Usage.d.ts +7 -0
  196. package/types/resources/UsageSummary.d.ts +2 -0
  197. package/types/resources/WebhookEvent.d.ts +159 -5
  198. package/types/resources/AppliedBusinessRule.d.ts +0 -15
@@ -63,6 +63,15 @@ const CreateSubForCustomerQuoteQuoteContractTermSchema = zod_1.z.object({
63
63
  action_at_term_end: zod_1.z.enum(['renew', 'evergreen', 'cancel']).optional(),
64
64
  cancellation_cutoff_period: zod_1.z.number().int().optional(),
65
65
  });
66
+ const CreateSubForCustomerQuoteQuoteAddonsItemSchema = zod_1.z.object({
67
+ id: zod_1.z.string().max(100).optional(),
68
+ quantity: zod_1.z.number().int().min(1).optional(),
69
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
70
+ unit_price: zod_1.z.number().int().min(0).optional(),
71
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
72
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
73
+ trial_end: zod_1.z.number().int().optional(),
74
+ });
66
75
  const CreateSubForCustomerQuoteQuoteAddonsSchema = zod_1.z.object({
67
76
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
68
77
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -72,6 +81,25 @@ const CreateSubForCustomerQuoteQuoteAddonsSchema = zod_1.z.object({
72
81
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
73
82
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
74
83
  });
84
+ const CreateSubForCustomerQuoteQuoteEventBasedAddonsItemSchema = zod_1.z.object({
85
+ id: zod_1.z.string().max(100).optional(),
86
+ quantity: zod_1.z.number().int().min(1).optional(),
87
+ unit_price: zod_1.z.number().int().min(0).optional(),
88
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
89
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
90
+ service_period_in_days: zod_1.z.number().int().min(1).max(4000).optional(),
91
+ on_event: zod_1.z
92
+ .enum([
93
+ 'subscription_creation',
94
+ 'subscription_trial_start',
95
+ 'plan_activation',
96
+ 'subscription_activation',
97
+ 'contract_termination',
98
+ ])
99
+ .optional(),
100
+ charge_once: zod_1.z.boolean().default(true).optional(),
101
+ charge_on: zod_1.z.enum(['immediately', 'on_event']).optional(),
102
+ });
75
103
  const CreateSubForCustomerQuoteQuoteEventBasedAddonsSchema = zod_1.z.object({
76
104
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
77
105
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -109,8 +137,18 @@ const CreateSubForCustomerQuoteQuoteBodySchema = zod_1.z.looseObject({
109
137
  subscription: CreateSubForCustomerQuoteQuoteSubscriptionSchema.optional(),
110
138
  shipping_address: CreateSubForCustomerQuoteQuoteShippingAddressSchema.optional(),
111
139
  contract_term: CreateSubForCustomerQuoteQuoteContractTermSchema.optional(),
112
- addons: CreateSubForCustomerQuoteQuoteAddonsSchema.optional(),
113
- event_based_addons: CreateSubForCustomerQuoteQuoteEventBasedAddonsSchema.optional(),
140
+ addons: zod_1.z
141
+ .union([
142
+ zod_1.z.array(CreateSubForCustomerQuoteQuoteAddonsItemSchema.optional()),
143
+ CreateSubForCustomerQuoteQuoteAddonsSchema,
144
+ ])
145
+ .optional(),
146
+ event_based_addons: zod_1.z
147
+ .union([
148
+ zod_1.z.array(CreateSubForCustomerQuoteQuoteEventBasedAddonsItemSchema.optional()),
149
+ CreateSubForCustomerQuoteQuoteEventBasedAddonsSchema,
150
+ ])
151
+ .optional(),
114
152
  });
115
153
  exports.CreateSubForCustomerQuoteQuoteBodySchema = CreateSubForCustomerQuoteQuoteBodySchema;
116
154
  //Quote.editCreateSubForCustomerQuote
@@ -171,6 +209,15 @@ const EditCreateSubForCustomerQuoteQuoteContractTermSchema = zod_1.z.object({
171
209
  action_at_term_end: zod_1.z.enum(['renew', 'evergreen', 'cancel']).optional(),
172
210
  cancellation_cutoff_period: zod_1.z.number().int().optional(),
173
211
  });
212
+ const EditCreateSubForCustomerQuoteQuoteAddonsItemSchema = zod_1.z.object({
213
+ id: zod_1.z.string().max(100).optional(),
214
+ quantity: zod_1.z.number().int().min(1).optional(),
215
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
216
+ unit_price: zod_1.z.number().int().min(0).optional(),
217
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
218
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
219
+ trial_end: zod_1.z.number().int().optional(),
220
+ });
174
221
  const EditCreateSubForCustomerQuoteQuoteAddonsSchema = zod_1.z.object({
175
222
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
176
223
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -180,6 +227,25 @@ const EditCreateSubForCustomerQuoteQuoteAddonsSchema = zod_1.z.object({
180
227
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
181
228
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
182
229
  });
230
+ const EditCreateSubForCustomerQuoteQuoteEventBasedAddonsItemSchema = zod_1.z.object({
231
+ id: zod_1.z.string().max(100).optional(),
232
+ quantity: zod_1.z.number().int().min(1).optional(),
233
+ unit_price: zod_1.z.number().int().min(0).optional(),
234
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
235
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
236
+ service_period_in_days: zod_1.z.number().int().min(1).max(4000).optional(),
237
+ on_event: zod_1.z
238
+ .enum([
239
+ 'subscription_creation',
240
+ 'subscription_trial_start',
241
+ 'plan_activation',
242
+ 'subscription_activation',
243
+ 'contract_termination',
244
+ ])
245
+ .optional(),
246
+ charge_once: zod_1.z.boolean().default(true).optional(),
247
+ charge_on: zod_1.z.enum(['immediately', 'on_event']).optional(),
248
+ });
183
249
  const EditCreateSubForCustomerQuoteQuoteEventBasedAddonsSchema = zod_1.z.object({
184
250
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
185
251
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -216,8 +282,18 @@ const EditCreateSubForCustomerQuoteQuoteBodySchema = zod_1.z.looseObject({
216
282
  subscription: EditCreateSubForCustomerQuoteQuoteSubscriptionSchema.optional(),
217
283
  shipping_address: EditCreateSubForCustomerQuoteQuoteShippingAddressSchema.optional(),
218
284
  contract_term: EditCreateSubForCustomerQuoteQuoteContractTermSchema.optional(),
219
- addons: EditCreateSubForCustomerQuoteQuoteAddonsSchema.optional(),
220
- event_based_addons: EditCreateSubForCustomerQuoteQuoteEventBasedAddonsSchema.optional(),
285
+ addons: zod_1.z
286
+ .union([
287
+ zod_1.z.array(EditCreateSubForCustomerQuoteQuoteAddonsItemSchema.optional()),
288
+ EditCreateSubForCustomerQuoteQuoteAddonsSchema,
289
+ ])
290
+ .optional(),
291
+ event_based_addons: zod_1.z
292
+ .union([
293
+ zod_1.z.array(EditCreateSubForCustomerQuoteQuoteEventBasedAddonsItemSchema.optional()),
294
+ EditCreateSubForCustomerQuoteQuoteEventBasedAddonsSchema,
295
+ ])
296
+ .optional(),
221
297
  });
222
298
  exports.EditCreateSubForCustomerQuoteQuoteBodySchema = EditCreateSubForCustomerQuoteQuoteBodySchema;
223
299
  //Quote.updateSubscriptionQuote
@@ -304,6 +380,15 @@ const UpdateSubscriptionQuoteQuoteContractTermSchema = zod_1.z.object({
304
380
  .optional(),
305
381
  cancellation_cutoff_period: zod_1.z.number().int().optional(),
306
382
  });
383
+ const UpdateSubscriptionQuoteQuoteAddonsItemSchema = zod_1.z.object({
384
+ id: zod_1.z.string().max(100).optional(),
385
+ quantity: zod_1.z.number().int().min(1).optional(),
386
+ unit_price: zod_1.z.number().int().min(0).optional(),
387
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
388
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
389
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
390
+ trial_end: zod_1.z.number().int().optional(),
391
+ });
307
392
  const UpdateSubscriptionQuoteQuoteAddonsSchema = zod_1.z.object({
308
393
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
309
394
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -313,6 +398,25 @@ const UpdateSubscriptionQuoteQuoteAddonsSchema = zod_1.z.object({
313
398
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
314
399
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
315
400
  });
401
+ const UpdateSubscriptionQuoteQuoteEventBasedAddonsItemSchema = zod_1.z.object({
402
+ id: zod_1.z.string().max(100).optional(),
403
+ quantity: zod_1.z.number().int().min(1).optional(),
404
+ unit_price: zod_1.z.number().int().min(0).optional(),
405
+ service_period_in_days: zod_1.z.number().int().min(1).max(4000).optional(),
406
+ charge_on: zod_1.z.enum(['immediately', 'on_event']).optional(),
407
+ on_event: zod_1.z
408
+ .enum([
409
+ 'subscription_creation',
410
+ 'subscription_trial_start',
411
+ 'plan_activation',
412
+ 'subscription_activation',
413
+ 'contract_termination',
414
+ ])
415
+ .optional(),
416
+ charge_once: zod_1.z.boolean().default(true).optional(),
417
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
418
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
419
+ });
316
420
  const UpdateSubscriptionQuoteQuoteEventBasedAddonsSchema = zod_1.z.object({
317
421
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
318
422
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -359,8 +463,18 @@ const UpdateSubscriptionQuoteQuoteBodySchema = zod_1.z.looseObject({
359
463
  shipping_address: UpdateSubscriptionQuoteQuoteShippingAddressSchema.optional(),
360
464
  customer: UpdateSubscriptionQuoteQuoteCustomerSchema.optional(),
361
465
  contract_term: UpdateSubscriptionQuoteQuoteContractTermSchema.optional(),
362
- addons: UpdateSubscriptionQuoteQuoteAddonsSchema.optional(),
363
- event_based_addons: UpdateSubscriptionQuoteQuoteEventBasedAddonsSchema.optional(),
466
+ addons: zod_1.z
467
+ .union([
468
+ zod_1.z.array(UpdateSubscriptionQuoteQuoteAddonsItemSchema.optional()),
469
+ UpdateSubscriptionQuoteQuoteAddonsSchema,
470
+ ])
471
+ .optional(),
472
+ event_based_addons: zod_1.z
473
+ .union([
474
+ zod_1.z.array(UpdateSubscriptionQuoteQuoteEventBasedAddonsItemSchema.optional()),
475
+ UpdateSubscriptionQuoteQuoteEventBasedAddonsSchema,
476
+ ])
477
+ .optional(),
364
478
  });
365
479
  exports.UpdateSubscriptionQuoteQuoteBodySchema = UpdateSubscriptionQuoteQuoteBodySchema;
366
480
  //Quote.editUpdateSubscriptionQuote
@@ -446,6 +560,15 @@ const EditUpdateSubscriptionQuoteQuoteContractTermSchema = zod_1.z.object({
446
560
  .optional(),
447
561
  cancellation_cutoff_period: zod_1.z.number().int().optional(),
448
562
  });
563
+ const EditUpdateSubscriptionQuoteQuoteAddonsItemSchema = zod_1.z.object({
564
+ id: zod_1.z.string().max(100).optional(),
565
+ quantity: zod_1.z.number().int().min(1).optional(),
566
+ unit_price: zod_1.z.number().int().min(0).optional(),
567
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
568
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
569
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
570
+ trial_end: zod_1.z.number().int().optional(),
571
+ });
449
572
  const EditUpdateSubscriptionQuoteQuoteAddonsSchema = zod_1.z.object({
450
573
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
451
574
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -455,6 +578,25 @@ const EditUpdateSubscriptionQuoteQuoteAddonsSchema = zod_1.z.object({
455
578
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
456
579
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
457
580
  });
581
+ const EditUpdateSubscriptionQuoteQuoteEventBasedAddonsItemSchema = zod_1.z.object({
582
+ id: zod_1.z.string().max(100).optional(),
583
+ quantity: zod_1.z.number().int().min(1).optional(),
584
+ unit_price: zod_1.z.number().int().min(0).optional(),
585
+ service_period_in_days: zod_1.z.number().int().min(1).max(4000).optional(),
586
+ charge_on: zod_1.z.enum(['immediately', 'on_event']).optional(),
587
+ on_event: zod_1.z
588
+ .enum([
589
+ 'subscription_creation',
590
+ 'subscription_trial_start',
591
+ 'plan_activation',
592
+ 'subscription_activation',
593
+ 'contract_termination',
594
+ ])
595
+ .optional(),
596
+ charge_once: zod_1.z.boolean().default(true).optional(),
597
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
598
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
599
+ });
458
600
  const EditUpdateSubscriptionQuoteQuoteEventBasedAddonsSchema = zod_1.z.object({
459
601
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
460
602
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -500,8 +642,18 @@ const EditUpdateSubscriptionQuoteQuoteBodySchema = zod_1.z.looseObject({
500
642
  shipping_address: EditUpdateSubscriptionQuoteQuoteShippingAddressSchema.optional(),
501
643
  customer: EditUpdateSubscriptionQuoteQuoteCustomerSchema.optional(),
502
644
  contract_term: EditUpdateSubscriptionQuoteQuoteContractTermSchema.optional(),
503
- addons: EditUpdateSubscriptionQuoteQuoteAddonsSchema.optional(),
504
- event_based_addons: EditUpdateSubscriptionQuoteQuoteEventBasedAddonsSchema.optional(),
645
+ addons: zod_1.z
646
+ .union([
647
+ zod_1.z.array(EditUpdateSubscriptionQuoteQuoteAddonsItemSchema.optional()),
648
+ EditUpdateSubscriptionQuoteQuoteAddonsSchema,
649
+ ])
650
+ .optional(),
651
+ event_based_addons: zod_1.z
652
+ .union([
653
+ zod_1.z.array(EditUpdateSubscriptionQuoteQuoteEventBasedAddonsItemSchema.optional()),
654
+ EditUpdateSubscriptionQuoteQuoteEventBasedAddonsSchema,
655
+ ])
656
+ .optional(),
505
657
  });
506
658
  exports.EditUpdateSubscriptionQuoteQuoteBodySchema = EditUpdateSubscriptionQuoteQuoteBodySchema;
507
659
  //Quote.createForOnetimeCharges
@@ -523,6 +675,14 @@ const CreateForOnetimeChargesQuoteShippingAddressSchema = zod_1.z.object({
523
675
  .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
524
676
  .optional(),
525
677
  });
678
+ const CreateForOnetimeChargesQuoteAddonsItemSchema = zod_1.z.object({
679
+ id: zod_1.z.string().max(100).optional(),
680
+ quantity: zod_1.z.number().int().min(1).optional(),
681
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
682
+ unit_price: zod_1.z.number().int().min(0).optional(),
683
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
684
+ service_period: zod_1.z.number().int().optional(),
685
+ });
526
686
  const CreateForOnetimeChargesQuoteAddonsSchema = zod_1.z.object({
527
687
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
528
688
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -531,6 +691,17 @@ const CreateForOnetimeChargesQuoteAddonsSchema = zod_1.z.object({
531
691
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
532
692
  service_period: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
533
693
  });
694
+ const CreateForOnetimeChargesQuoteChargesItemSchema = zod_1.z.object({
695
+ amount: zod_1.z.number().int().min(1).optional(),
696
+ amount_in_decimal: zod_1.z.string().max(39).optional(),
697
+ description: zod_1.z.string().max(250).optional(),
698
+ avalara_sale_type: zod_1.z
699
+ .enum(['wholesale', 'retail', 'consumed', 'vendor_use'])
700
+ .optional(),
701
+ avalara_transaction_type: zod_1.z.number().int().optional(),
702
+ avalara_service_type: zod_1.z.number().int().optional(),
703
+ service_period: zod_1.z.number().int().optional(),
704
+ });
534
705
  const CreateForOnetimeChargesQuoteChargesSchema = zod_1.z.object({
535
706
  amount: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
536
707
  amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
@@ -542,6 +713,11 @@ const CreateForOnetimeChargesQuoteChargesSchema = zod_1.z.object({
542
713
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
543
714
  service_period: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
544
715
  });
716
+ const CreateForOnetimeChargesQuoteTaxProvidersFieldsItemSchema = zod_1.z.object({
717
+ provider_name: zod_1.z.string().max(50).optional(),
718
+ field_id: zod_1.z.string().max(50).optional(),
719
+ field_value: zod_1.z.string().max(50).optional(),
720
+ });
545
721
  const CreateForOnetimeChargesQuoteTaxProvidersFieldsSchema = zod_1.z.object({
546
722
  provider_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
547
723
  field_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
@@ -557,9 +733,24 @@ const CreateForOnetimeChargesQuoteBodySchema = zod_1.z.looseObject({
557
733
  coupon: zod_1.z.string().max(100).optional(),
558
734
  coupon_ids: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
559
735
  shipping_address: CreateForOnetimeChargesQuoteShippingAddressSchema.optional(),
560
- addons: CreateForOnetimeChargesQuoteAddonsSchema.optional(),
561
- charges: CreateForOnetimeChargesQuoteChargesSchema.optional(),
562
- tax_providers_fields: CreateForOnetimeChargesQuoteTaxProvidersFieldsSchema.optional(),
736
+ addons: zod_1.z
737
+ .union([
738
+ zod_1.z.array(CreateForOnetimeChargesQuoteAddonsItemSchema.optional()),
739
+ CreateForOnetimeChargesQuoteAddonsSchema,
740
+ ])
741
+ .optional(),
742
+ charges: zod_1.z
743
+ .union([
744
+ zod_1.z.array(CreateForOnetimeChargesQuoteChargesItemSchema.optional()),
745
+ CreateForOnetimeChargesQuoteChargesSchema,
746
+ ])
747
+ .optional(),
748
+ tax_providers_fields: zod_1.z
749
+ .union([
750
+ zod_1.z.array(CreateForOnetimeChargesQuoteTaxProvidersFieldsItemSchema.optional()),
751
+ CreateForOnetimeChargesQuoteTaxProvidersFieldsSchema,
752
+ ])
753
+ .optional(),
563
754
  });
564
755
  exports.CreateForOnetimeChargesQuoteBodySchema = CreateForOnetimeChargesQuoteBodySchema;
565
756
  //Quote.editOneTimeQuote
@@ -581,6 +772,14 @@ const EditOneTimeQuoteQuoteShippingAddressSchema = zod_1.z.object({
581
772
  .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
582
773
  .optional(),
583
774
  });
775
+ const EditOneTimeQuoteQuoteAddonsItemSchema = zod_1.z.object({
776
+ id: zod_1.z.string().max(100).optional(),
777
+ quantity: zod_1.z.number().int().min(1).optional(),
778
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
779
+ unit_price: zod_1.z.number().int().min(0).optional(),
780
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
781
+ service_period: zod_1.z.number().int().optional(),
782
+ });
584
783
  const EditOneTimeQuoteQuoteAddonsSchema = zod_1.z.object({
585
784
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
586
785
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -589,6 +788,17 @@ const EditOneTimeQuoteQuoteAddonsSchema = zod_1.z.object({
589
788
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
590
789
  service_period: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
591
790
  });
791
+ const EditOneTimeQuoteQuoteChargesItemSchema = zod_1.z.object({
792
+ amount: zod_1.z.number().int().min(1).optional(),
793
+ amount_in_decimal: zod_1.z.string().max(39).optional(),
794
+ description: zod_1.z.string().max(250).optional(),
795
+ avalara_sale_type: zod_1.z
796
+ .enum(['wholesale', 'retail', 'consumed', 'vendor_use'])
797
+ .optional(),
798
+ avalara_transaction_type: zod_1.z.number().int().optional(),
799
+ avalara_service_type: zod_1.z.number().int().optional(),
800
+ service_period: zod_1.z.number().int().optional(),
801
+ });
592
802
  const EditOneTimeQuoteQuoteChargesSchema = zod_1.z.object({
593
803
  amount: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
594
804
  amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
@@ -600,6 +810,11 @@ const EditOneTimeQuoteQuoteChargesSchema = zod_1.z.object({
600
810
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
601
811
  service_period: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
602
812
  });
813
+ const EditOneTimeQuoteQuoteTaxProvidersFieldsItemSchema = zod_1.z.object({
814
+ provider_name: zod_1.z.string().max(50).optional(),
815
+ field_id: zod_1.z.string().max(50).optional(),
816
+ field_value: zod_1.z.string().max(50).optional(),
817
+ });
603
818
  const EditOneTimeQuoteQuoteTaxProvidersFieldsSchema = zod_1.z.object({
604
819
  provider_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
605
820
  field_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
@@ -613,9 +828,24 @@ const EditOneTimeQuoteQuoteBodySchema = zod_1.z.looseObject({
613
828
  coupon: zod_1.z.string().max(100).optional(),
614
829
  coupon_ids: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
615
830
  shipping_address: EditOneTimeQuoteQuoteShippingAddressSchema.optional(),
616
- addons: EditOneTimeQuoteQuoteAddonsSchema.optional(),
617
- charges: EditOneTimeQuoteQuoteChargesSchema.optional(),
618
- tax_providers_fields: EditOneTimeQuoteQuoteTaxProvidersFieldsSchema.optional(),
831
+ addons: zod_1.z
832
+ .union([
833
+ zod_1.z.array(EditOneTimeQuoteQuoteAddonsItemSchema.optional()),
834
+ EditOneTimeQuoteQuoteAddonsSchema,
835
+ ])
836
+ .optional(),
837
+ charges: zod_1.z
838
+ .union([
839
+ zod_1.z.array(EditOneTimeQuoteQuoteChargesItemSchema.optional()),
840
+ EditOneTimeQuoteQuoteChargesSchema,
841
+ ])
842
+ .optional(),
843
+ tax_providers_fields: zod_1.z
844
+ .union([
845
+ zod_1.z.array(EditOneTimeQuoteQuoteTaxProvidersFieldsItemSchema.optional()),
846
+ EditOneTimeQuoteQuoteTaxProvidersFieldsSchema,
847
+ ])
848
+ .optional(),
619
849
  });
620
850
  exports.EditOneTimeQuoteQuoteBodySchema = EditOneTimeQuoteQuoteBodySchema;
621
851
  //Quote.createSubItemsForCustomerQuote
@@ -691,6 +921,32 @@ const CreateSubItemsForCustomerQuoteQuoteBillingAddressSchema = zod_1.z.object({
691
921
  .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
692
922
  .optional(),
693
923
  });
924
+ const CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsItemSchema = zod_1.z.object({
925
+ item_price_id: zod_1.z.string().max(100),
926
+ quantity: zod_1.z.number().int().min(1).optional(),
927
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
928
+ unit_price: zod_1.z.number().int().min(0).optional(),
929
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
930
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
931
+ trial_end: zod_1.z.number().int().optional(),
932
+ service_period_days: zod_1.z.number().int().min(1).max(4000).optional(),
933
+ charge_on_event: zod_1.z
934
+ .enum([
935
+ 'subscription_creation',
936
+ 'subscription_trial_start',
937
+ 'plan_activation',
938
+ 'subscription_activation',
939
+ 'contract_termination',
940
+ ])
941
+ .optional(),
942
+ charge_once: zod_1.z.boolean().optional(),
943
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
944
+ charge_on_option: zod_1.z.enum(['immediately', 'on_event']).optional(),
945
+ start_date: zod_1.z.number().int().optional(),
946
+ end_date: zod_1.z.number().int().optional(),
947
+ description: zod_1.z.string().max(2000).optional(),
948
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
949
+ });
694
950
  const CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema = zod_1.z.object({
695
951
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()),
696
952
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -700,7 +956,7 @@ const CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema = zod_1.z.objec
700
956
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
701
957
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
702
958
  service_period_days: zod_1.z
703
- .array(zod_1.z.number().int().min(1).max(730).optional())
959
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
704
960
  .optional(),
705
961
  charge_on_event: zod_1.z
706
962
  .array(zod_1.z
@@ -723,6 +979,19 @@ const CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema = zod_1.z.objec
723
979
  description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
724
980
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
725
981
  });
982
+ const CreateSubItemsForCustomerQuoteQuoteDiscountsItemSchema = zod_1.z.object({
983
+ apply_on: zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional(),
984
+ duration_type: zod_1.z.enum(['one_time', 'forever', 'limited_period']),
985
+ percentage: zod_1.z.number().min(0.01).max(100).optional(),
986
+ amount: zod_1.z.number().int().min(0).optional(),
987
+ period: zod_1.z.number().int().min(1).optional(),
988
+ period_unit: zod_1.z.enum(['day', 'week', 'month', 'year']).optional(),
989
+ included_in_mrr: zod_1.z.boolean().optional(),
990
+ item_price_id: zod_1.z.string().max(100).optional(),
991
+ quantity: zod_1.z.number().int().min(1).optional(),
992
+ start_date: zod_1.z.number().int().optional(),
993
+ end_date: zod_1.z.number().int().optional(),
994
+ });
726
995
  const CreateSubItemsForCustomerQuoteQuoteDiscountsSchema = zod_1.z.object({
727
996
  apply_on: zod_1.z
728
997
  .array(zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional())
@@ -740,6 +1009,18 @@ const CreateSubItemsForCustomerQuoteQuoteDiscountsSchema = zod_1.z.object({
740
1009
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
741
1010
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
742
1011
  });
1012
+ const CreateSubItemsForCustomerQuoteQuoteItemTiersItemSchema = zod_1.z.object({
1013
+ item_price_id: zod_1.z.string().max(100).optional(),
1014
+ starting_unit: zod_1.z.number().int().min(1).optional(),
1015
+ ending_unit: zod_1.z.number().int().optional(),
1016
+ price: zod_1.z.number().int().min(0).optional(),
1017
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
1018
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
1019
+ price_in_decimal: zod_1.z.string().max(39).optional(),
1020
+ pricing_type: zod_1.z.enum(['per_unit', 'flat_fee', 'package']).optional(),
1021
+ package_size: zod_1.z.number().int().min(1).optional(),
1022
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1023
+ });
743
1024
  const CreateSubItemsForCustomerQuoteQuoteItemTiersSchema = zod_1.z.object({
744
1025
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
745
1026
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -754,11 +1035,27 @@ const CreateSubItemsForCustomerQuoteQuoteItemTiersSchema = zod_1.z.object({
754
1035
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
755
1036
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
756
1037
  });
1038
+ const CreateSubItemsForCustomerQuoteQuoteCouponsItemSchema = zod_1.z.object({
1039
+ id: zod_1.z.string().max(100).optional(),
1040
+ start_date: zod_1.z.number().int().optional(),
1041
+ end_date: zod_1.z.number().int().optional(),
1042
+ });
757
1043
  const CreateSubItemsForCustomerQuoteQuoteCouponsSchema = zod_1.z.object({
758
1044
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
759
1045
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
760
1046
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
761
1047
  });
1048
+ const CreateSubItemsForCustomerQuoteQuoteEntitlementOverridesItemSchema = zod_1.z.object({
1049
+ feature_id: zod_1.z.string().max(50).optional(),
1050
+ entity_id: zod_1.z.string().max(100).optional(),
1051
+ entity_type: zod_1.z
1052
+ .enum(['plan_price', 'addon_price', 'charge_price', 'charge'])
1053
+ .optional(),
1054
+ value: zod_1.z.string().max(50).optional(),
1055
+ is_enabled: zod_1.z.boolean().optional(),
1056
+ start_date: zod_1.z.number().int().optional(),
1057
+ end_date: zod_1.z.number().int().optional(),
1058
+ });
762
1059
  const CreateSubItemsForCustomerQuoteQuoteEntitlementOverridesSchema = zod_1.z.object({
763
1060
  feature_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
764
1061
  entity_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -787,11 +1084,36 @@ const CreateSubItemsForCustomerQuoteQuoteBodySchema = zod_1.z.looseObject({
787
1084
  shipping_address: CreateSubItemsForCustomerQuoteQuoteShippingAddressSchema.optional(),
788
1085
  contract_term: CreateSubItemsForCustomerQuoteQuoteContractTermSchema.optional(),
789
1086
  billing_address: CreateSubItemsForCustomerQuoteQuoteBillingAddressSchema.optional(),
790
- subscription_items: CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema.optional(),
791
- discounts: CreateSubItemsForCustomerQuoteQuoteDiscountsSchema.optional(),
792
- item_tiers: CreateSubItemsForCustomerQuoteQuoteItemTiersSchema.optional(),
793
- coupons: CreateSubItemsForCustomerQuoteQuoteCouponsSchema.optional(),
794
- entitlement_overrides: CreateSubItemsForCustomerQuoteQuoteEntitlementOverridesSchema.optional(),
1087
+ subscription_items: zod_1.z
1088
+ .union([
1089
+ zod_1.z.array(CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsItemSchema.optional()),
1090
+ CreateSubItemsForCustomerQuoteQuoteSubscriptionItemsSchema,
1091
+ ])
1092
+ .optional(),
1093
+ discounts: zod_1.z
1094
+ .union([
1095
+ zod_1.z.array(CreateSubItemsForCustomerQuoteQuoteDiscountsItemSchema.optional()),
1096
+ CreateSubItemsForCustomerQuoteQuoteDiscountsSchema,
1097
+ ])
1098
+ .optional(),
1099
+ item_tiers: zod_1.z
1100
+ .union([
1101
+ zod_1.z.array(CreateSubItemsForCustomerQuoteQuoteItemTiersItemSchema.optional()),
1102
+ CreateSubItemsForCustomerQuoteQuoteItemTiersSchema,
1103
+ ])
1104
+ .optional(),
1105
+ coupons: zod_1.z
1106
+ .union([
1107
+ zod_1.z.array(CreateSubItemsForCustomerQuoteQuoteCouponsItemSchema.optional()),
1108
+ CreateSubItemsForCustomerQuoteQuoteCouponsSchema,
1109
+ ])
1110
+ .optional(),
1111
+ entitlement_overrides: zod_1.z
1112
+ .union([
1113
+ zod_1.z.array(CreateSubItemsForCustomerQuoteQuoteEntitlementOverridesItemSchema.optional()),
1114
+ CreateSubItemsForCustomerQuoteQuoteEntitlementOverridesSchema,
1115
+ ])
1116
+ .optional(),
795
1117
  });
796
1118
  exports.CreateSubItemsForCustomerQuoteQuoteBodySchema = CreateSubItemsForCustomerQuoteQuoteBodySchema;
797
1119
  //Quote.editCreateSubCustomerQuoteForItems
@@ -867,6 +1189,32 @@ const EditCreateSubCustomerQuoteForItemsQuoteBillingAddressSchema = zod_1.z.obje
867
1189
  .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
868
1190
  .optional(),
869
1191
  });
1192
+ const EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsItemSchema = zod_1.z.object({
1193
+ item_price_id: zod_1.z.string().max(100),
1194
+ quantity: zod_1.z.number().int().min(1).optional(),
1195
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
1196
+ unit_price: zod_1.z.number().int().min(0).optional(),
1197
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
1198
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
1199
+ trial_end: zod_1.z.number().int().optional(),
1200
+ service_period_days: zod_1.z.number().int().min(1).max(4000).optional(),
1201
+ charge_on_event: zod_1.z
1202
+ .enum([
1203
+ 'subscription_creation',
1204
+ 'subscription_trial_start',
1205
+ 'plan_activation',
1206
+ 'subscription_activation',
1207
+ 'contract_termination',
1208
+ ])
1209
+ .optional(),
1210
+ charge_once: zod_1.z.boolean().optional(),
1211
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1212
+ charge_on_option: zod_1.z.enum(['immediately', 'on_event']).optional(),
1213
+ start_date: zod_1.z.number().int().optional(),
1214
+ end_date: zod_1.z.number().int().optional(),
1215
+ description: zod_1.z.string().max(2000).optional(),
1216
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1217
+ });
870
1218
  const EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.object({
871
1219
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()),
872
1220
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -876,7 +1224,7 @@ const EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.o
876
1224
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
877
1225
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
878
1226
  service_period_days: zod_1.z
879
- .array(zod_1.z.number().int().min(1).max(730).optional())
1227
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
880
1228
  .optional(),
881
1229
  charge_on_event: zod_1.z
882
1230
  .array(zod_1.z
@@ -901,6 +1249,19 @@ const EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.o
901
1249
  description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
902
1250
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
903
1251
  });
1252
+ const EditCreateSubCustomerQuoteForItemsQuoteDiscountsItemSchema = zod_1.z.object({
1253
+ apply_on: zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional(),
1254
+ duration_type: zod_1.z.enum(['one_time', 'forever', 'limited_period']),
1255
+ percentage: zod_1.z.number().min(0.01).max(100).optional(),
1256
+ amount: zod_1.z.number().int().min(0).optional(),
1257
+ period: zod_1.z.number().int().min(1).optional(),
1258
+ period_unit: zod_1.z.enum(['day', 'week', 'month', 'year']).optional(),
1259
+ included_in_mrr: zod_1.z.boolean().optional(),
1260
+ item_price_id: zod_1.z.string().max(100).optional(),
1261
+ quantity: zod_1.z.number().int().min(1).optional(),
1262
+ start_date: zod_1.z.number().int().optional(),
1263
+ end_date: zod_1.z.number().int().optional(),
1264
+ });
904
1265
  const EditCreateSubCustomerQuoteForItemsQuoteDiscountsSchema = zod_1.z.object({
905
1266
  apply_on: zod_1.z
906
1267
  .array(zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional())
@@ -918,6 +1279,18 @@ const EditCreateSubCustomerQuoteForItemsQuoteDiscountsSchema = zod_1.z.object({
918
1279
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
919
1280
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
920
1281
  });
1282
+ const EditCreateSubCustomerQuoteForItemsQuoteItemTiersItemSchema = zod_1.z.object({
1283
+ item_price_id: zod_1.z.string().max(100).optional(),
1284
+ starting_unit: zod_1.z.number().int().min(1).optional(),
1285
+ ending_unit: zod_1.z.number().int().optional(),
1286
+ price: zod_1.z.number().int().min(0).optional(),
1287
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
1288
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
1289
+ price_in_decimal: zod_1.z.string().max(39).optional(),
1290
+ pricing_type: zod_1.z.enum(['per_unit', 'flat_fee', 'package']).optional(),
1291
+ package_size: zod_1.z.number().int().min(1).optional(),
1292
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1293
+ });
921
1294
  const EditCreateSubCustomerQuoteForItemsQuoteItemTiersSchema = zod_1.z.object({
922
1295
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
923
1296
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -932,11 +1305,27 @@ const EditCreateSubCustomerQuoteForItemsQuoteItemTiersSchema = zod_1.z.object({
932
1305
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
933
1306
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
934
1307
  });
1308
+ const EditCreateSubCustomerQuoteForItemsQuoteCouponsItemSchema = zod_1.z.object({
1309
+ id: zod_1.z.string().max(100).optional(),
1310
+ start_date: zod_1.z.number().int().optional(),
1311
+ end_date: zod_1.z.number().int().optional(),
1312
+ });
935
1313
  const EditCreateSubCustomerQuoteForItemsQuoteCouponsSchema = zod_1.z.object({
936
1314
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
937
1315
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
938
1316
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
939
1317
  });
1318
+ const EditCreateSubCustomerQuoteForItemsQuoteEntitlementOverridesItemSchema = zod_1.z.object({
1319
+ feature_id: zod_1.z.string().max(50).optional(),
1320
+ entity_id: zod_1.z.string().max(100).optional(),
1321
+ entity_type: zod_1.z
1322
+ .enum(['plan_price', 'addon_price', 'charge_price', 'charge'])
1323
+ .optional(),
1324
+ value: zod_1.z.string().max(50).optional(),
1325
+ is_enabled: zod_1.z.boolean().optional(),
1326
+ start_date: zod_1.z.number().int().optional(),
1327
+ end_date: zod_1.z.number().int().optional(),
1328
+ });
940
1329
  const EditCreateSubCustomerQuoteForItemsQuoteEntitlementOverridesSchema = zod_1.z.object({
941
1330
  feature_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
942
1331
  entity_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -964,11 +1353,36 @@ const EditCreateSubCustomerQuoteForItemsQuoteBodySchema = zod_1.z.looseObject({
964
1353
  shipping_address: EditCreateSubCustomerQuoteForItemsQuoteShippingAddressSchema.optional(),
965
1354
  contract_term: EditCreateSubCustomerQuoteForItemsQuoteContractTermSchema.optional(),
966
1355
  billing_address: EditCreateSubCustomerQuoteForItemsQuoteBillingAddressSchema.optional(),
967
- subscription_items: EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema.optional(),
968
- discounts: EditCreateSubCustomerQuoteForItemsQuoteDiscountsSchema.optional(),
969
- item_tiers: EditCreateSubCustomerQuoteForItemsQuoteItemTiersSchema.optional(),
970
- coupons: EditCreateSubCustomerQuoteForItemsQuoteCouponsSchema.optional(),
971
- entitlement_overrides: EditCreateSubCustomerQuoteForItemsQuoteEntitlementOverridesSchema.optional(),
1356
+ subscription_items: zod_1.z
1357
+ .union([
1358
+ zod_1.z.array(EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsItemSchema.optional()),
1359
+ EditCreateSubCustomerQuoteForItemsQuoteSubscriptionItemsSchema,
1360
+ ])
1361
+ .optional(),
1362
+ discounts: zod_1.z
1363
+ .union([
1364
+ zod_1.z.array(EditCreateSubCustomerQuoteForItemsQuoteDiscountsItemSchema.optional()),
1365
+ EditCreateSubCustomerQuoteForItemsQuoteDiscountsSchema,
1366
+ ])
1367
+ .optional(),
1368
+ item_tiers: zod_1.z
1369
+ .union([
1370
+ zod_1.z.array(EditCreateSubCustomerQuoteForItemsQuoteItemTiersItemSchema.optional()),
1371
+ EditCreateSubCustomerQuoteForItemsQuoteItemTiersSchema,
1372
+ ])
1373
+ .optional(),
1374
+ coupons: zod_1.z
1375
+ .union([
1376
+ zod_1.z.array(EditCreateSubCustomerQuoteForItemsQuoteCouponsItemSchema.optional()),
1377
+ EditCreateSubCustomerQuoteForItemsQuoteCouponsSchema,
1378
+ ])
1379
+ .optional(),
1380
+ entitlement_overrides: zod_1.z
1381
+ .union([
1382
+ zod_1.z.array(EditCreateSubCustomerQuoteForItemsQuoteEntitlementOverridesItemSchema.optional()),
1383
+ EditCreateSubCustomerQuoteForItemsQuoteEntitlementOverridesSchema,
1384
+ ])
1385
+ .optional(),
972
1386
  });
973
1387
  exports.EditCreateSubCustomerQuoteForItemsQuoteBodySchema = EditCreateSubCustomerQuoteForItemsQuoteBodySchema;
974
1388
  //Quote.updateSubscriptionQuoteForItems
@@ -1050,6 +1464,32 @@ const UpdateSubscriptionQuoteForItemsQuoteContractTermSchema = zod_1.z.object({
1050
1464
  .optional(),
1051
1465
  cancellation_cutoff_period: zod_1.z.number().int().optional(),
1052
1466
  });
1467
+ const UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsItemSchema = zod_1.z.object({
1468
+ item_price_id: zod_1.z.string().max(100),
1469
+ quantity: zod_1.z.number().int().min(1).optional(),
1470
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
1471
+ unit_price: zod_1.z.number().int().min(0).optional(),
1472
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
1473
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
1474
+ trial_end: zod_1.z.number().int().optional(),
1475
+ service_period_days: zod_1.z.number().int().min(1).max(4000).optional(),
1476
+ charge_on_event: zod_1.z
1477
+ .enum([
1478
+ 'subscription_creation',
1479
+ 'subscription_trial_start',
1480
+ 'plan_activation',
1481
+ 'subscription_activation',
1482
+ 'contract_termination',
1483
+ ])
1484
+ .optional(),
1485
+ charge_once: zod_1.z.boolean().optional(),
1486
+ charge_on_option: zod_1.z.enum(['immediately', 'on_event']).optional(),
1487
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1488
+ start_date: zod_1.z.number().int().optional(),
1489
+ end_date: zod_1.z.number().int().optional(),
1490
+ description: zod_1.z.string().max(2000).optional(),
1491
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1492
+ });
1053
1493
  const UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.object({
1054
1494
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()),
1055
1495
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1059,7 +1499,7 @@ const UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.obje
1059
1499
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1060
1500
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1061
1501
  service_period_days: zod_1.z
1062
- .array(zod_1.z.number().int().min(1).max(730).optional())
1502
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
1063
1503
  .optional(),
1064
1504
  charge_on_event: zod_1.z
1065
1505
  .array(zod_1.z
@@ -1082,6 +1522,21 @@ const UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.obje
1082
1522
  description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
1083
1523
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
1084
1524
  });
1525
+ const UpdateSubscriptionQuoteForItemsQuoteDiscountsItemSchema = zod_1.z.object({
1526
+ apply_on: zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional(),
1527
+ duration_type: zod_1.z.enum(['one_time', 'forever', 'limited_period']),
1528
+ percentage: zod_1.z.number().min(0.01).max(100).optional(),
1529
+ amount: zod_1.z.number().int().min(0).optional(),
1530
+ period: zod_1.z.number().int().min(1).optional(),
1531
+ period_unit: zod_1.z.enum(['day', 'week', 'month', 'year']).optional(),
1532
+ included_in_mrr: zod_1.z.boolean().optional(),
1533
+ item_price_id: zod_1.z.string().max(100).optional(),
1534
+ quantity: zod_1.z.number().int().min(1).optional(),
1535
+ operation_type: zod_1.z.enum(['add', 'remove']),
1536
+ id: zod_1.z.string().max(50).optional(),
1537
+ start_date: zod_1.z.number().int().optional(),
1538
+ end_date: zod_1.z.number().int().optional(),
1539
+ });
1085
1540
  const UpdateSubscriptionQuoteForItemsQuoteDiscountsSchema = zod_1.z.object({
1086
1541
  apply_on: zod_1.z
1087
1542
  .array(zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional())
@@ -1101,6 +1556,18 @@ const UpdateSubscriptionQuoteForItemsQuoteDiscountsSchema = zod_1.z.object({
1101
1556
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1102
1557
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1103
1558
  });
1559
+ const UpdateSubscriptionQuoteForItemsQuoteItemTiersItemSchema = zod_1.z.object({
1560
+ item_price_id: zod_1.z.string().max(100).optional(),
1561
+ starting_unit: zod_1.z.number().int().min(1).optional(),
1562
+ ending_unit: zod_1.z.number().int().optional(),
1563
+ price: zod_1.z.number().int().min(0).optional(),
1564
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
1565
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
1566
+ price_in_decimal: zod_1.z.string().max(39).optional(),
1567
+ pricing_type: zod_1.z.enum(['per_unit', 'flat_fee', 'package']).optional(),
1568
+ package_size: zod_1.z.number().int().min(1).optional(),
1569
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1570
+ });
1104
1571
  const UpdateSubscriptionQuoteForItemsQuoteItemTiersSchema = zod_1.z.object({
1105
1572
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1106
1573
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1115,11 +1582,27 @@ const UpdateSubscriptionQuoteForItemsQuoteItemTiersSchema = zod_1.z.object({
1115
1582
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
1116
1583
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
1117
1584
  });
1585
+ const UpdateSubscriptionQuoteForItemsQuoteCouponsItemSchema = zod_1.z.object({
1586
+ id: zod_1.z.string().max(100).optional(),
1587
+ start_date: zod_1.z.number().int().optional(),
1588
+ end_date: zod_1.z.number().int().optional(),
1589
+ });
1118
1590
  const UpdateSubscriptionQuoteForItemsQuoteCouponsSchema = zod_1.z.object({
1119
1591
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1120
1592
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1121
1593
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1122
1594
  });
1595
+ const UpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesItemSchema = zod_1.z.object({
1596
+ feature_id: zod_1.z.string().max(50).optional(),
1597
+ entity_id: zod_1.z.string().max(100).optional(),
1598
+ entity_type: zod_1.z
1599
+ .enum(['plan_price', 'addon_price', 'charge_price', 'charge'])
1600
+ .optional(),
1601
+ value: zod_1.z.string().max(50).optional(),
1602
+ is_enabled: zod_1.z.boolean().optional(),
1603
+ start_date: zod_1.z.number().int().optional(),
1604
+ end_date: zod_1.z.number().int().optional(),
1605
+ });
1123
1606
  const UpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesSchema = zod_1.z.object({
1124
1607
  feature_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
1125
1608
  entity_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -1155,11 +1638,36 @@ const UpdateSubscriptionQuoteForItemsQuoteBodySchema = zod_1.z.looseObject({
1155
1638
  shipping_address: UpdateSubscriptionQuoteForItemsQuoteShippingAddressSchema.optional(),
1156
1639
  customer: UpdateSubscriptionQuoteForItemsQuoteCustomerSchema.optional(),
1157
1640
  contract_term: UpdateSubscriptionQuoteForItemsQuoteContractTermSchema.optional(),
1158
- subscription_items: UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema.optional(),
1159
- discounts: UpdateSubscriptionQuoteForItemsQuoteDiscountsSchema.optional(),
1160
- item_tiers: UpdateSubscriptionQuoteForItemsQuoteItemTiersSchema.optional(),
1161
- coupons: UpdateSubscriptionQuoteForItemsQuoteCouponsSchema.optional(),
1162
- entitlement_overrides: UpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesSchema.optional(),
1641
+ subscription_items: zod_1.z
1642
+ .union([
1643
+ zod_1.z.array(UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsItemSchema.optional()),
1644
+ UpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema,
1645
+ ])
1646
+ .optional(),
1647
+ discounts: zod_1.z
1648
+ .union([
1649
+ zod_1.z.array(UpdateSubscriptionQuoteForItemsQuoteDiscountsItemSchema.optional()),
1650
+ UpdateSubscriptionQuoteForItemsQuoteDiscountsSchema,
1651
+ ])
1652
+ .optional(),
1653
+ item_tiers: zod_1.z
1654
+ .union([
1655
+ zod_1.z.array(UpdateSubscriptionQuoteForItemsQuoteItemTiersItemSchema.optional()),
1656
+ UpdateSubscriptionQuoteForItemsQuoteItemTiersSchema,
1657
+ ])
1658
+ .optional(),
1659
+ coupons: zod_1.z
1660
+ .union([
1661
+ zod_1.z.array(UpdateSubscriptionQuoteForItemsQuoteCouponsItemSchema.optional()),
1662
+ UpdateSubscriptionQuoteForItemsQuoteCouponsSchema,
1663
+ ])
1664
+ .optional(),
1665
+ entitlement_overrides: zod_1.z
1666
+ .union([
1667
+ zod_1.z.array(UpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesItemSchema.optional()),
1668
+ UpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesSchema,
1669
+ ])
1670
+ .optional(),
1163
1671
  });
1164
1672
  exports.UpdateSubscriptionQuoteForItemsQuoteBodySchema = UpdateSubscriptionQuoteForItemsQuoteBodySchema;
1165
1673
  //Quote.editUpdateSubscriptionQuoteForItems
@@ -1240,6 +1748,32 @@ const EditUpdateSubscriptionQuoteForItemsQuoteContractTermSchema = zod_1.z.objec
1240
1748
  .optional(),
1241
1749
  cancellation_cutoff_period: zod_1.z.number().int().optional(),
1242
1750
  });
1751
+ const EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsItemSchema = zod_1.z.object({
1752
+ item_price_id: zod_1.z.string().max(100),
1753
+ quantity: zod_1.z.number().int().min(1).optional(),
1754
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
1755
+ unit_price: zod_1.z.number().int().min(0).optional(),
1756
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
1757
+ billing_cycles: zod_1.z.number().int().min(0).optional(),
1758
+ trial_end: zod_1.z.number().int().optional(),
1759
+ service_period_days: zod_1.z.number().int().min(1).max(4000).optional(),
1760
+ charge_on_event: zod_1.z
1761
+ .enum([
1762
+ 'subscription_creation',
1763
+ 'subscription_trial_start',
1764
+ 'plan_activation',
1765
+ 'subscription_activation',
1766
+ 'contract_termination',
1767
+ ])
1768
+ .optional(),
1769
+ charge_once: zod_1.z.boolean().optional(),
1770
+ charge_on_option: zod_1.z.enum(['immediately', 'on_event']).optional(),
1771
+ item_type: zod_1.z.enum(['plan', 'addon', 'charge']).optional(),
1772
+ start_date: zod_1.z.number().int().optional(),
1773
+ end_date: zod_1.z.number().int().optional(),
1774
+ description: zod_1.z.string().max(2000).optional(),
1775
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1776
+ });
1243
1777
  const EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.object({
1244
1778
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()),
1245
1779
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1249,7 +1783,7 @@ const EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.
1249
1783
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1250
1784
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1251
1785
  service_period_days: zod_1.z
1252
- .array(zod_1.z.number().int().min(1).max(730).optional())
1786
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
1253
1787
  .optional(),
1254
1788
  charge_on_event: zod_1.z
1255
1789
  .array(zod_1.z
@@ -1274,6 +1808,21 @@ const EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema = zod_1.z.
1274
1808
  description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
1275
1809
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
1276
1810
  });
1811
+ const EditUpdateSubscriptionQuoteForItemsQuoteDiscountsItemSchema = zod_1.z.object({
1812
+ apply_on: zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional(),
1813
+ duration_type: zod_1.z.enum(['one_time', 'forever', 'limited_period']),
1814
+ percentage: zod_1.z.number().min(0.01).max(100).optional(),
1815
+ amount: zod_1.z.number().int().min(0).optional(),
1816
+ period: zod_1.z.number().int().min(1).optional(),
1817
+ period_unit: zod_1.z.enum(['day', 'week', 'month', 'year']).optional(),
1818
+ included_in_mrr: zod_1.z.boolean().optional(),
1819
+ item_price_id: zod_1.z.string().max(100).optional(),
1820
+ quantity: zod_1.z.number().int().min(1).optional(),
1821
+ operation_type: zod_1.z.enum(['add', 'remove']),
1822
+ id: zod_1.z.string().max(50).optional(),
1823
+ start_date: zod_1.z.number().int().optional(),
1824
+ end_date: zod_1.z.number().int().optional(),
1825
+ });
1277
1826
  const EditUpdateSubscriptionQuoteForItemsQuoteDiscountsSchema = zod_1.z.object({
1278
1827
  apply_on: zod_1.z
1279
1828
  .array(zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional())
@@ -1293,6 +1842,18 @@ const EditUpdateSubscriptionQuoteForItemsQuoteDiscountsSchema = zod_1.z.object({
1293
1842
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1294
1843
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1295
1844
  });
1845
+ const EditUpdateSubscriptionQuoteForItemsQuoteItemTiersItemSchema = zod_1.z.object({
1846
+ item_price_id: zod_1.z.string().max(100).optional(),
1847
+ starting_unit: zod_1.z.number().int().min(1).optional(),
1848
+ ending_unit: zod_1.z.number().int().optional(),
1849
+ price: zod_1.z.number().int().min(0).optional(),
1850
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
1851
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
1852
+ price_in_decimal: zod_1.z.string().max(39).optional(),
1853
+ pricing_type: zod_1.z.enum(['per_unit', 'flat_fee', 'package']).optional(),
1854
+ package_size: zod_1.z.number().int().min(1).optional(),
1855
+ ramp_tier_id: zod_1.z.string().max(105).optional(),
1856
+ });
1296
1857
  const EditUpdateSubscriptionQuoteForItemsQuoteItemTiersSchema = zod_1.z.object({
1297
1858
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1298
1859
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1307,11 +1868,27 @@ const EditUpdateSubscriptionQuoteForItemsQuoteItemTiersSchema = zod_1.z.object({
1307
1868
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
1308
1869
  ramp_tier_id: zod_1.z.array(zod_1.z.string().max(105).optional()).optional(),
1309
1870
  });
1871
+ const EditUpdateSubscriptionQuoteForItemsQuoteCouponsItemSchema = zod_1.z.object({
1872
+ id: zod_1.z.string().max(100).optional(),
1873
+ start_date: zod_1.z.number().int().optional(),
1874
+ end_date: zod_1.z.number().int().optional(),
1875
+ });
1310
1876
  const EditUpdateSubscriptionQuoteForItemsQuoteCouponsSchema = zod_1.z.object({
1311
1877
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1312
1878
  start_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1313
1879
  end_date: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1314
1880
  });
1881
+ const EditUpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesItemSchema = zod_1.z.object({
1882
+ feature_id: zod_1.z.string().max(50).optional(),
1883
+ entity_id: zod_1.z.string().max(100).optional(),
1884
+ entity_type: zod_1.z
1885
+ .enum(['plan_price', 'addon_price', 'charge_price', 'charge'])
1886
+ .optional(),
1887
+ value: zod_1.z.string().max(50).optional(),
1888
+ is_enabled: zod_1.z.boolean().optional(),
1889
+ start_date: zod_1.z.number().int().optional(),
1890
+ end_date: zod_1.z.number().int().optional(),
1891
+ });
1315
1892
  const EditUpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesSchema = zod_1.z.object({
1316
1893
  feature_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
1317
1894
  entity_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -1346,11 +1923,36 @@ const EditUpdateSubscriptionQuoteForItemsQuoteBodySchema = zod_1.z.looseObject({
1346
1923
  shipping_address: EditUpdateSubscriptionQuoteForItemsQuoteShippingAddressSchema.optional(),
1347
1924
  customer: EditUpdateSubscriptionQuoteForItemsQuoteCustomerSchema.optional(),
1348
1925
  contract_term: EditUpdateSubscriptionQuoteForItemsQuoteContractTermSchema.optional(),
1349
- subscription_items: EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema.optional(),
1350
- discounts: EditUpdateSubscriptionQuoteForItemsQuoteDiscountsSchema.optional(),
1351
- item_tiers: EditUpdateSubscriptionQuoteForItemsQuoteItemTiersSchema.optional(),
1352
- coupons: EditUpdateSubscriptionQuoteForItemsQuoteCouponsSchema.optional(),
1353
- entitlement_overrides: EditUpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesSchema.optional(),
1926
+ subscription_items: zod_1.z
1927
+ .union([
1928
+ zod_1.z.array(EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsItemSchema.optional()),
1929
+ EditUpdateSubscriptionQuoteForItemsQuoteSubscriptionItemsSchema,
1930
+ ])
1931
+ .optional(),
1932
+ discounts: zod_1.z
1933
+ .union([
1934
+ zod_1.z.array(EditUpdateSubscriptionQuoteForItemsQuoteDiscountsItemSchema.optional()),
1935
+ EditUpdateSubscriptionQuoteForItemsQuoteDiscountsSchema,
1936
+ ])
1937
+ .optional(),
1938
+ item_tiers: zod_1.z
1939
+ .union([
1940
+ zod_1.z.array(EditUpdateSubscriptionQuoteForItemsQuoteItemTiersItemSchema.optional()),
1941
+ EditUpdateSubscriptionQuoteForItemsQuoteItemTiersSchema,
1942
+ ])
1943
+ .optional(),
1944
+ coupons: zod_1.z
1945
+ .union([
1946
+ zod_1.z.array(EditUpdateSubscriptionQuoteForItemsQuoteCouponsItemSchema.optional()),
1947
+ EditUpdateSubscriptionQuoteForItemsQuoteCouponsSchema,
1948
+ ])
1949
+ .optional(),
1950
+ entitlement_overrides: zod_1.z
1951
+ .union([
1952
+ zod_1.z.array(EditUpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesItemSchema.optional()),
1953
+ EditUpdateSubscriptionQuoteForItemsQuoteEntitlementOverridesSchema,
1954
+ ])
1955
+ .optional(),
1354
1956
  });
1355
1957
  exports.EditUpdateSubscriptionQuoteForItemsQuoteBodySchema = EditUpdateSubscriptionQuoteForItemsQuoteBodySchema;
1356
1958
  //Quote.createForChargeItemsAndCharges
@@ -1390,6 +1992,14 @@ const CreateForChargeItemsAndChargesQuoteShippingAddressSchema = zod_1.z.object(
1390
1992
  .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
1391
1993
  .optional(),
1392
1994
  });
1995
+ const CreateForChargeItemsAndChargesQuoteItemPricesItemSchema = zod_1.z.object({
1996
+ item_price_id: zod_1.z.string().max(100).optional(),
1997
+ quantity: zod_1.z.number().int().min(1).optional(),
1998
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
1999
+ unit_price: zod_1.z.number().int().min(0).optional(),
2000
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
2001
+ service_period_days: zod_1.z.number().int().min(1).max(4000).optional(),
2002
+ });
1393
2003
  const CreateForChargeItemsAndChargesQuoteItemPricesSchema = zod_1.z.object({
1394
2004
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1395
2005
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1397,9 +2007,20 @@ const CreateForChargeItemsAndChargesQuoteItemPricesSchema = zod_1.z.object({
1397
2007
  unit_price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1398
2008
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
1399
2009
  service_period_days: zod_1.z
1400
- .array(zod_1.z.number().int().min(1).max(730).optional())
2010
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
1401
2011
  .optional(),
1402
2012
  });
2013
+ const CreateForChargeItemsAndChargesQuoteItemTiersItemSchema = zod_1.z.object({
2014
+ item_price_id: zod_1.z.string().max(100).optional(),
2015
+ starting_unit: zod_1.z.number().int().min(1).optional(),
2016
+ ending_unit: zod_1.z.number().int().optional(),
2017
+ price: zod_1.z.number().int().min(0).optional(),
2018
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
2019
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
2020
+ price_in_decimal: zod_1.z.string().max(39).optional(),
2021
+ pricing_type: zod_1.z.enum(['per_unit', 'flat_fee', 'package']).optional(),
2022
+ package_size: zod_1.z.number().int().min(1).optional(),
2023
+ });
1403
2024
  const CreateForChargeItemsAndChargesQuoteItemTiersSchema = zod_1.z.object({
1404
2025
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1405
2026
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1413,6 +2034,17 @@ const CreateForChargeItemsAndChargesQuoteItemTiersSchema = zod_1.z.object({
1413
2034
  .optional(),
1414
2035
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
1415
2036
  });
2037
+ const CreateForChargeItemsAndChargesQuoteChargesItemSchema = zod_1.z.object({
2038
+ amount: zod_1.z.number().int().min(1).optional(),
2039
+ amount_in_decimal: zod_1.z.string().max(39).optional(),
2040
+ description: zod_1.z.string().max(250).optional(),
2041
+ avalara_sale_type: zod_1.z
2042
+ .enum(['wholesale', 'retail', 'consumed', 'vendor_use'])
2043
+ .optional(),
2044
+ avalara_transaction_type: zod_1.z.number().int().optional(),
2045
+ avalara_service_type: zod_1.z.number().int().optional(),
2046
+ service_period: zod_1.z.number().int().optional(),
2047
+ });
1416
2048
  const CreateForChargeItemsAndChargesQuoteChargesSchema = zod_1.z.object({
1417
2049
  amount: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
1418
2050
  amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
@@ -1424,6 +2056,13 @@ const CreateForChargeItemsAndChargesQuoteChargesSchema = zod_1.z.object({
1424
2056
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1425
2057
  service_period: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1426
2058
  });
2059
+ const CreateForChargeItemsAndChargesQuoteDiscountsItemSchema = zod_1.z.object({
2060
+ percentage: zod_1.z.number().min(0.01).max(100).optional(),
2061
+ quantity: zod_1.z.number().int().min(1).optional(),
2062
+ amount: zod_1.z.number().int().min(0).optional(),
2063
+ apply_on: zod_1.z.enum(['invoice_amount', 'specific_item_price']),
2064
+ item_price_id: zod_1.z.string().max(100).optional(),
2065
+ });
1427
2066
  const CreateForChargeItemsAndChargesQuoteDiscountsSchema = zod_1.z.object({
1428
2067
  percentage: zod_1.z.array(zod_1.z.number().min(0.01).max(100).optional()).optional(),
1429
2068
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1431,6 +2070,11 @@ const CreateForChargeItemsAndChargesQuoteDiscountsSchema = zod_1.z.object({
1431
2070
  apply_on: zod_1.z.array(zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional()),
1432
2071
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1433
2072
  });
2073
+ const CreateForChargeItemsAndChargesQuoteTaxProvidersFieldsItemSchema = zod_1.z.object({
2074
+ provider_name: zod_1.z.string().max(50).optional(),
2075
+ field_id: zod_1.z.string().max(50).optional(),
2076
+ field_value: zod_1.z.string().max(50).optional(),
2077
+ });
1434
2078
  const CreateForChargeItemsAndChargesQuoteTaxProvidersFieldsSchema = zod_1.z.object({
1435
2079
  provider_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
1436
2080
  field_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
@@ -1448,11 +2092,36 @@ const CreateForChargeItemsAndChargesQuoteBodySchema = zod_1.z.looseObject({
1448
2092
  net_term_days: zod_1.z.number().int().optional(),
1449
2093
  billing_address: CreateForChargeItemsAndChargesQuoteBillingAddressSchema.optional(),
1450
2094
  shipping_address: CreateForChargeItemsAndChargesQuoteShippingAddressSchema.optional(),
1451
- item_prices: CreateForChargeItemsAndChargesQuoteItemPricesSchema.optional(),
1452
- item_tiers: CreateForChargeItemsAndChargesQuoteItemTiersSchema.optional(),
1453
- charges: CreateForChargeItemsAndChargesQuoteChargesSchema.optional(),
1454
- discounts: CreateForChargeItemsAndChargesQuoteDiscountsSchema.optional(),
1455
- tax_providers_fields: CreateForChargeItemsAndChargesQuoteTaxProvidersFieldsSchema.optional(),
2095
+ item_prices: zod_1.z
2096
+ .union([
2097
+ zod_1.z.array(CreateForChargeItemsAndChargesQuoteItemPricesItemSchema.optional()),
2098
+ CreateForChargeItemsAndChargesQuoteItemPricesSchema,
2099
+ ])
2100
+ .optional(),
2101
+ item_tiers: zod_1.z
2102
+ .union([
2103
+ zod_1.z.array(CreateForChargeItemsAndChargesQuoteItemTiersItemSchema.optional()),
2104
+ CreateForChargeItemsAndChargesQuoteItemTiersSchema,
2105
+ ])
2106
+ .optional(),
2107
+ charges: zod_1.z
2108
+ .union([
2109
+ zod_1.z.array(CreateForChargeItemsAndChargesQuoteChargesItemSchema.optional()),
2110
+ CreateForChargeItemsAndChargesQuoteChargesSchema,
2111
+ ])
2112
+ .optional(),
2113
+ discounts: zod_1.z
2114
+ .union([
2115
+ zod_1.z.array(CreateForChargeItemsAndChargesQuoteDiscountsItemSchema.optional()),
2116
+ CreateForChargeItemsAndChargesQuoteDiscountsSchema,
2117
+ ])
2118
+ .optional(),
2119
+ tax_providers_fields: zod_1.z
2120
+ .union([
2121
+ zod_1.z.array(CreateForChargeItemsAndChargesQuoteTaxProvidersFieldsItemSchema.optional()),
2122
+ CreateForChargeItemsAndChargesQuoteTaxProvidersFieldsSchema,
2123
+ ])
2124
+ .optional(),
1456
2125
  });
1457
2126
  exports.CreateForChargeItemsAndChargesQuoteBodySchema = CreateForChargeItemsAndChargesQuoteBodySchema;
1458
2127
  //Quote.editForChargeItemsAndCharges
@@ -1492,6 +2161,14 @@ const EditForChargeItemsAndChargesQuoteShippingAddressSchema = zod_1.z.object({
1492
2161
  .enum(['not_validated', 'valid', 'partially_valid', 'invalid'])
1493
2162
  .optional(),
1494
2163
  });
2164
+ const EditForChargeItemsAndChargesQuoteItemPricesItemSchema = zod_1.z.object({
2165
+ item_price_id: zod_1.z.string().max(100).optional(),
2166
+ quantity: zod_1.z.number().int().min(1).optional(),
2167
+ quantity_in_decimal: zod_1.z.string().max(33).optional(),
2168
+ unit_price: zod_1.z.number().int().min(0).optional(),
2169
+ unit_price_in_decimal: zod_1.z.string().max(39).optional(),
2170
+ service_period_days: zod_1.z.number().int().min(1).max(4000).optional(),
2171
+ });
1495
2172
  const EditForChargeItemsAndChargesQuoteItemPricesSchema = zod_1.z.object({
1496
2173
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1497
2174
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1499,9 +2176,20 @@ const EditForChargeItemsAndChargesQuoteItemPricesSchema = zod_1.z.object({
1499
2176
  unit_price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1500
2177
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
1501
2178
  service_period_days: zod_1.z
1502
- .array(zod_1.z.number().int().min(1).max(730).optional())
2179
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
1503
2180
  .optional(),
1504
2181
  });
2182
+ const EditForChargeItemsAndChargesQuoteItemTiersItemSchema = zod_1.z.object({
2183
+ item_price_id: zod_1.z.string().max(100).optional(),
2184
+ starting_unit: zod_1.z.number().int().min(1).optional(),
2185
+ ending_unit: zod_1.z.number().int().optional(),
2186
+ price: zod_1.z.number().int().min(0).optional(),
2187
+ starting_unit_in_decimal: zod_1.z.string().max(33).optional(),
2188
+ ending_unit_in_decimal: zod_1.z.string().max(33).optional(),
2189
+ price_in_decimal: zod_1.z.string().max(39).optional(),
2190
+ pricing_type: zod_1.z.enum(['per_unit', 'flat_fee', 'package']).optional(),
2191
+ package_size: zod_1.z.number().int().min(1).optional(),
2192
+ });
1505
2193
  const EditForChargeItemsAndChargesQuoteItemTiersSchema = zod_1.z.object({
1506
2194
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1507
2195
  starting_unit: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1515,6 +2203,17 @@ const EditForChargeItemsAndChargesQuoteItemTiersSchema = zod_1.z.object({
1515
2203
  .optional(),
1516
2204
  package_size: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
1517
2205
  });
2206
+ const EditForChargeItemsAndChargesQuoteChargesItemSchema = zod_1.z.object({
2207
+ amount: zod_1.z.number().int().min(1).optional(),
2208
+ amount_in_decimal: zod_1.z.string().max(39).optional(),
2209
+ description: zod_1.z.string().max(250).optional(),
2210
+ avalara_sale_type: zod_1.z
2211
+ .enum(['wholesale', 'retail', 'consumed', 'vendor_use'])
2212
+ .optional(),
2213
+ avalara_transaction_type: zod_1.z.number().int().optional(),
2214
+ avalara_service_type: zod_1.z.number().int().optional(),
2215
+ service_period: zod_1.z.number().int().optional(),
2216
+ });
1518
2217
  const EditForChargeItemsAndChargesQuoteChargesSchema = zod_1.z.object({
1519
2218
  amount: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
1520
2219
  amount_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
@@ -1526,6 +2225,13 @@ const EditForChargeItemsAndChargesQuoteChargesSchema = zod_1.z.object({
1526
2225
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1527
2226
  service_period: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1528
2227
  });
2228
+ const EditForChargeItemsAndChargesQuoteDiscountsItemSchema = zod_1.z.object({
2229
+ percentage: zod_1.z.number().min(0.01).max(100).optional(),
2230
+ quantity: zod_1.z.number().int().min(1).optional(),
2231
+ amount: zod_1.z.number().int().min(0).optional(),
2232
+ apply_on: zod_1.z.enum(['invoice_amount', 'specific_item_price']),
2233
+ item_price_id: zod_1.z.string().max(100).optional(),
2234
+ });
1529
2235
  const EditForChargeItemsAndChargesQuoteDiscountsSchema = zod_1.z.object({
1530
2236
  percentage: zod_1.z.array(zod_1.z.number().min(0.01).max(100).optional()).optional(),
1531
2237
  quantity: zod_1.z.array(zod_1.z.number().int().min(1).optional()).optional(),
@@ -1533,6 +2239,11 @@ const EditForChargeItemsAndChargesQuoteDiscountsSchema = zod_1.z.object({
1533
2239
  apply_on: zod_1.z.array(zod_1.z.enum(['invoice_amount', 'specific_item_price']).optional()),
1534
2240
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
1535
2241
  });
2242
+ const EditForChargeItemsAndChargesQuoteTaxProvidersFieldsItemSchema = zod_1.z.object({
2243
+ provider_name: zod_1.z.string().max(50).optional(),
2244
+ field_id: zod_1.z.string().max(50).optional(),
2245
+ field_value: zod_1.z.string().max(50).optional(),
2246
+ });
1536
2247
  const EditForChargeItemsAndChargesQuoteTaxProvidersFieldsSchema = zod_1.z.object({
1537
2248
  provider_name: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
1538
2249
  field_id: zod_1.z.array(zod_1.z.string().max(50).optional()).optional(),
@@ -1548,11 +2259,36 @@ const EditForChargeItemsAndChargesQuoteBodySchema = zod_1.z.looseObject({
1548
2259
  net_term_days: zod_1.z.number().int().optional(),
1549
2260
  billing_address: EditForChargeItemsAndChargesQuoteBillingAddressSchema.optional(),
1550
2261
  shipping_address: EditForChargeItemsAndChargesQuoteShippingAddressSchema.optional(),
1551
- item_prices: EditForChargeItemsAndChargesQuoteItemPricesSchema.optional(),
1552
- item_tiers: EditForChargeItemsAndChargesQuoteItemTiersSchema.optional(),
1553
- charges: EditForChargeItemsAndChargesQuoteChargesSchema.optional(),
1554
- discounts: EditForChargeItemsAndChargesQuoteDiscountsSchema.optional(),
1555
- tax_providers_fields: EditForChargeItemsAndChargesQuoteTaxProvidersFieldsSchema.optional(),
2262
+ item_prices: zod_1.z
2263
+ .union([
2264
+ zod_1.z.array(EditForChargeItemsAndChargesQuoteItemPricesItemSchema.optional()),
2265
+ EditForChargeItemsAndChargesQuoteItemPricesSchema,
2266
+ ])
2267
+ .optional(),
2268
+ item_tiers: zod_1.z
2269
+ .union([
2270
+ zod_1.z.array(EditForChargeItemsAndChargesQuoteItemTiersItemSchema.optional()),
2271
+ EditForChargeItemsAndChargesQuoteItemTiersSchema,
2272
+ ])
2273
+ .optional(),
2274
+ charges: zod_1.z
2275
+ .union([
2276
+ zod_1.z.array(EditForChargeItemsAndChargesQuoteChargesItemSchema.optional()),
2277
+ EditForChargeItemsAndChargesQuoteChargesSchema,
2278
+ ])
2279
+ .optional(),
2280
+ discounts: zod_1.z
2281
+ .union([
2282
+ zod_1.z.array(EditForChargeItemsAndChargesQuoteDiscountsItemSchema.optional()),
2283
+ EditForChargeItemsAndChargesQuoteDiscountsSchema,
2284
+ ])
2285
+ .optional(),
2286
+ tax_providers_fields: zod_1.z
2287
+ .union([
2288
+ zod_1.z.array(EditForChargeItemsAndChargesQuoteTaxProvidersFieldsItemSchema.optional()),
2289
+ EditForChargeItemsAndChargesQuoteTaxProvidersFieldsSchema,
2290
+ ])
2291
+ .optional(),
1556
2292
  });
1557
2293
  exports.EditForChargeItemsAndChargesQuoteBodySchema = EditForChargeItemsAndChargesQuoteBodySchema;
1558
2294
  //Quote.list
@@ -1560,23 +2296,53 @@ const ListQuoteIdSchema = zod_1.z.object({
1560
2296
  is: zod_1.z.string().min(1).optional(),
1561
2297
  is_not: zod_1.z.string().min(1).optional(),
1562
2298
  starts_with: zod_1.z.string().min(1).optional(),
1563
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1564
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
2299
+ in: zod_1.z
2300
+ .union([
2301
+ zod_1.z.array(zod_1.z.string().optional()),
2302
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
2303
+ ])
2304
+ .optional(),
2305
+ not_in: zod_1.z
2306
+ .union([
2307
+ zod_1.z.array(zod_1.z.string().optional()),
2308
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
2309
+ ])
2310
+ .optional(),
1565
2311
  });
1566
2312
  const ListQuoteCustomerIdSchema = zod_1.z.object({
1567
2313
  is: zod_1.z.string().min(1).optional(),
1568
2314
  is_not: zod_1.z.string().min(1).optional(),
1569
2315
  starts_with: zod_1.z.string().min(1).optional(),
1570
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1571
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
2316
+ in: zod_1.z
2317
+ .union([
2318
+ zod_1.z.array(zod_1.z.string().optional()),
2319
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
2320
+ ])
2321
+ .optional(),
2322
+ not_in: zod_1.z
2323
+ .union([
2324
+ zod_1.z.array(zod_1.z.string().optional()),
2325
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
2326
+ ])
2327
+ .optional(),
1572
2328
  });
1573
2329
  const ListQuoteSubscriptionIdSchema = zod_1.z.object({
1574
2330
  is: zod_1.z.string().min(1).optional(),
1575
2331
  is_not: zod_1.z.string().min(1).optional(),
1576
2332
  starts_with: zod_1.z.string().min(1).optional(),
1577
- is_present: zod_1.z.enum(['true', 'false']).optional(),
1578
- in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
1579
- not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
2333
+ is_present: zod_1.z.union([zod_1.z.boolean(), zod_1.z.enum(['true', 'false'])]).optional(),
2334
+ in: zod_1.z
2335
+ .union([
2336
+ zod_1.z.array(zod_1.z.string().optional()),
2337
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
2338
+ ])
2339
+ .optional(),
2340
+ not_in: zod_1.z
2341
+ .union([
2342
+ zod_1.z.array(zod_1.z.string().optional()),
2343
+ zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')),
2344
+ ])
2345
+ .optional(),
1580
2346
  });
1581
2347
  const ListQuoteStatusSchema = zod_1.z.object({
1582
2348
  is: zod_1.z
@@ -1608,45 +2374,99 @@ const ListQuoteStatusSchema = zod_1.z.object({
1608
2374
  ])
1609
2375
  .optional(),
1610
2376
  in: zod_1.z
1611
- .enum([
1612
- 'open',
1613
- 'accepted',
1614
- 'declined',
1615
- 'invoiced',
1616
- 'closed',
1617
- 'pending_approval',
1618
- 'approval_rejected',
1619
- 'proposed',
1620
- 'voided',
1621
- 'expired',
2377
+ .union([
2378
+ zod_1.z.array(zod_1.z
2379
+ .enum([
2380
+ 'open',
2381
+ 'accepted',
2382
+ 'declined',
2383
+ 'invoiced',
2384
+ 'closed',
2385
+ 'pending_approval',
2386
+ 'approval_rejected',
2387
+ 'proposed',
2388
+ 'voided',
2389
+ 'expired',
2390
+ ])
2391
+ .optional()),
2392
+ zod_1.z.enum([
2393
+ 'open',
2394
+ 'accepted',
2395
+ 'declined',
2396
+ 'invoiced',
2397
+ 'closed',
2398
+ 'pending_approval',
2399
+ 'approval_rejected',
2400
+ 'proposed',
2401
+ 'voided',
2402
+ 'expired',
2403
+ ]),
1622
2404
  ])
1623
2405
  .optional(),
1624
2406
  not_in: zod_1.z
1625
- .enum([
1626
- 'open',
1627
- 'accepted',
1628
- 'declined',
1629
- 'invoiced',
1630
- 'closed',
1631
- 'pending_approval',
1632
- 'approval_rejected',
1633
- 'proposed',
1634
- 'voided',
1635
- 'expired',
2407
+ .union([
2408
+ zod_1.z.array(zod_1.z
2409
+ .enum([
2410
+ 'open',
2411
+ 'accepted',
2412
+ 'declined',
2413
+ 'invoiced',
2414
+ 'closed',
2415
+ 'pending_approval',
2416
+ 'approval_rejected',
2417
+ 'proposed',
2418
+ 'voided',
2419
+ 'expired',
2420
+ ])
2421
+ .optional()),
2422
+ zod_1.z.enum([
2423
+ 'open',
2424
+ 'accepted',
2425
+ 'declined',
2426
+ 'invoiced',
2427
+ 'closed',
2428
+ 'pending_approval',
2429
+ 'approval_rejected',
2430
+ 'proposed',
2431
+ 'voided',
2432
+ 'expired',
2433
+ ]),
1636
2434
  ])
1637
2435
  .optional(),
1638
2436
  });
1639
2437
  const ListQuoteDateSchema = zod_1.z.object({
1640
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
1641
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
1642
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
1643
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
2438
+ after: zod_1.z
2439
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
2440
+ .optional(),
2441
+ before: zod_1.z
2442
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
2443
+ .optional(),
2444
+ on: zod_1.z
2445
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
2446
+ .optional(),
2447
+ between: zod_1.z
2448
+ .union([
2449
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
2450
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
2451
+ ])
2452
+ .optional(),
1644
2453
  });
1645
2454
  const ListQuoteUpdatedAtSchema = zod_1.z.object({
1646
- after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
1647
- before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
1648
- on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
1649
- between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
2455
+ after: zod_1.z
2456
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
2457
+ .optional(),
2458
+ before: zod_1.z
2459
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
2460
+ .optional(),
2461
+ on: zod_1.z
2462
+ .union([zod_1.z.number().int(), zod_1.z.string().regex(RegExp('^\\d{10}$'))])
2463
+ .optional(),
2464
+ between: zod_1.z
2465
+ .union([
2466
+ zod_1.z.array(zod_1.z.number().int().optional()).min(2).max(2),
2467
+ zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')),
2468
+ ])
2469
+ .optional(),
1650
2470
  });
1651
2471
  const ListQuoteSortBySchema = zod_1.z.looseObject({
1652
2472
  asc: zod_1.z.enum(['date']).optional(),