chargebee 2.80.0 → 2.82.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +177 -0
  3. data/Gemfile.lock +3 -3
  4. data/VERSION +1 -1
  5. data/chargebee.gemspec +20 -2
  6. data/lib/chargebee/models/business_entity.rb +32 -0
  7. data/lib/chargebee/models/citation.rb +10 -0
  8. data/lib/chargebee/models/collections_dispute.rb +12 -0
  9. data/lib/chargebee/models/collections_payment_promise.rb +48 -0
  10. data/lib/chargebee/models/collections_reminder_sequence.rb +15 -0
  11. data/lib/chargebee/models/custom_data.rb +10 -0
  12. data/lib/chargebee/models/draft_estimate.rb +10 -0
  13. data/lib/chargebee/models/draft_request.rb +24 -0
  14. data/lib/chargebee/models/email_attachment.rb +11 -0
  15. data/lib/chargebee/models/email_conversation.rb +11 -0
  16. data/lib/chargebee/models/email_log.rb +1 -1
  17. data/lib/chargebee/models/email_message.rb +16 -0
  18. data/lib/chargebee/models/execution.rb +10 -0
  19. data/lib/chargebee/models/gateway_payment_method_token.rb +2 -2
  20. data/lib/chargebee/models/group_by_attribute.rb +11 -0
  21. data/lib/chargebee/models/group_by_recommendation.rb +10 -0
  22. data/lib/chargebee/models/invoice.rb +13 -4
  23. data/lib/chargebee/models/item_price.rb +7 -6
  24. data/lib/chargebee/models/ledger_account_balance.rb +7 -0
  25. data/lib/chargebee/models/meter.rb +1 -1
  26. data/lib/chargebee/models/metered_feature.rb +2 -1
  27. data/lib/chargebee/models/omnichannel_subscription.rb +1 -1
  28. data/lib/chargebee/models/omnichannel_subscription_item.rb +4 -3
  29. data/lib/chargebee/models/payment_source.rb +1 -1
  30. data/lib/chargebee/models/preference_variant.rb +10 -0
  31. data/lib/chargebee/models/price_ramp.rb +56 -0
  32. data/lib/chargebee/models/private_note.rb +11 -0
  33. data/lib/chargebee/models/ramp.rb +2 -2
  34. data/lib/chargebee/models/ramp_interval.rb +11 -0
  35. data/lib/chargebee/models/retry_segment.rb +17 -0
  36. data/lib/chargebee/models/transaction.rb +5 -1
  37. data/lib/chargebee/models/usage.rb +1 -0
  38. data/lib/chargebee/models/usage_summary.rb +2 -1
  39. data/lib/chargebee/result.rb +96 -6
  40. data/lib/chargebee.rb +19 -2
  41. data/lib/ssl/ca-certs.crt +0 -24
  42. metadata +20 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df69efc68ee684b76baea32d80f78c6ef54c72fda0cce77f550896978fbe1a51
4
- data.tar.gz: 8748ad061ff0ed6bb00ca20be1a46a9406ea00e0263070f9b7aa0bb73aa541e9
3
+ metadata.gz: f38d5173798b5f13392a97c9db86d22bbfc768036aaf4f8658fccb3117f51c34
4
+ data.tar.gz: f915ed49f419973525ca4e804ea18bf58792c51faef08b397073b713775eed22
5
5
  SHA512:
6
- metadata.gz: ef600d711ad42d7e61e8d1a74fe0142c6c2dc13041d36ed23f47a0302ceefb7904221583e1bc7720341c97543fe45ce5cca0ade9994479f4fa62e47f7363f04d
7
- data.tar.gz: 5b9a01d7daa9928175d310fd662b777b20f08bd9badb77df58cf612622e49457345ff7733d4f982ac648019c3efe282846623f8facb3e56027b2ecce67cf71d3
6
+ metadata.gz: 57b46a847849c1c7fdb998e524bb471ea0402a07a9562b574927da69b4bb4a1e17a4a90f4935e76305b6017fb3ae17ab45db2ded520bc5d84f2c2688b21f7ded
7
+ data.tar.gz: bc5e756263bfe4bce4533f75009ac4e27239494e95f53fc272583c221fa3c6eef5ab45777355b067e73ee5ce453ac91bf06ec142ddbc1c00fbbc78d3d8012f16
data/CHANGELOG.md CHANGED
@@ -1,3 +1,180 @@
1
+ ### v2.82.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
+
173
+ ### v2.81.0 (2026-10-27)
174
+ * * *
175
+ #### Security Fix:
176
+ - Removed the **AAA Certificate Services** root certificate from the bundled CA certificate store (`lib/ssl/ca-certs.crt`). This root is linked to six compromised eMudhra intermediate certificates whose private keys were publicly leaked on 2026-10-20. Browsers and operating systems have already revoked trust in this root, but the gem's bundled certificate store was still trusting it, leaving applications vulnerable to man-in-the-middle attacks.
177
+
1
178
  ### v2.80.0 (2026-09-24)
2
179
  * * *
3
180
  ### New Resources:
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.80.0)
4
+ chargebee (2.82.0)
5
5
  cgi (>= 0.1.0, < 1.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.8.7)
11
- public_suffix (>= 2.0.2, < 7.0)
10
+ addressable (2.9.0)
11
+ public_suffix (>= 2.0.2, < 8.0)
12
12
  bigdecimal (3.2.2)
13
13
  cgi (0.5.2)
14
14
  crack (1.0.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.80.0
1
+ 2.82.0
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
  s.required_ruby_version = '>= 1.9.3'
6
6
  s.name = 'chargebee'
7
- s.version = '2.80.0'
8
- s.date = '2026-09-24'
7
+ s.version = '2.82.0'
8
+ s.date = '2026-11-02'
9
9
  s.summary = "Ruby client for Chargebee API."
10
10
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
11
11
  s.metadata = {
@@ -62,6 +62,10 @@ Gem::Specification.new do |s|
62
62
  lib/chargebee/models/business_ruleset.rb
63
63
  lib/chargebee/models/business_ruleset_rule.rb
64
64
  lib/chargebee/models/card.rb
65
+ lib/chargebee/models/citation.rb
66
+ lib/chargebee/models/collections_dispute.rb
67
+ lib/chargebee/models/collections_payment_promise.rb
68
+ lib/chargebee/models/collections_reminder_sequence.rb
65
69
  lib/chargebee/models/column_definition.rb
66
70
  lib/chargebee/models/comment.rb
67
71
  lib/chargebee/models/configuration.rb
@@ -76,6 +80,7 @@ Gem::Specification.new do |s|
76
80
  lib/chargebee/models/credit_unit.rb
77
81
  lib/chargebee/models/csv_tax_rule.rb
78
82
  lib/chargebee/models/currency.rb
83
+ lib/chargebee/models/custom_data.rb
79
84
  lib/chargebee/models/custom_data_schema.rb
80
85
  lib/chargebee/models/customer.rb
81
86
  lib/chargebee/models/customer_entitlement.rb
@@ -83,12 +88,18 @@ Gem::Specification.new do |s|
83
88
  lib/chargebee/models/discount.rb
84
89
  lib/chargebee/models/dispute.rb
85
90
  lib/chargebee/models/download.rb
91
+ lib/chargebee/models/draft_estimate.rb
92
+ lib/chargebee/models/draft_request.rb
86
93
  lib/chargebee/models/einvoice.rb
94
+ lib/chargebee/models/email_attachment.rb
95
+ lib/chargebee/models/email_conversation.rb
87
96
  lib/chargebee/models/email_log.rb
97
+ lib/chargebee/models/email_message.rb
88
98
  lib/chargebee/models/entitlement.rb
89
99
  lib/chargebee/models/entitlement_override.rb
90
100
  lib/chargebee/models/estimate.rb
91
101
  lib/chargebee/models/event.rb
102
+ lib/chargebee/models/execution.rb
92
103
  lib/chargebee/models/export.rb
93
104
  lib/chargebee/models/feature.rb
94
105
  lib/chargebee/models/filter_condition.rb
@@ -96,6 +107,8 @@ Gem::Specification.new do |s|
96
107
  lib/chargebee/models/gateway_payment_method_token.rb
97
108
  lib/chargebee/models/gift.rb
98
109
  lib/chargebee/models/grant_block.rb
110
+ lib/chargebee/models/group_by_attribute.rb
111
+ lib/chargebee/models/group_by_recommendation.rb
99
112
  lib/chargebee/models/hierarchy.rb
100
113
  lib/chargebee/models/hosted_page.rb
101
114
  lib/chargebee/models/impacted_customer.rb
@@ -138,8 +151,11 @@ Gem::Specification.new do |s|
138
151
  lib/chargebee/models/personalized_offer.rb
139
152
  lib/chargebee/models/plan.rb
140
153
  lib/chargebee/models/portal_session.rb
154
+ lib/chargebee/models/preference_variant.rb
155
+ lib/chargebee/models/price_ramp.rb
141
156
  lib/chargebee/models/price_variant.rb
142
157
  lib/chargebee/models/pricing_page_session.rb
158
+ lib/chargebee/models/private_note.rb
143
159
  lib/chargebee/models/promotional_credit.rb
144
160
  lib/chargebee/models/promotional_grant.rb
145
161
  lib/chargebee/models/purchase.rb
@@ -151,8 +167,10 @@ Gem::Specification.new do |s|
151
167
  lib/chargebee/models/quoted_ramp.rb
152
168
  lib/chargebee/models/quoted_subscription.rb
153
169
  lib/chargebee/models/ramp.rb
170
+ lib/chargebee/models/ramp_interval.rb
154
171
  lib/chargebee/models/recorded_purchase.rb
155
172
  lib/chargebee/models/resource_migration.rb
173
+ lib/chargebee/models/retry_segment.rb
156
174
  lib/chargebee/models/rule.rb
157
175
  lib/chargebee/models/site_migration_detail.rb
158
176
  lib/chargebee/models/subscription.rb
@@ -6,6 +6,38 @@ module ChargeBee
6
6
  # OPERATIONS
7
7
  #-----------
8
8
 
9
+ def self.create(params, env=nil, headers={})
10
+ jsonKeys = {
11
+ }
12
+ options = {
13
+ :isIdempotent => true
14
+ }
15
+ Request.send('post', uri_path("business_entities"), params, env, headers,nil, false, jsonKeys, options, "businessEntity", "create")
16
+ end
17
+
18
+ def self.list(params={}, env=nil, headers={})
19
+ jsonKeys = {
20
+ }
21
+ options = {}
22
+ Request.send_list_request('get', uri_path("business_entities"), params, env, headers,nil, false, jsonKeys, options, "businessEntity", "list")
23
+ end
24
+
25
+ def self.retrieve(id, env=nil, headers={})
26
+ jsonKeys = {
27
+ }
28
+ options = {}
29
+ Request.send('get', uri_path("business_entities",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "businessEntity", "retrieve")
30
+ end
31
+
32
+ def self.update(id, params={}, env=nil, headers={})
33
+ jsonKeys = {
34
+ }
35
+ options = {
36
+ :isIdempotent => true
37
+ }
38
+ Request.send('post', uri_path("business_entities",id.to_s), params, env, headers,nil, false, jsonKeys, options, "businessEntity", "update")
39
+ end
40
+
9
41
  def self.create_transfers(params, env=nil, headers={})
10
42
  jsonKeys = {
11
43
  }
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class Citation < Model
3
+
4
+ attr_accessor :id, :param_name, :author_name, :confidence_level, :created_at, :content
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~Citation
10
+ end # ~ChargeBee
@@ -0,0 +1,12 @@
1
+ module ChargeBee
2
+ class CollectionsDispute < Model
3
+
4
+ attr_accessor :id, :customer_id, :invoice_id, :line_item_id, :currency_code, :billed_amount,
5
+ :claimed_deduction, :status, :dispute_reason_code, :resolved_reason_code, :reason, :opened_at,
6
+ :resolved_at, :created_at, :updated_at, :resource_version, :undisputed_amount
7
+
8
+ # OPERATIONS
9
+ #-----------
10
+
11
+ end # ~CollectionsDispute
12
+ end # ~ChargeBee
@@ -0,0 +1,48 @@
1
+ module ChargeBee
2
+ class CollectionsPaymentPromise < Model
3
+
4
+ attr_accessor :id, :customer_id, :invoice_id, :status, :reason, :promised_by, :promised_on,
5
+ :created_at, :updated_at, :resource_version
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ def self.retrieve(id, env=nil, headers={})
11
+ jsonKeys = {
12
+ }
13
+ options = {}
14
+ Request.send('get', uri_path("collections_payment_promises",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "collectionsPaymentPromise", "retrieve")
15
+ end
16
+
17
+ def self.list_collections_payment_promises(params={}, env=nil, headers={})
18
+ jsonKeys = {
19
+ }
20
+ options = {}
21
+ Request.send('get', uri_path("collections_payment_promises"), params, env, headers,nil, false, jsonKeys, options, "collectionsPaymentPromise", "listCollectionsPaymentPromises")
22
+ end
23
+
24
+ def self.create_collections_payment_promise(params, env=nil, headers={})
25
+ jsonKeys = {
26
+ }
27
+ options = {}
28
+ Request.send('post', uri_path("collections_payment_promises"), params, env, headers,nil, false, jsonKeys, options, "collectionsPaymentPromise", "createCollectionsPaymentPromise")
29
+ end
30
+
31
+ def self.update_collections_payment_promise(id, params={}, env=nil, headers={})
32
+ jsonKeys = {
33
+ }
34
+ options = {
35
+ :isIdempotent => true
36
+ }
37
+ Request.send('post', uri_path("collections_payment_promises",id.to_s), params, env, headers,nil, false, jsonKeys, options, "collectionsPaymentPromise", "updateCollectionsPaymentPromise")
38
+ end
39
+
40
+ def self.cancel(id, env=nil, headers={})
41
+ jsonKeys = {
42
+ }
43
+ options = {}
44
+ Request.send('post', uri_path("collections_payment_promises",id.to_s,"cancel"), {}, env, headers,nil, false, jsonKeys, options, "collectionsPaymentPromise", "cancel")
45
+ end
46
+
47
+ end # ~CollectionsPaymentPromise
48
+ end # ~ChargeBee
@@ -0,0 +1,15 @@
1
+ module ChargeBee
2
+ class CollectionsReminderSequence < Model
3
+
4
+ class ActionLog < Model
5
+ attr_accessor :action_type, :status, :reason_code, :executed_at, :scheduled_at
6
+ end
7
+
8
+ attr_accessor :id, :invoice_id, :customer_id, :status, :paused_until, :pause_note, :started_at,
9
+ :completed_at, :created_at, :updated_at, :resource_version, :action_logs
10
+
11
+ # OPERATIONS
12
+ #-----------
13
+
14
+ end # ~CollectionsReminderSequence
15
+ end # ~ChargeBee
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class CustomData < Model
3
+
4
+ attr_accessor :entity_type, :id, :schema_id, :schema_values, :created_at, :modified_at, :updated_at
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~CustomData
10
+ end # ~ChargeBee
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class DraftEstimate < Model
3
+
4
+ attr_accessor :status, :http_status, :created_at, :result, :error_detail, :revision_version
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~DraftEstimate
10
+ end # ~ChargeBee
@@ -0,0 +1,24 @@
1
+ module ChargeBee
2
+ class DraftRequest < Model
3
+
4
+ class DraftRevision < Model
5
+ attr_accessor :version, :created_at, :payload
6
+ end
7
+
8
+ class Validation < Model
9
+ attr_accessor :category, :level, :message, :param_name, :type
10
+ end
11
+
12
+ class Execution < Model
13
+ attr_accessor :status, :created_at, :result, :error_detail, :revision_version
14
+ end
15
+
16
+ attr_accessor :id, :path_param, :request_uri, :operation_id, :status, :executed_at, :created_at,
17
+ :resource_version, :updated_at, :current_revision, :validations, :has_comments, :has_citations,
18
+ :executions
19
+
20
+ # OPERATIONS
21
+ #-----------
22
+
23
+ end # ~DraftRequest
24
+ end # ~ChargeBee
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class EmailAttachment < Model
3
+
4
+ attr_accessor :id, :email_message_id, :file_name, :content_type, :size_bytes, :content_disposition,
5
+ :created_at, :updated_at, :resource_version
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~EmailAttachment
11
+ end # ~ChargeBee
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class EmailConversation < Model
3
+
4
+ attr_accessor :id, :customer_id, :mailbox_id, :subject, :last_message_preview, :message_count,
5
+ :status, :last_message_at, :created_at, :updated_at, :resource_version
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~EmailConversation
11
+ end # ~ChargeBee
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class EmailLog < Model
3
3
 
4
4
  attr_accessor :id, :template_name, :from_address, :to_address, :subject, :status, :sent_on,
5
- :customer_id, :site_id, :business_entity_id, :brand_id, :error_message
5
+ :customer_id, :email_conversation_id, :site_id, :business_entity_id, :brand_id, :error_message
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -0,0 +1,16 @@
1
+ module ChargeBee
2
+ class EmailMessage < Model
3
+
4
+ class Attachment < Model
5
+ attr_accessor :id, :email_message_id, :file_name, :content_type, :size_bytes, :content_disposition, :created_at, :updated_at, :resource_version
6
+ end
7
+
8
+ attr_accessor :id, :email_conversation_id, :message_type, :author_type, :send_status, :content_html,
9
+ :content_text, :created_at, :updated_at, :resource_version, :mailbox_id, :author_id, :author_name,
10
+ :from_email, :to_emails, :cc_emails, :attachments
11
+
12
+ # OPERATIONS
13
+ #-----------
14
+
15
+ end # ~EmailMessage
16
+ end # ~ChargeBee
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class Execution < Model
3
+
4
+ attr_accessor :status, :created_at, :result, :error_detail, :revision_version
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~Execution
10
+ end # ~ChargeBee
@@ -1,8 +1,8 @@
1
1
  module ChargeBee
2
2
  class GatewayPaymentMethodToken < Model
3
3
 
4
- attr_accessor :id, :gateway_account_id, :gateway_name, :gateway_customer_id, :gateway_token,
5
- :status, :created_at, :updated_at
4
+ attr_accessor :id, :gateway_account_id, :gateway, :gateway_customer_id, :gateway_token, :status,
5
+ :created_at, :updated_at
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class GroupByAttribute < Model
3
+
4
+ attr_accessor :attribute_name, :rank, :coverage_percent, :cardinality, :remaining_value_count,
5
+ :warning, :sample_values, :warning_reasons
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~GroupByAttribute
11
+ end # ~ChargeBee
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class GroupByRecommendation < Model
3
+
4
+ attr_accessor :attribute_name, :rank, :reason
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~GroupByRecommendation
10
+ end # ~ChargeBee
@@ -101,10 +101,10 @@ module ChargeBee
101
101
  :line_items_next_offset, :exchange_rates, :first_invoice, :new_sales_amount, :has_advance_charges,
102
102
  :term_finalized, :is_gifted, :generated_at, :expected_payment_date, :amount_to_collect, :round_off_amount,
103
103
  :line_items, :line_item_tiers, :line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses,
104
- :discounts, :taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts,
105
- :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address,
106
- :billing_address, :statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category,
107
- :vat_number_prefix, :channel, :business_entity_id, :brand_id, :site_details_at_creation
104
+ :discounts, :taxes, :tax_origin, :linked_payments, :reference_transactions, :retry_segment_id,
105
+ :dunning_attempts, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
106
+ :notes, :shipping_address, :billing_address, :statement_descriptor, :einvoice, :void_reason_code,
107
+ :deleted, :tax_category, :vat_number_prefix, :channel, :business_entity_id, :brand_id, :site_details_at_creation
108
108
 
109
109
  # OPERATIONS
110
110
  #-----------
@@ -455,6 +455,15 @@ module ChargeBee
455
455
  Request.send('post', uri_path("invoices",id.to_s,"apply_payment_schedule_scheme"), params, env, headers,nil, false, jsonKeys, options, "invoice", "applyPaymentScheduleScheme")
456
456
  end
457
457
 
458
+ def self.remove_payment_schedule_scheme(id, params={}, env=nil, headers={})
459
+ jsonKeys = {
460
+ }
461
+ options = {
462
+ :isIdempotent => true
463
+ }
464
+ Request.send('post', uri_path("invoices",id.to_s,"remove_payment_schedule_scheme"), params, env, headers,nil, false, jsonKeys, options, "invoice", "removePaymentScheduleScheme")
465
+ end
466
+
458
467
  def self.payment_schedules(id, env=nil, headers={})
459
468
  jsonKeys = {
460
469
  }
@@ -18,12 +18,13 @@ module ChargeBee
18
18
  end
19
19
 
20
20
  attr_accessor :id, :name, :item_family_id, :item_id, :description, :status, :external_name,
21
- :price_variant_id, :proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code,
22
- :period_unit, :trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
23
- :billing_cycles, :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at,
24
- :created_at, :usage_accumulation_reset_frequency, :archived_at, :invoice_notes, :tiers, :is_taxable,
25
- :tax_detail, :tax_providers_fields, :accounting_detail, :metadata, :item_type, :archivable,
26
- :parent_item_id, :show_description_in_invoices, :show_description_in_quotes, :deleted, :business_entity_id
21
+ :price_variant_id, :price_ramp_id, :proration_type, :pricing_model, :price, :price_in_decimal,
22
+ :period, :currency_code, :period_unit, :trial_period, :trial_period_unit, :trial_end_action,
23
+ :shipping_period, :shipping_period_unit, :billing_cycles, :free_quantity, :free_quantity_in_decimal,
24
+ :channel, :resource_version, :updated_at, :created_at, :usage_accumulation_reset_frequency,
25
+ :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :tax_providers_fields, :accounting_detail,
26
+ :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices, :show_description_in_quotes,
27
+ :deleted, :business_entity_id
27
28
 
28
29
  # OPERATIONS
29
30
  #-----------
@@ -22,5 +22,12 @@ module ChargeBee
22
22
  Request.send('get', uri_path("ledger_account_balances"), params, env, headers,nil, false, jsonKeys, options, "ledgerAccountBalance", "listLedgerAccountBalances")
23
23
  end
24
24
 
25
+ def self.update_overdraft_limit(params, env=nil, headers={})
26
+ jsonKeys = {
27
+ }
28
+ options = {}
29
+ Request.send('post', uri_path("ledger_account_balances","update_overdraft_limit"), params, env, headers,nil, false, jsonKeys, options, "ledgerAccountBalance", "updateOverdraftLimit")
30
+ end
31
+
25
32
  end # ~LedgerAccountBalance
26
33
  end # ~ChargeBee
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Meter < Model
3
3
 
4
4
  attr_accessor :id, :name, :description, :type, :status, :query, :created_at, :updated_at, :column_definitions,
5
- :features
5
+ :features, :group_by
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -1,7 +1,8 @@
1
1
  module ChargeBee
2
2
  class MeteredFeature < Model
3
3
 
4
- attr_accessor :id, :name, :description, :type, :status, :query, :column_definitions, :features
4
+ attr_accessor :id, :name, :description, :type, :status, :query, :column_definitions, :group_by,
5
+ :features
5
6
 
6
7
  # OPERATIONS
7
8
  #-----------
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class OmnichannelSubscription < Model
3
3
 
4
- attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :purchased_at,
4
+ attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :origin, :created_at, :purchased_at,
5
5
  :updated_at, :resource_version, :omnichannel_subscription_items, :initial_purchase_transaction
6
6
 
7
7
  # OPERATIONS
@@ -10,9 +10,10 @@ module ChargeBee
10
10
  end
11
11
 
12
12
  attr_accessor :id, :item_id_at_source, :item_parent_id_at_source, :status, :auto_renew_status,
13
- :current_term_start, :current_term_end, :expired_at, :expiration_reason, :cancelled_at, :cancellation_reason,
14
- :grace_period_expires_at, :resumes_at, :has_scheduled_changes, :updated_at, :resource_version,
15
- :omnichannel_subscription_item_offers, :upcoming_renewal, :linked_item
13
+ :current_term_start, :current_term_end, :expired_at, :expiration_reason, :expiration_reason_at_source,
14
+ :cancelled_at, :cancellation_reason, :cancellation_reason_at_source, :grace_period_expires_at,
15
+ :resumes_at, :has_scheduled_changes, :updated_at, :resource_version, :omnichannel_subscription_item_offers,
16
+ :upcoming_renewal, :linked_item
16
17
 
17
18
  # OPERATIONS
18
19
  #-----------
@@ -42,7 +42,7 @@ module ChargeBee
42
42
  end
43
43
 
44
44
  class NetworkTransactionReference < Model
45
- attr_accessor :original_network_transaction_id
45
+ attr_accessor :original_network_transaction_id, :transaction_link_id
46
46
  end
47
47
 
48
48
  attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class PreferenceVariant < Model
3
+
4
+ attr_accessor :value, :allow_override_in_interface, :allow_override_in_api
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~PreferenceVariant
10
+ end # ~ChargeBee
@@ -0,0 +1,56 @@
1
+ module ChargeBee
2
+ class PriceRamp < Model
3
+
4
+ class RampInterval < Model
5
+ attr_accessor :starting_billing_cycle, :ending_billing_cycle, :apply_catalog_price, :price, :price_in_decimal
6
+ end
7
+
8
+ attr_accessor :id, :item_price_id, :status, :created_at, :resource_version, :updated_at, :archived_at,
9
+ :ramp_intervals, :business_entity_id
10
+
11
+ # OPERATIONS
12
+ #-----------
13
+
14
+ def self.create(params, env=nil, headers={})
15
+ jsonKeys = {
16
+ }
17
+ options = {
18
+ :isIdempotent => true
19
+ }
20
+ Request.send('post', uri_path("price_ramps"), params, env, headers,nil, false, jsonKeys, options, "priceRamp", "create")
21
+ end
22
+
23
+ def self.retrieve(id, env=nil, headers={})
24
+ jsonKeys = {
25
+ }
26
+ options = {}
27
+ Request.send('get', uri_path("price_ramps",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "priceRamp", "retrieve")
28
+ end
29
+
30
+ def self.update(id, params, env=nil, headers={})
31
+ jsonKeys = {
32
+ }
33
+ options = {
34
+ :isIdempotent => true
35
+ }
36
+ Request.send('post', uri_path("price_ramps",id.to_s), params, env, headers,nil, false, jsonKeys, options, "priceRamp", "update")
37
+ end
38
+
39
+ def self.delete(id, env=nil, headers={})
40
+ jsonKeys = {
41
+ }
42
+ options = {
43
+ :isIdempotent => true
44
+ }
45
+ Request.send('post', uri_path("price_ramps",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "priceRamp", "delete")
46
+ end
47
+
48
+ def self.list(params={}, env=nil, headers={})
49
+ jsonKeys = {
50
+ }
51
+ options = {}
52
+ Request.send_list_request('get', uri_path("price_ramps"), params, env, headers,nil, false, jsonKeys, options, "priceRamp", "list")
53
+ end
54
+
55
+ end # ~PriceRamp
56
+ end # ~ChargeBee
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class PrivateNote < Model
3
+
4
+ attr_accessor :id, :email_conversation_id, :author_type, :author_id, :author_name, :content_html,
5
+ :content_text, :meta_data, :created_at, :resource_version, :updated_at
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~PrivateNote
11
+ end # ~ChargeBee
@@ -2,11 +2,11 @@ module ChargeBee
2
2
  class Ramp < Model
3
3
 
4
4
  class ItemsToAdd < Model
5
- attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :charge_on_event
5
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :description, :charge_on_event
6
6
  end
7
7
 
8
8
  class ItemsToUpdate < Model
9
- attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :charge_on_event
9
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :description, :charge_on_event
10
10
  end
11
11
 
12
12
  class CouponsToAdd < Model
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class RampInterval < Model
3
+
4
+ attr_accessor :starting_billing_cycle, :ending_billing_cycle, :apply_catalog_price, :price,
5
+ :price_in_decimal
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~RampInterval
11
+ end # ~ChargeBee
@@ -0,0 +1,17 @@
1
+ module ChargeBee
2
+ class RetrySegment < Model
3
+
4
+ attr_accessor :id, :name, :invoice_id, :enabled, :priority, :condition_logic, :criteria, :retry_settings
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.retrieve(id, params={}, env=nil, headers={})
10
+ jsonKeys = {
11
+ }
12
+ options = {}
13
+ Request.send('get', uri_path("retry_segments",id.to_s), params, env, headers,nil, false, jsonKeys, options, "retrySegment", "retrieve")
14
+ end
15
+
16
+ end # ~RetrySegment
17
+ end # ~ChargeBee
@@ -17,6 +17,10 @@ module ChargeBee
17
17
  attr_accessor :id, :status, :amount, :date
18
18
  end
19
19
 
20
+ class GatewayMetadata < Model
21
+ attr_accessor :acquirer_reference_id
22
+ end
23
+
20
24
  class GatewayErrorDetail < Model
21
25
  attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message, :network_error_code, :network_error_message, :error_field, :recommendation_code, :recommendation_message, :processor_error_code, :processor_error_message, :error_cause_id, :processor_advice_code
22
26
  end
@@ -32,7 +36,7 @@ module ChargeBee
32
36
  :amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
33
37
  :amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
34
38
  :linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details,
35
- :error_detail, :custom_payment_method_name, :network_transaction_details
39
+ :gateway_metadata, :error_detail, :custom_payment_method_name, :network_transaction_details
36
40
 
37
41
  # OPERATIONS
38
42
  #-----------
@@ -41,6 +41,7 @@ module ChargeBee
41
41
 
42
42
  def self.pdf(params, env=nil, headers={})
43
43
  jsonKeys = {
44
+ :attributes => 1,
44
45
  }
45
46
  options = {
46
47
  :isIdempotent => true
@@ -1,7 +1,8 @@
1
1
  module ChargeBee
2
2
  class UsageSummary < Model
3
3
 
4
- attr_accessor :subscription_id, :feature_id, :aggregated_value, :aggregated_from, :aggregated_to
4
+ attr_accessor :subscription_id, :feature_id, :aggregated_value, :aggregated_from, :aggregated_to,
5
+ :attributes
5
6
 
6
7
  # OPERATIONS
7
8
  #-----------
@@ -181,7 +181,7 @@ module ChargeBee
181
181
 
182
182
  def transaction()
183
183
  transaction = get(:transaction, Transaction,
184
- {:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment, :gateway_error_detail => Transaction::GatewayErrorDetail, :network_transaction_detail => Transaction::NetworkTransactionDetail});
184
+ {:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment, :gateway_metadata => Transaction::GatewayMetadata, :gateway_error_detail => Transaction::GatewayErrorDetail, :network_transaction_detail => Transaction::NetworkTransactionDetail});
185
185
  return transaction;
186
186
  end
187
187
 
@@ -400,6 +400,17 @@ module ChargeBee
400
400
  return differential_price;
401
401
  end
402
402
 
403
+ def price_ramp()
404
+ price_ramp = get(:price_ramp, PriceRamp,
405
+ {:ramp_intervals => PriceRamp::RampInterval});
406
+ return price_ramp;
407
+ end
408
+
409
+ def ramp_interval()
410
+ ramp_interval = get(:ramp_interval, RampInterval);
411
+ return ramp_interval;
412
+ end
413
+
403
414
  def configuration()
404
415
  configuration = get(:configuration, Configuration);
405
416
  return configuration;
@@ -574,6 +585,11 @@ module ChargeBee
574
585
  return rule;
575
586
  end
576
587
 
588
+ def retry_segment()
589
+ retry_segment = get(:retry_segment, RetrySegment);
590
+ return retry_segment;
591
+ end
592
+
577
593
  def meter()
578
594
  meter = get(:meter, Meter, {},
579
595
  {:column_definitions => ColumnDefinition, :features => Feature});
@@ -584,6 +600,16 @@ module ChargeBee
584
600
  return meter;
585
601
  end
586
602
 
603
+ def group_by_attribute()
604
+ group_by_attribute = get(:group_by_attribute, GroupByAttribute);
605
+ return group_by_attribute;
606
+ end
607
+
608
+ def group_by_recommendation()
609
+ group_by_recommendation = get(:group_by_recommendation, GroupByRecommendation);
610
+ return group_by_recommendation;
611
+ end
612
+
587
613
  def usage_event()
588
614
  usage_event = get(:usage_event, UsageEvent);
589
615
  return usage_event;
@@ -604,6 +630,11 @@ module ChargeBee
604
630
  return custom_data_schema;
605
631
  end
606
632
 
633
+ def custom_data()
634
+ custom_data = get(:custom_data, CustomData);
635
+ return custom_data;
636
+ end
637
+
607
638
  def usage_file()
608
639
  usage_file = get(:usage_file, UsageFile,
609
640
  {:upload_detail => UsageFile::UploadDetail});
@@ -659,11 +690,6 @@ module ChargeBee
659
690
  return applied_rule;
660
691
  end
661
692
 
662
- def applied_business_rule()
663
- applied_business_rule = get(:applied_business_rule, AppliedBusinessRule);
664
- return applied_business_rule;
665
- end
666
-
667
693
  def business_ruleset()
668
694
  business_ruleset = get(:business_ruleset, BusinessRuleset);
669
695
  return business_ruleset;
@@ -674,6 +700,27 @@ module ChargeBee
674
700
  return business_ruleset_rule;
675
701
  end
676
702
 
703
+ def draft_request()
704
+ draft_request = get(:draft_request, DraftRequest,
705
+ {:draft_revision => DraftRequest::DraftRevision, :validations => DraftRequest::Validation, :executions => DraftRequest::Execution});
706
+ return draft_request;
707
+ end
708
+
709
+ def citation()
710
+ citation = get(:citation, Citation);
711
+ return citation;
712
+ end
713
+
714
+ def execution()
715
+ execution = get(:execution, Execution);
716
+ return execution;
717
+ end
718
+
719
+ def draft_estimate()
720
+ draft_estimate = get(:draft_estimate, DraftEstimate);
721
+ return draft_estimate;
722
+ end
723
+
677
724
  def usage_summary()
678
725
  usage_summary = get(:usage_summary, UsageSummary);
679
726
  return usage_summary;
@@ -700,6 +747,43 @@ module ChargeBee
700
747
  return alert_status;
701
748
  end
702
749
 
750
+ def collections_payment_promise()
751
+ collections_payment_promise = get(:collections_payment_promise, CollectionsPaymentPromise);
752
+ return collections_payment_promise;
753
+ end
754
+
755
+ def collections_dispute()
756
+ collections_dispute = get(:collections_dispute, CollectionsDispute);
757
+ return collections_dispute;
758
+ end
759
+
760
+ def collections_reminder_sequence()
761
+ collections_reminder_sequence = get(:collections_reminder_sequence, CollectionsReminderSequence,
762
+ {:action_logs => CollectionsReminderSequence::ActionLog});
763
+ return collections_reminder_sequence;
764
+ end
765
+
766
+ def email_conversation()
767
+ email_conversation = get(:email_conversation, EmailConversation);
768
+ return email_conversation;
769
+ end
770
+
771
+ def email_message()
772
+ email_message = get(:email_message, EmailMessage,
773
+ {:attachments => EmailMessage::Attachment});
774
+ return email_message;
775
+ end
776
+
777
+ def private_note()
778
+ private_note = get(:private_note, PrivateNote);
779
+ return private_note;
780
+ end
781
+
782
+ def email_attachment()
783
+ email_attachment = get(:email_attachment, EmailAttachment);
784
+ return email_attachment;
785
+ end
786
+
703
787
  def ledger_account_balance()
704
788
  ledger_account_balance = get(:ledger_account_balance, LedgerAccountBalance,
705
789
  {:provisioned_balance => LedgerAccountBalance::ProvisionedBalance, :overdraft_balance => LedgerAccountBalance::OverdraftBalance});
@@ -809,6 +893,12 @@ module ChargeBee
809
893
  return personalized_offers;
810
894
  end
811
895
 
896
+ def collections_payment_promises()
897
+ collections_payment_promises = get_list(:collections_payment_promises, CollectionsPaymentPromise,
898
+ {});
899
+ return collections_payment_promises;
900
+ end
901
+
812
902
  def ledger_operations()
813
903
  ledger_operations = get_list(:ledger_operations, LedgerOperation,
814
904
  {});
data/lib/chargebee.rb CHANGED
@@ -21,7 +21,6 @@ require File.dirname(__FILE__) + '/chargebee/models/address'
21
21
  require File.dirname(__FILE__) + '/chargebee/models/advance_invoice_schedule'
22
22
  require File.dirname(__FILE__) + '/chargebee/models/alert'
23
23
  require File.dirname(__FILE__) + '/chargebee/models/alert_status'
24
- require File.dirname(__FILE__) + '/chargebee/models/applied_business_rule'
25
24
  require File.dirname(__FILE__) + '/chargebee/models/applied_rule'
26
25
  require File.dirname(__FILE__) + '/chargebee/models/apply_rule'
27
26
  require File.dirname(__FILE__) + '/chargebee/models/async_response'
@@ -36,6 +35,10 @@ require File.dirname(__FILE__) + '/chargebee/models/business_rule'
36
35
  require File.dirname(__FILE__) + '/chargebee/models/business_ruleset'
37
36
  require File.dirname(__FILE__) + '/chargebee/models/business_ruleset_rule'
38
37
  require File.dirname(__FILE__) + '/chargebee/models/card'
38
+ require File.dirname(__FILE__) + '/chargebee/models/citation'
39
+ require File.dirname(__FILE__) + '/chargebee/models/collections_dispute'
40
+ require File.dirname(__FILE__) + '/chargebee/models/collections_payment_promise'
41
+ require File.dirname(__FILE__) + '/chargebee/models/collections_reminder_sequence'
39
42
  require File.dirname(__FILE__) + '/chargebee/models/column_definition'
40
43
  require File.dirname(__FILE__) + '/chargebee/models/comment'
41
44
  require File.dirname(__FILE__) + '/chargebee/models/configuration'
@@ -49,6 +52,7 @@ require File.dirname(__FILE__) + '/chargebee/models/credit_note'
49
52
  require File.dirname(__FILE__) + '/chargebee/models/credit_note_estimate'
50
53
  require File.dirname(__FILE__) + '/chargebee/models/credit_unit'
51
54
  require File.dirname(__FILE__) + '/chargebee/models/currency'
55
+ require File.dirname(__FILE__) + '/chargebee/models/custom_data'
52
56
  require File.dirname(__FILE__) + '/chargebee/models/custom_data_schema'
53
57
  require File.dirname(__FILE__) + '/chargebee/models/customer'
54
58
  require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement'
@@ -56,12 +60,18 @@ require File.dirname(__FILE__) + '/chargebee/models/differential_price'
56
60
  require File.dirname(__FILE__) + '/chargebee/models/discount'
57
61
  require File.dirname(__FILE__) + '/chargebee/models/dispute'
58
62
  require File.dirname(__FILE__) + '/chargebee/models/download'
63
+ require File.dirname(__FILE__) + '/chargebee/models/draft_estimate'
64
+ require File.dirname(__FILE__) + '/chargebee/models/draft_request'
59
65
  require File.dirname(__FILE__) + '/chargebee/models/einvoice'
66
+ require File.dirname(__FILE__) + '/chargebee/models/email_attachment'
67
+ require File.dirname(__FILE__) + '/chargebee/models/email_conversation'
60
68
  require File.dirname(__FILE__) + '/chargebee/models/email_log'
69
+ require File.dirname(__FILE__) + '/chargebee/models/email_message'
61
70
  require File.dirname(__FILE__) + '/chargebee/models/entitlement'
62
71
  require File.dirname(__FILE__) + '/chargebee/models/entitlement_override'
63
72
  require File.dirname(__FILE__) + '/chargebee/models/estimate'
64
73
  require File.dirname(__FILE__) + '/chargebee/models/event'
74
+ require File.dirname(__FILE__) + '/chargebee/models/execution'
65
75
  require File.dirname(__FILE__) + '/chargebee/models/export'
66
76
  require File.dirname(__FILE__) + '/chargebee/models/feature'
67
77
  require File.dirname(__FILE__) + '/chargebee/models/filter_condition'
@@ -69,6 +79,8 @@ require File.dirname(__FILE__) + '/chargebee/models/gateway_error_detail'
69
79
  require File.dirname(__FILE__) + '/chargebee/models/gateway_payment_method_token'
70
80
  require File.dirname(__FILE__) + '/chargebee/models/gift'
71
81
  require File.dirname(__FILE__) + '/chargebee/models/grant_block'
82
+ require File.dirname(__FILE__) + '/chargebee/models/group_by_attribute'
83
+ require File.dirname(__FILE__) + '/chargebee/models/group_by_recommendation'
72
84
  require File.dirname(__FILE__) + '/chargebee/models/hierarchy'
73
85
  require File.dirname(__FILE__) + '/chargebee/models/hosted_page'
74
86
  require File.dirname(__FILE__) + '/chargebee/models/impacted_customer'
@@ -110,8 +122,11 @@ require File.dirname(__FILE__) + '/chargebee/models/payment_voucher'
110
122
  require File.dirname(__FILE__) + '/chargebee/models/personalized_offer'
111
123
  require File.dirname(__FILE__) + '/chargebee/models/plan'
112
124
  require File.dirname(__FILE__) + '/chargebee/models/portal_session'
125
+ require File.dirname(__FILE__) + '/chargebee/models/preference_variant'
126
+ require File.dirname(__FILE__) + '/chargebee/models/price_ramp'
113
127
  require File.dirname(__FILE__) + '/chargebee/models/price_variant'
114
128
  require File.dirname(__FILE__) + '/chargebee/models/pricing_page_session'
129
+ require File.dirname(__FILE__) + '/chargebee/models/private_note'
115
130
  require File.dirname(__FILE__) + '/chargebee/models/promotional_credit'
116
131
  require File.dirname(__FILE__) + '/chargebee/models/promotional_grant'
117
132
  require File.dirname(__FILE__) + '/chargebee/models/purchase'
@@ -123,8 +138,10 @@ require File.dirname(__FILE__) + '/chargebee/models/quoted_delta_ramp'
123
138
  require File.dirname(__FILE__) + '/chargebee/models/quoted_ramp'
124
139
  require File.dirname(__FILE__) + '/chargebee/models/quoted_subscription'
125
140
  require File.dirname(__FILE__) + '/chargebee/models/ramp'
141
+ require File.dirname(__FILE__) + '/chargebee/models/ramp_interval'
126
142
  require File.dirname(__FILE__) + '/chargebee/models/recorded_purchase'
127
143
  require File.dirname(__FILE__) + '/chargebee/models/resource_migration'
144
+ require File.dirname(__FILE__) + '/chargebee/models/retry_segment'
128
145
  require File.dirname(__FILE__) + '/chargebee/models/rule'
129
146
  require File.dirname(__FILE__) + '/chargebee/models/site_migration_detail'
130
147
  require File.dirname(__FILE__) + '/chargebee/models/subscription'
@@ -149,7 +166,7 @@ require File.dirname(__FILE__) + '/chargebee/models/webhook_endpoint'
149
166
 
150
167
  module ChargeBee
151
168
 
152
- VERSION = '2.80.0'
169
+ VERSION = '2.82.0'
153
170
 
154
171
  @@default_env = nil
155
172
  @@verify_ca_certs = true
data/lib/ssl/ca-certs.crt CHANGED
@@ -815,30 +815,6 @@ GrZgFCdsMneMvLJymM/NzD+5yCRCFNZX/OYmQ6kd5YCQzgNUKD73P9P4Te1qCjqTE5s7FCMTY5w/
815
815
  qFlnGNu8cN2bsWntgM6JQEhqDjXKKWYVIZQs6GAqm4VKQPNriiTsBhYscw==
816
816
  -----END CERTIFICATE-----
817
817
 
818
- Comodo AAA Services root
819
- ========================
820
- -----BEGIN CERTIFICATE-----
821
- MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS
822
- R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg
823
- TGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAw
824
- MFoXDTI4MTIzMTIzNTk1OVowezELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hl
825
- c3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNV
826
- BAMMGEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
827
- ggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQuaBtDFcCLNSS1UY8y2bmhG
828
- C1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe3M/vg4aijJRPn2jymJBGhCfHdr/jzDUs
829
- i14HZGWCwEiwqJH5YZ92IFCokcdmtet4YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszW
830
- Y19zjNoFmag4qMsXeDZRrOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjH
831
- Ypy+g8cmez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQUoBEK
832
- Iz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wewYDVR0f
833
- BHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20vQUFBQ2VydGlmaWNhdGVTZXJ2aWNl
834
- cy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29tb2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2Vz
835
- LmNybDANBgkqhkiG9w0BAQUFAAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm
836
- 7l3sAg9g1o1QGE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz
837
- Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2G9w84FoVxp7Z
838
- 8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsil2D4kF501KKaU73yqWjgom7C
839
- 12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg==
840
- -----END CERTIFICATE-----
841
-
842
818
  Comodo Secure Services root
843
819
  ===========================
844
820
  -----BEGIN CERTIFICATE-----
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.80.0
4
+ version: 2.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-09-24 00:00:00.000000000 Z
12
+ date: 2026-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cgi
@@ -103,6 +103,10 @@ files:
103
103
  - lib/chargebee/models/business_ruleset.rb
104
104
  - lib/chargebee/models/business_ruleset_rule.rb
105
105
  - lib/chargebee/models/card.rb
106
+ - lib/chargebee/models/citation.rb
107
+ - lib/chargebee/models/collections_dispute.rb
108
+ - lib/chargebee/models/collections_payment_promise.rb
109
+ - lib/chargebee/models/collections_reminder_sequence.rb
106
110
  - lib/chargebee/models/column_definition.rb
107
111
  - lib/chargebee/models/comment.rb
108
112
  - lib/chargebee/models/configuration.rb
@@ -117,6 +121,7 @@ files:
117
121
  - lib/chargebee/models/credit_unit.rb
118
122
  - lib/chargebee/models/csv_tax_rule.rb
119
123
  - lib/chargebee/models/currency.rb
124
+ - lib/chargebee/models/custom_data.rb
120
125
  - lib/chargebee/models/custom_data_schema.rb
121
126
  - lib/chargebee/models/customer.rb
122
127
  - lib/chargebee/models/customer_entitlement.rb
@@ -124,12 +129,18 @@ files:
124
129
  - lib/chargebee/models/discount.rb
125
130
  - lib/chargebee/models/dispute.rb
126
131
  - lib/chargebee/models/download.rb
132
+ - lib/chargebee/models/draft_estimate.rb
133
+ - lib/chargebee/models/draft_request.rb
127
134
  - lib/chargebee/models/einvoice.rb
135
+ - lib/chargebee/models/email_attachment.rb
136
+ - lib/chargebee/models/email_conversation.rb
128
137
  - lib/chargebee/models/email_log.rb
138
+ - lib/chargebee/models/email_message.rb
129
139
  - lib/chargebee/models/entitlement.rb
130
140
  - lib/chargebee/models/entitlement_override.rb
131
141
  - lib/chargebee/models/estimate.rb
132
142
  - lib/chargebee/models/event.rb
143
+ - lib/chargebee/models/execution.rb
133
144
  - lib/chargebee/models/export.rb
134
145
  - lib/chargebee/models/feature.rb
135
146
  - lib/chargebee/models/filter_condition.rb
@@ -137,6 +148,8 @@ files:
137
148
  - lib/chargebee/models/gateway_payment_method_token.rb
138
149
  - lib/chargebee/models/gift.rb
139
150
  - lib/chargebee/models/grant_block.rb
151
+ - lib/chargebee/models/group_by_attribute.rb
152
+ - lib/chargebee/models/group_by_recommendation.rb
140
153
  - lib/chargebee/models/hierarchy.rb
141
154
  - lib/chargebee/models/hosted_page.rb
142
155
  - lib/chargebee/models/impacted_customer.rb
@@ -179,8 +192,11 @@ files:
179
192
  - lib/chargebee/models/personalized_offer.rb
180
193
  - lib/chargebee/models/plan.rb
181
194
  - lib/chargebee/models/portal_session.rb
195
+ - lib/chargebee/models/preference_variant.rb
196
+ - lib/chargebee/models/price_ramp.rb
182
197
  - lib/chargebee/models/price_variant.rb
183
198
  - lib/chargebee/models/pricing_page_session.rb
199
+ - lib/chargebee/models/private_note.rb
184
200
  - lib/chargebee/models/promotional_credit.rb
185
201
  - lib/chargebee/models/promotional_grant.rb
186
202
  - lib/chargebee/models/purchase.rb
@@ -192,8 +208,10 @@ files:
192
208
  - lib/chargebee/models/quoted_ramp.rb
193
209
  - lib/chargebee/models/quoted_subscription.rb
194
210
  - lib/chargebee/models/ramp.rb
211
+ - lib/chargebee/models/ramp_interval.rb
195
212
  - lib/chargebee/models/recorded_purchase.rb
196
213
  - lib/chargebee/models/resource_migration.rb
214
+ - lib/chargebee/models/retry_segment.rb
197
215
  - lib/chargebee/models/rule.rb
198
216
  - lib/chargebee/models/site_migration_detail.rb
199
217
  - lib/chargebee/models/subscription.rb