chargebee 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/differential_price.rb +1 -1
- data/lib/chargebee/models/estimate.rb +16 -0
- data/lib/chargebee/models/gift.rb +4 -0
- data/lib/chargebee/models/item_price.rb +2 -1
- data/lib/chargebee/models/subscription.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7267df2b031be6ad8e3d65bc3838080383b7bd4c
|
4
|
+
data.tar.gz: 28b828500d82312162565d9b49429e1886307232
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96eae2ab0891c98724c73317378766bb066c2076e7a02142f1daab5f2f734e811e65097f4d4b524f9751ecadb1ffc09530285ca3ef2ab6b1b92de94f2236f32f
|
7
|
+
data.tar.gz: 163517a353ca50eafefdf46bae9780d71c4d432068c98e219ff7dca3763da39083a035fdd06a845b6c362cdbc300ecea4bc3e966885fb84b0559f044459b4550
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
+
### v2.8.2 (2020-12-15)
|
2
|
+
* * *
|
3
|
+
##### New end points:
|
4
|
+
* estimate_for_creating_a_customer_and_subscription, cancel_subscription_for_items_estimate, gift_subscription_estimate_for_items have been added in estimate resource. Applicable only for Product Catalog V2
|
5
|
+
* regenerate_invoice_estimate has been added in estimate resource
|
6
|
+
* create_a_gift_subscription_for_items has been added in gift resource. Applicable only for Product Catalog V2
|
7
|
+
* regenerate_invoice has been added in subscription resource
|
8
|
+
|
9
|
+
##### New attributes:
|
10
|
+
* show_description_in_invoices, show_description_in_quotes have been added to the resource item_prices
|
11
|
+
* tiers[starting_unit_in_decimal], tiers[ending_unit_in_decimal], tiers[price_in_decimal] have been added to the resource differential_prices
|
12
|
+
* show_description_in_invoices, show_description_in_quotes have been added to the resource item_prices. Applicable only for Product Catalog V2
|
13
|
+
|
14
|
+
##### New parameters:
|
15
|
+
* payment_intent[additional_info] has been added to the endpoints customers#create_a_customer, invoices#create_an_invoice, payment_sources#create_using_payment_intent, subscriptions#create_a_subscription, subscriptions#update_a_subscription, subscriptions#create_subscription_for_customer, subscriptions#reactivate_a_subscription, subscriptions#resume_a_subscription
|
16
|
+
* payment_intent[additional_info] has been added to the endpoints gifts#create_a_gift_subscription_for_items, invoices#create_invoice_for_items_and_one-time_charges, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items. Applicable only for Product Catalog V2
|
17
|
+
* contract_term[action_at_term_end], contract_term[cancellation_cutoff_period], subscription[contract_term_billing_cycle_on_renewal] has been added to the endpoint estimates#estimate_for_creating_a_subscription. Applicable only for Product Catalog V2
|
18
|
+
* cancel_at, contract_term_cancel_option, cancel_reason_code have been added to the endpoint estimates#cancel_subscription_for_items_estimate
|
19
|
+
* event_based_addons has been added to the endpoint estimates#cancel_subscription_for_items_estimate
|
20
|
+
* redirect_url has been added to the endpoint hosted_pages#accept_a_quote
|
21
|
+
* token_id, retain_payment_source, card, bank_account, payment_method added have been added to the endpoint invoices#create_an_invoice
|
22
|
+
* token_id, retain_payment_source, card, bank_account, payment_method added have been added to the endpoint invoices#create_invoice_for_items_and_one-time_charges. Applicable only for Product Catalog V2
|
23
|
+
* show_description_in_invoices, show_description_in_quotes have been added to the endpoints item_prices#create_an_item_price, item_prices#update_an_item_price. Applicable only for Product Catalog V2
|
24
|
+
|
1
25
|
### v2.8.1 (2020-11-26)
|
2
26
|
* * *
|
3
27
|
##### New resources:
|
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.
|
8
|
-
s.date = '2020-
|
7
|
+
s.version = '2.8.2'
|
8
|
+
s.date = '2020-12-15'
|
9
9
|
|
10
10
|
s.summary = "Ruby client for Chargebee API."
|
11
11
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
data/lib/chargebee.rb
CHANGED
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class DifferentialPrice < Model
|
3
3
|
|
4
4
|
class Tier < Model
|
5
|
-
attr_accessor :starting_unit, :ending_unit, :price
|
5
|
+
attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
6
6
|
end
|
7
7
|
|
8
8
|
class ParentPeriod < Model
|
@@ -11,6 +11,10 @@ module ChargeBee
|
|
11
11
|
Request.send('post', uri_path("estimates","create_subscription"), params, env, headers)
|
12
12
|
end
|
13
13
|
|
14
|
+
def self.create_sub_item_estimate(params, env=nil, headers={})
|
15
|
+
Request.send('post', uri_path("estimates","create_subscription_for_items"), params, env, headers)
|
16
|
+
end
|
17
|
+
|
14
18
|
def self.create_sub_for_customer_estimate(id, params, env=nil, headers={})
|
15
19
|
Request.send('get', uri_path("customers",id.to_s,"create_subscription_estimate"), params, env, headers)
|
16
20
|
end
|
@@ -35,6 +39,10 @@ module ChargeBee
|
|
35
39
|
Request.send('post', uri_path("subscriptions",id.to_s,"advance_invoice_estimate"), params, env, headers)
|
36
40
|
end
|
37
41
|
|
42
|
+
def self.regenerate_invoice_estimate(id, params={}, env=nil, headers={})
|
43
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"regenerate_invoice_estimate"), params, env, headers)
|
44
|
+
end
|
45
|
+
|
38
46
|
def self.upcoming_invoices_estimate(id, env=nil, headers={})
|
39
47
|
Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, headers)
|
40
48
|
end
|
@@ -47,6 +55,10 @@ module ChargeBee
|
|
47
55
|
Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_estimate"), params, env, headers)
|
48
56
|
end
|
49
57
|
|
58
|
+
def self.cancel_subscription_for_items(id, params={}, env=nil, headers={})
|
59
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"cancel_subscription_for_items_estimate"), params, env, headers)
|
60
|
+
end
|
61
|
+
|
50
62
|
def self.pause_subscription(id, params={}, env=nil, headers={})
|
51
63
|
Request.send('post', uri_path("subscriptions",id.to_s,"pause_subscription_estimate"), params, env, headers)
|
52
64
|
end
|
@@ -59,6 +71,10 @@ module ChargeBee
|
|
59
71
|
Request.send('post', uri_path("estimates","gift_subscription"), params, env, headers)
|
60
72
|
end
|
61
73
|
|
74
|
+
def self.gift_subscription_for_items(params, env=nil, headers={})
|
75
|
+
Request.send('post', uri_path("estimates","gift_subscription_for_items"), params, env, headers)
|
76
|
+
end
|
77
|
+
|
62
78
|
def self.create_invoice(params={}, env=nil, headers={})
|
63
79
|
Request.send('post', uri_path("estimates","create_invoice"), params, env, headers)
|
64
80
|
end
|
@@ -23,6 +23,10 @@ module ChargeBee
|
|
23
23
|
Request.send('post', uri_path("gifts"), params, env, headers)
|
24
24
|
end
|
25
25
|
|
26
|
+
def self.create_for_items(params, env=nil, headers={})
|
27
|
+
Request.send('post', uri_path("gifts","create_for_items"), params, env, headers)
|
28
|
+
end
|
29
|
+
|
26
30
|
def self.retrieve(id, env=nil, headers={})
|
27
31
|
Request.send('get', uri_path("gifts",id.to_s), {}, env, headers)
|
28
32
|
end
|
@@ -17,7 +17,8 @@ module ChargeBee
|
|
17
17
|
:pricing_model, :price, :period, :currency_code, :period_unit, :trial_period, :trial_period_unit,
|
18
18
|
:shipping_period, :shipping_period_unit, :billing_cycles, :free_quantity, :free_quantity_in_decimal,
|
19
19
|
:price_in_decimal, :resource_version, :updated_at, :created_at, :invoice_notes, :tiers, :is_taxable,
|
20
|
-
:tax_detail, :accounting_detail, :metadata, :item_type, :archivable, :parent_item_id
|
20
|
+
:tax_detail, :accounting_detail, :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices,
|
21
|
+
:show_description_in_quotes
|
21
22
|
|
22
23
|
# OPERATIONS
|
23
24
|
#-----------
|
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class ItemTier < Model
|
9
|
-
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price
|
9
|
+
attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
|
10
10
|
end
|
11
11
|
|
12
12
|
class ChargedItem < Model
|
@@ -141,6 +141,10 @@ module ChargeBee
|
|
141
141
|
Request.send('post', uri_path("subscriptions",id.to_s,"remove_advance_invoice_schedule"), params, env, headers)
|
142
142
|
end
|
143
143
|
|
144
|
+
def self.regenerate_invoice(id, params={}, env=nil, headers={})
|
145
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"regenerate_invoice"), params, env, headers)
|
146
|
+
end
|
147
|
+
|
144
148
|
def self.import_subscription(params, env=nil, headers={})
|
145
149
|
Request.send('post', uri_path("subscriptions","import_subscription"), params, env, headers)
|
146
150
|
end
|
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.8.
|
4
|
+
version: 2.8.2
|
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: 2020-
|
12
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|