chargebee 2.39.1 → 2.41.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: febec613dcb696d64ff571a2eb8792a05c767821
4
- data.tar.gz: 36286b11714bdf543122ed585f23b4181e6bb348
3
+ metadata.gz: 9511a1ef05914ae5592cc5646967d62a17e07d29
4
+ data.tar.gz: 4843d736fabe83572b79db751d3ce29ac1ab7579
5
5
  SHA512:
6
- metadata.gz: 0ef53ba3d7f301127b123967a07b1e2d87c68a472c8df5352ec078d3830a20baad4dd3960ae9d5d7ed0dda2fe56d2a2579e89e23d286e472a3c797b14930a8e9
7
- data.tar.gz: 25290bf87ea32fe60092468e9595afa5029286005a28143684b0908b69e92176d318cae8dce7ca8b3ad80e0cd4bf54a4411a4a5b7b51d44124625d8b3a084710
6
+ metadata.gz: 9e4d67412f78086718579e3aef00c45fdfc4a49f54b527adb68096c3d5aa55c3d9110f6691e03a0c671a329d3675a13749229bd9cdb12f2d9a71036b24d03527
7
+ data.tar.gz: 0f3ad7d7d19e0e7a08ee5905daf891ca476005dfb1e396480b7938aee6101bd0f4188c02022ea360984040cab4b4267062dd013aaa07b6ca116d35c0b456c4d3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,57 @@
1
+ ### v2.41.0 (2024-07-31)
2
+ * * *
3
+
4
+ #### New Resource:
5
+ * Metadata has been added.
6
+
7
+ #### New Attributes:
8
+ * variant_group has been added in PriceVariant resource.
9
+ * effective_from & schedule_status have been added in EntitlementOverride resource.
10
+ * effective_from & schedule_status have been added in SubscriptionEntitlement resource.
11
+ * status_transition_reason has been added in Ramp subresource.
12
+ * billing_period & billing_period_unit have been added in SubscriptionItem subresource.
13
+
14
+ #### New Input parameters:
15
+ * variant_group has been added to PriceVariant#CreateRequest, PriceVariant#UpdateRequest.
16
+ * include_scheduled_overrides has been added to SubscriptionEntitlement#SubscriptionEntitlementsForSubscriptionRequest.
17
+ * entitlement_overrides[effective_from] has been added to SubscriptionEntitlement#SubscriptionEntitlementsForSubscriptionRequest.
18
+ * entitlement_overrides[effective_from] has been added to EntitlementOverride#AddEntitlementOverrideForSubscriptionRequest.
19
+ * include_scheduled_overrides has been added to EntitlementOverride#ListEntitlementOverrideForSubscriptionRequest.
20
+ * updated_at has been added to Usage#ListRequest.
21
+
22
+ #### New Enum values:
23
+ * SUBSCRIPTION_ITEMS_RENEWED has been added in EventType enum.
24
+ * SUBSCRIPTION_RAMP_DRAFTED has been added in EventType enum.
25
+ * SUBSCRIPTION_RAMP_UPDATED has been added in EventType enum.
26
+
27
+ #### Bug Fixes:
28
+ * non_subscription added to the result.rb file.
29
+
30
+ ### v2.40.0 (2024-07-03)
31
+ * * *
32
+
33
+ #### New resources:
34
+ * Currency has been added.
35
+ * PricingPageSession Transfer has been added.
36
+
37
+ #### New Enum
38
+ * cancel_option Enum has been added.
39
+
40
+ #### New Enum values:
41
+ * ONLINE_BANKING_POLAND has been added in PaymentMethod enum.
42
+ * ONLINE_BANKING_POLAND has been added in PaymentMethodType enum.
43
+ * ONLINE_BANKING_POLAND has been added in Type enum.
44
+ * DRAFT has been added in Ramp enum.
45
+
46
+ #### New Input parameters:
47
+ * cancel_option has been added to Estimate#CancelSubscriptionRequest, Estimate#CancelSubscriptionForItemsRequest.
48
+ * cancel_option has been added to Subscription#CancelForItemsRequest, Subscription#CancelRequest.
49
+ * statement_descriptor[descriptor] has been added to Purchase#ChargeRequest.
50
+
51
+ #### New Attributes:
52
+ * tax_origin has been added to Invoice.
53
+ * tax_origin has been added to CreditNote.
54
+
1
55
  ### v2.39.1 (2024-05-28)
2
56
  * * *
3
57
  * Ruby chargebee.rb Import Issue - bugfix
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.39.1)
4
+ chargebee (2.41.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.39.1'
8
- s.date = '2024-05-28'
7
+ s.version = '2.41.0'
8
+ s.date = '2024-07-31'
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 = {
@@ -59,6 +59,7 @@ Gem::Specification.new do |s|
59
59
  lib/chargebee/models/credit_note.rb
60
60
  lib/chargebee/models/credit_note_estimate.rb
61
61
  lib/chargebee/models/csv_tax_rule.rb
62
+ lib/chargebee/models/currency.rb
62
63
  lib/chargebee/models/customer.rb
63
64
  lib/chargebee/models/differential_price.rb
64
65
  lib/chargebee/models/discount.rb
@@ -86,6 +87,7 @@ Gem::Specification.new do |s|
86
87
  lib/chargebee/models/item_entitlement.rb
87
88
  lib/chargebee/models/item_family.rb
88
89
  lib/chargebee/models/item_price.rb
90
+ lib/chargebee/models/metadata.rb
89
91
  lib/chargebee/models/model.rb
90
92
  lib/chargebee/models/non_subscription.rb
91
93
  lib/chargebee/models/order.rb
@@ -96,6 +98,7 @@ Gem::Specification.new do |s|
96
98
  lib/chargebee/models/plan.rb
97
99
  lib/chargebee/models/portal_session.rb
98
100
  lib/chargebee/models/price_variant.rb
101
+ lib/chargebee/models/pricing_page_session.rb
99
102
  lib/chargebee/models/promotional_credit.rb
100
103
  lib/chargebee/models/purchase.rb
101
104
  lib/chargebee/models/quote.rb
@@ -49,6 +49,10 @@ module ChargeBee
49
49
  attr_accessor :timezone, :organization_address
50
50
  end
51
51
 
52
+ class TaxOrigin < Model
53
+ attr_accessor :country, :registration_number
54
+ end
55
+
52
56
  attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
53
57
  :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
54
58
  :amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
@@ -56,7 +60,7 @@ module ChargeBee
56
60
  :round_off_amount, :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers,
57
61
  :taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate,
58
62
  :create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address,
59
- :site_details_at_creation
63
+ :site_details_at_creation, :tax_origin
60
64
 
61
65
  # OPERATIONS
62
66
  #-----------
@@ -0,0 +1,34 @@
1
+ module ChargeBee
2
+ class Currency < Model
3
+
4
+ attr_accessor :id, :enabled, :forex_type, :currency_code, :is_base_currency, :manual_exchange_rate
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.list(env=nil, headers={})
10
+ Request.send_list_request('get', uri_path("currencies","list"), {}, env, headers)
11
+ end
12
+
13
+ def self.retrieve(id, env=nil, headers={})
14
+ Request.send('get', uri_path("currencies",id.to_s), {}, env, headers)
15
+ end
16
+
17
+ def self.create(params, env=nil, headers={})
18
+ Request.send('post', uri_path("currencies"), params, env, headers)
19
+ end
20
+
21
+ def self.update(id, params, env=nil, headers={})
22
+ Request.send('post', uri_path("currencies",id.to_s), params, env, headers)
23
+ end
24
+
25
+ def self.add_schedule(id, params, env=nil, headers={})
26
+ Request.send('post', uri_path("currencies",id.to_s,"add_schedule"), params, env, headers)
27
+ end
28
+
29
+ def self.remove_schedule(id, env=nil, headers={})
30
+ Request.send('post', uri_path("currencies",id.to_s,"remove_schedule"), {}, env, headers)
31
+ end
32
+
33
+ end # ~Currency
34
+ end # ~ChargeBee
@@ -73,6 +73,10 @@ module ChargeBee
73
73
  attr_accessor :timezone, :organization_address
74
74
  end
75
75
 
76
+ class TaxOrigin < Model
77
+ attr_accessor :country, :registration_number
78
+ end
79
+
76
80
  attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
77
81
  :price_type, :date, :due_date, :net_term_days, :exchange_rate, :currency_code, :total, :amount_paid,
78
82
  :amount_adjusted, :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status,
@@ -83,7 +87,7 @@ module ChargeBee
83
87
  :line_item_taxes, :line_item_tiers, :linked_payments, :dunning_attempts, :applied_credits, :adjustment_credit_notes,
84
88
  :issued_credit_notes, :linked_orders, :notes, :shipping_address, :statement_descriptor, :billing_address,
85
89
  :einvoice, :payment_owner, :void_reason_code, :deleted, :tax_category, :vat_number_prefix, :channel,
86
- :business_entity_id, :site_details_at_creation
90
+ :business_entity_id, :site_details_at_creation, :tax_origin
87
91
 
88
92
  # OPERATIONS
89
93
  #-----------
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class Metadata < Model
3
+
4
+ attr_accessor :change_type
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~Metadata
10
+ end # ~ChargeBee
@@ -5,8 +5,8 @@ module ChargeBee
5
5
  attr_accessor :name, :value
6
6
  end
7
7
 
8
- attr_accessor :id, :name, :external_name, :description, :status, :created_at, :resource_version,
9
- :updated_at, :archived_at, :attributes
8
+ attr_accessor :id, :name, :external_name, :variant_group, :description, :status, :created_at,
9
+ :resource_version, :updated_at, :archived_at, :attributes
10
10
 
11
11
  # OPERATIONS
12
12
  #-----------
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class PricingPageSession < Model
3
+
4
+ attr_accessor :id, :url, :created_at, :expires_at
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.create_for_new_subscription(params, env=nil, headers={})
10
+ Request.send('post', uri_path("pricing_page_sessions","create_for_new_subscription"), params, env, headers)
11
+ end
12
+
13
+ def self.create_for_existing_subscription(params, env=nil, headers={})
14
+ Request.send('post', uri_path("pricing_page_sessions","create_for_existing_subscription"), params, env, headers)
15
+ end
16
+
17
+ end # ~PricingPageSession
18
+ end # ~ChargeBee
@@ -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, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type
17
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :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
18
18
  end
19
19
 
20
20
  class ItemTier < Model
@@ -21,9 +21,13 @@ module ChargeBee
21
21
  attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
22
22
  end
23
23
 
24
+ class StatusTransitionReason < Model
25
+ attr_accessor :code, :message
26
+ end
27
+
24
28
  attr_accessor :id, :description, :subscription_id, :effective_from, :status, :created_at, :resource_version,
25
29
  :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
30
+ :items_to_remove, :coupons_to_remove, :discounts_to_remove, :deleted, :status_transition_reason
27
31
 
28
32
  # OPERATIONS
29
33
  #-----------
@@ -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, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type
5
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :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
6
6
  end
7
7
 
8
8
  class ItemTier < Model
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  attr_accessor :subscription_id, :feature_id, :feature_name, :feature_unit, :value, :name, :is_overridden,
9
- :is_enabled, :expires_at, :components
9
+ :is_enabled, :effective_from, :schedule_status, :expires_at, :components
10
10
 
11
11
  # OPERATIONS
12
12
  #-----------
@@ -19,7 +19,7 @@ module ChargeBee
19
19
  Request.send('post', uri_path("subscriptions",id.to_s,"delete_usage"), params, env, headers)
20
20
  end
21
21
 
22
- def self.list(params, env=nil, headers={})
22
+ def self.list(params={}, env=nil, headers={})
23
23
  Request.send_list_request('get', uri_path("usages"), params, env, headers)
24
24
  end
25
25
 
@@ -97,7 +97,7 @@ module ChargeBee
97
97
 
98
98
  def invoice()
99
99
  invoice = get(:invoice, Invoice,
100
- {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :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, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
100
+ {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :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, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation, :tax_origin => Invoice::TaxOrigin});
101
101
  return invoice;
102
102
  end
103
103
 
@@ -113,7 +113,7 @@ module ChargeBee
113
113
 
114
114
  def credit_note()
115
115
  credit_note = get(:credit_note, CreditNote,
116
- {: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, :site_details_at_creation => CreditNote::SiteDetailsAtCreation});
116
+ {: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, :site_details_at_creation => CreditNote::SiteDetailsAtCreation, :tax_origin => CreditNote::TaxOrigin});
117
117
  return credit_note;
118
118
  end
119
119
 
@@ -345,6 +345,11 @@ module ChargeBee
345
345
  return impacted_item_price;
346
346
  end
347
347
 
348
+ def metadata()
349
+ metadata = get(:metadata, Metadata);
350
+ return metadata;
351
+ end
352
+
348
353
  def subscription_entitlement()
349
354
  subscription_entitlement = get(:subscription_entitlement, SubscriptionEntitlement,
350
355
  {:component => SubscriptionEntitlement::Component});
@@ -366,6 +371,11 @@ module ChargeBee
366
371
  return in_app_subscription;
367
372
  end
368
373
 
374
+ def non_subscription()
375
+ non_subscription = get(:non_subscription, NonSubscription);
376
+ return non_subscription;
377
+ end
378
+
369
379
  def entitlement_override()
370
380
  entitlement_override = get(:entitlement_override, EntitlementOverride);
371
381
  return entitlement_override;
@@ -387,9 +397,14 @@ module ChargeBee
387
397
  return payment_voucher;
388
398
  end
389
399
 
400
+ def currency()
401
+ currency = get(:currency, Currency);
402
+ return currency;
403
+ end
404
+
390
405
  def ramp()
391
406
  ramp = get(:ramp, Ramp,
392
- {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier});
407
+ {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier, :status_transition_reason => Ramp::StatusTransitionReason});
393
408
  return ramp;
394
409
  end
395
410
 
@@ -410,6 +425,11 @@ module ChargeBee
410
425
  return installment_detail;
411
426
  end
412
427
 
428
+ def pricing_page_session()
429
+ pricing_page_session = get(:pricing_page_session, PricingPageSession);
430
+ return pricing_page_session;
431
+ end
432
+
413
433
  def advance_invoice_schedules()
414
434
  advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
415
435
  {:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
@@ -424,19 +444,13 @@ module ChargeBee
424
444
 
425
445
  def invoices()
426
446
  invoices = get_list(:invoices, Invoice,
427
- {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :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, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation});
447
+ {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :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, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice, :site_details_at_creation => Invoice::SiteDetailsAtCreation, :tax_origin => Invoice::TaxOrigin});
428
448
  return invoices;
429
449
  end
430
450
 
431
- def differential_prices()
432
- differential_prices = get_list(:differential_prices, DifferentialPrice,
433
- {:tiers => DifferentialPrice::Tier, :parent_periods => DifferentialPrice::ParentPeriod});
434
- return differential_prices;
435
- end
436
-
437
- def credit_notes()
451
+ def credit_notes()
438
452
  credit_notes = get_list(:credit_notes, CreditNote,
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, :site_details_at_creation => CreditNote::SiteDetailsAtCreation});
453
+ {: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, :site_details_at_creation => CreditNote::SiteDetailsAtCreation, :tax_origin => CreditNote::TaxOrigin});
440
454
  return credit_notes;
441
455
  end
442
456
 
data/lib/chargebee.rb CHANGED
@@ -72,10 +72,13 @@ require File.dirname(__FILE__) + '/chargebee/models/installment_detail'
72
72
  require File.dirname(__FILE__) + '/chargebee/models/ramp'
73
73
  require File.dirname(__FILE__) + '/chargebee/models/business_entity'
74
74
  require File.dirname(__FILE__) + '/chargebee/models/business_entity_transfer'
75
+ require File.dirname(__FILE__) + '/chargebee/models/currency'
76
+ require File.dirname(__FILE__) + '/chargebee/models/pricing_page_session'
77
+ require File.dirname(__FILE__) + '/chargebee/models/metadata'
75
78
 
76
79
  module ChargeBee
77
80
 
78
- VERSION = '2.39.1'
81
+ VERSION = '2.41.0'
79
82
 
80
83
  @@default_env = nil
81
84
  @@verify_ca_certs = true
@@ -118,4 +121,3 @@ module ChargeBee
118
121
  @@default_env.read_timeout = read_timeout
119
122
  end
120
123
  end
121
-
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.39.1
4
+ version: 2.41.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-05-28 00:00:00.000000000 Z
12
+ date: 2024-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -132,6 +132,7 @@ files:
132
132
  - lib/chargebee/models/credit_note.rb
133
133
  - lib/chargebee/models/credit_note_estimate.rb
134
134
  - lib/chargebee/models/csv_tax_rule.rb
135
+ - lib/chargebee/models/currency.rb
135
136
  - lib/chargebee/models/customer.rb
136
137
  - lib/chargebee/models/differential_price.rb
137
138
  - lib/chargebee/models/discount.rb
@@ -159,6 +160,7 @@ files:
159
160
  - lib/chargebee/models/item_entitlement.rb
160
161
  - lib/chargebee/models/item_family.rb
161
162
  - lib/chargebee/models/item_price.rb
163
+ - lib/chargebee/models/metadata.rb
162
164
  - lib/chargebee/models/model.rb
163
165
  - lib/chargebee/models/non_subscription.rb
164
166
  - lib/chargebee/models/order.rb
@@ -169,6 +171,7 @@ files:
169
171
  - lib/chargebee/models/plan.rb
170
172
  - lib/chargebee/models/portal_session.rb
171
173
  - lib/chargebee/models/price_variant.rb
174
+ - lib/chargebee/models/pricing_page_session.rb
172
175
  - lib/chargebee/models/promotional_credit.rb
173
176
  - lib/chargebee/models/purchase.rb
174
177
  - lib/chargebee/models/quote.rb