chargebee 2.40.0 → 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: 6bfe1b8cb604f21ddc0c2576369a4b8f0160905f
4
- data.tar.gz: 4a18277ce05c43f06b3221cea01448c0e4b46f4d
3
+ metadata.gz: 9511a1ef05914ae5592cc5646967d62a17e07d29
4
+ data.tar.gz: 4843d736fabe83572b79db751d3ce29ac1ab7579
5
5
  SHA512:
6
- metadata.gz: 6be1dc7f8277dab54c056de01bc2ea77e3c6cc093e3b5c542af2ef1b6d44d63a847de4d9e4463515305d98b6a0ecaedde623a9b62184f0f1f107082b1916fe03
7
- data.tar.gz: 420e99f1ee538706d90c7a19fb78c49cc7aa0e7beac2f8088c09cac361fc933bf00bf970a9db71f729d49bca6b84813e8c11f3c74bba89b768d66691f84c84fd
6
+ metadata.gz: 9e4d67412f78086718579e3aef00c45fdfc4a49f54b527adb68096c3d5aa55c3d9110f6691e03a0c671a329d3675a13749229bd9cdb12f2d9a71036b24d03527
7
+ data.tar.gz: 0f3ad7d7d19e0e7a08ee5905daf891ca476005dfb1e396480b7938aee6101bd0f4188c02022ea360984040cab4b4267062dd013aaa07b6ca116d35c0b456c4d3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
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
+
1
30
  ### v2.40.0 (2024-07-03)
2
31
  * * *
3
32
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.40.0)
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.40.0'
8
- s.date = '2024-07-03'
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 = {
@@ -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
@@ -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
  #-----------
@@ -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
 
@@ -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.40.0'
81
+ VERSION = '2.41.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.40.0
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-07-03 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
@@ -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