chargebee 2.37.1 → 2.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a226e1916a0240ad1d0fec4c9f21942034dab2c
4
- data.tar.gz: 36a41360194ea3a38e9649572d59ff072f687534
3
+ metadata.gz: 93e8fee9f93d2271c4b16806e33791e2fc67dec6
4
+ data.tar.gz: 406b3e3b3a1bfd2b3a22a087133127999d9451dd
5
5
  SHA512:
6
- metadata.gz: 1823c23c0059cd62eadd852bd079dbd4b3a1ef72d71651875f68c1a7ab83db84ccb067f710d8cfcb953dee7dafd76fa705dd23bd7f7d25a32d162df78de19963
7
- data.tar.gz: 4118ff71fc761aeddea02ea7a50501766500837dfba3aabb3703f61f95e5ed98fb71b2965fb373343b23999589b34f95670111edf946d1da5e24a21b716a2343
6
+ metadata.gz: e6e74044e6bf9050d5802f349104a68706db921fc1175a2e23e826ef7f62cd8af90e12e842fcc97798a607e61101694dde7e708ac9755d2e5d713c5e441a7da5
7
+ data.tar.gz: 48ea2bf0e8063e5a1f5e6891cf1aeb1d83e7b15c413a4111390ecdc57a0d9c725fd7abb9d485a2f87445ee4486878b6ea670f8975559db6d61c712d122a02b71
data/CHANGELOG.md CHANGED
@@ -1,3 +1,57 @@
1
+ ### v2.38.0 (2024-04-30)
2
+ * * *
3
+
4
+ #### New resources:
5
+ * PriceVariant has been added.
6
+ * Ramp has been added.
7
+ * InstallmentDetail has been added.
8
+ * Session has been added.
9
+ * Ramp has been added.
10
+
11
+ #### New Enum values:
12
+ * INVOICE_INSTALLMENTS_CREATED has been added in EventType enum.
13
+ * INVOICE_INSTALLMENT_UPDATED has been added in EventType enum.
14
+ * INSTALLMENT_CONFIG_CREATED has been added in EventType enum.
15
+ * INSTALLMENT_CONFIG_DELETED has been added in EventType enum.
16
+ * RAMP_CREATED has been added in EventType enum.
17
+ * RAMP_DELETED has been added in EventType enum.
18
+ * RAMP_APPLIED has been added in EventType enum.
19
+
20
+ #### New Attributes:
21
+ * tax_providers_fields has been added to Addon resource.
22
+ * tax_providers_fields has been added to Customer resource.
23
+ * tax_providers_fields has been added to ItemPrice resource.
24
+ * tax_providers_fields has been added to Plan resource.
25
+ * resource_version has been added to Installment resource.
26
+ * resource_version has been added to InstallmentConfig resource.
27
+ * KlarnaPayNow has been added to PaymentSource resource.
28
+ * business_entity_id has been added to UnbilledCharge resource.
29
+
30
+ #### New Endpoints:
31
+ * Exports#PriceVariantsRequest has been added to Exports resource.
32
+
33
+ #### New Input parameters:
34
+ * changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionRequest.
35
+ * changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionForItemsRequest.
36
+ * contract_term[contract_start] has been added to Estimate#CreateSubItemEstimateRequest.
37
+ * contract_term[contract_start] has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
38
+ * contract_term[contract_start] has been added to Subscription#CreateWithItemsRequest.
39
+ * contract_term[contract_start] has been added to Subscription#UpdateForItemsRequest.
40
+ * price_variant_id has been added to ItemPrice#CreateRequest.
41
+ * price_variant_id has been added to ItemPrice#UpdateRequest.
42
+ * price_variant_id has been added to ItemPrice#ListRequest.
43
+
44
+ #### Removed attributes:
45
+ * additional_info has been removed from Invoice#StatmentDescriptor resource.
46
+
47
+ #### Removed Input parameters:
48
+ * additional_info has been removed from Subscription#CreateRequest.
49
+ * additional_info has been removed from Subscription#CreateForCustomerRequest.
50
+ * additional_info has been removed from Subscription#CreateWithItemsRequest.
51
+ * additional_info has been removed from Subscription#UpdateRequest.
52
+ * additional_info has been removed from Subscription#UpdateForItemsRequest.
53
+ * additional_info has been removed from Subscription#ReactivateRequest.
54
+
1
55
  ### v2.37.1 (2024-04-03)
2
56
  * * *
3
57
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.37.1)
4
+ chargebee (2.38.0)
5
5
  cgi (>= 0.1.0, < 1.0.0)
6
6
  json_pure (~> 2.1)
7
7
  rest-client (>= 1.8, <= 2.0.2)
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.37.1'
8
- s.date = '2024-04-03'
7
+ s.version = '2.38.0'
8
+ s.date = '2024-04-30'
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 = {
@@ -77,6 +77,7 @@ Gem::Specification.new do |s|
77
77
  lib/chargebee/models/in_app_subscription.rb
78
78
  lib/chargebee/models/installment.rb
79
79
  lib/chargebee/models/installment_config.rb
80
+ lib/chargebee/models/installment_detail.rb
80
81
  lib/chargebee/models/invoice.rb
81
82
  lib/chargebee/models/invoice_estimate.rb
82
83
  lib/chargebee/models/item.rb
@@ -92,13 +93,16 @@ Gem::Specification.new do |s|
92
93
  lib/chargebee/models/payment_voucher.rb
93
94
  lib/chargebee/models/plan.rb
94
95
  lib/chargebee/models/portal_session.rb
96
+ lib/chargebee/models/price_variant.rb
95
97
  lib/chargebee/models/promotional_credit.rb
96
98
  lib/chargebee/models/purchase.rb
97
99
  lib/chargebee/models/quote.rb
98
100
  lib/chargebee/models/quote_line_group.rb
99
101
  lib/chargebee/models/quoted_charge.rb
100
102
  lib/chargebee/models/quoted_subscription.rb
103
+ lib/chargebee/models/ramp.rb
101
104
  lib/chargebee/models/resource_migration.rb
105
+ lib/chargebee/models/session.rb
102
106
  lib/chargebee/models/site_migration_detail.rb
103
107
  lib/chargebee/models/subscription.rb
104
108
  lib/chargebee/models/subscription_entitlement.rb
@@ -5,13 +5,17 @@ module ChargeBee
5
5
  attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
6
6
  end
7
7
 
8
+ class TaxProvidersField < Model
9
+ attr_accessor :provider_name, :field_id, :field_value
10
+ end
11
+
8
12
  attr_accessor :id, :name, :invoice_name, :description, :pricing_model, :type, :charge_type,
9
13
  :price, :currency_code, :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal,
10
14
  :tax_code, :hsn_code, :taxjar_product_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
11
15
  :sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3,
12
16
  :accounting_category4, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
13
17
  :resource_version, :updated_at, :price_in_decimal, :included_in_mrr, :channel, :proration_type,
14
- :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :show_description_in_invoices,
18
+ :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :tax_providers_fields, :show_description_in_invoices,
15
19
  :show_description_in_quotes
16
20
 
17
21
  # OPERATIONS
@@ -25,6 +25,10 @@ module ChargeBee
25
25
  attr_accessor :id, :value, :scheme, :standard
26
26
  end
27
27
 
28
+ class TaxProvidersField < Model
29
+ attr_accessor :provider_name, :field_id, :field_value
30
+ end
31
+
28
32
  class Relationship < Model
29
33
  attr_accessor :parent_id, :payment_owner_id, :invoice_owner_id
30
34
  end
@@ -45,8 +49,8 @@ module ChargeBee
45
49
  :active_id, :card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id,
46
50
  :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes, :business_entity_id,
47
51
  :preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
48
- :balances, :entity_identifiers, :is_einvoice_enabled, :einvoicing_method, :meta_data, :deleted,
49
- :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
52
+ :balances, :entity_identifiers, :tax_providers_fields, :is_einvoice_enabled, :einvoicing_method,
53
+ :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
50
54
  :client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access,
51
55
  :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard
52
56
 
@@ -104,5 +104,9 @@ end
104
104
  Request.send('post', uri_path("exports","differential_prices"), params, env, headers)
105
105
  end
106
106
 
107
+ def self.price_variants(params={}, env=nil, headers={})
108
+ Request.send('post', uri_path("exports","price_variants"), params, env, headers)
109
+ end
110
+
107
111
  end # ~Export
108
112
  end # ~ChargeBee
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class Installment < Model
3
3
 
4
- attr_accessor :id, :invoice_id, :date, :amount, :status, :created_at, :updated_at
4
+ attr_accessor :id, :invoice_id, :date, :amount, :status, :created_at, :resource_version, :updated_at
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  attr_accessor :id, :description, :number_of_installments, :period_unit, :period, :preferred_day,
9
- :created_at, :updated_at, :installments
9
+ :created_at, :resource_version, :updated_at, :installments
10
10
 
11
11
  # OPERATIONS
12
12
  #-----------
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class InstallmentDetail < Model
3
+
4
+ class Installment < Model
5
+ attr_accessor :id, :invoice_id, :date, :amount, :status, :created_at, :resource_version, :updated_at
6
+ end
7
+
8
+ attr_accessor :id, :invoice_id, :amount, :installments
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~InstallmentDetail
14
+ end # ~ChargeBee
@@ -58,7 +58,7 @@ module ChargeBee
58
58
  end
59
59
 
60
60
  class StatementDescriptor < Model
61
- attr_accessor :id, :descriptor, :additional_info
61
+ attr_accessor :id, :descriptor
62
62
  end
63
63
 
64
64
  class BillingAddress < Model
@@ -9,16 +9,21 @@ module ChargeBee
9
9
  attr_accessor :tax_profile_id, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type, :avalara_tax_code, :hsn_code, :taxjar_product_code
10
10
  end
11
11
 
12
+ class TaxProvidersField < Model
13
+ attr_accessor :provider_name, :field_id, :field_value
14
+ end
15
+
12
16
  class AccountingDetail < Model
13
17
  attr_accessor :sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3, :accounting_category4
14
18
  end
15
19
 
16
20
  attr_accessor :id, :name, :item_family_id, :item_id, :description, :status, :external_name,
17
- :proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code, :period_unit,
18
- :trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
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,
19
23
  :billing_cycles, :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at,
20
- :created_at, :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :accounting_detail,
21
- :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices, :show_description_in_quotes
24
+ :created_at, :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :tax_providers_fields,
25
+ :accounting_detail, :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices,
26
+ :show_description_in_quotes
22
27
 
23
28
  # OPERATIONS
24
29
  #-----------
@@ -33,13 +33,18 @@ module ChargeBee
33
33
  attr_accessor :user_name
34
34
  end
35
35
 
36
+ class KlarnaPayNow < Model
37
+ attr_accessor :email
38
+ end
39
+
36
40
  class Mandate < Model
37
41
  attr_accessor :id, :subscription_id, :created_at
38
42
  end
39
43
 
40
44
  attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
41
45
  :status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
42
- :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :mandates, :deleted, :business_entity_id
46
+ :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :klarna_pay_now, :mandates,
47
+ :deleted, :business_entity_id
43
48
 
44
49
  # OPERATIONS
45
50
  #-----------
@@ -5,6 +5,10 @@ module ChargeBee
5
5
  attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
6
6
  end
7
7
 
8
+ class TaxProvidersField < Model
9
+ attr_accessor :provider_name, :field_id, :field_value
10
+ end
11
+
8
12
  class ApplicableAddon < Model
9
13
  attr_accessor :id
10
14
  end
@@ -25,7 +29,8 @@ module ChargeBee
25
29
  :accounting_category2, :accounting_category3, :accounting_category4, :is_shippable, :shipping_frequency_period,
26
30
  :shipping_frequency_period_unit, :resource_version, :updated_at, :giftable, :claim_url, :free_quantity_in_decimal,
27
31
  :price_in_decimal, :channel, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers,
28
- :applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices, :show_description_in_quotes
32
+ :tax_providers_fields, :applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices,
33
+ :show_description_in_quotes
29
34
 
30
35
  # OPERATIONS
31
36
  #-----------
@@ -0,0 +1,35 @@
1
+ module ChargeBee
2
+ class PriceVariant < Model
3
+
4
+ class Attribute < Model
5
+ attr_accessor :name, :value
6
+ end
7
+
8
+ attr_accessor :id, :name, :external_name, :description, :status, :created_at, :resource_version,
9
+ :updated_at, :archived_at, :attributes
10
+
11
+ # OPERATIONS
12
+ #-----------
13
+
14
+ def self.create(params, env=nil, headers={})
15
+ Request.send('post', uri_path("price_variants"), params, env, headers)
16
+ end
17
+
18
+ def self.retrieve(id, env=nil, headers={})
19
+ Request.send('get', uri_path("price_variants",id.to_s), {}, env, headers)
20
+ end
21
+
22
+ def self.update(id, params, env=nil, headers={})
23
+ Request.send('post', uri_path("price_variants",id.to_s), params, env, headers)
24
+ end
25
+
26
+ def self.delete(id, env=nil, headers={})
27
+ Request.send('post', uri_path("price_variants",id.to_s,"delete"), {}, env, headers)
28
+ end
29
+
30
+ def self.list(params={}, env=nil, headers={})
31
+ Request.send_list_request('get', uri_path("price_variants"), params, env, headers)
32
+ end
33
+
34
+ end # ~PriceVariant
35
+ end # ~ChargeBee
@@ -0,0 +1,48 @@
1
+ module ChargeBee
2
+ class Ramp < Model
3
+
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
6
+ end
7
+
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
10
+ end
11
+
12
+ class CouponsToAdd < Model
13
+ attr_accessor :coupon_id, :apply_till
14
+ end
15
+
16
+ class DiscountsToAdd < Model
17
+ attr_accessor :id, :invoice_name, :type, :percentage, :amount, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at
18
+ end
19
+
20
+ class ItemTier < Model
21
+ attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
22
+ end
23
+
24
+ attr_accessor :id, :description, :subscription_id, :effective_from, :status, :created_at, :resource_version,
25
+ :updated_at, :items_to_add, :items_to_update, :coupons_to_add, :discounts_to_add, :item_tiers,
26
+ :items_to_remove, :coupons_to_remove, :discounts_to_remove, :deleted
27
+
28
+ # OPERATIONS
29
+ #-----------
30
+
31
+ def self.create_for_subscription(id, params, env=nil, headers={})
32
+ Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers)
33
+ end
34
+
35
+ def self.retrieve(id, env=nil, headers={})
36
+ Request.send('get', uri_path("ramps",id.to_s), {}, env, headers)
37
+ end
38
+
39
+ def self.delete(id, env=nil, headers={})
40
+ Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers)
41
+ end
42
+
43
+ def self.list(params, env=nil, headers={})
44
+ Request.send_list_request('get', uri_path("ramps"), params, env, headers)
45
+ end
46
+
47
+ end # ~Ramp
48
+ end # ~ChargeBee
@@ -0,0 +1,29 @@
1
+ module ChargeBee
2
+ class Session < Model
3
+
4
+ attr_accessor :id, :created_at, :expires_at
5
+
6
+ class Content < Result
7
+ end
8
+
9
+ def content
10
+ if @values[:content].nil?
11
+ nil
12
+ else
13
+ Content.new(@values[:content])
14
+ end
15
+ end
16
+
17
+ # OPERATIONS
18
+ #-----------
19
+
20
+ def self.create(params={}, env=nil, headers={})
21
+ Request.send('post', uri_path("sessions"), params, env, headers)
22
+ end
23
+
24
+ def self.retrieve(id, params={}, env=nil, headers={})
25
+ Request.send('get', uri_path("sessions",id.to_s), params, env, headers)
26
+ end
27
+
28
+ end # ~Session
29
+ end # ~ChargeBee
@@ -8,7 +8,7 @@ module ChargeBee
8
8
  attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
9
9
  :quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
10
10
  :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :updated_at,
11
- :tiers, :is_advance_charge, :deleted
11
+ :tiers, :is_advance_charge, :business_entity_id, :deleted
12
12
 
13
13
  # OPERATIONS
14
14
  #-----------
@@ -45,7 +45,7 @@ module ChargeBee
45
45
 
46
46
  def customer()
47
47
  customer = get(:customer, Customer,
48
- {:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :entity_identifiers => Customer::EntityIdentifier, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
48
+ {:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :entity_identifiers => Customer::EntityIdentifier, :tax_providers_fields => Customer::TaxProvidersField, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
49
49
  return customer;
50
50
  end
51
51
 
@@ -66,7 +66,7 @@ module ChargeBee
66
66
 
67
67
  def payment_source()
68
68
  payment_source = get(:payment_source, PaymentSource,
69
- {: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, :mandates => PaymentSource::Mandate});
69
+ {: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});
70
70
  return payment_source;
71
71
  end
72
72
 
@@ -187,13 +187,13 @@ module ChargeBee
187
187
 
188
188
  def plan()
189
189
  plan = get(:plan, Plan,
190
- {:tiers => Plan::Tier, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
190
+ {:tiers => Plan::Tier, :tax_providers_fields => Plan::TaxProvidersField, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
191
191
  return plan;
192
192
  end
193
193
 
194
194
  def addon()
195
195
  addon = get(:addon, Addon,
196
- {:tiers => Addon::Tier});
196
+ {:tiers => Addon::Tier, :tax_providers_fields => Addon::TaxProvidersField});
197
197
  return addon;
198
198
  end
199
199
 
@@ -288,6 +288,12 @@ module ChargeBee
288
288
  return item;
289
289
  end
290
290
 
291
+ def price_variant()
292
+ price_variant = get(:price_variant, PriceVariant,
293
+ {:attributes => PriceVariant::Attribute});
294
+ return price_variant;
295
+ end
296
+
291
297
  def attribute()
292
298
  attribute = get(:attribute, Attribute);
293
299
  return attribute;
@@ -295,7 +301,7 @@ module ChargeBee
295
301
 
296
302
  def item_price()
297
303
  item_price = get(:item_price, ItemPrice,
298
- {:tiers => ItemPrice::Tier, :tax_detail => ItemPrice::TaxDetail, :accounting_detail => ItemPrice::AccountingDetail});
304
+ {:tiers => ItemPrice::Tier, :tax_detail => ItemPrice::TaxDetail, :tax_providers_fields => ItemPrice::TaxProvidersField, :accounting_detail => ItemPrice::AccountingDetail});
299
305
  return item_price;
300
306
  end
301
307
 
@@ -376,6 +382,12 @@ module ChargeBee
376
382
  return payment_voucher;
377
383
  end
378
384
 
385
+ def ramp()
386
+ ramp = get(:ramp, Ramp,
387
+ {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier});
388
+ return ramp;
389
+ end
390
+
379
391
  def installment_config()
380
392
  installment_config = get(:installment_config, InstallmentConfig,
381
393
  {:installments => InstallmentConfig::Installment});
@@ -387,6 +399,17 @@ module ChargeBee
387
399
  return installment;
388
400
  end
389
401
 
402
+ def installment_detail()
403
+ installment_detail = get(:installment_detail, InstallmentDetail,
404
+ {:installments => InstallmentDetail::Installment});
405
+ return installment_detail;
406
+ end
407
+
408
+ def session()
409
+ session = get(:session, Session);
410
+ return session;
411
+ end
412
+
390
413
  def advance_invoice_schedules()
391
414
  advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
392
415
  {:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
@@ -411,7 +434,7 @@ module ChargeBee
411
434
  return differential_prices;
412
435
  end
413
436
 
414
- def credit_notes()
437
+ def credit_notes()
415
438
  credit_notes = get_list(:credit_notes, CreditNote,
416
439
  {:einvoice => CreditNote::Einvoice, :line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress});
417
440
  return credit_notes;
data/lib/chargebee.rb CHANGED
@@ -31,6 +31,7 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon_set'
31
31
  require File.dirname(__FILE__) + '/chargebee/models/comment'
32
32
  require File.dirname(__FILE__) + '/chargebee/models/portal_session'
33
33
  require File.dirname(__FILE__) + '/chargebee/models/download'
34
+ require File.dirname(__FILE__) + '/chargebee/models/entitlement'
34
35
  require File.dirname(__FILE__) + '/chargebee/models/site_migration_detail'
35
36
  require File.dirname(__FILE__) + '/chargebee/models/resource_migration'
36
37
  require File.dirname(__FILE__) + '/chargebee/models/payment_source'
@@ -66,10 +67,14 @@ require File.dirname(__FILE__) + '/chargebee/models/subscription_entitlement'
66
67
  require File.dirname(__FILE__) + '/chargebee/models/tax_withheld.rb'
67
68
  require File.dirname(__FILE__) + '/chargebee/models/token.rb'
68
69
  require File.dirname(__FILE__) + '/chargebee/models/non_subscription.rb'
70
+ require File.dirname(__FILE__) + '/chargebee/models/price_variant'
71
+ require File.dirname(__FILE__) + '/chargebee/models/installment_detail'
72
+ require File.dirname(__FILE__) + '/chargebee/models/session'
73
+ require File.dirname(__FILE__) + '/chargebee/models/ramp'
69
74
 
70
75
  module ChargeBee
71
76
 
72
- VERSION = '2.37.1'
77
+ VERSION = '2.38.0'
73
78
 
74
79
  @@default_env = nil
75
80
  @@verify_ca_certs = true
@@ -96,7 +101,6 @@ module ChargeBee
96
101
  @@ca_cert_path
97
102
  end
98
103
 
99
-
100
104
  def self.source(source)
101
105
  @@user_agent = @@user_agent + ' ' + source unless source.nil?
102
106
  end
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.37.1
4
+ version: 2.38.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: 2024-04-03 00:00:00.000000000 Z
12
+ date: 2024-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -150,6 +150,7 @@ files:
150
150
  - lib/chargebee/models/in_app_subscription.rb
151
151
  - lib/chargebee/models/installment.rb
152
152
  - lib/chargebee/models/installment_config.rb
153
+ - lib/chargebee/models/installment_detail.rb
153
154
  - lib/chargebee/models/invoice.rb
154
155
  - lib/chargebee/models/invoice_estimate.rb
155
156
  - lib/chargebee/models/item.rb
@@ -165,13 +166,16 @@ files:
165
166
  - lib/chargebee/models/payment_voucher.rb
166
167
  - lib/chargebee/models/plan.rb
167
168
  - lib/chargebee/models/portal_session.rb
169
+ - lib/chargebee/models/price_variant.rb
168
170
  - lib/chargebee/models/promotional_credit.rb
169
171
  - lib/chargebee/models/purchase.rb
170
172
  - lib/chargebee/models/quote.rb
171
173
  - lib/chargebee/models/quote_line_group.rb
172
174
  - lib/chargebee/models/quoted_charge.rb
173
175
  - lib/chargebee/models/quoted_subscription.rb
176
+ - lib/chargebee/models/ramp.rb
174
177
  - lib/chargebee/models/resource_migration.rb
178
+ - lib/chargebee/models/session.rb
175
179
  - lib/chargebee/models/site_migration_detail.rb
176
180
  - lib/chargebee/models/subscription.rb
177
181
  - lib/chargebee/models/subscription_entitlement.rb