chargebee 3.33.0 → 3.35.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 (172) hide show
  1. package/CHANGELOG.md +362 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +496 -3
  4. package/cjs/resources/webhook/eventType.js +36 -0
  5. package/cjs/schema/business_entity.schema.js +28 -2
  6. package/cjs/schema/business_rule.schema.js +54 -0
  7. package/cjs/schema/business_ruleset.schema.js +68 -0
  8. package/cjs/schema/card.schema.js +3 -1
  9. package/cjs/schema/collections_payment_promise.schema.js +43 -0
  10. package/cjs/schema/comment.schema.js +2 -0
  11. package/cjs/schema/coupon.schema.js +1 -1
  12. package/cjs/schema/credit_note.schema.js +11 -4
  13. package/cjs/schema/credit_unit.schema.js +2 -2
  14. package/cjs/schema/customer.schema.js +81 -10
  15. package/cjs/schema/dispute.schema.js +104 -0
  16. package/cjs/schema/einvoice.schema.js +37 -0
  17. package/cjs/schema/email_log.schema.js +28 -0
  18. package/cjs/schema/entitlement.schema.js +4 -4
  19. package/cjs/schema/estimate.schema.js +39 -10
  20. package/cjs/schema/event.schema.js +156 -0
  21. package/cjs/schema/export.schema.js +75 -19
  22. package/cjs/schema/feature.schema.js +2 -2
  23. package/cjs/schema/gift.schema.js +26 -0
  24. package/cjs/schema/hosted_page.schema.js +26 -6
  25. package/cjs/schema/index.js +9 -0
  26. package/cjs/schema/invoice.schema.js +98 -14
  27. package/cjs/schema/item.schema.js +1 -1
  28. package/cjs/schema/item_family.schema.js +1 -1
  29. package/cjs/schema/item_price.schema.js +1 -1
  30. package/cjs/schema/ledger_account_balance.schema.js +11 -2
  31. package/cjs/schema/ledger_operation.schema.js +6 -2
  32. package/cjs/schema/meter.schema.js +1 -1
  33. package/cjs/schema/metered_feature.schema.js +1 -1
  34. package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
  35. package/cjs/schema/omnichannel_subscription.schema.js +16 -8
  36. package/cjs/schema/payment_intent.schema.js +27 -0
  37. package/cjs/schema/payment_schedule.schema.js +36 -0
  38. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  39. package/cjs/schema/payment_source.schema.js +118 -1
  40. package/cjs/schema/price_ramp.schema.js +88 -0
  41. package/cjs/schema/price_variant.schema.js +1 -1
  42. package/cjs/schema/pricing_page_session.schema.js +1 -0
  43. package/cjs/schema/promotional_grant.schema.js +2 -0
  44. package/cjs/schema/purchase.schema.js +20 -1
  45. package/cjs/schema/quote.schema.js +6 -6
  46. package/cjs/schema/ramp.schema.js +18 -6
  47. package/cjs/schema/retry_segment.schema.js +12 -0
  48. package/cjs/schema/subscription.schema.js +179 -16
  49. package/cjs/schema/transaction.schema.js +60 -2
  50. package/cjs/schema/usage.schema.js +5 -0
  51. package/cjs/schema/usage_summary.schema.js +1 -0
  52. package/cjs/schema/webhook_endpoint.schema.js +72 -0
  53. package/esm/environment.js +1 -1
  54. package/esm/resources/api_endpoints.js +496 -3
  55. package/esm/resources/webhook/eventType.js +36 -0
  56. package/esm/schema/business_entity.schema.js +27 -1
  57. package/esm/schema/business_rule.schema.js +51 -0
  58. package/esm/schema/business_ruleset.schema.js +65 -0
  59. package/esm/schema/card.schema.js +3 -1
  60. package/esm/schema/collections_payment_promise.schema.js +40 -0
  61. package/esm/schema/comment.schema.js +2 -0
  62. package/esm/schema/coupon.schema.js +1 -1
  63. package/esm/schema/credit_note.schema.js +11 -4
  64. package/esm/schema/credit_unit.schema.js +2 -2
  65. package/esm/schema/customer.schema.js +81 -10
  66. package/esm/schema/dispute.schema.js +101 -0
  67. package/esm/schema/einvoice.schema.js +34 -0
  68. package/esm/schema/email_log.schema.js +25 -0
  69. package/esm/schema/entitlement.schema.js +4 -4
  70. package/esm/schema/estimate.schema.js +39 -10
  71. package/esm/schema/event.schema.js +156 -0
  72. package/esm/schema/export.schema.js +75 -19
  73. package/esm/schema/feature.schema.js +2 -2
  74. package/esm/schema/gift.schema.js +26 -0
  75. package/esm/schema/hosted_page.schema.js +26 -6
  76. package/esm/schema/index.js +9 -0
  77. package/esm/schema/invoice.schema.js +97 -13
  78. package/esm/schema/item.schema.js +1 -1
  79. package/esm/schema/item_family.schema.js +1 -1
  80. package/esm/schema/item_price.schema.js +1 -1
  81. package/esm/schema/ledger_account_balance.schema.js +10 -1
  82. package/esm/schema/ledger_operation.schema.js +6 -2
  83. package/esm/schema/meter.schema.js +1 -1
  84. package/esm/schema/metered_feature.schema.js +1 -1
  85. package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
  86. package/esm/schema/omnichannel_subscription.schema.js +16 -8
  87. package/esm/schema/payment_intent.schema.js +27 -0
  88. package/esm/schema/payment_schedule.schema.js +33 -0
  89. package/esm/schema/payment_schedule_scheme.schema.js +22 -1
  90. package/esm/schema/payment_source.schema.js +118 -1
  91. package/esm/schema/price_ramp.schema.js +85 -0
  92. package/esm/schema/price_variant.schema.js +1 -1
  93. package/esm/schema/pricing_page_session.schema.js +1 -0
  94. package/esm/schema/promotional_grant.schema.js +2 -0
  95. package/esm/schema/purchase.schema.js +20 -1
  96. package/esm/schema/quote.schema.js +6 -6
  97. package/esm/schema/ramp.schema.js +18 -6
  98. package/esm/schema/retry_segment.schema.js +9 -0
  99. package/esm/schema/subscription.schema.js +179 -16
  100. package/esm/schema/transaction.schema.js +60 -2
  101. package/esm/schema/usage.schema.js +5 -0
  102. package/esm/schema/usage_summary.schema.js +1 -0
  103. package/esm/schema/webhook_endpoint.schema.js +72 -0
  104. package/package.json +1 -1
  105. package/types/core.d.ts +135 -72
  106. package/types/index.d.ts +36 -0
  107. package/types/resources/AppliedRule.d.ts +14 -0
  108. package/types/resources/ApplyRule.d.ts +28 -0
  109. package/types/resources/BusinessEntity.d.ts +52 -0
  110. package/types/resources/BusinessRule.d.ts +161 -0
  111. package/types/resources/BusinessRuleset.d.ts +165 -0
  112. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  113. package/types/resources/Card.d.ts +1 -1
  114. package/types/resources/Citation.d.ts +13 -0
  115. package/types/resources/CollectionsDispute.d.ts +24 -0
  116. package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
  117. package/types/resources/CollectionsReminderSequence.d.ts +35 -0
  118. package/types/resources/Comment.d.ts +2 -1
  119. package/types/resources/Content.d.ts +26 -0
  120. package/types/resources/CreditNote.d.ts +13 -0
  121. package/types/resources/CustomData.d.ts +14 -0
  122. package/types/resources/CustomDataSchema.d.ts +15 -0
  123. package/types/resources/Customer.d.ts +42 -5
  124. package/types/resources/Dispute.d.ts +65 -0
  125. package/types/resources/DraftEstimate.d.ts +13 -0
  126. package/types/resources/DraftRequest.d.ts +45 -0
  127. package/types/resources/Einvoice.d.ts +64 -1
  128. package/types/resources/EmailAttachment.d.ts +16 -0
  129. package/types/resources/EmailConversation.d.ts +18 -0
  130. package/types/resources/EmailLog.d.ts +46 -0
  131. package/types/resources/EmailMessage.d.ts +40 -0
  132. package/types/resources/Estimate.d.ts +31 -2
  133. package/types/resources/Event.d.ts +37 -0
  134. package/types/resources/Execution.d.ts +12 -0
  135. package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
  136. package/types/resources/Gift.d.ts +28 -2
  137. package/types/resources/GrantBlock.d.ts +26 -7
  138. package/types/resources/GroupByAttribute.d.ts +15 -0
  139. package/types/resources/GroupByRecommendation.d.ts +10 -0
  140. package/types/resources/HostedPage.d.ts +11 -0
  141. package/types/resources/Invoice.d.ts +57 -4
  142. package/types/resources/ItemPrice.d.ts +1 -0
  143. package/types/resources/LedgerAccountBalance.d.ts +19 -0
  144. package/types/resources/LedgerEntry.d.ts +4 -4
  145. package/types/resources/LedgerOperation.d.ts +15 -8
  146. package/types/resources/Meter.d.ts +1 -0
  147. package/types/resources/MeteredFeature.d.ts +1 -0
  148. package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
  149. package/types/resources/OmnichannelSubscription.d.ts +6 -1
  150. package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -2
  151. package/types/resources/PaymentIntent.d.ts +72 -5
  152. package/types/resources/PaymentSchedule.d.ts +39 -2
  153. package/types/resources/PaymentScheduleEstimate.d.ts +2 -1
  154. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  155. package/types/resources/PaymentSource.d.ts +50 -2
  156. package/types/resources/PreferenceVariant.d.ts +10 -0
  157. package/types/resources/PriceRamp.d.ts +113 -0
  158. package/types/resources/PricingPageSession.d.ts +1 -0
  159. package/types/resources/PrivateNote.d.ts +18 -0
  160. package/types/resources/PromotionalGrant.d.ts +2 -0
  161. package/types/resources/Purchase.d.ts +20 -1
  162. package/types/resources/QuotedSubscription.d.ts +1 -0
  163. package/types/resources/Ramp.d.ts +18 -0
  164. package/types/resources/RampInterval.d.ts +12 -0
  165. package/types/resources/RecordedPurchase.d.ts +5 -1
  166. package/types/resources/RetrySegment.d.ts +36 -0
  167. package/types/resources/Subscription.d.ts +110 -11
  168. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  169. package/types/resources/Transaction.d.ts +9 -0
  170. package/types/resources/Usage.d.ts +6 -0
  171. package/types/resources/UsageSummary.d.ts +2 -0
  172. package/types/resources/WebhookEvent.d.ts +214 -0
@@ -4,20 +4,20 @@
4
4
  import { z } from 'zod';
5
5
  //Entitlement.list
6
6
  const ListEntitlementFeatureIdSchema = z.object({
7
- is: z.string().min(1).optional(),
8
7
  in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
8
+ is: z.string().min(1).optional(),
9
9
  });
10
10
  const ListEntitlementEntityTypeSchema = z.object({
11
- is: z
11
+ in: z
12
12
  .enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
13
13
  .optional(),
14
- in: z
14
+ is: z
15
15
  .enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
16
16
  .optional(),
17
17
  });
18
18
  const ListEntitlementEntityIdSchema = z.object({
19
- is: z.string().min(1).optional(),
20
19
  in: z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
20
+ is: z.string().min(1).optional(),
21
21
  });
22
22
  const ListEntitlementBodySchema = z.looseObject({
23
23
  limit: z.number().int().min(1).max(100).optional(),
@@ -76,7 +76,7 @@ const CreateSubscriptionEstimateCustomerSchema = z.object({
76
76
  vat_number: z.string().max(20).optional(),
77
77
  vat_number_prefix: z.string().max(10).optional(),
78
78
  registered_for_gst: z.boolean().optional(),
79
- taxability: z.enum(['taxable', 'exempt']).optional(),
79
+ taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
80
80
  entity_code: z
81
81
  .enum([
82
82
  'a',
@@ -237,7 +237,7 @@ const CreateSubItemEstimateEstimateCustomerSchema = z.object({
237
237
  vat_number: z.string().max(20).optional(),
238
238
  vat_number_prefix: z.string().max(10).optional(),
239
239
  registered_for_gst: z.boolean().optional(),
240
- taxability: z.enum(['taxable', 'exempt']).optional(),
240
+ taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
241
241
  entity_code: z
242
242
  .enum([
243
243
  'a',
@@ -281,7 +281,7 @@ const CreateSubItemEstimateEstimateSubscriptionItemsSchema = z.object({
281
281
  billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
282
282
  trial_end: z.array(z.number().int().optional()).optional(),
283
283
  service_period_days: z
284
- .array(z.number().int().min(1).max(730).optional())
284
+ .array(z.number().int().min(1).max(4000).optional())
285
285
  .optional(),
286
286
  charge_on_event: z
287
287
  .array(z
@@ -296,6 +296,7 @@ const CreateSubItemEstimateEstimateSubscriptionItemsSchema = z.object({
296
296
  .optional(),
297
297
  charge_once: z.array(z.boolean().optional()).optional(),
298
298
  item_type: z.array(z.enum(['plan', 'addon', 'charge']).optional()).optional(),
299
+ description: z.array(z.string().max(500).optional()).optional(),
299
300
  charge_on_option: z
300
301
  .array(z.enum(['immediately', 'on_event']).optional())
301
302
  .optional(),
@@ -546,7 +547,7 @@ const CreateSubItemForCustomerEstimateEstimateSubscriptionItemsSchema = z.object
546
547
  billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
547
548
  trial_end: z.array(z.number().int().optional()).optional(),
548
549
  service_period_days: z
549
- .array(z.number().int().min(1).max(730).optional())
550
+ .array(z.number().int().min(1).max(4000).optional())
550
551
  .optional(),
551
552
  charge_on_event: z
552
553
  .array(z
@@ -563,6 +564,7 @@ const CreateSubItemForCustomerEstimateEstimateSubscriptionItemsSchema = z.object
563
564
  item_type: z
564
565
  .array(z.enum(['plan', 'addon', 'charge']).optional())
565
566
  .optional(),
567
+ description: z.array(z.string().max(500).optional()).optional(),
566
568
  charge_on_option: z
567
569
  .array(z.enum(['immediately', 'on_event']).optional())
568
570
  .optional(),
@@ -683,7 +685,7 @@ const UpdateSubscriptionEstimateCustomerSchema = z.object({
683
685
  vat_number: z.string().max(20).optional(),
684
686
  vat_number_prefix: z.string().max(10).optional(),
685
687
  registered_for_gst: z.boolean().optional(),
686
- taxability: z.enum(['taxable', 'exempt']).optional(),
688
+ taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
687
689
  });
688
690
  const UpdateSubscriptionEstimateAddonsSchema = z.object({
689
691
  id: z.array(z.string().max(100).optional()).optional(),
@@ -815,7 +817,7 @@ const UpdateSubscriptionForItemsEstimateCustomerSchema = z.object({
815
817
  vat_number: z.string().max(20).optional(),
816
818
  vat_number_prefix: z.string().max(10).optional(),
817
819
  registered_for_gst: z.boolean().optional(),
818
- taxability: z.enum(['taxable', 'exempt']).optional(),
820
+ taxability: z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
819
821
  });
820
822
  const UpdateSubscriptionForItemsEstimateBillingOverrideSchema = z.object({
821
823
  max_excess_payment_usage: z.number().int().min(-1).optional(),
@@ -830,7 +832,7 @@ const UpdateSubscriptionForItemsEstimateSubscriptionItemsSchema = z.object({
830
832
  billing_cycles: z.array(z.number().int().min(0).optional()).optional(),
831
833
  trial_end: z.array(z.number().int().optional()).optional(),
832
834
  service_period_days: z
833
- .array(z.number().int().min(1).max(730).optional())
835
+ .array(z.number().int().min(1).max(4000).optional())
834
836
  .optional(),
835
837
  charge_on_event: z
836
838
  .array(z
@@ -848,6 +850,7 @@ const UpdateSubscriptionForItemsEstimateSubscriptionItemsSchema = z.object({
848
850
  .array(z.enum(['immediately', 'on_event']).optional())
849
851
  .optional(),
850
852
  item_type: z.array(z.enum(['plan', 'addon', 'charge']).optional()).optional(),
853
+ description: z.array(z.string().max(500).optional()).optional(),
851
854
  proration_type: z
852
855
  .array(z.enum(['full_term', 'partial_term', 'none']).optional())
853
856
  .optional(),
@@ -1017,7 +1020,7 @@ const CancelSubscriptionForItemsEstimateSubscriptionItemsSchema = z.object({
1017
1020
  unit_price: z.array(z.number().int().min(0).optional()).optional(),
1018
1021
  unit_price_in_decimal: z.array(z.string().max(39).optional()).optional(),
1019
1022
  service_period_days: z
1020
- .array(z.number().int().min(1).max(730).optional())
1023
+ .array(z.number().int().min(1).max(4000).optional())
1021
1024
  .optional(),
1022
1025
  });
1023
1026
  const CancelSubscriptionForItemsEstimateBodySchema = z.looseObject({
@@ -1159,6 +1162,19 @@ const GiftSubscriptionEstimatePaymentIntentSchema = z.object({
1159
1162
  'touch_n_go',
1160
1163
  'tamara',
1161
1164
  'qpay',
1165
+ 'ovo',
1166
+ 'momo',
1167
+ 'mercado_pago',
1168
+ 'nequi',
1169
+ 'nupay',
1170
+ 'picpay',
1171
+ 'thai_qr',
1172
+ 'blik',
1173
+ 'fpx',
1174
+ 'wero',
1175
+ 'p24',
1176
+ 'affirm_pay',
1177
+ 'rakuten_pay',
1162
1178
  ])
1163
1179
  .optional(),
1164
1180
  reference_id: z.string().max(65000).optional(),
@@ -1282,6 +1298,19 @@ const GiftSubscriptionForItemsEstimatePaymentIntentSchema = z.object({
1282
1298
  'touch_n_go',
1283
1299
  'tamara',
1284
1300
  'qpay',
1301
+ 'ovo',
1302
+ 'momo',
1303
+ 'mercado_pago',
1304
+ 'nequi',
1305
+ 'nupay',
1306
+ 'picpay',
1307
+ 'thai_qr',
1308
+ 'blik',
1309
+ 'fpx',
1310
+ 'wero',
1311
+ 'p24',
1312
+ 'affirm_pay',
1313
+ 'rakuten_pay',
1285
1314
  ])
1286
1315
  .optional(),
1287
1316
  reference_id: z.string().max(65000).optional(),
@@ -1459,7 +1488,7 @@ const CreateInvoiceForItemsEstimateItemPricesSchema = z.object({
1459
1488
  date_from: z.array(z.number().int().optional()).optional(),
1460
1489
  date_to: z.array(z.number().int().optional()).optional(),
1461
1490
  description: z.array(z.string().max(250).optional()).optional(),
1462
- entity_description: z.array(z.string().max(500).optional()).optional(),
1491
+ entity_description: z.array(z.string().max(2000).optional()).optional(),
1463
1492
  });
1464
1493
  const CreateInvoiceForItemsEstimateItemTiersSchema = z.object({
1465
1494
  item_price_id: z.array(z.string().max(100).optional()).optional(),
@@ -1490,7 +1519,7 @@ const CreateInvoiceForItemsEstimateChargesSchema = z.object({
1490
1519
  avalara_service_type: z.array(z.number().int().optional()).optional(),
1491
1520
  date_from: z.array(z.number().int().optional()).optional(),
1492
1521
  date_to: z.array(z.number().int().optional()).optional(),
1493
- entity_description: z.array(z.string().max(500).optional()).optional(),
1522
+ entity_description: z.array(z.string().max(2000).optional()).optional(),
1494
1523
  });
1495
1524
  const CreateInvoiceForItemsEstimateNotesToRemoveSchema = z.object({
1496
1525
  entity_type: z
@@ -125,10 +125,13 @@ const ListEventEventTypeSchema = z.object({
125
125
  'credit_note_created_with_backdating',
126
126
  'credit_note_updated',
127
127
  'credit_note_deleted',
128
+ 'einvoice_created',
129
+ 'einvoice_updated',
128
130
  'payment_schedules_created',
129
131
  'payment_schedules_updated',
130
132
  'payment_schedule_scheme_created',
131
133
  'payment_schedule_scheme_deleted',
134
+ 'payment_schedules_cancelled',
132
135
  'subscription_renewal_reminder',
133
136
  'add_usages_reminder',
134
137
  'payment_due_reminder',
@@ -139,6 +142,7 @@ const ListEventEventTypeSchema = z.object({
139
142
  'payment_failed',
140
143
  'dunning_updated',
141
144
  'payment_refunded',
145
+ 'refund_failed',
142
146
  'payment_initiated',
143
147
  'refund_initiated',
144
148
  'netd_payment_due_reminder',
@@ -290,14 +294,46 @@ const ListEventEventTypeSchema = z.object({
290
294
  'alert_status_changed',
291
295
  'omnichannel_subscription_item_updated',
292
296
  'omnichannel_subscription_item_recovered',
297
+ 'price_ramp_created',
298
+ 'price_ramp_updated',
299
+ 'price_ramp_deleted',
293
300
  'omnichannel_subscription_item_mrr_updated',
294
301
  'ledger_account_balance_updated',
295
302
  'grant_blocks_created',
296
303
  'grant_blocks_updated',
297
304
  'ledger_updated',
305
+ 'business_rule_created',
306
+ 'business_rule_updated',
307
+ 'business_rule_activated',
308
+ 'business_rule_deactivated',
309
+ 'business_rule_deleted',
310
+ 'business_rule_released',
298
311
  'vault_token_created',
299
312
  'vault_token_updated',
300
313
  'vault_token_deleted',
314
+ 'chargeback_initiated',
315
+ 'chargeback_won',
316
+ 'chargeback_lost',
317
+ 'business_ruleset_created',
318
+ 'business_ruleset_updated',
319
+ 'business_ruleset_activated',
320
+ 'business_ruleset_deactivated',
321
+ 'business_ruleset_deleted',
322
+ 'collections_reminder_sequence_created',
323
+ 'collections_reminder_sequence_paused',
324
+ 'collections_reminder_sequence_resumed',
325
+ 'collections_reminder_sequence_completed',
326
+ 'collections_payment_promise_created',
327
+ 'collections_payment_promise_updated',
328
+ 'collections_payment_promise_fulfilled',
329
+ 'collections_payment_promise_cancelled',
330
+ 'collections_payment_promise_broken',
331
+ 'collections_dispute_created',
332
+ 'collections_dispute_updated',
333
+ 'collections_dispute_resolved',
334
+ 'collections_dispute_withdrawn',
335
+ 'email_message_received',
336
+ 'private_note_added',
301
337
  ])
302
338
  .optional(),
303
339
  is_not: z
@@ -360,10 +396,13 @@ const ListEventEventTypeSchema = z.object({
360
396
  'credit_note_created_with_backdating',
361
397
  'credit_note_updated',
362
398
  'credit_note_deleted',
399
+ 'einvoice_created',
400
+ 'einvoice_updated',
363
401
  'payment_schedules_created',
364
402
  'payment_schedules_updated',
365
403
  'payment_schedule_scheme_created',
366
404
  'payment_schedule_scheme_deleted',
405
+ 'payment_schedules_cancelled',
367
406
  'subscription_renewal_reminder',
368
407
  'add_usages_reminder',
369
408
  'payment_due_reminder',
@@ -374,6 +413,7 @@ const ListEventEventTypeSchema = z.object({
374
413
  'payment_failed',
375
414
  'dunning_updated',
376
415
  'payment_refunded',
416
+ 'refund_failed',
377
417
  'payment_initiated',
378
418
  'refund_initiated',
379
419
  'netd_payment_due_reminder',
@@ -525,14 +565,46 @@ const ListEventEventTypeSchema = z.object({
525
565
  'alert_status_changed',
526
566
  'omnichannel_subscription_item_updated',
527
567
  'omnichannel_subscription_item_recovered',
568
+ 'price_ramp_created',
569
+ 'price_ramp_updated',
570
+ 'price_ramp_deleted',
528
571
  'omnichannel_subscription_item_mrr_updated',
529
572
  'ledger_account_balance_updated',
530
573
  'grant_blocks_created',
531
574
  'grant_blocks_updated',
532
575
  'ledger_updated',
576
+ 'business_rule_created',
577
+ 'business_rule_updated',
578
+ 'business_rule_activated',
579
+ 'business_rule_deactivated',
580
+ 'business_rule_deleted',
581
+ 'business_rule_released',
533
582
  'vault_token_created',
534
583
  'vault_token_updated',
535
584
  'vault_token_deleted',
585
+ 'chargeback_initiated',
586
+ 'chargeback_won',
587
+ 'chargeback_lost',
588
+ 'business_ruleset_created',
589
+ 'business_ruleset_updated',
590
+ 'business_ruleset_activated',
591
+ 'business_ruleset_deactivated',
592
+ 'business_ruleset_deleted',
593
+ 'collections_reminder_sequence_created',
594
+ 'collections_reminder_sequence_paused',
595
+ 'collections_reminder_sequence_resumed',
596
+ 'collections_reminder_sequence_completed',
597
+ 'collections_payment_promise_created',
598
+ 'collections_payment_promise_updated',
599
+ 'collections_payment_promise_fulfilled',
600
+ 'collections_payment_promise_cancelled',
601
+ 'collections_payment_promise_broken',
602
+ 'collections_dispute_created',
603
+ 'collections_dispute_updated',
604
+ 'collections_dispute_resolved',
605
+ 'collections_dispute_withdrawn',
606
+ 'email_message_received',
607
+ 'private_note_added',
536
608
  ])
537
609
  .optional(),
538
610
  in: z
@@ -595,10 +667,13 @@ const ListEventEventTypeSchema = z.object({
595
667
  'credit_note_created_with_backdating',
596
668
  'credit_note_updated',
597
669
  'credit_note_deleted',
670
+ 'einvoice_created',
671
+ 'einvoice_updated',
598
672
  'payment_schedules_created',
599
673
  'payment_schedules_updated',
600
674
  'payment_schedule_scheme_created',
601
675
  'payment_schedule_scheme_deleted',
676
+ 'payment_schedules_cancelled',
602
677
  'subscription_renewal_reminder',
603
678
  'add_usages_reminder',
604
679
  'payment_due_reminder',
@@ -609,6 +684,7 @@ const ListEventEventTypeSchema = z.object({
609
684
  'payment_failed',
610
685
  'dunning_updated',
611
686
  'payment_refunded',
687
+ 'refund_failed',
612
688
  'payment_initiated',
613
689
  'refund_initiated',
614
690
  'netd_payment_due_reminder',
@@ -760,14 +836,46 @@ const ListEventEventTypeSchema = z.object({
760
836
  'alert_status_changed',
761
837
  'omnichannel_subscription_item_updated',
762
838
  'omnichannel_subscription_item_recovered',
839
+ 'price_ramp_created',
840
+ 'price_ramp_updated',
841
+ 'price_ramp_deleted',
763
842
  'omnichannel_subscription_item_mrr_updated',
764
843
  'ledger_account_balance_updated',
765
844
  'grant_blocks_created',
766
845
  'grant_blocks_updated',
767
846
  'ledger_updated',
847
+ 'business_rule_created',
848
+ 'business_rule_updated',
849
+ 'business_rule_activated',
850
+ 'business_rule_deactivated',
851
+ 'business_rule_deleted',
852
+ 'business_rule_released',
768
853
  'vault_token_created',
769
854
  'vault_token_updated',
770
855
  'vault_token_deleted',
856
+ 'chargeback_initiated',
857
+ 'chargeback_won',
858
+ 'chargeback_lost',
859
+ 'business_ruleset_created',
860
+ 'business_ruleset_updated',
861
+ 'business_ruleset_activated',
862
+ 'business_ruleset_deactivated',
863
+ 'business_ruleset_deleted',
864
+ 'collections_reminder_sequence_created',
865
+ 'collections_reminder_sequence_paused',
866
+ 'collections_reminder_sequence_resumed',
867
+ 'collections_reminder_sequence_completed',
868
+ 'collections_payment_promise_created',
869
+ 'collections_payment_promise_updated',
870
+ 'collections_payment_promise_fulfilled',
871
+ 'collections_payment_promise_cancelled',
872
+ 'collections_payment_promise_broken',
873
+ 'collections_dispute_created',
874
+ 'collections_dispute_updated',
875
+ 'collections_dispute_resolved',
876
+ 'collections_dispute_withdrawn',
877
+ 'email_message_received',
878
+ 'private_note_added',
771
879
  ])
772
880
  .optional(),
773
881
  not_in: z
@@ -830,10 +938,13 @@ const ListEventEventTypeSchema = z.object({
830
938
  'credit_note_created_with_backdating',
831
939
  'credit_note_updated',
832
940
  'credit_note_deleted',
941
+ 'einvoice_created',
942
+ 'einvoice_updated',
833
943
  'payment_schedules_created',
834
944
  'payment_schedules_updated',
835
945
  'payment_schedule_scheme_created',
836
946
  'payment_schedule_scheme_deleted',
947
+ 'payment_schedules_cancelled',
837
948
  'subscription_renewal_reminder',
838
949
  'add_usages_reminder',
839
950
  'payment_due_reminder',
@@ -844,6 +955,7 @@ const ListEventEventTypeSchema = z.object({
844
955
  'payment_failed',
845
956
  'dunning_updated',
846
957
  'payment_refunded',
958
+ 'refund_failed',
847
959
  'payment_initiated',
848
960
  'refund_initiated',
849
961
  'netd_payment_due_reminder',
@@ -995,14 +1107,46 @@ const ListEventEventTypeSchema = z.object({
995
1107
  'alert_status_changed',
996
1108
  'omnichannel_subscription_item_updated',
997
1109
  'omnichannel_subscription_item_recovered',
1110
+ 'price_ramp_created',
1111
+ 'price_ramp_updated',
1112
+ 'price_ramp_deleted',
998
1113
  'omnichannel_subscription_item_mrr_updated',
999
1114
  'ledger_account_balance_updated',
1000
1115
  'grant_blocks_created',
1001
1116
  'grant_blocks_updated',
1002
1117
  'ledger_updated',
1118
+ 'business_rule_created',
1119
+ 'business_rule_updated',
1120
+ 'business_rule_activated',
1121
+ 'business_rule_deactivated',
1122
+ 'business_rule_deleted',
1123
+ 'business_rule_released',
1003
1124
  'vault_token_created',
1004
1125
  'vault_token_updated',
1005
1126
  'vault_token_deleted',
1127
+ 'chargeback_initiated',
1128
+ 'chargeback_won',
1129
+ 'chargeback_lost',
1130
+ 'business_ruleset_created',
1131
+ 'business_ruleset_updated',
1132
+ 'business_ruleset_activated',
1133
+ 'business_ruleset_deactivated',
1134
+ 'business_ruleset_deleted',
1135
+ 'collections_reminder_sequence_created',
1136
+ 'collections_reminder_sequence_paused',
1137
+ 'collections_reminder_sequence_resumed',
1138
+ 'collections_reminder_sequence_completed',
1139
+ 'collections_payment_promise_created',
1140
+ 'collections_payment_promise_updated',
1141
+ 'collections_payment_promise_fulfilled',
1142
+ 'collections_payment_promise_cancelled',
1143
+ 'collections_payment_promise_broken',
1144
+ 'collections_dispute_created',
1145
+ 'collections_dispute_updated',
1146
+ 'collections_dispute_resolved',
1147
+ 'collections_dispute_withdrawn',
1148
+ 'email_message_received',
1149
+ 'private_note_added',
1006
1150
  ])
1007
1151
  .optional(),
1008
1152
  });
@@ -1020,6 +1164,9 @@ const ListEventSourceSchema = z.object({
1020
1164
  'migration',
1021
1165
  'bulk_operation',
1022
1166
  'external_service',
1167
+ 'mcp',
1168
+ 'copilot',
1169
+ 'agent',
1023
1170
  ])
1024
1171
  .optional(),
1025
1172
  is_not: z
@@ -1035,6 +1182,9 @@ const ListEventSourceSchema = z.object({
1035
1182
  'migration',
1036
1183
  'bulk_operation',
1037
1184
  'external_service',
1185
+ 'mcp',
1186
+ 'copilot',
1187
+ 'agent',
1038
1188
  ])
1039
1189
  .optional(),
1040
1190
  in: z
@@ -1050,6 +1200,9 @@ const ListEventSourceSchema = z.object({
1050
1200
  'migration',
1051
1201
  'bulk_operation',
1052
1202
  'external_service',
1203
+ 'mcp',
1204
+ 'copilot',
1205
+ 'agent',
1053
1206
  ])
1054
1207
  .optional(),
1055
1208
  not_in: z
@@ -1065,6 +1218,9 @@ const ListEventSourceSchema = z.object({
1065
1218
  'migration',
1066
1219
  'bulk_operation',
1067
1220
  'external_service',
1221
+ 'mcp',
1222
+ 'copilot',
1223
+ 'agent',
1068
1224
  ])
1069
1225
  .optional(),
1070
1226
  });