chargebee 2.40.0 → 2.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/metadata.rb +10 -0
- data/lib/chargebee/models/price_variant.rb +2 -2
- data/lib/chargebee/models/quoted_subscription.rb +1 -1
- data/lib/chargebee/models/ramp.rb +5 -1
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/subscription_entitlement.rb +2 -2
- data/lib/chargebee/models/usage.rb +1 -1
- data/lib/chargebee/result.rb +11 -1
- data/lib/chargebee.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0137cfd34ae7b2042cd9b32bb3df75e6829201a2
|
4
|
+
data.tar.gz: b162dbdd738a3db62701e938d0aa4ba644213409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a0e3363748e28dd07474497d96dc1870c5df87b6c8e9c8f6e7e4878cba3532df164fbd008bb0e4eb67cab1db67eab470ac8feefd5b3229ba1b438ba642f0caa
|
7
|
+
data.tar.gz: d542240692d07385b3ec2cde793883c2ef1ca0532ad66056ad9561c26d5e457c84b27ffcc09c398e445598ae8d25f3fd19497b4c2518a5e22ca4c71d5a8e069c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,44 @@
|
|
1
|
+
### v2.42.0 (2024-08-14)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
#### New Attributes:
|
5
|
+
* feature_type has been added in SubscriptionEntitlement.
|
6
|
+
* business_entity_id has been made optional in Quote.
|
7
|
+
* business_entity_id has been made optional in CreditNote.
|
8
|
+
|
9
|
+
#### New Input parameters:
|
10
|
+
* invoice_usages has been added in Subscription#UpdateForItemsRequest.
|
11
|
+
* invoice_usages has been added in Estimate#UpdateSubscriptionForItemsRequest.
|
12
|
+
|
13
|
+
### v2.41.0 (2024-07-31)
|
14
|
+
* * *
|
15
|
+
|
16
|
+
#### New Resource:
|
17
|
+
* Metadata has been added.
|
18
|
+
|
19
|
+
#### New Attributes:
|
20
|
+
* variant_group has been added in PriceVariant resource.
|
21
|
+
* effective_from & schedule_status have been added in EntitlementOverride resource.
|
22
|
+
* effective_from & schedule_status have been added in SubscriptionEntitlement resource.
|
23
|
+
* status_transition_reason has been added in Ramp subresource.
|
24
|
+
* billing_period & billing_period_unit have been added in SubscriptionItem subresource.
|
25
|
+
|
26
|
+
#### New Input parameters:
|
27
|
+
* variant_group has been added to PriceVariant#CreateRequest, PriceVariant#UpdateRequest.
|
28
|
+
* include_scheduled_overrides has been added to SubscriptionEntitlement#SubscriptionEntitlementsForSubscriptionRequest.
|
29
|
+
* entitlement_overrides[effective_from] has been added to SubscriptionEntitlement#SubscriptionEntitlementsForSubscriptionRequest.
|
30
|
+
* entitlement_overrides[effective_from] has been added to EntitlementOverride#AddEntitlementOverrideForSubscriptionRequest.
|
31
|
+
* include_scheduled_overrides has been added to EntitlementOverride#ListEntitlementOverrideForSubscriptionRequest.
|
32
|
+
* updated_at has been added to Usage#ListRequest.
|
33
|
+
|
34
|
+
#### New Enum values:
|
35
|
+
* SUBSCRIPTION_ITEMS_RENEWED has been added in EventType enum.
|
36
|
+
* SUBSCRIPTION_RAMP_DRAFTED has been added in EventType enum.
|
37
|
+
* SUBSCRIPTION_RAMP_UPDATED has been added in EventType enum.
|
38
|
+
|
39
|
+
#### Bug Fixes:
|
40
|
+
* non_subscription added to the result.rb file.
|
41
|
+
|
1
42
|
### v2.40.0 (2024-07-03)
|
2
43
|
* * *
|
3
44
|
|
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 = '2024-
|
7
|
+
s.version = '2.42.0'
|
8
|
+
s.date = '2024-08-14'
|
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 = {
|
@@ -87,6 +87,7 @@ Gem::Specification.new do |s|
|
|
87
87
|
lib/chargebee/models/item_entitlement.rb
|
88
88
|
lib/chargebee/models/item_family.rb
|
89
89
|
lib/chargebee/models/item_price.rb
|
90
|
+
lib/chargebee/models/metadata.rb
|
90
91
|
lib/chargebee/models/model.rb
|
91
92
|
lib/chargebee/models/non_subscription.rb
|
92
93
|
lib/chargebee/models/order.rb
|
@@ -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,
|
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
|
#-----------
|
@@ -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
|
@@ -5,8 +5,8 @@ module ChargeBee
|
|
5
5
|
attr_accessor :entitlement_overrides
|
6
6
|
end
|
7
7
|
|
8
|
-
attr_accessor :subscription_id, :feature_id, :feature_name, :feature_unit, :
|
9
|
-
:is_enabled, :expires_at, :components
|
8
|
+
attr_accessor :subscription_id, :feature_id, :feature_name, :feature_unit, :feature_type, :value,
|
9
|
+
:name, :is_overridden, :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
|
|
data/lib/chargebee/result.rb
CHANGED
@@ -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;
|
@@ -394,7 +404,7 @@ module ChargeBee
|
|
394
404
|
|
395
405
|
def ramp()
|
396
406
|
ramp = get(:ramp, Ramp,
|
397
|
-
{: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});
|
398
408
|
return ramp;
|
399
409
|
end
|
400
410
|
|
data/lib/chargebee.rb
CHANGED
@@ -74,10 +74,11 @@ require File.dirname(__FILE__) + '/chargebee/models/business_entity'
|
|
74
74
|
require File.dirname(__FILE__) + '/chargebee/models/business_entity_transfer'
|
75
75
|
require File.dirname(__FILE__) + '/chargebee/models/currency'
|
76
76
|
require File.dirname(__FILE__) + '/chargebee/models/pricing_page_session'
|
77
|
+
require File.dirname(__FILE__) + '/chargebee/models/metadata'
|
77
78
|
|
78
79
|
module ChargeBee
|
79
80
|
|
80
|
-
VERSION = '2.
|
81
|
+
VERSION = '2.42.0'
|
81
82
|
|
82
83
|
@@default_env = nil
|
83
84
|
@@verify_ca_certs = true
|
@@ -120,4 +121,3 @@ module ChargeBee
|
|
120
121
|
@@default_env.read_timeout = read_timeout
|
121
122
|
end
|
122
123
|
end
|
123
|
-
|
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.
|
4
|
+
version: 2.42.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-
|
12
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -160,6 +160,7 @@ files:
|
|
160
160
|
- lib/chargebee/models/item_entitlement.rb
|
161
161
|
- lib/chargebee/models/item_family.rb
|
162
162
|
- lib/chargebee/models/item_price.rb
|
163
|
+
- lib/chargebee/models/metadata.rb
|
163
164
|
- lib/chargebee/models/model.rb
|
164
165
|
- lib/chargebee/models/non_subscription.rb
|
165
166
|
- lib/chargebee/models/order.rb
|