chargebee 2.41.0 → 2.43.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 +31 -0
- data/Gemfile.lock +1 -1
- data/chargebee.gemspec +3 -2
- data/lib/chargebee/models/customer_entitlement.rb +14 -0
- data/lib/chargebee/models/ramp.rb +4 -0
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/subscription_entitlement.rb +2 -2
- data/lib/chargebee/models/transaction.rb +4 -0
- data/lib/chargebee/result.rb +6 -1
- data/lib/chargebee.rb +2 -1
- 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: 533136088d4dfb93a64e6d2546065a4c1ffe773b
|
4
|
+
data.tar.gz: 176094c703322fe13acd445e6236c474989bd475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c46e55103dfd5b6a0d4c126b6af7a7f9a150912e727cf0ad48fa59165700da57540bc6bf629581d53920c61e032933dbe13a773b36af1d964586cd3b50f4e4d3
|
7
|
+
data.tar.gz: bb6d40c077f78aec27c5900d44fd8a8a8b96189e8f118025cfc0c5a451ee02dce9c38f4ec3f2c400cd0e6ec9dd47bbd500d30e35f2e755419ee253cd9b7aeafe
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
### v2.43.0 (2024-08-29)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
#### New Resource:
|
5
|
+
* CustomerEntitlement has been added.
|
6
|
+
|
7
|
+
#### New Endpoints:
|
8
|
+
* Ramp#UpdateRequest has been added to Ramp resource.
|
9
|
+
* Transaction#ReconcileRequest has been added to Transaction resource.
|
10
|
+
|
11
|
+
### New Attributes:
|
12
|
+
* arr has been added to Subscription.
|
13
|
+
|
14
|
+
### New Enum Values:
|
15
|
+
* customer_entitlements_updated has been added to EntityTypeEnum.
|
16
|
+
* subscription_moved_in has been added in EventType enum.
|
17
|
+
* subscription_moved_out has been added in EventType enum.
|
18
|
+
* subscription_movement_failed has been added in EventType enum.
|
19
|
+
|
20
|
+
### v2.42.0 (2024-08-14)
|
21
|
+
* * *
|
22
|
+
|
23
|
+
#### New Attributes:
|
24
|
+
* feature_type has been added in SubscriptionEntitlement.
|
25
|
+
* business_entity_id has been made optional in Quote.
|
26
|
+
* business_entity_id has been made optional in CreditNote.
|
27
|
+
|
28
|
+
#### New Input parameters:
|
29
|
+
* invoice_usages has been added in Subscription#UpdateForItemsRequest.
|
30
|
+
* invoice_usages has been added in Estimate#UpdateSubscriptionForItemsRequest.
|
31
|
+
|
1
32
|
### v2.41.0 (2024-07-31)
|
2
33
|
* * *
|
3
34
|
|
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.43.0'
|
8
|
+
s.date = '2024-08-29'
|
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 = {
|
@@ -61,6 +61,7 @@ Gem::Specification.new do |s|
|
|
61
61
|
lib/chargebee/models/csv_tax_rule.rb
|
62
62
|
lib/chargebee/models/currency.rb
|
63
63
|
lib/chargebee/models/customer.rb
|
64
|
+
lib/chargebee/models/customer_entitlement.rb
|
64
65
|
lib/chargebee/models/differential_price.rb
|
65
66
|
lib/chargebee/models/discount.rb
|
66
67
|
lib/chargebee/models/download.rb
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class CustomerEntitlement < Model
|
3
|
+
|
4
|
+
attr_accessor :customer_id, :subscription_id, :feature_id, :value, :name, :is_enabled
|
5
|
+
|
6
|
+
# OPERATIONS
|
7
|
+
#-----------
|
8
|
+
|
9
|
+
def self.entitlements_for_customer(id, params={}, env=nil, headers={})
|
10
|
+
Request.send('get', uri_path("customers",id.to_s,"customer_entitlements"), params, env, headers)
|
11
|
+
end
|
12
|
+
|
13
|
+
end # ~CustomerEntitlement
|
14
|
+
end # ~ChargeBee
|
@@ -36,6 +36,10 @@ module ChargeBee
|
|
36
36
|
Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers)
|
37
37
|
end
|
38
38
|
|
39
|
+
def self.update(id, params, env=nil, headers={})
|
40
|
+
Request.send('post', uri_path("ramps",id.to_s,"update"), params, env, headers)
|
41
|
+
end
|
42
|
+
|
39
43
|
def self.retrieve(id, env=nil, headers={})
|
40
44
|
Request.send('get', uri_path("ramps",id.to_s), {}, env, headers)
|
41
45
|
end
|
@@ -54,7 +54,7 @@ module ChargeBee
|
|
54
54
|
:created_from_ip, :resource_version, :updated_at, :has_scheduled_advance_invoices, :has_scheduled_changes,
|
55
55
|
:payment_source_id, :plan_free_quantity_in_decimal, :plan_amount_in_decimal, :cancel_schedule_created_at,
|
56
56
|
:offline_payment_method, :channel, :net_term_days, :active_id, :subscription_items, :item_tiers,
|
57
|
-
:charged_items, :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code,
|
57
|
+
:charged_items, :due_invoices_count, :due_since, :total_dues, :mrr, :arr, :exchange_rate, :base_currency_code,
|
58
58
|
:addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address,
|
59
59
|
:referral_info, :invoice_notes, :meta_data, :metadata, :deleted, :changes_scheduled_at, :contract_term,
|
60
60
|
:cancel_reason_code, :free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices,
|
@@ -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, :effective_from, :schedule_status, :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
|
#-----------
|
@@ -45,6 +45,10 @@ module ChargeBee
|
|
45
45
|
Request.send('post', uri_path("transactions",id.to_s,"record_refund"), params, env, headers)
|
46
46
|
end
|
47
47
|
|
48
|
+
def self.reconcile(id, params={}, env=nil, headers={})
|
49
|
+
Request.send('post', uri_path("transactions",id.to_s,"reconcile"), params, env, headers)
|
50
|
+
end
|
51
|
+
|
48
52
|
def self.refund(id, params={}, env=nil, headers={})
|
49
53
|
Request.send('post', uri_path("transactions",id.to_s,"refund"), params, env, headers)
|
50
54
|
end
|
data/lib/chargebee/result.rb
CHANGED
@@ -356,6 +356,11 @@ module ChargeBee
|
|
356
356
|
return subscription_entitlement;
|
357
357
|
end
|
358
358
|
|
359
|
+
def customer_entitlement()
|
360
|
+
customer_entitlement = get(:customer_entitlement, CustomerEntitlement);
|
361
|
+
return customer_entitlement;
|
362
|
+
end
|
363
|
+
|
359
364
|
def item_entitlement()
|
360
365
|
item_entitlement = get(:item_entitlement, ItemEntitlement);
|
361
366
|
return item_entitlement;
|
@@ -376,7 +381,7 @@ module ChargeBee
|
|
376
381
|
return non_subscription;
|
377
382
|
end
|
378
383
|
|
379
|
-
def entitlement_override()
|
384
|
+
def entitlement_override()
|
380
385
|
entitlement_override = get(:entitlement_override, EntitlementOverride);
|
381
386
|
return entitlement_override;
|
382
387
|
end
|
data/lib/chargebee.rb
CHANGED
@@ -75,10 +75,11 @@ 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
77
|
require File.dirname(__FILE__) + '/chargebee/models/metadata'
|
78
|
+
require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement'
|
78
79
|
|
79
80
|
module ChargeBee
|
80
81
|
|
81
|
-
VERSION = '2.
|
82
|
+
VERSION = '2.43.0'
|
82
83
|
|
83
84
|
@@default_env = nil
|
84
85
|
@@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.
|
4
|
+
version: 2.43.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-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- lib/chargebee/models/csv_tax_rule.rb
|
135
135
|
- lib/chargebee/models/currency.rb
|
136
136
|
- lib/chargebee/models/customer.rb
|
137
|
+
- lib/chargebee/models/customer_entitlement.rb
|
137
138
|
- lib/chargebee/models/differential_price.rb
|
138
139
|
- lib/chargebee/models/discount.rb
|
139
140
|
- lib/chargebee/models/download.rb
|