chargebee 2.6.6 → 2.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/card.rb +4 -4
- data/lib/chargebee/models/credit_note_estimate.rb +1 -1
- data/lib/chargebee/models/invoice.rb +6 -2
- data/lib/chargebee/models/invoice_estimate.rb +1 -1
- data/lib/chargebee/models/payment_source.rb +4 -0
- data/lib/chargebee/models/quote.rb +4 -0
- data/lib/chargebee/models/transaction.rb +5 -4
- data/lib/chargebee/models/virtual_bank_account.rb +3 -2
- data/lib/chargebee/result.rb +6 -5
- 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: d43cfd517b221d62c391b308fcc6267172ac996d
|
4
|
+
data.tar.gz: 2216894ca1372be37ee0def9841ce68d3271f33a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e9a0d0d2b633f99c9db97bbc090a9f11a224c0ec7cbec375fa6541c2387ae1fd76b6e040bf43275809c1e986e942c33cbf8ff6f4c066d73db59f8a2d0e4f996
|
7
|
+
data.tar.gz: ec2b7d8a6923cbb70d7f7d34a1f392f821df35baaee33fa70426c416112523a2097c709026e421dabcc2dcc78b71f73d1a1e19febc13e5e365ad829347f103c0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
### v2.6.7 (2019-07-22)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
* The attribute ref_tx_id has been added in card resource.
|
5
|
+
* The attribute custmer_id has been added in credit_note_estimate and invoice_estimate resource.
|
6
|
+
* The input parameters payment_intent with gateway_account_id and gw_token have been added in create a customer, collect payment for customer, create subscription and create subscription for customer API.
|
7
|
+
* New enum dunning_type has been added.
|
8
|
+
* New value vantiv has been added in the gateway enum.
|
9
|
+
* New value sepa_credit has been added in payment method enum.
|
10
|
+
* The attribute dunning_attempts has been added in invoice resource.
|
11
|
+
* New enpoint create_using_payment_intent has been added in payment_source resouce.
|
12
|
+
* The input parameter reference_transaction has been added in update card payment source API.
|
13
|
+
* New endpoint list quote has been added in qoutes resource.
|
14
|
+
* The attributes initiator_type and three_d_secure have been added in transaction resource.
|
15
|
+
* New attribute scheme has been added in virtual_bank_account resource.
|
16
|
+
* New input parameter scheme has been added in create a virtual bank account using permanent token and create a virtual bank account API.
|
17
|
+
|
1
18
|
### v2.6.6 (2019-07-08)
|
2
19
|
* * *
|
3
20
|
|
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.6.
|
8
|
-
s.date = '2019-07-
|
7
|
+
s.version = '2.6.7'
|
8
|
+
s.date = '2019-07-22'
|
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
@@ -1,10 +1,10 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Card < Model
|
3
3
|
|
4
|
-
attr_accessor :payment_source_id, :status, :gateway, :gateway_account_id, :
|
5
|
-
:iin, :last4, :card_type, :funding_type, :expiry_month, :expiry_year, :issuing_country,
|
6
|
-
:billing_addr2, :billing_city, :billing_state_code, :billing_state, :billing_country,
|
7
|
-
:created_at, :resource_version, :updated_at, :ip_address, :customer_id, :masked_number
|
4
|
+
attr_accessor :payment_source_id, :status, :gateway, :gateway_account_id, :ref_tx_id, :first_name,
|
5
|
+
:last_name, :iin, :last4, :card_type, :funding_type, :expiry_month, :expiry_year, :issuing_country,
|
6
|
+
:billing_addr1, :billing_addr2, :billing_city, :billing_state_code, :billing_state, :billing_country,
|
7
|
+
:billing_zip, :created_at, :resource_version, :updated_at, :ip_address, :customer_id, :masked_number
|
8
8
|
|
9
9
|
# OPERATIONS
|
10
10
|
#-----------
|
@@ -27,7 +27,7 @@ module ChargeBee
|
|
27
27
|
|
28
28
|
attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
|
29
29
|
:amount_allocated, :amount_available, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_discounts,
|
30
|
-
:line_item_tiers, :round_off_amount
|
30
|
+
:line_item_tiers, :round_off_amount, :customer_id
|
31
31
|
|
32
32
|
# OPERATIONS
|
33
33
|
#-----------
|
@@ -29,6 +29,10 @@ module ChargeBee
|
|
29
29
|
attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount
|
30
30
|
end
|
31
31
|
|
32
|
+
class DunningAttempt < Model
|
33
|
+
attr_accessor :attempt, :transaction_id, :dunning_type, :created_at, :txn_status, :txn_amount
|
34
|
+
end
|
35
|
+
|
32
36
|
class AppliedCredit < Model
|
33
37
|
attr_accessor :cn_id, :applied_amount, :applied_at, :cn_reason_code, :cn_date, :cn_status
|
34
38
|
end
|
@@ -63,8 +67,8 @@ module ChargeBee
|
|
63
67
|
:voided_at, :resource_version, :updated_at, :sub_total, :tax, :first_invoice, :has_advance_charges,
|
64
68
|
:term_finalized, :is_gifted, :expected_payment_date, :amount_to_collect, :round_off_amount,
|
65
69
|
:line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :line_item_tiers, :linked_payments,
|
66
|
-
:applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
|
67
|
-
:billing_address, :payment_owner, :deleted
|
70
|
+
:dunning_attempts, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
|
71
|
+
:notes, :shipping_address, :billing_address, :payment_owner, :deleted
|
68
72
|
|
69
73
|
# OPERATIONS
|
70
74
|
#-----------
|
@@ -27,7 +27,7 @@ module ChargeBee
|
|
27
27
|
|
28
28
|
attr_accessor :recurring, :price_type, :currency_code, :sub_total, :total, :credits_applied,
|
29
29
|
:amount_paid, :amount_due, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_tiers,
|
30
|
-
:line_item_discounts, :round_off_amount
|
30
|
+
:line_item_discounts, :round_off_amount, :customer_id
|
31
31
|
|
32
32
|
# OPERATIONS
|
33
33
|
#-----------
|
@@ -36,6 +36,10 @@ module ChargeBee
|
|
36
36
|
Request.send('post', uri_path("payment_sources","create_using_token"), params, env, headers)
|
37
37
|
end
|
38
38
|
|
39
|
+
def self.create_using_payment_intent(params, env=nil, headers={})
|
40
|
+
Request.send('post', uri_path("payment_sources","create_using_payment_intent"), params, env, headers)
|
41
|
+
end
|
42
|
+
|
39
43
|
def self.create_card(params, env=nil, headers={})
|
40
44
|
Request.send('post', uri_path("payment_sources","create_card"), params, env, headers)
|
41
45
|
end
|
@@ -53,6 +53,10 @@ module ChargeBee
|
|
53
53
|
Request.send('post', uri_path("quotes","create_for_onetime_charges"), params, env, headers)
|
54
54
|
end
|
55
55
|
|
56
|
+
def self.list(params={}, env=nil, headers={})
|
57
|
+
Request.send_list_request('get', uri_path("quotes"), params, env, headers)
|
58
|
+
end
|
59
|
+
|
56
60
|
def self.convert(id, env=nil, headers={})
|
57
61
|
Request.send('post', uri_path("quotes",id.to_s,"convert"), {}, env, headers)
|
58
62
|
end
|
@@ -19,10 +19,11 @@ module ChargeBee
|
|
19
19
|
|
20
20
|
attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_source_id,
|
21
21
|
:payment_method, :reference_number, :gateway, :type, :date, :settled_at, :currency_code, :amount,
|
22
|
-
:id_at_gateway, :status, :fraud_flag, :
|
23
|
-
:
|
24
|
-
:
|
25
|
-
:
|
22
|
+
:id_at_gateway, :status, :fraud_flag, :initiator_type, :three_d_secure, :authorization_reason,
|
23
|
+
:error_code, :error_text, :voided_at, :resource_version, :updated_at, :fraud_reason, :amount_unused,
|
24
|
+
:masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
|
25
|
+
:amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
|
26
|
+
:linked_payments, :deleted
|
26
27
|
|
27
28
|
# OPERATIONS
|
28
29
|
#-----------
|
@@ -1,8 +1,9 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class VirtualBankAccount < Model
|
3
3
|
|
4
|
-
attr_accessor :id, :customer_id, :email, :bank_name, :account_number, :routing_number,
|
5
|
-
:gateway, :gateway_account_id, :resource_version, :updated_at, :created_at, :reference_id,
|
4
|
+
attr_accessor :id, :customer_id, :email, :scheme, :bank_name, :account_number, :routing_number,
|
5
|
+
:swift_code, :gateway, :gateway_account_id, :resource_version, :updated_at, :created_at, :reference_id,
|
6
|
+
:deleted
|
6
7
|
|
7
8
|
# OPERATIONS
|
8
9
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -60,7 +60,7 @@ module ChargeBee
|
|
60
60
|
|
61
61
|
def invoice()
|
62
62
|
invoice = get(:invoice, Invoice,
|
63
|
-
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
|
63
|
+
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
|
64
64
|
return invoice;
|
65
65
|
end
|
66
66
|
|
@@ -219,13 +219,10 @@ module ChargeBee
|
|
219
219
|
|
220
220
|
def invoices()
|
221
221
|
invoices = get_list(:invoices, Invoice,
|
222
|
-
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
|
222
|
+
{:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :dunning_attempts => Invoice::DunningAttempt, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
|
223
223
|
return invoices;
|
224
224
|
end
|
225
225
|
|
226
|
-
def to_s(*args)
|
227
|
-
JSON.pretty_generate(@response)
|
228
|
-
end
|
229
226
|
|
230
227
|
private
|
231
228
|
def get_list(type, klass, sub_types = {}, dependant_types = {}, dependant_sub_types = {})
|
@@ -251,5 +248,9 @@ module ChargeBee
|
|
251
248
|
return klass.construct(@response[type], sub_types, dependant_types)
|
252
249
|
end
|
253
250
|
|
251
|
+
def to_s(*args)
|
252
|
+
JSON.pretty_generate(@response)
|
253
|
+
end
|
254
|
+
|
254
255
|
end
|
255
256
|
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.6.
|
4
|
+
version: 2.6.7
|
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: 2019-07-
|
12
|
+
date: 2019-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|