chargebee 2.6.9 → 2.7.4
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/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/addon.rb +4 -3
- data/lib/chargebee/models/customer.rb +1 -1
- data/lib/chargebee/models/estimate.rb +8 -0
- data/lib/chargebee/models/gift.rb +5 -1
- data/lib/chargebee/models/payment_intent.rb +2 -2
- data/lib/chargebee/models/plan.rb +5 -5
- data/lib/chargebee/models/quote.rb +3 -2
- data/lib/chargebee/models/transaction.rb +4 -0
- data/lib/chargebee/result.rb +3 -4
- 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: 69b3a070bf7594f8459633844634e69b4b05b4f7
|
4
|
+
data.tar.gz: 8f7e92de0dc6c0cb5d886bc3d7f813671014c720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c94d56a121e93d3914b56b3278c532ececbc1c9aa72d58e2f1023d03eb0353260c401067273272f9875d06e76b1327a35f0a1101b12d77b7dbb1dd6fb780bc8
|
7
|
+
data.tar.gz: b42fee4d30900dffdd3c0694dd0713b398e56670e62e1e907023113764ec8570a7b7162b7ee7254ac1bedf602207fecc7f66542134989ca6bb7503d66a8cf5a2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,44 @@
|
|
1
|
+
### v2.7.4(2020-02-06)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
* New attribute total_payable and charge_on_aaceptance has been added in Quote.java
|
5
|
+
* New input parameter cancel_at has been added in cancel_a_subscription api
|
6
|
+
|
7
|
+
### v2.7.3 (2020-01-10)
|
8
|
+
* * *
|
9
|
+
|
10
|
+
* #to_s in Result is made public
|
11
|
+
|
12
|
+
### v2.7.2 (2020-01-08)
|
13
|
+
* * *
|
14
|
+
|
15
|
+
* New attribute taxjar_product_code has been added in Addon and Plan resource.
|
16
|
+
* New input parameter taxjar_product_code has been added in create_an_addon, update_an_addon, create_a_plan and update_a_plan api
|
17
|
+
* New input parameter taxjar_exemption_category has been added in create_a_customer, update_a_customer , create_a_subscription and import_a_subscription api
|
18
|
+
* New input parameter no_expiry has been added in gift_subscription_estimate and create_a_gift api
|
19
|
+
* New attribute no_expiry has been added in Gift resource
|
20
|
+
* New endpoint update_gift has been added in Gift resource
|
21
|
+
* New value BUSINESS_CHECKING has been added in AccountType enum
|
22
|
+
* New value CCD has been added in EcheckType enum
|
23
|
+
* New event type GIFT_UPDATED has been added
|
24
|
+
* New enum taxjar_exemption_category has been added
|
25
|
+
|
26
|
+
### v2.7.1 (2019-09-13)
|
27
|
+
* * *
|
28
|
+
|
29
|
+
* New endpoints gift_subscription_estimate and create_invoice_estimate have been added in estimate resource.
|
30
|
+
* New input parameter reference_id in payment_intent has been added in create_a_gift, create_an_invoice, create_using_payment_intent, create_a_subscription, create_subscription_for_customer, update_a_subscription, reactivate_a_subscription, resume_a_subscription, create_a_customer and collect_payment_for_customer api.
|
31
|
+
* New endpoint record_refund_for_a_payment has been added in transaction resource.
|
32
|
+
|
33
|
+
### v2.7.0 (2019-08-27)
|
34
|
+
* * *
|
35
|
+
|
36
|
+
* New attribute client_profile_id has been added in customer resource.
|
37
|
+
* New input parameter client_profile_id has been added in create_a_customer, update_a_customer, create_subscription_estimate, create_a_subscription and import_a_subscription api.
|
38
|
+
* New input parameter payment_intent has been added in create_a_gift, create_an_invoice, reactivate_a_subscription and resume_a_subscription api.
|
39
|
+
* New input parameter replace_primary_payment_source has been added in create_an_invoice api.
|
40
|
+
* New attribute currency_code has been added in payment_intent resource.
|
41
|
+
|
1
42
|
### v2.6.9 (2019-08-14)
|
2
43
|
* * *
|
3
44
|
|
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 = '
|
7
|
+
s.version = '2.7.4'
|
8
|
+
s.date = '2020-02-06'
|
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
@@ -7,9 +7,10 @@ module ChargeBee
|
|
7
7
|
|
8
8
|
attr_accessor :id, :name, :invoice_name, :description, :pricing_model, :type, :charge_type,
|
9
9
|
:price, :currency_code, :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal,
|
10
|
-
:tax_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
|
11
|
-
:accounting_category1, :accounting_category2, :is_shippable, :shipping_frequency_period,
|
12
|
-
:resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id,
|
10
|
+
:tax_code, :taxjar_product_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
|
11
|
+
:sku, :accounting_code, :accounting_category1, :accounting_category2, :is_shippable, :shipping_frequency_period,
|
12
|
+
:shipping_frequency_period_unit, :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id,
|
13
|
+
:meta_data, :tiers
|
13
14
|
|
14
15
|
# OPERATIONS
|
15
16
|
#-----------
|
@@ -33,7 +33,7 @@ module ChargeBee
|
|
33
33
|
:backup_payment_source_id, :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes,
|
34
34
|
:preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
|
35
35
|
:balances, :meta_data, :deleted, :registered_for_gst, :business_customer_without_vat_number,
|
36
|
-
:customer_type, :relationship
|
36
|
+
:customer_type, :client_profile_id, :relationship
|
37
37
|
|
38
38
|
# OPERATIONS
|
39
39
|
#-----------
|
@@ -43,5 +43,13 @@ module ChargeBee
|
|
43
43
|
Request.send('post', uri_path("subscriptions",id.to_s,"resume_subscription_estimate"), params, env, headers)
|
44
44
|
end
|
45
45
|
|
46
|
+
def self.gift_subscription(params, env=nil, headers={})
|
47
|
+
Request.send('post', uri_path("estimates","gift_subscription"), params, env, headers)
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.create_invoice(params, env=nil, headers={})
|
51
|
+
Request.send('post', uri_path("estimates","create_invoice"), params, env, headers)
|
52
|
+
end
|
53
|
+
|
46
54
|
end # ~Estimate
|
47
55
|
end # ~ChargeBee
|
@@ -13,7 +13,7 @@ module ChargeBee
|
|
13
13
|
attr_accessor :status, :occurred_at
|
14
14
|
end
|
15
15
|
|
16
|
-
attr_accessor :id, :status, :scheduled_at, :auto_claim, :claim_expiry_date, :resource_version,
|
16
|
+
attr_accessor :id, :status, :scheduled_at, :auto_claim, :no_expiry, :claim_expiry_date, :resource_version,
|
17
17
|
:updated_at, :gifter, :gift_receiver, :gift_timelines
|
18
18
|
|
19
19
|
# OPERATIONS
|
@@ -39,5 +39,9 @@ module ChargeBee
|
|
39
39
|
Request.send('post', uri_path("gifts",id.to_s,"cancel"), {}, env, headers)
|
40
40
|
end
|
41
41
|
|
42
|
+
def self.update_gift(id, params, env=nil, headers={})
|
43
|
+
Request.send('post', uri_path("gifts",id.to_s,"update_gift"), params, env, headers)
|
44
|
+
end
|
45
|
+
|
42
46
|
end # ~Gift
|
43
47
|
end # ~ChargeBee
|
@@ -5,8 +5,8 @@ module ChargeBee
|
|
5
5
|
attr_accessor :id, :status, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at
|
6
6
|
end
|
7
7
|
|
8
|
-
attr_accessor :id, :status, :amount, :gateway_account_id, :expires_at, :reference_id,
|
9
|
-
:modified_at, :customer_id, :gateway, :active_payment_attempt
|
8
|
+
attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
|
9
|
+
:created_at, :modified_at, :customer_id, :gateway, :active_payment_attempt
|
10
10
|
|
11
11
|
# OPERATIONS
|
12
12
|
#-----------
|
@@ -20,11 +20,11 @@ module ChargeBee
|
|
20
20
|
attr_accessor :id, :name, :invoice_name, :description, :price, :currency_code, :period, :period_unit,
|
21
21
|
:trial_period, :trial_period_unit, :pricing_model, :charge_model, :free_quantity, :setup_cost,
|
22
22
|
:downgrade_penalty, :status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages,
|
23
|
-
:enabled_in_portal, :addon_applicability, :tax_code, :
|
24
|
-
:avalara_service_type, :sku, :accounting_code, :accounting_category1,
|
25
|
-
:is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
|
26
|
-
:updated_at, :giftable, :claim_url, :invoice_notes, :taxable, :tax_profile_id,
|
27
|
-
:applicable_addons, :attached_addons, :event_based_addons
|
23
|
+
:enabled_in_portal, :addon_applicability, :tax_code, :taxjar_product_code, :avalara_sale_type,
|
24
|
+
:avalara_transaction_type, :avalara_service_type, :sku, :accounting_code, :accounting_category1,
|
25
|
+
:accounting_category2, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
|
26
|
+
:resource_version, :updated_at, :giftable, :claim_url, :invoice_notes, :taxable, :tax_profile_id,
|
27
|
+
:meta_data, :tiers, :applicable_addons, :attached_addons, :event_based_addons
|
28
28
|
|
29
29
|
# OPERATIONS
|
30
30
|
#-----------
|
@@ -31,8 +31,9 @@ module ChargeBee
|
|
31
31
|
|
32
32
|
attr_accessor :id, :name, :po_number, :customer_id, :subscription_id, :invoice_id, :status,
|
33
33
|
:operation_type, :vat_number, :price_type, :valid_till, :date, :sub_total, :total, :credits_applied,
|
34
|
-
:amount_paid, :amount_due, :
|
35
|
-
:
|
34
|
+
:amount_paid, :amount_due, :total_payable, :charge_on_acceptance, :resource_version, :updated_at,
|
35
|
+
:currency_code, :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :notes,
|
36
|
+
:shipping_address, :billing_address
|
36
37
|
|
37
38
|
# OPERATIONS
|
38
39
|
#-----------
|
@@ -36,6 +36,10 @@ module ChargeBee
|
|
36
36
|
Request.send('post', uri_path("transactions",id.to_s,"void"), {}, env, headers)
|
37
37
|
end
|
38
38
|
|
39
|
+
def self.record_refund(id, params, env=nil, headers={})
|
40
|
+
Request.send('post', uri_path("transactions",id.to_s,"record_refund"), params, env, headers)
|
41
|
+
end
|
42
|
+
|
39
43
|
def self.list(params={}, env=nil, headers={})
|
40
44
|
Request.send_list_request('get', uri_path("transactions"), params, env, headers)
|
41
45
|
end
|
data/lib/chargebee/result.rb
CHANGED
@@ -229,6 +229,9 @@ module ChargeBee
|
|
229
229
|
return invoices;
|
230
230
|
end
|
231
231
|
|
232
|
+
def to_s(*args)
|
233
|
+
JSON.pretty_generate(@response)
|
234
|
+
end
|
232
235
|
|
233
236
|
private
|
234
237
|
def get_list(type, klass, sub_types = {}, dependant_types = {}, dependant_sub_types = {})
|
@@ -254,9 +257,5 @@ module ChargeBee
|
|
254
257
|
return klass.construct(@response[type], sub_types, dependant_types)
|
255
258
|
end
|
256
259
|
|
257
|
-
def to_s(*args)
|
258
|
-
JSON.pretty_generate(@response)
|
259
|
-
end
|
260
|
-
|
261
260
|
end
|
262
261
|
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.
|
4
|
+
version: 2.7.4
|
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:
|
12
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|