chargebee 3.34.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 (118) hide show
  1. package/CHANGELOG.md +172 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +174 -2
  4. package/cjs/resources/webhook/eventType.js +23 -1
  5. package/cjs/schema/business_entity.schema.js +28 -2
  6. package/cjs/schema/collections_payment_promise.schema.js +43 -0
  7. package/cjs/schema/comment.schema.js +2 -0
  8. package/cjs/schema/coupon.schema.js +1 -1
  9. package/cjs/schema/credit_note.schema.js +1 -0
  10. package/cjs/schema/credit_unit.schema.js +2 -2
  11. package/cjs/schema/einvoice.schema.js +2 -2
  12. package/cjs/schema/entitlement.schema.js +4 -4
  13. package/cjs/schema/estimate.schema.js +4 -4
  14. package/cjs/schema/event.schema.js +104 -4
  15. package/cjs/schema/export.schema.js +7 -7
  16. package/cjs/schema/hosted_page.schema.js +2 -2
  17. package/cjs/schema/index.js +3 -0
  18. package/cjs/schema/invoice.schema.js +24 -4
  19. package/cjs/schema/item.schema.js +1 -1
  20. package/cjs/schema/item_family.schema.js +1 -1
  21. package/cjs/schema/item_price.schema.js +1 -1
  22. package/cjs/schema/ledger_account_balance.schema.js +11 -2
  23. package/cjs/schema/ledger_operation.schema.js +2 -2
  24. package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
  25. package/cjs/schema/omnichannel_subscription.schema.js +18 -10
  26. package/cjs/schema/payment_source.schema.js +15 -0
  27. package/cjs/schema/price_ramp.schema.js +88 -0
  28. package/cjs/schema/price_variant.schema.js +1 -1
  29. package/cjs/schema/purchase.schema.js +6 -0
  30. package/cjs/schema/quote.schema.js +6 -6
  31. package/cjs/schema/ramp.schema.js +10 -6
  32. package/cjs/schema/retry_segment.schema.js +12 -0
  33. package/cjs/schema/subscription.schema.js +4 -4
  34. package/cjs/schema/usage.schema.js +5 -0
  35. package/cjs/schema/usage_summary.schema.js +1 -0
  36. package/cjs/schema/webhook_endpoint.schema.js +46 -2
  37. package/esm/environment.js +1 -1
  38. package/esm/resources/api_endpoints.js +174 -2
  39. package/esm/resources/webhook/eventType.js +23 -1
  40. package/esm/schema/business_entity.schema.js +27 -1
  41. package/esm/schema/collections_payment_promise.schema.js +40 -0
  42. package/esm/schema/comment.schema.js +2 -0
  43. package/esm/schema/coupon.schema.js +1 -1
  44. package/esm/schema/credit_note.schema.js +1 -0
  45. package/esm/schema/credit_unit.schema.js +2 -2
  46. package/esm/schema/einvoice.schema.js +2 -2
  47. package/esm/schema/entitlement.schema.js +4 -4
  48. package/esm/schema/estimate.schema.js +4 -4
  49. package/esm/schema/event.schema.js +104 -4
  50. package/esm/schema/export.schema.js +7 -7
  51. package/esm/schema/hosted_page.schema.js +2 -2
  52. package/esm/schema/index.js +3 -0
  53. package/esm/schema/invoice.schema.js +23 -3
  54. package/esm/schema/item.schema.js +1 -1
  55. package/esm/schema/item_family.schema.js +1 -1
  56. package/esm/schema/item_price.schema.js +1 -1
  57. package/esm/schema/ledger_account_balance.schema.js +10 -1
  58. package/esm/schema/ledger_operation.schema.js +2 -2
  59. package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
  60. package/esm/schema/omnichannel_subscription.schema.js +18 -10
  61. package/esm/schema/payment_source.schema.js +15 -0
  62. package/esm/schema/price_ramp.schema.js +85 -0
  63. package/esm/schema/price_variant.schema.js +1 -1
  64. package/esm/schema/purchase.schema.js +6 -0
  65. package/esm/schema/quote.schema.js +6 -6
  66. package/esm/schema/ramp.schema.js +10 -6
  67. package/esm/schema/retry_segment.schema.js +9 -0
  68. package/esm/schema/subscription.schema.js +4 -4
  69. package/esm/schema/usage.schema.js +5 -0
  70. package/esm/schema/usage_summary.schema.js +1 -0
  71. package/esm/schema/webhook_endpoint.schema.js +46 -2
  72. package/package.json +1 -1
  73. package/types/core.d.ts +53 -68
  74. package/types/index.d.ts +22 -1
  75. package/types/resources/BusinessEntity.d.ts +52 -0
  76. package/types/resources/Citation.d.ts +13 -0
  77. package/types/resources/CollectionsDispute.d.ts +24 -0
  78. package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
  79. package/types/resources/CollectionsReminderSequence.d.ts +35 -0
  80. package/types/resources/Comment.d.ts +2 -1
  81. package/types/resources/Content.d.ts +18 -1
  82. package/types/resources/CreditNote.d.ts +1 -0
  83. package/types/resources/CustomData.d.ts +14 -0
  84. package/types/resources/DraftEstimate.d.ts +13 -0
  85. package/types/resources/DraftRequest.d.ts +45 -0
  86. package/types/resources/EmailAttachment.d.ts +16 -0
  87. package/types/resources/EmailConversation.d.ts +18 -0
  88. package/types/resources/EmailLog.d.ts +1 -0
  89. package/types/resources/EmailMessage.d.ts +40 -0
  90. package/types/resources/Event.d.ts +23 -1
  91. package/types/resources/Execution.d.ts +12 -0
  92. package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
  93. package/types/resources/GroupByAttribute.d.ts +15 -0
  94. package/types/resources/GroupByRecommendation.d.ts +10 -0
  95. package/types/resources/Invoice.d.ts +15 -0
  96. package/types/resources/ItemPrice.d.ts +1 -0
  97. package/types/resources/LedgerAccountBalance.d.ts +19 -0
  98. package/types/resources/Meter.d.ts +1 -0
  99. package/types/resources/MeteredFeature.d.ts +1 -0
  100. package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
  101. package/types/resources/OmnichannelSubscription.d.ts +6 -1
  102. package/types/resources/OmnichannelSubscriptionItem.d.ts +4 -1
  103. package/types/resources/PaymentSchedule.d.ts +1 -1
  104. package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
  105. package/types/resources/PaymentSource.d.ts +19 -0
  106. package/types/resources/PreferenceVariant.d.ts +10 -0
  107. package/types/resources/PriceRamp.d.ts +113 -0
  108. package/types/resources/PrivateNote.d.ts +18 -0
  109. package/types/resources/Purchase.d.ts +6 -0
  110. package/types/resources/Ramp.d.ts +6 -0
  111. package/types/resources/RampInterval.d.ts +12 -0
  112. package/types/resources/RecordedPurchase.d.ts +5 -1
  113. package/types/resources/RetrySegment.d.ts +36 -0
  114. package/types/resources/Transaction.d.ts +4 -0
  115. package/types/resources/Usage.d.ts +6 -0
  116. package/types/resources/UsageSummary.d.ts +2 -0
  117. package/types/resources/WebhookEvent.d.ts +149 -5
  118. package/types/resources/AppliedBusinessRule.d.ts +0 -15
package/CHANGELOG.md CHANGED
@@ -1,3 +1,175 @@
1
+ ### v3.35.0 (2026-11-02)
2
+ * * *
3
+ ### New Resources:
4
+ - `Citation` has been added.
5
+ - `CollectionsDispute` has been added.
6
+ - `CollectionsPaymentPromise` has been added.
7
+ - `CollectionsReminderSequence` has been added.
8
+ - `CustomData` has been added.
9
+ - `DraftEstimate` has been added.
10
+ - `DraftRequest` has been added.
11
+ - `EmailAttachment` has been added.
12
+ - `EmailConversation` has been added.
13
+ - `EmailMessage` has been added.
14
+ - `Execution` has been added.
15
+ - `GroupByAttribute` has been added.
16
+ - `GroupByRecommendation` has been added.
17
+ - `PreferenceVariant` has been added.
18
+ - `PriceRamp` has been added.
19
+ - `PrivateNote` has been added.
20
+ - `RampInterval` has been added.
21
+ - `RetrySegment` has been added.
22
+
23
+
24
+ ### New Actions:
25
+ - `retrieve_a_business_entity` has been added to `BusinessEntity`.
26
+ - `update_business_entity` has been added to `BusinessEntity`.
27
+ - `list_business_entities` has been added to `BusinessEntity`.
28
+ - `create_a_business_entity` has been added to `BusinessEntity`.
29
+ - `remove_payment_schedule_scheme_from_an_invoice` has been added to `Invoice`.
30
+ - `update_overdraft_limit` has been added to `LedgerAccountBalance`.
31
+
32
+
33
+ ### New Attributes:
34
+ - `email_conversation_id` has been added to `EmailLog`.
35
+ - `gateway` has been added to `GatewayPaymentMethodToken`.
36
+ - `retry_segment_id` has been added to `Invoice`.
37
+ - `price_ramp_id` has been added to `ItemPrice`.
38
+ - `group_by` has been added to `Meter`.
39
+ - `group_by` has been added to `MeteredFeature`.
40
+ - `origin` has been added to `OmnichannelSubscription`.
41
+ - `expiration_reason_at_source` has been added to `OmnichannelSubscriptionItem`.
42
+ - `cancellation_reason_at_source` has been added to `OmnichannelSubscriptionItem`.
43
+ - `gateway_metadata` has been added to `Transaction`.
44
+ - `attributes` has been added to `UsageSummary`.
45
+
46
+
47
+ ### New Parameters:
48
+ - `limit` has been added as query parameter to `list_business_entities` in `BusinessEntity`.
49
+ - `offset` has been added as query parameter to `list_business_entities` in `BusinessEntity`.
50
+ - `include_deleted` has been added as query parameter to `list_business_entities` in `BusinessEntity`.
51
+ - `name` has been added as query parameter to `list_business_entities` in `BusinessEntity`.
52
+ - `group_by` has been added as query parameter to `retrieve_usage_summary_for_a_subscription` in `UsageSummary`.
53
+ - `name` has been added as request body parameter to `update_business_entity` in `BusinessEntity`.
54
+ - `status` has been added as request body parameter to `update_business_entity` in `BusinessEntity`.
55
+ - `name` has been added as request body parameter to `create_a_business_entity` in `BusinessEntity`.
56
+ - `status` has been added as request body parameter to `create_a_business_entity` in `BusinessEntity`.
57
+ - `customer_notes` has been added as request body parameter to `import_credit_note` in `CreditNote`.
58
+ - `line_items.tax_exempt_reason` has been added as request body parameter to `import_invoice` in `Invoice`.
59
+ - `comment` has been added as request body parameter to `remove_payment_schedule_scheme_from_an_invoice` in `Invoice`.
60
+ - `subscription_id` has been added as request body parameter to `update_overdraft_limit` in `LedgerAccountBalance`.
61
+ - `unit_id` has been added as request body parameter to `update_overdraft_limit` in `LedgerAccountBalance`.
62
+ - `is_unlimited` has been added as request body parameter to `update_overdraft_limit` in `LedgerAccountBalance`.
63
+ - `limit` has been added as request body parameter to `update_overdraft_limit` in `LedgerAccountBalance`.
64
+ - `change_reason` has been added as request body parameter to `update_overdraft_limit` in `LedgerAccountBalance`.
65
+ - `bank_account` has been added as request body parameter to `create_using_permanent_token` in `PaymentSource`.
66
+ - `purchase_items.trial_end` has been added as request body parameter to `create_a_purchase` in `Purchase`.
67
+ - `subscription_info.trial_end` has been added as request body parameter to `create_a_purchase` in `Purchase`.
68
+ - `subscription_info.start_date` has been added as request body parameter to `create_a_purchase` in `Purchase`.
69
+ - `purchase_items.trial_end` has been added as request body parameter to `estimates_for_purchase` in `Purchase`.
70
+ - `subscription_info.trial_end` has been added as request body parameter to `estimates_for_purchase` in `Purchase`.
71
+ - `subscription_info.start_date` has been added as request body parameter to `estimates_for_purchase` in `Purchase`.
72
+ - `items_to_add.description` has been added as request body parameter to `create_a_ramp` in `Ramp`.
73
+ - `items_to_update.description` has been added as request body parameter to `create_a_ramp` in `Ramp`.
74
+ - `items_to_add.description` has been added as request body parameter to `update_a_subscription_ramp` in `Ramp`.
75
+ - `items_to_update.description` has been added as request body parameter to `update_a_subscription_ramp` in `Ramp`.
76
+ - `group_by` has been added as request body parameter to `retrieve_usages_for_an_invoice_as_pdf` in `Usage`.
77
+
78
+
79
+ ### New Events:
80
+ - `chargeback_lost` has been added.
81
+ - `price_ramp_updated` has been added.
82
+ - `refund_failed` has been added.
83
+ - `chargeback_initiated` has been added.
84
+ - `collections_payment_promise_fulfilled` has been added.
85
+ - `collections_dispute_resolved` has been added.
86
+ - `collections_dispute_updated` has been added.
87
+ - `collections_payment_promise_updated` has been added.
88
+ - `chargeback_won` has been added.
89
+ - `price_ramp_created` has been added.
90
+ - `collections_reminder_sequence_created` has been added.
91
+ - `email_message_received` has been added.
92
+ - `collections_payment_promise_broken` has been added.
93
+ - `price_ramp_deleted` has been added.
94
+ - `collections_payment_promise_created` has been added.
95
+ - `private_note_added` has been added.
96
+ - `collections_dispute_created` has been added.
97
+ - `collections_payment_promise_cancelled` has been added.
98
+ - `collections_dispute_withdrawn` has been added.
99
+ - `collections_reminder_sequence_paused` has been added.
100
+ - `collections_reminder_sequence_resumed` has been added.
101
+ - `payment_schedules_cancelled` has been added.
102
+ - `collections_reminder_sequence_completed` has been added.
103
+
104
+
105
+ ### Deleted Resources:
106
+ - AppliedBusinessRule has been removed.
107
+
108
+
109
+ ### Deleted Attributes:
110
+ - `handle` has been removed from `AppliedBusinessRule`.
111
+ - `entity_type` has been removed from `AppliedBusinessRule`.
112
+ - `entity_id` has been removed from `AppliedBusinessRule`.
113
+ - `entity_version` has been removed from `AppliedBusinessRule`.
114
+ - `rule_id` has been removed from `AppliedBusinessRule`.
115
+ - `version` has been removed from `AppliedBusinessRule`.
116
+ - `created_at` has been removed from `AppliedBusinessRule`.
117
+ - `modified_at` has been removed from `AppliedBusinessRule`.
118
+ - `gateway_name` has been removed from `GatewayPaymentMethodToken`.
119
+
120
+
121
+ ### Deleted Events:
122
+ - `business_rules_applied` has been removed.
123
+
124
+
125
+ ### New Enums:
126
+ - `task` has been added as a new value enum `EntityType`.
127
+ - `payment_schedules_cancelled`, `refund_failed`, `price_ramp_created`, `price_ramp_updated`, `price_ramp_deleted`, `chargeback_initiated`, `chargeback_won`, `chargeback_lost`, `collections_reminder_sequence_created`, `collections_reminder_sequence_paused`, `collections_reminder_sequence_resumed`, `collections_reminder_sequence_completed`, `collections_payment_promise_created`, `collections_payment_promise_updated`, `collections_payment_promise_fulfilled`, `collections_payment_promise_cancelled`, `collections_payment_promise_broken`, `collections_dispute_created`, `collections_dispute_updated`, `collections_dispute_resolved`, `collections_dispute_withdrawn`, `email_message_received`, and `private_note_added` have been added as new values enum `EventType`.
128
+ - `mcp`, `copilot`, and `agent` have been added as new values enum `Source`.
129
+ - `low`, `medium`, `high`, and `not_provided` have been added as new values to enum attribute `confidence_level` in `Citation`.
130
+ - `open`, `resolved`, and `withdrawn` have been added as new values to enum attribute `status` in `CollectionsDispute`.
131
+ - `active`, `fulfilled`, `broken`, and `cancelled` have been added as new values to enum attribute `status` in `CollectionsPaymentPromise`.
132
+ - `active`, `completed`, `paused`, and `failed` have been added as new values to enum attribute `status` in `CollectionsReminderSequence`.
133
+ - `success` and `failed` have been added as new values to enum attribute `status` in `DraftEstimate`.
134
+ - `open` and `executed` have been added as new values to enum attribute `status` in `DraftRequest`.
135
+ - `contact`, `site_user`, `agent`, and `other` have been added as new values to enum attribute `author_type` in `EmailMessage`.
136
+ - `pending`, `sent`, and `failed` have been added as new values to enum attribute `send_status` in `EmailMessage`.
137
+ - `success` and `failed` have been added as new values to enum attribute `status` in `Execution`.
138
+ - `valid` and `invalid` have been added as new values to enum attribute `status` in `GatewayPaymentMethodToken`.
139
+ - `low_coverage` and `high_cardinality` have been added as new values to enum attribute `warning_reasons` in `GroupByAttribute`.
140
+ - `roku` and `amazon_app_store` have been added as new values to enum attribute `source` in `OmnichannelOneTimeOrder`.
141
+ - `roku` and `amazon_app_store` have been added as new values to enum attribute `source` in `OmnichannelSubscription`.
142
+ - `other` has been added as a new value to enum attribute `cancellation_reason` in `OmnichannelSubscriptionItem`.
143
+ - `active`, `archived`, and `deleted` have been added as new values to enum attribute `status` in `PriceRamp`.
144
+ - `site_user`, `agent`, and `other` have been added as new values to enum attribute `author_type` in `PrivateNote`.
145
+ - `roku` and `amazon_app_store` have been added as new values to enum attribute `source` in `RecordedPurchase`.
146
+ - `and` and `or` have been added as new values to enum attribute `condition_logic` in `RetrySegment`.
147
+ - `true` and `false` have been added as new values to enum query parameter `name.is_present` in `list_business_entities` of `BusinessEntity`.
148
+ - `broken`, `fulfilled`, `active`, and `cancelled` have been added as new values to enum query parameter `status.is` in `list_collections_payment_promises` of `CollectionsPaymentPromise`.
149
+ - `not_provided`, `high`, `low`, and `medium` have been added as new values to enum request body parameter `citations.confidence_level` in `add_citations_to_a_draft_request` of `DraftRequest`.
150
+ - `not_provided`, `high`, `low`, and `medium` have been added as new values to enum request body parameter `citations.confidence_level` in `update_a_draft_request` of `DraftRequest`.
151
+ - `not_provided`, `high`, `low`, and `medium` have been added as new values to enum request body parameter `citations.confidence_level` in `create_a_draft_request` of `DraftRequest`.
152
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.is` in `list_omnichannel_one_time_orders` of `OmnichannelOneTimeOrder`.
153
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.is_not` in `list_omnichannel_one_time_orders` of `OmnichannelOneTimeOrder`.
154
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.in` in `list_omnichannel_one_time_orders` of `OmnichannelOneTimeOrder`.
155
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.not_in` in `list_omnichannel_one_time_orders` of `OmnichannelOneTimeOrder`.
156
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.is` in `list_omnichannel_subscriptions` of `OmnichannelSubscription`.
157
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.is_not` in `list_omnichannel_subscriptions` of `OmnichannelSubscription`.
158
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.in` in `list_omnichannel_subscriptions` of `OmnichannelSubscription`.
159
+ - `roku` and `amazon_app_store` have been added as new values to enum query parameter `source.not_in` in `list_omnichannel_subscriptions` of `OmnichannelSubscription`.
160
+ - `bacs`, `pad`, `sepa_core`, `ach`, `autogiro`, `becs_nz`, and `becs` have been added as new values to enum request body parameter `bank_account.scheme` in `create_using_permanent_token` of `PaymentSource`.
161
+ - `archived` and `active` have been added as new values to enum query parameter `status.is` in `list_price_ramps` of `PriceRamp`.
162
+ - `archived` and `active` have been added as new values to enum query parameter `status.is_not` in `list_price_ramps` of `PriceRamp`.
163
+ - `archived` and `active` have been added as new values to enum query parameter `status.in` in `list_price_ramps` of `PriceRamp`.
164
+ - `archived` and `active` have been added as new values to enum query parameter `status.not_in` in `list_price_ramps` of `PriceRamp`.
165
+ - `true` and `false` have been added as new values to enum query parameter `business_entity_id.is_present` in `list_price_ramps` of `PriceRamp`.
166
+ - `true` and `false` have been added as new values to enum query parameter `include_site_level_resources.is` in `list_price_ramps` of `PriceRamp`.
167
+ - `updated_at`, `id`, and `status` have been added as new values to enum query parameter `sort_by.asc` in `list_price_ramps` of `PriceRamp`.
168
+ - `updated_at`, `id`, and `status` have been added as new values to enum query parameter `sort_by.desc` in `list_price_ramps` of `PriceRamp`.
169
+ - `active` and `archived` have been added as new values to enum request body parameter `status` in `update_a_price_ramp` of `PriceRamp`.
170
+
171
+
172
+
1
173
  ### v3.34.0 (2026-09-24)
2
174
  * * *
3
175
  ### New Resources:
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.34.0',
14
+ clientVersion: 'v3.35.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -1710,6 +1710,19 @@ exports.Endpoints = {
1710
1710
  isIdempotent: true,
1711
1711
  },
1712
1712
  ],
1713
+ [
1714
+ 'removePaymentScheduleScheme',
1715
+ 'POST',
1716
+ '/invoices',
1717
+ '/remove_payment_schedule_scheme',
1718
+ true,
1719
+ null,
1720
+ false,
1721
+ {},
1722
+ {
1723
+ isIdempotent: true,
1724
+ },
1725
+ ],
1713
1726
  [
1714
1727
  'paymentSchedules',
1715
1728
  'GET',
@@ -3569,7 +3582,9 @@ exports.Endpoints = {
3569
3582
  false,
3570
3583
  null,
3571
3584
  false,
3572
- {},
3585
+ {
3586
+ attributes: 1,
3587
+ },
3573
3588
  {
3574
3589
  isIdempotent: true,
3575
3590
  },
@@ -4281,6 +4296,50 @@ exports.Endpoints = {
4281
4296
  ],
4282
4297
  ['list', 'GET', '/differential_prices', null, false, null, false, {}, {}],
4283
4298
  ],
4299
+ priceRamp: [
4300
+ [
4301
+ 'create',
4302
+ 'POST',
4303
+ '/price_ramps',
4304
+ null,
4305
+ false,
4306
+ null,
4307
+ false,
4308
+ {},
4309
+ {
4310
+ isIdempotent: true,
4311
+ },
4312
+ ],
4313
+ ['retrieve', 'GET', '/price_ramps', null, true, null, false, {}, {}],
4314
+ [
4315
+ 'update',
4316
+ 'POST',
4317
+ '/price_ramps',
4318
+ null,
4319
+ true,
4320
+ null,
4321
+ false,
4322
+ {},
4323
+ {
4324
+ isIdempotent: true,
4325
+ },
4326
+ ],
4327
+ [
4328
+ 'delete',
4329
+ 'POST',
4330
+ '/price_ramps',
4331
+ '/delete',
4332
+ true,
4333
+ null,
4334
+ false,
4335
+ {},
4336
+ {
4337
+ isIdempotent: true,
4338
+ },
4339
+ ],
4340
+ ['list', 'GET', '/price_ramps', null, false, null, false, {}, {}],
4341
+ ],
4342
+ rampInterval: [],
4284
4343
  configuration: [
4285
4344
  ['list', 'GET', '/configurations', null, false, null, false, {}, {}],
4286
4345
  ],
@@ -4626,6 +4685,34 @@ exports.Endpoints = {
4626
4685
  ],
4627
4686
  ],
4628
4687
  businessEntity: [
4688
+ [
4689
+ 'create',
4690
+ 'POST',
4691
+ '/business_entities',
4692
+ null,
4693
+ false,
4694
+ null,
4695
+ false,
4696
+ {},
4697
+ {
4698
+ isIdempotent: true,
4699
+ },
4700
+ ],
4701
+ ['list', 'GET', '/business_entities', null, false, null, false, {}, {}],
4702
+ ['retrieve', 'GET', '/business_entities', null, true, null, false, {}, {}],
4703
+ [
4704
+ 'update',
4705
+ 'POST',
4706
+ '/business_entities',
4707
+ null,
4708
+ true,
4709
+ null,
4710
+ false,
4711
+ {},
4712
+ {
4713
+ isIdempotent: true,
4714
+ },
4715
+ ],
4629
4716
  [
4630
4717
  'createTransfers',
4631
4718
  'POST',
@@ -5007,7 +5094,12 @@ exports.Endpoints = {
5007
5094
  ],
5008
5095
  omnichannelOneTimeOrderItem: [],
5009
5096
  rule: [['retrieve', 'GET', '/rules', null, true, null, false, {}, {}]],
5097
+ retrySegment: [
5098
+ ['retrieve', 'GET', '/retry_segments', null, true, null, false, {}, {}],
5099
+ ],
5010
5100
  meter: [['list', 'GET', '/meters', null, false, null, false, {}, {}]],
5101
+ groupByAttribute: [],
5102
+ groupByRecommendation: [],
5011
5103
  usageEvent: [
5012
5104
  [
5013
5105
  'create',
@@ -5091,6 +5183,7 @@ exports.Endpoints = {
5091
5183
  ],
5092
5184
  ],
5093
5185
  customDataSchema: [],
5186
+ customData: [],
5094
5187
  usageFile: [
5095
5188
  [
5096
5189
  'uploadUrl',
@@ -5348,7 +5441,6 @@ exports.Endpoints = {
5348
5441
  ],
5349
5442
  applyRule: [],
5350
5443
  appliedRule: [],
5351
- appliedBusinessRule: [],
5352
5444
  businessRuleset: [
5353
5445
  [
5354
5446
  'create',
@@ -5464,6 +5556,10 @@ exports.Endpoints = {
5464
5556
  ['retrieve', 'GET', '/business_rulesets', null, true, null, false, {}, {}],
5465
5557
  ],
5466
5558
  businessRulesetRule: [],
5559
+ draftRequest: [],
5560
+ citation: [],
5561
+ execution: [],
5562
+ draftEstimate: [],
5467
5563
  usageSummary: [
5468
5564
  [
5469
5565
  'retrieveUsageSummaryForSubscription',
@@ -5569,6 +5665,71 @@ exports.Endpoints = {
5569
5665
  {},
5570
5666
  ],
5571
5667
  ],
5668
+ collectionsPaymentPromise: [
5669
+ [
5670
+ 'retrieve',
5671
+ 'GET',
5672
+ '/collections_payment_promises',
5673
+ null,
5674
+ true,
5675
+ null,
5676
+ false,
5677
+ {},
5678
+ {},
5679
+ ],
5680
+ [
5681
+ 'listCollectionsPaymentPromises',
5682
+ 'GET',
5683
+ '/collections_payment_promises',
5684
+ null,
5685
+ false,
5686
+ null,
5687
+ false,
5688
+ {},
5689
+ {},
5690
+ ],
5691
+ [
5692
+ 'createCollectionsPaymentPromise',
5693
+ 'POST',
5694
+ '/collections_payment_promises',
5695
+ null,
5696
+ false,
5697
+ null,
5698
+ false,
5699
+ {},
5700
+ {},
5701
+ ],
5702
+ [
5703
+ 'updateCollectionsPaymentPromise',
5704
+ 'POST',
5705
+ '/collections_payment_promises',
5706
+ null,
5707
+ true,
5708
+ null,
5709
+ false,
5710
+ {},
5711
+ {
5712
+ isIdempotent: true,
5713
+ },
5714
+ ],
5715
+ [
5716
+ 'cancel',
5717
+ 'POST',
5718
+ '/collections_payment_promises',
5719
+ '/cancel',
5720
+ true,
5721
+ null,
5722
+ false,
5723
+ {},
5724
+ {},
5725
+ ],
5726
+ ],
5727
+ collectionsDispute: [],
5728
+ collectionsReminderSequence: [],
5729
+ emailConversation: [],
5730
+ emailMessage: [],
5731
+ privateNote: [],
5732
+ emailAttachment: [],
5572
5733
  ledgerAccountBalance: [
5573
5734
  [
5574
5735
  'listLedgerAccountBalances',
@@ -5581,6 +5742,17 @@ exports.Endpoints = {
5581
5742
  {},
5582
5743
  {},
5583
5744
  ],
5745
+ [
5746
+ 'updateOverdraftLimit',
5747
+ 'POST',
5748
+ '/ledger_account_balances',
5749
+ '/update_overdraft_limit',
5750
+ false,
5751
+ null,
5752
+ false,
5753
+ {},
5754
+ {},
5755
+ ],
5584
5756
  ],
5585
5757
  ledgerOperation: [
5586
5758
  [
@@ -26,7 +26,6 @@ var WebhookEventType;
26
26
  WebhookEventType["BusinessRuleDeleted"] = "business_rule_deleted";
27
27
  WebhookEventType["BusinessRuleReleased"] = "business_rule_released";
28
28
  WebhookEventType["BusinessRuleUpdated"] = "business_rule_updated";
29
- WebhookEventType["BusinessRulesApplied"] = "business_rules_applied";
30
29
  WebhookEventType["BusinessRulesetActivated"] = "business_ruleset_activated";
31
30
  WebhookEventType["BusinessRulesetCreated"] = "business_ruleset_created";
32
31
  WebhookEventType["BusinessRulesetDeactivated"] = "business_ruleset_deactivated";
@@ -37,6 +36,22 @@ var WebhookEventType;
37
36
  WebhookEventType["CardExpired"] = "card_expired";
38
37
  WebhookEventType["CardExpiryReminder"] = "card_expiry_reminder";
39
38
  WebhookEventType["CardUpdated"] = "card_updated";
39
+ WebhookEventType["ChargebackInitiated"] = "chargeback_initiated";
40
+ WebhookEventType["ChargebackLost"] = "chargeback_lost";
41
+ WebhookEventType["ChargebackWon"] = "chargeback_won";
42
+ WebhookEventType["CollectionsDisputeCreated"] = "collections_dispute_created";
43
+ WebhookEventType["CollectionsDisputeResolved"] = "collections_dispute_resolved";
44
+ WebhookEventType["CollectionsDisputeUpdated"] = "collections_dispute_updated";
45
+ WebhookEventType["CollectionsDisputeWithdrawn"] = "collections_dispute_withdrawn";
46
+ WebhookEventType["CollectionsPaymentPromiseBroken"] = "collections_payment_promise_broken";
47
+ WebhookEventType["CollectionsPaymentPromiseCancelled"] = "collections_payment_promise_cancelled";
48
+ WebhookEventType["CollectionsPaymentPromiseCreated"] = "collections_payment_promise_created";
49
+ WebhookEventType["CollectionsPaymentPromiseFulfilled"] = "collections_payment_promise_fulfilled";
50
+ WebhookEventType["CollectionsPaymentPromiseUpdated"] = "collections_payment_promise_updated";
51
+ WebhookEventType["CollectionsReminderSequenceCompleted"] = "collections_reminder_sequence_completed";
52
+ WebhookEventType["CollectionsReminderSequenceCreated"] = "collections_reminder_sequence_created";
53
+ WebhookEventType["CollectionsReminderSequencePaused"] = "collections_reminder_sequence_paused";
54
+ WebhookEventType["CollectionsReminderSequenceResumed"] = "collections_reminder_sequence_resumed";
40
55
  WebhookEventType["ContractTermCancelled"] = "contract_term_cancelled";
41
56
  WebhookEventType["ContractTermCompleted"] = "contract_term_completed";
42
57
  WebhookEventType["ContractTermCreated"] = "contract_term_created";
@@ -68,6 +83,7 @@ var WebhookEventType;
68
83
  WebhookEventType["DunningUpdated"] = "dunning_updated";
69
84
  WebhookEventType["EinvoiceCreated"] = "einvoice_created";
70
85
  WebhookEventType["EinvoiceUpdated"] = "einvoice_updated";
86
+ WebhookEventType["EmailMessageReceived"] = "email_message_received";
71
87
  WebhookEventType["EntitlementOverridesAutoRemoved"] = "entitlement_overrides_auto_removed";
72
88
  WebhookEventType["EntitlementOverridesRemoved"] = "entitlement_overrides_removed";
73
89
  WebhookEventType["EntitlementOverridesUpdated"] = "entitlement_overrides_updated";
@@ -155,6 +171,7 @@ var WebhookEventType;
155
171
  WebhookEventType["PaymentRefunded"] = "payment_refunded";
156
172
  WebhookEventType["PaymentScheduleSchemeCreated"] = "payment_schedule_scheme_created";
157
173
  WebhookEventType["PaymentScheduleSchemeDeleted"] = "payment_schedule_scheme_deleted";
174
+ WebhookEventType["PaymentSchedulesCancelled"] = "payment_schedules_cancelled";
158
175
  WebhookEventType["PaymentSchedulesCreated"] = "payment_schedules_created";
159
176
  WebhookEventType["PaymentSchedulesUpdated"] = "payment_schedules_updated";
160
177
  WebhookEventType["PaymentSourceAdded"] = "payment_source_added";
@@ -170,9 +187,13 @@ var WebhookEventType;
170
187
  WebhookEventType["PlanCreated"] = "plan_created";
171
188
  WebhookEventType["PlanDeleted"] = "plan_deleted";
172
189
  WebhookEventType["PlanUpdated"] = "plan_updated";
190
+ WebhookEventType["PriceRampCreated"] = "price_ramp_created";
191
+ WebhookEventType["PriceRampDeleted"] = "price_ramp_deleted";
192
+ WebhookEventType["PriceRampUpdated"] = "price_ramp_updated";
173
193
  WebhookEventType["PriceVariantCreated"] = "price_variant_created";
174
194
  WebhookEventType["PriceVariantDeleted"] = "price_variant_deleted";
175
195
  WebhookEventType["PriceVariantUpdated"] = "price_variant_updated";
196
+ WebhookEventType["PrivateNoteAdded"] = "private_note_added";
176
197
  WebhookEventType["ProductCreated"] = "product_created";
177
198
  WebhookEventType["ProductDeleted"] = "product_deleted";
178
199
  WebhookEventType["ProductUpdated"] = "product_updated";
@@ -183,6 +204,7 @@ var WebhookEventType;
183
204
  WebhookEventType["QuoteDeleted"] = "quote_deleted";
184
205
  WebhookEventType["QuoteUpdated"] = "quote_updated";
185
206
  WebhookEventType["RecordPurchaseFailed"] = "record_purchase_failed";
207
+ WebhookEventType["RefundFailed"] = "refund_failed";
186
208
  WebhookEventType["RefundInitiated"] = "refund_initiated";
187
209
  WebhookEventType["RuleCreated"] = "rule_created";
188
210
  WebhookEventType["RuleDeleted"] = "rule_deleted";
@@ -1,10 +1,36 @@
1
1
  "use strict";
2
2
  // Generated Zod schemas: BusinessEntity
3
- // Actions: createTransfers, getTransfers
3
+ // Actions: create, list, update, createTransfers, getTransfers
4
4
  // Do not edit manually – regenerate via sdk-generator
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GetTransfersBusinessEntityBodySchema = exports.CreateTransfersBusinessEntityBodySchema = void 0;
6
+ exports.GetTransfersBusinessEntityBodySchema = exports.CreateTransfersBusinessEntityBodySchema = exports.UpdateBusinessEntityBodySchema = exports.ListBusinessEntityBodySchema = exports.CreateBusinessEntityBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
+ //BusinessEntity.create
9
+ const CreateBusinessEntityBodySchema = zod_1.z.looseObject({
10
+ name: zod_1.z.string().max(100),
11
+ status: zod_1.z.enum(['active', 'inactive']),
12
+ });
13
+ exports.CreateBusinessEntityBodySchema = CreateBusinessEntityBodySchema;
14
+ //BusinessEntity.list
15
+ const ListBusinessEntityNameSchema = zod_1.z.object({
16
+ is: zod_1.z.string().min(1).optional(),
17
+ is_not: zod_1.z.string().min(1).optional(),
18
+ starts_with: zod_1.z.string().min(1).optional(),
19
+ is_present: zod_1.z.enum(['true', 'false']).optional(),
20
+ });
21
+ const ListBusinessEntityBodySchema = zod_1.z.looseObject({
22
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
23
+ offset: zod_1.z.string().max(1000).optional(),
24
+ include_deleted: zod_1.z.boolean().default(false).optional(),
25
+ name: ListBusinessEntityNameSchema.optional(),
26
+ });
27
+ exports.ListBusinessEntityBodySchema = ListBusinessEntityBodySchema;
28
+ //BusinessEntity.update
29
+ const UpdateBusinessEntityBodySchema = zod_1.z.looseObject({
30
+ name: zod_1.z.string().max(100).optional(),
31
+ status: zod_1.z.enum(['active', 'inactive']).optional(),
32
+ });
33
+ exports.UpdateBusinessEntityBodySchema = UpdateBusinessEntityBodySchema;
8
34
  //BusinessEntity.createTransfers
9
35
  const CreateTransfersBusinessEntityBodySchema = zod_1.z.looseObject({
10
36
  active_resource_ids: zod_1.z.array(zod_1.z.string().max(50).optional()),
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // Generated Zod schemas: CollectionsPaymentPromise
3
+ // Actions: listCollectionsPaymentPromises, createCollectionsPaymentPromise, updateCollectionsPaymentPromise
4
+ // Do not edit manually – regenerate via sdk-generator
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = exports.CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = exports.ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = void 0;
7
+ const zod_1 = require("zod");
8
+ //CollectionsPaymentPromise.listCollectionsPaymentPromises
9
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseCustomerIdSchema = zod_1.z.object({
10
+ is: zod_1.z.string().min(1).optional(),
11
+ });
12
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseInvoiceIdSchema = zod_1.z.object({
13
+ is: zod_1.z.string().min(1).optional(),
14
+ });
15
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseStatusSchema = zod_1.z.object({
16
+ is: zod_1.z.enum(['active', 'fulfilled', 'broken', 'cancelled']).optional(),
17
+ });
18
+ const ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = zod_1.z.looseObject({
19
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
20
+ offset: zod_1.z.string().max(1000).optional(),
21
+ customer_id: ListCollectionsPaymentPromisesCollectionsPaymentPromiseCustomerIdSchema.optional(),
22
+ invoice_id: ListCollectionsPaymentPromisesCollectionsPaymentPromiseInvoiceIdSchema.optional(),
23
+ status: ListCollectionsPaymentPromisesCollectionsPaymentPromiseStatusSchema.optional(),
24
+ });
25
+ exports.ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema = ListCollectionsPaymentPromisesCollectionsPaymentPromiseBodySchema;
26
+ //CollectionsPaymentPromise.createCollectionsPaymentPromise
27
+ const CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = zod_1.z.looseObject({
28
+ customer_id: zod_1.z.string().max(100),
29
+ invoice_id: zod_1.z.string().max(100).optional(),
30
+ amount: zod_1.z.number().int(),
31
+ currency_code: zod_1.z.string().max(3).optional(),
32
+ promised_on: zod_1.z.number().int(),
33
+ reason: zod_1.z.string().max(500).optional(),
34
+ promised_by: zod_1.z.string().max(254).optional(),
35
+ });
36
+ exports.CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = CreateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema;
37
+ //CollectionsPaymentPromise.updateCollectionsPaymentPromise
38
+ const UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = zod_1.z.looseObject({
39
+ promised_on: zod_1.z.number().int().optional(),
40
+ reason: zod_1.z.string().max(500).optional(),
41
+ promised_by: zod_1.z.string().max(254).optional(),
42
+ });
43
+ exports.UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema = UpdateCollectionsPaymentPromiseCollectionsPaymentPromiseBodySchema;
@@ -23,6 +23,7 @@ const CreateCommentBodySchema = zod_1.z.looseObject({
23
23
  'item',
24
24
  'item_price',
25
25
  'price_variant',
26
+ 'task',
26
27
  ]),
27
28
  entity_id: zod_1.z.string().max(100),
28
29
  notes: zod_1.z.string().max(1000),
@@ -60,6 +61,7 @@ const ListCommentBodySchema = zod_1.z.looseObject({
60
61
  'item',
61
62
  'item_price',
62
63
  'price_variant',
64
+ 'task',
63
65
  ])
64
66
  .optional(),
65
67
  entity_id: zod_1.z.string().max(100).optional(),
@@ -259,8 +259,8 @@ const ListCouponCurrencyCodeSchema = zod_1.z.object({
259
259
  not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
260
260
  });
261
261
  const ListCouponApplicableItemPriceIdsSchema = zod_1.z.object({
262
- is: zod_1.z.string().min(1).optional(),
263
262
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
263
+ is: zod_1.z.string().min(1).optional(),
264
264
  });
265
265
  const ListCouponBodySchema = zod_1.z.looseObject({
266
266
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -508,6 +508,7 @@ const ImportCreditNoteCreditNoteBodySchema = zod_1.z.looseObject({
508
508
  currency_code: zod_1.z.string().max(3).optional(),
509
509
  create_reason_code: zod_1.z.string().max(100),
510
510
  date: zod_1.z.number().int(),
511
+ customer_notes: zod_1.z.string().max(2000).optional(),
511
512
  status: zod_1.z.enum(['adjusted', 'refunded', 'refund_due', 'voided']).optional(),
512
513
  total: zod_1.z.number().int().min(0).optional(),
513
514
  refunded_at: zod_1.z.number().int().optional(),
@@ -7,12 +7,12 @@ exports.UpdateCreditUnitBodySchema = exports.CreateCreditUnitBodySchema = export
7
7
  const zod_1 = require("zod");
8
8
  //CreditUnit.list
9
9
  const ListCreditUnitStatusSchema = zod_1.z.object({
10
- is: zod_1.z.enum(['active', 'archived']).optional(),
11
10
  in: zod_1.z.enum(['active', 'archived']).optional(),
11
+ is: zod_1.z.enum(['active', 'archived']).optional(),
12
12
  });
13
13
  const ListCreditUnitIdSchema = zod_1.z.object({
14
- is: zod_1.z.string().min(1).optional(),
15
14
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
15
+ is: zod_1.z.string().min(1).optional(),
16
16
  });
17
17
  const ListCreditUnitBodySchema = zod_1.z.looseObject({
18
18
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -7,12 +7,12 @@ exports.ListEinvoicesEinvoiceBodySchema = void 0;
7
7
  const zod_1 = require("zod");
8
8
  //Einvoice.listEinvoices
9
9
  const ListEinvoicesEinvoiceIdSchema = zod_1.z.object({
10
- is: zod_1.z.string().min(1).optional(),
11
10
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
11
+ is: zod_1.z.string().min(1).optional(),
12
12
  });
13
13
  const ListEinvoicesEinvoiceReferenceIdSchema = zod_1.z.object({
14
- is: zod_1.z.string().min(1).optional(),
15
14
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
15
+ is: zod_1.z.string().min(1).optional(),
16
16
  });
17
17
  const ListEinvoicesEinvoiceUpdatedAtSchema = zod_1.z.object({
18
18
  after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),