chargebee 2.79.0 → 2.80.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +190 -0
  3. data/Gemfile.lock +1 -1
  4. data/VERSION +1 -1
  5. data/chargebee.gemspec +11 -2
  6. data/lib/chargebee/models/applied_business_rule.rb +11 -0
  7. data/lib/chargebee/models/applied_rule.rb +10 -0
  8. data/lib/chargebee/models/apply_rule.rb +15 -0
  9. data/lib/chargebee/models/business_rule.rb +113 -0
  10. data/lib/chargebee/models/business_ruleset.rb +99 -0
  11. data/lib/chargebee/models/business_ruleset_rule.rb +10 -0
  12. data/lib/chargebee/models/credit_note.rb +11 -2
  13. data/lib/chargebee/models/custom_data_schema.rb +11 -0
  14. data/lib/chargebee/models/customer.rb +11 -1
  15. data/lib/chargebee/models/dispute.rb +25 -0
  16. data/lib/chargebee/models/einvoice.rb +21 -1
  17. data/lib/chargebee/models/email_log.rb +18 -0
  18. data/lib/chargebee/models/event.rb +1 -1
  19. data/lib/chargebee/models/grant_block.rb +10 -2
  20. data/lib/chargebee/models/hosted_page.rb +1 -1
  21. data/lib/chargebee/models/invoice.rb +10 -1
  22. data/lib/chargebee/models/ledger_entry.rb +1 -1
  23. data/lib/chargebee/models/payment_intent.rb +1 -1
  24. data/lib/chargebee/models/payment_schedule.rb +13 -2
  25. data/lib/chargebee/models/payment_schedule_estimate.rb +1 -1
  26. data/lib/chargebee/models/payment_schedule_scheme.rb +7 -0
  27. data/lib/chargebee/models/payment_source.rb +5 -1
  28. data/lib/chargebee/models/quoted_subscription.rb +1 -1
  29. data/lib/chargebee/models/ramp.rb +6 -1
  30. data/lib/chargebee/models/subscription.rb +2 -2
  31. data/lib/chargebee/models/third_party_payment_method.rb +1 -1
  32. data/lib/chargebee/models/transaction.rb +5 -1
  33. data/lib/chargebee/result.rb +66 -12
  34. data/lib/chargebee.rb +10 -1
  35. metadata +11 -2
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class CustomDataSchema < Model
3
+
4
+ attr_accessor :id, :display_name, :entity_type, :schema_definition, :status, :created_at, :modified_at,
5
+ :updated_at
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~CustomDataSchema
11
+ end # ~ChargeBee
@@ -52,7 +52,8 @@ module ChargeBee
52
52
  :balances, :entity_identifiers, :tax_providers_fields, :is_einvoice_enabled, :einvoicing_method,
53
53
  :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
54
54
  :client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access,
55
- :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard
55
+ :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard,
56
+ :brand_id
56
57
 
57
58
  # OPERATIONS
58
59
  #-----------
@@ -206,6 +207,15 @@ module ChargeBee
206
207
  Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers,nil, false, jsonKeys, options, "customer", "collectPayment")
207
208
  end
208
209
 
210
+ def self.send_payment_request(id, env=nil, headers={})
211
+ jsonKeys = {
212
+ }
213
+ options = {
214
+ :isIdempotent => true
215
+ }
216
+ Request.send('post', uri_path("customers",id.to_s,"send_payment_request"), {}, env, headers,nil, false, jsonKeys, options, "customer", "sendPaymentRequest")
217
+ end
218
+
209
219
  def self.delete(id, params={}, env=nil, headers={})
210
220
  jsonKeys = {
211
221
  }
@@ -0,0 +1,25 @@
1
+ module ChargeBee
2
+ class Dispute < Model
3
+
4
+ attr_accessor :id, :customer_id, :transaction_id, :gateway_account_id, :id_at_gateway, :currency_code,
5
+ :amount, :reason, :status, :type, :is_partial_dispute, :created_at, :resource_version, :updated_at
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ def self.retrieve(id, env=nil, headers={})
11
+ jsonKeys = {
12
+ }
13
+ options = {}
14
+ Request.send('get', uri_path("disputes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "dispute", "retrieve")
15
+ end
16
+
17
+ def self.list(params={}, env=nil, headers={})
18
+ jsonKeys = {
19
+ }
20
+ options = {}
21
+ Request.send_list_request('get', uri_path("disputes"), params, env, headers,nil, false, jsonKeys, options, "dispute", "list")
22
+ end
23
+
24
+ end # ~Dispute
25
+ end # ~ChargeBee
@@ -1,10 +1,30 @@
1
1
  module ChargeBee
2
2
  class Einvoice < Model
3
3
 
4
- attr_accessor :id, :reference_id, :reference_number, :status, :message, :provider_references
4
+ class Artifact < Model
5
+ attr_accessor :artifact_type, :direction, :status, :code, :external_artifact_id, :created_at, :resource_version, :updated_at, :deleted
6
+ end
7
+
8
+ attr_accessor :id, :entity_type, :entity_id, :reference_id, :reference_number, :status, :message,
9
+ :created_at, :resource_version, :updated_at, :deleted, :provider_references, :business_entity_id,
10
+ :artifacts
5
11
 
6
12
  # OPERATIONS
7
13
  #-----------
8
14
 
15
+ def self.retrieve(id, env=nil, headers={})
16
+ jsonKeys = {
17
+ }
18
+ options = {}
19
+ Request.send('get', uri_path("einvoices",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "einvoice", "retrieve")
20
+ end
21
+
22
+ def self.list_einvoices(params={}, env=nil, headers={})
23
+ jsonKeys = {
24
+ }
25
+ options = {}
26
+ Request.send('get', uri_path("einvoices"), params, env, headers,nil, false, jsonKeys, options, "einvoice", "listEinvoices")
27
+ end
28
+
9
29
  end # ~Einvoice
10
30
  end # ~ChargeBee
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class EmailLog < Model
3
+
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
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ def self.email_logs_for_customer(id, params={}, env=nil, headers={})
11
+ jsonKeys = {
12
+ }
13
+ options = {}
14
+ Request.send('get', uri_path("customers",id.to_s,"email_logs"), params, env, headers,nil, false, jsonKeys, options, "emailLog", "emailLogsForCustomer")
15
+ end
16
+
17
+ end # ~EmailLog
18
+ end # ~ChargeBee
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  attr_accessor :id, :occurred_at, :source, :user, :webhook_status, :webhook_failure_reason, :webhooks,
9
- :event_type, :api_version, :origin_user
9
+ :event_type, :site_id, :api_version, :origin_user
10
10
 
11
11
  class Content < Result
12
12
  end
@@ -1,10 +1,18 @@
1
1
  module ChargeBee
2
2
  class GrantBlock < Model
3
3
 
4
- attr_accessor :id, :subscription_id, :account_type, :unit_id, :unit_type, :granted_amount, :effective_from,
4
+ class ProvisionedBlockBalance < Model
5
+ attr_accessor :granted_amount, :total_balance, :usable_balance, :hold_amount, :used_amount, :expired_amount, :rolled_over_amount, :voided_amount
6
+ end
7
+
8
+ class OverdraftBlockBalance < Model
9
+ attr_accessor :is_unlimited, :limit, :total_balance, :usable_balance, :used_amount
10
+ end
11
+
12
+ attr_accessor :id, :subscription_id, :unit_id, :unit_type, :account_type, :granted_amount, :effective_from,
5
13
  :expires_at, :balance, :hold_amount, :used_amount, :expired_amount, :rolled_over_amount, :voided_amount,
6
14
  :origin_grant_block_id, :status, :grant_source, :created_at, :modified_at, :resource_version,
7
- :metadata
15
+ :provisioned_block_balance, :overdraft_block_balance, :metadata
8
16
 
9
17
  # OPERATIONS
10
18
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class HostedPage < Model
3
3
 
4
4
  attr_accessor :id, :type, :url, :state, :failure_reason, :pass_thru_content, :embed, :created_at,
5
- :expires_at, :layout, :updated_at, :resource_version, :checkout_info, :business_entity_id
5
+ :expires_at, :layout, :updated_at, :resource_version, :checkout_info, :business_entity_id, :brand_id
6
6
 
7
7
  class Content < Result
8
8
  end
@@ -104,7 +104,7 @@ module ChargeBee
104
104
  :discounts, :taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts,
105
105
  :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address,
106
106
  :billing_address, :statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category,
107
- :vat_number_prefix, :channel, :business_entity_id, :site_details_at_creation
107
+ :vat_number_prefix, :channel, :business_entity_id, :brand_id, :site_details_at_creation
108
108
 
109
109
  # OPERATIONS
110
110
  #-----------
@@ -419,6 +419,15 @@ module ChargeBee
419
419
  Request.send('post', uri_path("invoices",id.to_s,"void_before_capture"), params, env, headers,nil, false, jsonKeys, options, "invoice", "voidBeforeCapture")
420
420
  end
421
421
 
422
+ def self.send_email(id, env=nil, headers={})
423
+ jsonKeys = {
424
+ }
425
+ options = {
426
+ :isIdempotent => true
427
+ }
428
+ Request.send('post', uri_path("invoices",id.to_s,"send_email"), {}, env, headers,nil, false, jsonKeys, options, "invoice", "sendEmail")
429
+ end
430
+
422
431
  def self.delete(id, params={}, env=nil, headers={})
423
432
  jsonKeys = {
424
433
  }
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class LedgerEntry < Model
3
3
 
4
- attr_accessor :id, :subscription_id, :account_type, :unit_id, :unit_type, :amount, :grant_block_start_balance,
4
+ attr_accessor :id, :subscription_id, :unit_id, :unit_type, :account_type, :amount, :grant_block_start_balance,
5
5
  :grant_block_end_balance, :account_start_balance, :account_end_balance, :type, :ledger_operation_id,
6
6
  :grant_block_id, :created_at, :modified_at
7
7
 
@@ -16,7 +16,7 @@ module ChargeBee
16
16
  attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
17
17
  :payment_method_type, :success_url, :failure_url, :created_at, :modified_at, :resource_version,
18
18
  :updated_at, :payment_method_options, :customer_id, :gateway, :active_payment_attempt, :payment_attempts,
19
- :payment_intent_metadata, :business_entity_id
19
+ :payment_intent_metadata, :business_entity_id, :brand_id
20
20
 
21
21
  # OPERATIONS
22
22
  #-----------
@@ -2,14 +2,25 @@ module ChargeBee
2
2
  class PaymentSchedule < Model
3
3
 
4
4
  class ScheduleEntry < Model
5
- attr_accessor :id, :date, :amount, :status
5
+ attr_accessor :id, :date, :amount, :scheduled_amount, :status
6
+ end
7
+
8
+ class ReferenceTransaction < Model
9
+ attr_accessor :schedule_entry_id, :applied_amount, :txn_id, :txn_status, :txn_date, :txn_amount
6
10
  end
7
11
 
8
12
  attr_accessor :id, :scheme_id, :entity_type, :entity_id, :amount, :created_at, :resource_version,
9
- :updated_at, :currency_code, :schedule_entries
13
+ :updated_at, :currency_code, :schedule_entries, :reference_transactions
10
14
 
11
15
  # OPERATIONS
12
16
  #-----------
13
17
 
18
+ def self.list(params={}, env=nil, headers={})
19
+ jsonKeys = {
20
+ }
21
+ options = {}
22
+ Request.send_list_request('get', uri_path("payment_schedules"), params, env, headers,nil, false, jsonKeys, options, "paymentSchedule", "list")
23
+ end
24
+
14
25
  end # ~PaymentSchedule
15
26
  end # ~ChargeBee
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class PaymentScheduleEstimate < Model
3
3
 
4
4
  class ScheduleEntry < Model
5
- attr_accessor :id, :date, :amount, :status
5
+ attr_accessor :id, :date, :amount, :scheduled_amount, :status
6
6
  end
7
7
 
8
8
  attr_accessor :id, :scheme_id, :entity_type, :entity_id, :amount, :currency_code, :schedule_entries
@@ -27,6 +27,13 @@ module ChargeBee
27
27
  Request.send('get', uri_path("payment_schedule_schemes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "retrieve")
28
28
  end
29
29
 
30
+ def self.list(params={}, env=nil, headers={})
31
+ jsonKeys = {
32
+ }
33
+ options = {}
34
+ Request.send_list_request('get', uri_path("payment_schedule_schemes"), params, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "list")
35
+ end
36
+
30
37
  def self.delete(id, env=nil, headers={})
31
38
  jsonKeys = {
32
39
  }
@@ -41,10 +41,14 @@ module ChargeBee
41
41
  attr_accessor :id, :subscription_id, :created_at
42
42
  end
43
43
 
44
+ class NetworkTransactionReference < Model
45
+ attr_accessor :original_network_transaction_id
46
+ end
47
+
44
48
  attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
45
49
  :status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
46
50
  :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :klarna_pay_now, :mandates,
47
- :vault_token, :deleted, :business_entity_id
51
+ :vault_token, :network_transaction_reference, :deleted, :business_entity_id, :brand_id
48
52
 
49
53
  # OPERATIONS
50
54
  #-----------
@@ -14,7 +14,7 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  class SubscriptionItem < Model
17
- attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency
17
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency, :description
18
18
  end
19
19
 
20
20
  class ItemTier < Model
@@ -25,13 +25,18 @@ module ChargeBee
25
25
  attr_accessor :cancellation_cutoff_period, :renewal_billing_cycles, :action_at_term_end
26
26
  end
27
27
 
28
+ class BillingConfiguration < Model
29
+ attr_accessor :po_number
30
+ end
31
+
28
32
  class StatusTransitionReason < Model
29
33
  attr_accessor :code, :message
30
34
  end
31
35
 
32
36
  attr_accessor :id, :description, :subscription_id, :effective_from, :status, :created_at, :resource_version,
33
37
  :updated_at, :items_to_add, :items_to_update, :coupons_to_add, :discounts_to_add, :item_tiers,
34
- :items_to_remove, :coupons_to_remove, :discounts_to_remove, :contract_term, :deleted, :status_transition_reason
38
+ :items_to_remove, :coupons_to_remove, :discounts_to_remove, :contract_term, :billing_configuration,
39
+ :deleted, :status_transition_reason
35
40
 
36
41
  # OPERATIONS
37
42
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Subscription < Model
3
3
 
4
4
  class SubscriptionItem < Model
5
- attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency
5
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :current_term_start, :current_term_end, :next_billing_at, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency, :description
6
6
  end
7
7
 
8
8
  class ItemTier < Model
@@ -62,7 +62,7 @@ module ChargeBee
62
62
  :addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address,
63
63
  :referral_info, :billing_override, :invoice_notes, :meta_data, :deleted, :changes_scheduled_at,
64
64
  :contract_term, :cancel_reason_code, :free_period, :free_period_unit, :create_pending_invoices,
65
- :auto_close_invoices, :discounts, :business_entity_id, :decommissioned, :metadata
65
+ :auto_close_invoices, :discounts, :business_entity_id, :decommissioned, :brand_id, :metadata
66
66
  def metadata
67
67
  warn "[DEPRECATION] `metadata` is deprecated please use meta_data instead."
68
68
  @metadata
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class ThirdPartyPaymentMethod < Model
3
3
 
4
- attr_accessor :type, :gateway, :gateway_account_id, :reference_id
4
+ attr_accessor :type, :gateway, :gateway_account_id, :reference_id, :network_transaction_reference
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -21,6 +21,10 @@ module ChargeBee
21
21
  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
22
  end
23
23
 
24
+ class NetworkTransactionDetail < Model
25
+ attr_accessor :network_transaction_id, :original_network_transaction_id
26
+ end
27
+
24
28
  attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_source_id,
25
29
  :payment_method, :reference_number, :gateway, :type, :date, :settled_at, :exchange_rate, :currency_code,
26
30
  :amount, :id_at_gateway, :status, :fraud_flag, :initiator_type, :three_d_secure, :authorization_reason,
@@ -28,7 +32,7 @@ module ChargeBee
28
32
  :amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
29
33
  :amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
30
34
  :linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details,
31
- :error_detail, :custom_payment_method_name
35
+ :error_detail, :custom_payment_method_name, :network_transaction_details
32
36
 
33
37
  # OPERATIONS
34
38
  #-----------
@@ -94,7 +94,7 @@ module ChargeBee
94
94
 
95
95
  def payment_source()
96
96
  payment_source = get(:payment_source, PaymentSource,
97
- {:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :klarna_pay_now => PaymentSource::KlarnaPayNow, :mandates => PaymentSource::Mandate});
97
+ {:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :klarna_pay_now => PaymentSource::KlarnaPayNow, :mandates => PaymentSource::Mandate, :network_transaction_reference => PaymentSource::NetworkTransactionReference});
98
98
  return payment_source;
99
99
  end
100
100
 
@@ -128,6 +128,11 @@ module ChargeBee
128
128
  return promotional_credit;
129
129
  end
130
130
 
131
+ def email_log()
132
+ email_log = get(:email_log, EmailLog);
133
+ return email_log;
134
+ end
135
+
131
136
  def invoice()
132
137
  invoice = get(:invoice, Invoice,
133
138
  {:exchange_rates => Invoice::ExchangeRate, :line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :reference_transactions => Invoice::ReferenceTransaction, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
@@ -141,15 +146,10 @@ module ChargeBee
141
146
 
142
147
  def payment_schedule()
143
148
  payment_schedule = get(:payment_schedule, PaymentSchedule,
144
- {:schedule_entries => PaymentSchedule::ScheduleEntry});
149
+ {:schedule_entries => PaymentSchedule::ScheduleEntry, :reference_transactions => PaymentSchedule::ReferenceTransaction});
145
150
  return payment_schedule;
146
151
  end
147
152
 
148
- def einvoice()
149
- einvoice = get(:einvoice, Einvoice);
150
- return einvoice;
151
- end
152
-
153
153
  def tax_withheld()
154
154
  tax_withheld = get(:tax_withheld, TaxWithheld);
155
155
  return tax_withheld;
@@ -181,10 +181,15 @@ 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});
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});
185
185
  return transaction;
186
186
  end
187
187
 
188
+ def dispute()
189
+ dispute = get(:dispute, Dispute);
190
+ return dispute;
191
+ end
192
+
188
193
  def hosted_page()
189
194
  hosted_page = get(:hosted_page, HostedPage);
190
195
  return hosted_page;
@@ -493,7 +498,7 @@ module ChargeBee
493
498
 
494
499
  def ramp()
495
500
  ramp = get(:ramp, Ramp,
496
- {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier, :contract_term => Ramp::ContractTerm, :status_transition_reason => Ramp::StatusTransitionReason});
501
+ {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier, :contract_term => Ramp::ContractTerm, :billing_configuration => Ramp::BillingConfiguration, :status_transition_reason => Ramp::StatusTransitionReason});
497
502
  return ramp;
498
503
  end
499
504
 
@@ -594,12 +599,23 @@ module ChargeBee
594
599
  return metered_feature;
595
600
  end
596
601
 
602
+ def custom_data_schema()
603
+ custom_data_schema = get(:custom_data_schema, CustomDataSchema);
604
+ return custom_data_schema;
605
+ end
606
+
597
607
  def usage_file()
598
608
  usage_file = get(:usage_file, UsageFile,
599
609
  {:upload_detail => UsageFile::UploadDetail});
600
610
  return usage_file;
601
611
  end
602
612
 
613
+ def einvoice()
614
+ einvoice = get(:einvoice, Einvoice,
615
+ {:artifacts => Einvoice::Artifact});
616
+ return einvoice;
617
+ end
618
+
603
619
  def personalized_offer()
604
620
  personalized_offer = get(:personalized_offer, PersonalizedOffer,
605
621
  {:content => PersonalizedOffer::Content, :options => PersonalizedOffer::Option});
@@ -627,6 +643,37 @@ module ChargeBee
627
643
  return webhook_endpoint;
628
644
  end
629
645
 
646
+ def business_rule()
647
+ business_rule = get(:business_rule, BusinessRule);
648
+ return business_rule;
649
+ end
650
+
651
+ def apply_rule()
652
+ apply_rule = get(:apply_rule, ApplyRule,
653
+ {:rules => ApplyRule::Rule});
654
+ return apply_rule;
655
+ end
656
+
657
+ def applied_rule()
658
+ applied_rule = get(:applied_rule, AppliedRule);
659
+ return applied_rule;
660
+ end
661
+
662
+ def applied_business_rule()
663
+ applied_business_rule = get(:applied_business_rule, AppliedBusinessRule);
664
+ return applied_business_rule;
665
+ end
666
+
667
+ def business_ruleset()
668
+ business_ruleset = get(:business_ruleset, BusinessRuleset);
669
+ return business_ruleset;
670
+ end
671
+
672
+ def business_ruleset_rule()
673
+ business_ruleset_rule = get(:business_ruleset_rule, BusinessRulesetRule);
674
+ return business_ruleset_rule;
675
+ end
676
+
630
677
  def usage_summary()
631
678
  usage_summary = get(:usage_summary, UsageSummary);
632
679
  return usage_summary;
@@ -665,7 +712,8 @@ module ChargeBee
665
712
  end
666
713
 
667
714
  def grant_block()
668
- grant_block = get(:grant_block, GrantBlock);
715
+ grant_block = get(:grant_block, GrantBlock,
716
+ {:provisioned_block_balance => GrantBlock::ProvisionedBlockBalance, :overdraft_block_balance => GrantBlock::OverdraftBlockBalance});
669
717
  return grant_block;
670
718
  end
671
719
 
@@ -707,6 +755,12 @@ module ChargeBee
707
755
  return hierarchies;
708
756
  end
709
757
 
758
+ def email_logs()
759
+ email_logs = get_list(:email_logs, EmailLog,
760
+ {});
761
+ return email_logs;
762
+ end
763
+
710
764
  def invoices()
711
765
  invoices = get_list(:invoices, Invoice,
712
766
  {:exchange_rates => Invoice::ExchangeRate, :line_items => Invoice::LineItem, :line_item_tiers => Invoice::LineItemTier, :line_item_discounts => Invoice::LineItemDiscount, :line_item_taxes => Invoice::LineItemTax, :line_item_credits => Invoice::LineItemCredit, :line_item_addresses => Invoice::LineItemAddress, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :tax_origin => Invoice::TaxOrigin, :linked_payments => Invoice::LinkedPayment, :reference_transactions => Invoice::ReferenceTransaction, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress, :statement_descriptor => Invoice::StatementDescriptor, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
@@ -715,7 +769,7 @@ module ChargeBee
715
769
 
716
770
  def payment_schedules()
717
771
  payment_schedules = get_list(:payment_schedules, PaymentSchedule,
718
- {:schedule_entries => PaymentSchedule::ScheduleEntry});
772
+ {:schedule_entries => PaymentSchedule::ScheduleEntry, :reference_transactions => PaymentSchedule::ReferenceTransaction});
719
773
  return payment_schedules;
720
774
  end
721
775
 
@@ -763,7 +817,7 @@ module ChargeBee
763
817
 
764
818
  def grant_blocks()
765
819
  grant_blocks = get_list(:grant_blocks, GrantBlock,
766
- {});
820
+ {:provisioned_block_balance => GrantBlock::ProvisionedBlockBalance, :overdraft_block_balance => GrantBlock::OverdraftBlockBalance});
767
821
  return grant_blocks;
768
822
  end
769
823
 
data/lib/chargebee.rb CHANGED
@@ -21,6 +21,9 @@ 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
+ require File.dirname(__FILE__) + '/chargebee/models/applied_rule'
26
+ require File.dirname(__FILE__) + '/chargebee/models/apply_rule'
24
27
  require File.dirname(__FILE__) + '/chargebee/models/async_response'
25
28
  require File.dirname(__FILE__) + '/chargebee/models/async_response_list'
26
29
  require File.dirname(__FILE__) + '/chargebee/models/attached_item'
@@ -29,6 +32,9 @@ require File.dirname(__FILE__) + '/chargebee/models/billing_configuration'
29
32
  require File.dirname(__FILE__) + '/chargebee/models/brand'
30
33
  require File.dirname(__FILE__) + '/chargebee/models/business_entity'
31
34
  require File.dirname(__FILE__) + '/chargebee/models/business_entity_transfer'
35
+ require File.dirname(__FILE__) + '/chargebee/models/business_rule'
36
+ require File.dirname(__FILE__) + '/chargebee/models/business_ruleset'
37
+ require File.dirname(__FILE__) + '/chargebee/models/business_ruleset_rule'
32
38
  require File.dirname(__FILE__) + '/chargebee/models/card'
33
39
  require File.dirname(__FILE__) + '/chargebee/models/column_definition'
34
40
  require File.dirname(__FILE__) + '/chargebee/models/comment'
@@ -43,12 +49,15 @@ require File.dirname(__FILE__) + '/chargebee/models/credit_note'
43
49
  require File.dirname(__FILE__) + '/chargebee/models/credit_note_estimate'
44
50
  require File.dirname(__FILE__) + '/chargebee/models/credit_unit'
45
51
  require File.dirname(__FILE__) + '/chargebee/models/currency'
52
+ require File.dirname(__FILE__) + '/chargebee/models/custom_data_schema'
46
53
  require File.dirname(__FILE__) + '/chargebee/models/customer'
47
54
  require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement'
48
55
  require File.dirname(__FILE__) + '/chargebee/models/differential_price'
49
56
  require File.dirname(__FILE__) + '/chargebee/models/discount'
57
+ require File.dirname(__FILE__) + '/chargebee/models/dispute'
50
58
  require File.dirname(__FILE__) + '/chargebee/models/download'
51
59
  require File.dirname(__FILE__) + '/chargebee/models/einvoice'
60
+ require File.dirname(__FILE__) + '/chargebee/models/email_log'
52
61
  require File.dirname(__FILE__) + '/chargebee/models/entitlement'
53
62
  require File.dirname(__FILE__) + '/chargebee/models/entitlement_override'
54
63
  require File.dirname(__FILE__) + '/chargebee/models/estimate'
@@ -140,7 +149,7 @@ require File.dirname(__FILE__) + '/chargebee/models/webhook_endpoint'
140
149
 
141
150
  module ChargeBee
142
151
 
143
- VERSION = '2.79.0'
152
+ VERSION = '2.80.0'
144
153
 
145
154
  @@default_env = nil
146
155
  @@verify_ca_certs = true
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.79.0
4
+ version: 2.80.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-08-19 00:00:00.000000000 Z
12
+ date: 2026-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cgi
@@ -88,6 +88,9 @@ files:
88
88
  - lib/chargebee/models/advance_invoice_schedule.rb
89
89
  - lib/chargebee/models/alert.rb
90
90
  - lib/chargebee/models/alert_status.rb
91
+ - lib/chargebee/models/applied_business_rule.rb
92
+ - lib/chargebee/models/applied_rule.rb
93
+ - lib/chargebee/models/apply_rule.rb
91
94
  - lib/chargebee/models/async_response.rb
92
95
  - lib/chargebee/models/async_response_list.rb
93
96
  - lib/chargebee/models/attached_item.rb
@@ -96,6 +99,9 @@ files:
96
99
  - lib/chargebee/models/brand.rb
97
100
  - lib/chargebee/models/business_entity.rb
98
101
  - lib/chargebee/models/business_entity_transfer.rb
102
+ - lib/chargebee/models/business_rule.rb
103
+ - lib/chargebee/models/business_ruleset.rb
104
+ - lib/chargebee/models/business_ruleset_rule.rb
99
105
  - lib/chargebee/models/card.rb
100
106
  - lib/chargebee/models/column_definition.rb
101
107
  - lib/chargebee/models/comment.rb
@@ -111,12 +117,15 @@ files:
111
117
  - lib/chargebee/models/credit_unit.rb
112
118
  - lib/chargebee/models/csv_tax_rule.rb
113
119
  - lib/chargebee/models/currency.rb
120
+ - lib/chargebee/models/custom_data_schema.rb
114
121
  - lib/chargebee/models/customer.rb
115
122
  - lib/chargebee/models/customer_entitlement.rb
116
123
  - lib/chargebee/models/differential_price.rb
117
124
  - lib/chargebee/models/discount.rb
125
+ - lib/chargebee/models/dispute.rb
118
126
  - lib/chargebee/models/download.rb
119
127
  - lib/chargebee/models/einvoice.rb
128
+ - lib/chargebee/models/email_log.rb
120
129
  - lib/chargebee/models/entitlement.rb
121
130
  - lib/chargebee/models/entitlement_override.rb
122
131
  - lib/chargebee/models/estimate.rb