chargebee 2.57.0 → 2.58.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 +5 -5
- data/CHANGELOG.md +28 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +4 -2
- data/lib/chargebee/models/billing_configuration.rb +14 -0
- data/lib/chargebee/models/brand.rb +10 -0
- data/lib/chargebee/models/customer.rb +7 -0
- data/lib/chargebee/models/hierarchy.rb +2 -1
- data/lib/chargebee/models/quoted_ramp.rb +7 -3
- data/lib/chargebee/result.rb +12 -1
- data/lib/chargebee.rb +1 -1
- metadata +17 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b1cc3386050b2ab1aa940939ce4cdec99d99ae1a78be90f459fbb482ee1fb195
|
4
|
+
data.tar.gz: cd3b659db1ea6cd510ae3ca186c6e35dfe567b370ce12b747d8a1caed608d75b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b6a6f971e017279014fcfeebf66ad88c1e897ae7d4e243ba5bf6014796f9635c224a3a584498b4f3611718651d9feb7eeae0d6ea891c5e2115c9a8f8c78def9
|
7
|
+
data.tar.gz: 849b22407cce88891250aa6e623462a0adcf827c47f17d75017d7465e30196806d9144250a6da32c3816dcb7e1c715f96c2b1c469deade720beeb4aef738df6b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
+
### v2.58.0 (2025-07-18)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
### New Resources:
|
5
|
+
* BillingConfiguration has been added.
|
6
|
+
* Brand has been added.
|
7
|
+
|
8
|
+
### New Attributes:
|
9
|
+
* has_children has been added to Hierarchy
|
10
|
+
* coupon_applicability_mappings has been added to QuotedRamp.
|
11
|
+
|
12
|
+
### New Endpoint:
|
13
|
+
* listHierarchyDetail has been added to Customer.
|
14
|
+
|
15
|
+
### New Input parameters:
|
16
|
+
* change_reason children has been added to Entitlement#CreateRequest.
|
17
|
+
* entitlements[apply_grandfathering] has been added to Entitlement#CreateRequest.
|
18
|
+
* replace_primary_payment_source has been added to Purchase#CreateRequest.
|
19
|
+
* omnichannel_subscription has been added to RecordedPurchase#CreateRequest.
|
20
|
+
* contract_term has been added to Subscription#RemoveScheduledCancellationRequest.
|
21
|
+
* contract_term_billing_cycle_on_renewal has been added to Subscription#RemoveScheduledCancellationRequest.
|
22
|
+
|
23
|
+
### New Enums:
|
24
|
+
* payconiq_by_bancontact has been added to PaymentMethodType.
|
25
|
+
* solidgate has been added to Gateway.
|
26
|
+
* solidgate has been added to PaymentMethod.
|
27
|
+
|
28
|
+
|
1
29
|
### v2.57.0 (2025-06-23)
|
2
30
|
* * *
|
3
31
|
|
data/Gemfile.lock
CHANGED
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.
|
8
|
-
s.date = '2025-
|
7
|
+
s.version = '2.58.0'
|
8
|
+
s.date = '2025-07-21'
|
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 = {
|
@@ -45,6 +45,8 @@ Gem::Specification.new do |s|
|
|
45
45
|
lib/chargebee/models/advance_invoice_schedule.rb
|
46
46
|
lib/chargebee/models/attached_item.rb
|
47
47
|
lib/chargebee/models/attribute.rb
|
48
|
+
lib/chargebee/models/billing_configuration.rb
|
49
|
+
lib/chargebee/models/brand.rb
|
48
50
|
lib/chargebee/models/business_entity.rb
|
49
51
|
lib/chargebee/models/business_entity_transfer.rb
|
50
52
|
lib/chargebee/models/card.rb
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class BillingConfiguration < Model
|
3
|
+
|
4
|
+
class BillingDate < Model
|
5
|
+
attr_accessor :start_date, :end_date
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :is_calendar_billing_enabled, :billing_dates
|
9
|
+
|
10
|
+
# OPERATIONS
|
11
|
+
#-----------
|
12
|
+
|
13
|
+
end # ~BillingConfiguration
|
14
|
+
end # ~ChargeBee
|
@@ -273,6 +273,13 @@ module ChargeBee
|
|
273
273
|
Request.send('get', uri_path("customers",id.to_s,"hierarchy"), params, env, headers,nil, false, jsonKeys, options)
|
274
274
|
end
|
275
275
|
|
276
|
+
def self.list_hierarchy_detail(id, params, env=nil, headers={})
|
277
|
+
jsonKeys = {
|
278
|
+
}
|
279
|
+
options = {}
|
280
|
+
Request.send('get', uri_path("customers",id.to_s,"hierarchy_detail"), params, env, headers,nil, false, jsonKeys, options)
|
281
|
+
end
|
282
|
+
|
276
283
|
def self.update_hierarchy_settings(id, params={}, env=nil, headers={})
|
277
284
|
jsonKeys = {
|
278
285
|
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Hierarchy < Model
|
3
3
|
|
4
|
-
attr_accessor :customer_id, :parent_id, :payment_owner_id, :invoice_owner_id, :
|
4
|
+
attr_accessor :customer_id, :parent_id, :payment_owner_id, :invoice_owner_id, :has_children,
|
5
|
+
:children_ids
|
5
6
|
|
6
7
|
# OPERATIONS
|
7
8
|
#-----------
|
@@ -2,18 +2,22 @@ module ChargeBee
|
|
2
2
|
class QuotedRamp < Model
|
3
3
|
|
4
4
|
class LineItem < Model
|
5
|
-
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :start_date, :end_date, :ramp_tier_id, :
|
5
|
+
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :start_date, :end_date, :ramp_tier_id, :discount_per_billing_cycle, :discount_per_billing_cycle_in_decimal, :item_level_discount_per_billing_cycle, :item_level_discount_per_billing_cycle_in_decimal, :amount_per_billing_cycle, :amount_per_billing_cycle_in_decimal, :net_amount_per_billing_cycle, :net_amount_per_billing_cycle_in_decimal
|
6
6
|
end
|
7
7
|
|
8
8
|
class Discount < Model
|
9
|
-
attr_accessor :id, :
|
9
|
+
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :duration_type, :entity_type, :entity_id, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :updated_at, :start_date, :end_date
|
10
10
|
end
|
11
11
|
|
12
12
|
class ItemTier < Model
|
13
13
|
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :ramp_tier_id
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
class CouponApplicabilityMapping < Model
|
17
|
+
attr_accessor :coupon_id, :applicable_item_price_ids
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :id, :line_items, :discounts, :item_tiers, :coupon_applicability_mappings
|
17
21
|
|
18
22
|
# OPERATIONS
|
19
23
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -203,10 +203,16 @@ module ChargeBee
|
|
203
203
|
|
204
204
|
def quoted_ramp()
|
205
205
|
quoted_ramp = get(:quoted_ramp, QuotedRamp,
|
206
|
-
{:line_items => QuotedRamp::LineItem, :discounts => QuotedRamp::Discount, :item_tiers => QuotedRamp::ItemTier});
|
206
|
+
{:line_items => QuotedRamp::LineItem, :discounts => QuotedRamp::Discount, :item_tiers => QuotedRamp::ItemTier, :coupon_applicability_mappings => QuotedRamp::CouponApplicabilityMapping});
|
207
207
|
return quoted_ramp;
|
208
208
|
end
|
209
209
|
|
210
|
+
def billing_configuration()
|
211
|
+
billing_configuration = get(:billing_configuration, BillingConfiguration,
|
212
|
+
{:billing_dates => BillingConfiguration::BillingDate});
|
213
|
+
return billing_configuration;
|
214
|
+
end
|
215
|
+
|
210
216
|
def quote_line_group()
|
211
217
|
quote_line_group = get(:quote_line_group, QuoteLineGroup,
|
212
218
|
{:line_items => QuoteLineGroup::LineItem, :discounts => QuoteLineGroup::Discount, :line_item_discounts => QuoteLineGroup::LineItemDiscount, :taxes => QuoteLineGroup::Tax, :line_item_taxes => QuoteLineGroup::LineItemTax});
|
@@ -499,6 +505,11 @@ module ChargeBee
|
|
499
505
|
return usage_file;
|
500
506
|
end
|
501
507
|
|
508
|
+
def brand()
|
509
|
+
brand = get(:brand, Brand);
|
510
|
+
return brand;
|
511
|
+
end
|
512
|
+
|
502
513
|
def advance_invoice_schedules()
|
503
514
|
advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
|
504
515
|
{:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
|
data/lib/chargebee.rb
CHANGED
metadata
CHANGED
@@ -1,62 +1,61 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.58.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajaraman S
|
8
8
|
- Thiyagarajan T
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2025-
|
11
|
+
date: 2025-07-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: cgi
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- -
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: 0.1.0
|
21
|
-
- - <
|
20
|
+
- - "<"
|
22
21
|
- !ruby/object:Gem::Version
|
23
22
|
version: 1.0.0
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
27
26
|
requirements:
|
28
|
-
- -
|
27
|
+
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
29
|
version: 0.1.0
|
31
|
-
- - <
|
30
|
+
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: 1.0.0
|
34
33
|
- !ruby/object:Gem::Dependency
|
35
34
|
name: rspec
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
|
-
- - ~>
|
37
|
+
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: 3.0.0
|
41
40
|
type: :development
|
42
41
|
prerelease: false
|
43
42
|
version_requirements: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
|
-
- - ~>
|
44
|
+
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: 3.0.0
|
48
47
|
- !ruby/object:Gem::Dependency
|
49
48
|
name: mocha
|
50
49
|
requirement: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
|
-
- -
|
51
|
+
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '0'
|
55
54
|
type: :development
|
56
55
|
prerelease: false
|
57
56
|
version_requirements: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- -
|
58
|
+
- - ">="
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '0'
|
62
61
|
description: Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com.
|
@@ -66,8 +65,8 @@ email:
|
|
66
65
|
executables: []
|
67
66
|
extensions: []
|
68
67
|
extra_rdoc_files:
|
69
|
-
- README.md
|
70
68
|
- LICENSE
|
69
|
+
- README.md
|
71
70
|
files:
|
72
71
|
- CHANGELOG.md
|
73
72
|
- Gemfile
|
@@ -86,6 +85,8 @@ files:
|
|
86
85
|
- lib/chargebee/models/advance_invoice_schedule.rb
|
87
86
|
- lib/chargebee/models/attached_item.rb
|
88
87
|
- lib/chargebee/models/attribute.rb
|
88
|
+
- lib/chargebee/models/billing_configuration.rb
|
89
|
+
- lib/chargebee/models/brand.rb
|
89
90
|
- lib/chargebee/models/business_entity.rb
|
90
91
|
- lib/chargebee/models/business_entity_transfer.rb
|
91
92
|
- lib/chargebee/models/card.rb
|
@@ -186,25 +187,22 @@ licenses:
|
|
186
187
|
- MIT
|
187
188
|
metadata:
|
188
189
|
changelog_uri: https://github.com/chargebee/chargebee-ruby/blob/master/CHANGELOG.md
|
189
|
-
post_install_message:
|
190
190
|
rdoc_options:
|
191
|
-
- --charset=UTF-8
|
191
|
+
- "--charset=UTF-8"
|
192
192
|
require_paths:
|
193
193
|
- lib
|
194
194
|
required_ruby_version: !ruby/object:Gem::Requirement
|
195
195
|
requirements:
|
196
|
-
- -
|
196
|
+
- - ">="
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: 1.9.3
|
199
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
|
-
- -
|
201
|
+
- - ">="
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
|
-
|
206
|
-
rubygems_version: 2.4.5
|
207
|
-
signing_key:
|
205
|
+
rubygems_version: 3.6.7
|
208
206
|
specification_version: 2
|
209
207
|
summary: Ruby client for Chargebee API.
|
210
208
|
test_files:
|