chargebee 2.64.0 → 2.66.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe14c7cb3dc2b603cd7c604c383759913f023c9a7ea6a35c9a1ce4856f4525ce
4
- data.tar.gz: 4e6d015e8e33c469f4a389be822ca917ebc2075fccc63b7c1ff6591190716b7a
3
+ metadata.gz: 2c9ffda54996839478add95aebac6ec52e4b0a42203224ab0efae47b0f8f4b1e
4
+ data.tar.gz: 7d2a1e6a45878a06a1e16ccf2ee110ba47764c91e5438b472aae4c1e45bac61f
5
5
  SHA512:
6
- metadata.gz: c4c935501f85f6a9ec2e3927df5c7e89b28039825a2e12c8434a38266f47bc0447474bb6392f2ec6b37406c7e893f2324a98ab0843e81b182d321a60dfa148fb
7
- data.tar.gz: c6a285b0be75c689686eef529c6ae9b0447ecc1958341e8a9aa5a232ee45c648016d9a8ca71b08a0bc4994adf8b1e62af4cf79bda03c5286317c04717823f3ce
6
+ metadata.gz: bbf5f789132fa4f31eef91c3417c70d0338e9afb339d7a5007eff727e1f9c4289397b828f19dcf5762725ae58af767b0d4f5161c6c54a534634f561cff8df337
7
+ data.tar.gz: b2352685c3693a36ef0e133cb561afd440daa734920a2fa4b98c8fc3f26ee4dc11f2c94842cf1f4789f4063e29788c0db1d7adfb0e5ff9f1a30ece213dc4d93b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,65 @@
1
+ ### v2.66.0 (2025-12-30)
2
+ * * *
3
+
4
+ ### New Attributes:
5
+ * retry_engine has been added to Invoice#DunningAttempt.
6
+
7
+ ### New Endpoint:
8
+ * move action has been added to ItemPrice.
9
+
10
+ ### New Parameters:
11
+ * exclude_tax_type has been added to Estimate#RenewalEstimateInputParam.
12
+ * variant_id has been added to ItemPrice#MoveInputParam.
13
+ * custom has been added to PricingPageSession#CreateForNewSubscriptionInputParam.
14
+ * custom has been added to PricingPageSession#CreateForExistingSubscriptionInputParam.
15
+
16
+ ### New Enums:
17
+ * ELECTRONIC_PAYMENT_STANDARD has been added to PaymentMethodTypeEnum.
18
+ * KBC_PAYMENT_BUTTON has been added to PaymentMethodTypeEnum.
19
+ * PAY_BY_BANK has been added to PaymentMethodTypeEnum.
20
+ * TRUSTLY has been added to PaymentMethodTypeEnum.
21
+ * STABLECOIN has been added to PaymentMethodTypeEnum.
22
+
23
+ ### v2.65.0 (2025-11-26)
24
+ * * *
25
+
26
+ ### New Resources:
27
+ * Einvoice has been added.
28
+ * QuotedDeltaRamp has been added.
29
+
30
+ ### New Attributes:
31
+ * line_items_next_offset has been added to CreditNote.
32
+ * line_items_next_offset has been added to Invoice.
33
+ * credit_lines has been added to SalesOrder.
34
+ * billable_unit_price has been added to SalesOrder#LineItem.
35
+ * billable_quantity has been added to SalesOrder#LineItem.
36
+ * billable_amount has been added to SalesOrder#LineItem.
37
+
38
+ ### New Endpoint:
39
+ * move has been added to ItemPrice.
40
+
41
+ ### New Parameters:
42
+ * line_items_limit has been added to CreditNote#RetrieveRequest.
43
+ * line_items_offset has been added to CreditNote#RetrieveRequest.
44
+ * line_items_limit has been added to Invoice#RetrieveRequest.
45
+ * line_items_offset has been added to Invoice#RetrieveRequest.
46
+ * item_tiers has been added to Estimate#GiftSubscriptionForItemsRequest.
47
+ * unit_price has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest.
48
+ * unit_price_in_decimal has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest.
49
+ * item_tiers has been added to Gift#CreateForItemsRequest.
50
+ * meta_data has been added to Gift#CreateForItemsRequest.
51
+ * unit_price has been added to Gift#SubscriptionItems#CreateForItemsRequest.
52
+ * unit_price_in_decimal has been added to Gift#SubscriptionItems#CreateForItemsRequest.
53
+ * item_tiers has been added to HostedPage#CheckoutGiftForItemsRequest.
54
+ * unit_price has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest.
55
+ * unit_price_in_decimal has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest.
56
+ * auto_select_local_currency has been added to PricingPageSession#CreateForNewSubscriptionRequest.
57
+
58
+ ### New Enums:
59
+ * EZIDEBIT has been added to GatewayEnum.
60
+ * BUSINESS_RULE has been added to EntityTypeEnum.
61
+ * RULESET has been added to EntityTypeEnum.
62
+
1
63
  ### v2.64.0 (2025-11-10)
2
64
  * * *
3
65
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.64.0)
4
+ chargebee (2.66.0)
5
5
  cgi (>= 0.1.0, < 1.0.0)
6
6
 
7
7
  GEM
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.64.0'
8
- s.date = '2025-11-10'
7
+ s.version = '2.66.0'
8
+ s.date = '2025-12-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 = {
@@ -66,6 +66,7 @@ Gem::Specification.new do |s|
66
66
  lib/chargebee/models/differential_price.rb
67
67
  lib/chargebee/models/discount.rb
68
68
  lib/chargebee/models/download.rb
69
+ lib/chargebee/models/einvoice.rb
69
70
  lib/chargebee/models/entitlement.rb
70
71
  lib/chargebee/models/entitlement_override.rb
71
72
  lib/chargebee/models/estimate.rb
@@ -117,6 +118,7 @@ Gem::Specification.new do |s|
117
118
  lib/chargebee/models/quote.rb
118
119
  lib/chargebee/models/quote_line_group.rb
119
120
  lib/chargebee/models/quoted_charge.rb
121
+ lib/chargebee/models/quoted_delta_ramp.rb
120
122
  lib/chargebee/models/quoted_ramp.rb
121
123
  lib/chargebee/models/quoted_subscription.rb
122
124
  lib/chargebee/models/ramp.rb
@@ -6,6 +6,7 @@ module ChargeBee
6
6
  # OPERATIONS
7
7
  #-----------
8
8
 
9
+ # @deprecated This method is deprecated and will be removed in a future version.
9
10
  def self.create(params, env=nil, headers={})
10
11
  jsonKeys = {
11
12
  }
@@ -60,11 +60,11 @@ module ChargeBee
60
60
  attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
61
61
  :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
62
62
  :amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
63
- :channel, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
64
- :round_off_amount, :fractional_correction, :line_items, :line_item_tiers, :line_item_discounts,
65
- :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin, :linked_refunds, :allocations,
66
- :deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code, :vat_number_prefix,
67
- :business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation
63
+ :channel, :line_items_next_offset, :sub_total, :sub_total_in_local_currency, :total_in_local_currency,
64
+ :local_currency_code, :round_off_amount, :fractional_correction, :line_items, :line_item_tiers,
65
+ :line_item_discounts, :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin,
66
+ :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code,
67
+ :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation
68
68
 
69
69
  # OPERATIONS
70
70
  #-----------
@@ -135,6 +135,7 @@ module ChargeBee
135
135
  Request.send_list_request('get', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys, options)
136
136
  end
137
137
 
138
+ # @deprecated This method is deprecated and will be removed in a future version.
138
139
  def self.credit_notes_for_customer(id, params={}, env=nil, headers={})
139
140
  jsonKeys = {
140
141
  }
@@ -157,6 +157,7 @@ module ChargeBee
157
157
  Request.send('post', uri_path("customers",id.to_s,"delete_contact"), params, env, headers,nil, false, jsonKeys, options)
158
158
  end
159
159
 
160
+ # @deprecated This method is deprecated and will be removed in a future version.
160
161
  def self.add_promotional_credits(id, params, env=nil, headers={})
161
162
  jsonKeys = {
162
163
  }
@@ -166,6 +167,7 @@ module ChargeBee
166
167
  Request.send('post', uri_path("customers",id.to_s,"add_promotional_credits"), params, env, headers,nil, false, jsonKeys, options)
167
168
  end
168
169
 
170
+ # @deprecated This method is deprecated and will be removed in a future version.
169
171
  def self.deduct_promotional_credits(id, params, env=nil, headers={})
170
172
  jsonKeys = {
171
173
  }
@@ -175,6 +177,7 @@ module ChargeBee
175
177
  Request.send('post', uri_path("customers",id.to_s,"deduct_promotional_credits"), params, env, headers,nil, false, jsonKeys, options)
176
178
  end
177
179
 
180
+ # @deprecated This method is deprecated and will be removed in a future version.
178
181
  def self.set_promotional_credits(id, params, env=nil, headers={})
179
182
  jsonKeys = {
180
183
  }
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class Einvoice < Model
3
+
4
+ attr_accessor :id, :reference_number, :status, :message
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~Einvoice
10
+ end # ~ChargeBee
@@ -31,6 +31,7 @@ module ChargeBee
31
31
 
32
32
  def self.create_for_items(params, env=nil, headers={})
33
33
  jsonKeys = {
34
+ :meta_data => 0,
34
35
  :additional_information => 1,
35
36
  }
36
37
  options = {
@@ -72,6 +72,7 @@ module ChargeBee
72
72
  Request.send('post', uri_path("hosted_pages","checkout_existing_for_items"), params, env, headers,nil, false, jsonKeys, options)
73
73
  end
74
74
 
75
+ # @deprecated This method is deprecated and will be removed in a future version.
75
76
  def self.update_card(params, env=nil, headers={})
76
77
  jsonKeys = {
77
78
  }
@@ -46,7 +46,7 @@ module ChargeBee
46
46
  end
47
47
 
48
48
  class DunningAttempt < Model
49
- attr_accessor :attempt, :transaction_id, :dunning_type, :created_at, :txn_status, :txn_amount
49
+ attr_accessor :attempt, :transaction_id, :dunning_type, :created_at, :txn_status, :txn_amount, :retry_engine
50
50
  end
51
51
 
52
52
  class AppliedCredit < Model
@@ -94,13 +94,13 @@ module ChargeBee
94
94
  :currency_code, :local_currency_code, :tax, :sub_total, :sub_total_in_local_currency, :total,
95
95
  :total_in_local_currency, :amount_due, :amount_adjusted, :amount_paid, :paid_at, :write_off_amount,
96
96
  :credits_applied, :dunning_status, :next_retry_at, :voided_at, :resource_version, :updated_at,
97
- :first_invoice, :new_sales_amount, :has_advance_charges, :term_finalized, :is_gifted, :generated_at,
98
- :expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :line_item_tiers,
99
- :line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses, :discounts,
100
- :taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts, :applied_credits,
101
- :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address,
102
- :statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category, :vat_number_prefix,
103
- :channel, :business_entity_id, :site_details_at_creation
97
+ :line_items_next_offset, :first_invoice, :new_sales_amount, :has_advance_charges, :term_finalized,
98
+ :is_gifted, :generated_at, :expected_payment_date, :amount_to_collect, :round_off_amount, :line_items,
99
+ :line_item_tiers, :line_item_discounts, :line_item_taxes, :line_item_credits, :line_item_addresses,
100
+ :discounts, :taxes, :tax_origin, :linked_payments, :reference_transactions, :dunning_attempts,
101
+ :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address,
102
+ :billing_address, :statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category,
103
+ :vat_number_prefix, :channel, :business_entity_id, :site_details_at_creation
104
104
 
105
105
  # OPERATIONS
106
106
  #-----------
@@ -145,6 +145,7 @@ module ChargeBee
145
145
  Request.send('post', uri_path("invoices","charge_addon"), params, env, headers,nil, false, jsonKeys, options)
146
146
  end
147
147
 
148
+ # @deprecated This method is deprecated and will be removed in a future version.
148
149
  def self.create_for_charge_item(params, env=nil, headers={})
149
150
  jsonKeys = {
150
151
  }
@@ -233,6 +234,7 @@ module ChargeBee
233
234
  Request.send_list_request('get', uri_path("invoices"), params, env, headers,nil, false, jsonKeys, options)
234
235
  end
235
236
 
237
+ # @deprecated This method is deprecated and will be removed in a future version.
236
238
  def self.invoices_for_customer(id, params={}, env=nil, headers={})
237
239
  jsonKeys = {
238
240
  }
@@ -240,6 +242,7 @@ module ChargeBee
240
242
  Request.send('get', uri_path("customers",id.to_s,"invoices"), params, env, headers,nil, false, jsonKeys, options)
241
243
  end
242
244
 
245
+ # @deprecated This method is deprecated and will be removed in a future version.
243
246
  def self.invoices_for_subscription(id, params={}, env=nil, headers={})
244
247
  jsonKeys = {
245
248
  }
@@ -85,5 +85,15 @@ module ChargeBee
85
85
  Request.send('get', uri_path("item_prices",id.to_s,"applicable_item_prices"), params, env, headers,nil, false, jsonKeys, options)
86
86
  end
87
87
 
88
+ # @deprecated This method is deprecated and will be removed in a future version.
89
+ def self.move_item_price(id, params, env=nil, headers={})
90
+ jsonKeys = {
91
+ }
92
+ options = {
93
+ :isIdempotent => true
94
+ }
95
+ Request.send('post', uri_path("item_prices",id.to_s,"move"), params, env, headers,nil, false, jsonKeys, options)
96
+ end
97
+
88
98
  end # ~ItemPrice
89
99
  end # ~ChargeBee
@@ -128,6 +128,7 @@ module ChargeBee
128
128
  Request.send_list_request('get', uri_path("orders"), params, env, headers,nil, false, jsonKeys, options)
129
129
  end
130
130
 
131
+ # @deprecated This method is deprecated and will be removed in a future version.
131
132
  def self.orders_for_invoice(id, params={}, env=nil, headers={})
132
133
  jsonKeys = {
133
134
  }
@@ -8,6 +8,7 @@ module ChargeBee
8
8
 
9
9
  def self.create_for_new_subscription(params, env=nil, headers={})
10
10
  jsonKeys = {
11
+ :custom => 0,
11
12
  }
12
13
  options = {
13
14
  :isIdempotent => true
@@ -17,6 +18,7 @@ module ChargeBee
17
18
 
18
19
  def self.create_for_existing_subscription(params, env=nil, headers={})
19
20
  jsonKeys = {
21
+ :custom => 0,
20
22
  }
21
23
  options = {
22
24
  :isIdempotent => true
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class QuotedDeltaRamp < Model
3
+
4
+ class LineItem < Model
5
+ attr_accessor :item_level_discount_per_billing_cycle_in_decimal
6
+ end
7
+
8
+ attr_accessor :line_items
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~QuotedDeltaRamp
14
+ end # ~ChargeBee
@@ -113,6 +113,7 @@ module ChargeBee
113
113
  Request.send_list_request('get', uri_path("subscriptions"), params, env, headers,nil, false, jsonKeys, options)
114
114
  end
115
115
 
116
+ # @deprecated This method is deprecated and will be removed in a future version.
116
117
  def self.subscriptions_for_customer(id, params={}, env=nil, headers={})
117
118
  jsonKeys = {
118
119
  }
@@ -85,6 +85,7 @@ module ChargeBee
85
85
  Request.send_list_request('get', uri_path("transactions"), params, env, headers,nil, false, jsonKeys, options)
86
86
  end
87
87
 
88
+ # @deprecated This method is deprecated and will be removed in a future version.
88
89
  def self.transactions_for_customer(id, params={}, env=nil, headers={})
89
90
  jsonKeys = {
90
91
  }
@@ -92,6 +93,7 @@ module ChargeBee
92
93
  Request.send('get', uri_path("customers",id.to_s,"transactions"), params, env, headers,nil, false, jsonKeys, options)
93
94
  end
94
95
 
96
+ # @deprecated This method is deprecated and will be removed in a future version.
95
97
  def self.transactions_for_subscription(id, params={}, env=nil, headers={})
96
98
  jsonKeys = {
97
99
  }
@@ -121,6 +121,11 @@ module ChargeBee
121
121
  return payment_schedule;
122
122
  end
123
123
 
124
+ def einvoice()
125
+ einvoice = get(:einvoice, Einvoice);
126
+ return einvoice;
127
+ end
128
+
124
129
  def tax_withheld()
125
130
  tax_withheld = get(:tax_withheld, TaxWithheld);
126
131
  return tax_withheld;
@@ -207,6 +212,12 @@ module ChargeBee
207
212
  return quoted_ramp;
208
213
  end
209
214
 
215
+ def quoted_delta_ramp()
216
+ quoted_delta_ramp = get(:quoted_delta_ramp, QuotedDeltaRamp,
217
+ {:line_items => QuotedDeltaRamp::LineItem});
218
+ return quoted_delta_ramp;
219
+ end
220
+
210
221
  def billing_configuration()
211
222
  billing_configuration = get(:billing_configuration, BillingConfiguration,
212
223
  {:billing_dates => BillingConfiguration::BillingDate});
data/lib/chargebee.rb CHANGED
@@ -94,11 +94,13 @@ require File.dirname(__FILE__) + '/chargebee/models/omnichannel_one_time_order_i
94
94
  require File.dirname(__FILE__) + '/chargebee/models/personalized_offer'
95
95
  require File.dirname(__FILE__) + '/chargebee/models/offer_event'
96
96
  require File.dirname(__FILE__) + '/chargebee/models/offer_fulfillment'
97
+ require File.dirname(__FILE__) + '/chargebee/models/quoted_delta_ramp'
98
+ require File.dirname(__FILE__) + '/chargebee/models/einvoice'
97
99
 
98
100
 
99
101
  module ChargeBee
100
102
 
101
- VERSION = '2.64.0'
103
+ VERSION = '2.66.0'
102
104
 
103
105
  @@default_env = nil
104
106
  @@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.64.0
4
+ version: 2.66.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: 2025-11-10 00:00:00.000000000 Z
12
+ date: 2025-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cgi
@@ -107,6 +107,7 @@ files:
107
107
  - lib/chargebee/models/differential_price.rb
108
108
  - lib/chargebee/models/discount.rb
109
109
  - lib/chargebee/models/download.rb
110
+ - lib/chargebee/models/einvoice.rb
110
111
  - lib/chargebee/models/entitlement.rb
111
112
  - lib/chargebee/models/entitlement_override.rb
112
113
  - lib/chargebee/models/estimate.rb
@@ -158,6 +159,7 @@ files:
158
159
  - lib/chargebee/models/quote.rb
159
160
  - lib/chargebee/models/quote_line_group.rb
160
161
  - lib/chargebee/models/quoted_charge.rb
162
+ - lib/chargebee/models/quoted_delta_ramp.rb
161
163
  - lib/chargebee/models/quoted_ramp.rb
162
164
  - lib/chargebee/models/quoted_subscription.rb
163
165
  - lib/chargebee/models/ramp.rb