chargebee 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/customer.rb +1 -1
- data/lib/chargebee/models/invoice.rb +1 -1
- data/lib/chargebee/models/transaction.rb +7 -2
- data/lib/chargebee/result.rb +1 -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: 03486a8df94a61e57f3d74dab6bc7964dbfd4f8b
|
|
4
|
+
data.tar.gz: 07cf5b2628e5c6b0fb8a1b5a833cbe39716b065b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e06868d8d81e2cb8ce2aed9b7cd35ba923c844123199371c7ef67dcea3b75be6eb2988f0fdc2c04f7cbd349e699a995a6065728eaa6501d9e246068b49b928fe
|
|
7
|
+
data.tar.gz: b3dc8260d38c95305aca777c537de9d167319ca12d4a6a9f1c72a9ae41253b859da625d55559e4cf0af6981751c759bcf242b4a6ce52c8997fb21500cd56618e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
### v1.6.5 (2015-11-09)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
** APIs updated**:
|
|
5
|
+
|
|
6
|
+
Support for access payments. See : https://www.chargebee.com/docs/customers.html#excess-payments
|
|
7
|
+
|
|
8
|
+
New attribute "excess_payments" is returned as part of Customer resource.
|
|
9
|
+
See: https://apidocs.chargebee.com/docs/api/customers#customer_attributes
|
|
10
|
+
|
|
11
|
+
New attribute "applied_at" is returned as part of Linked Transaction subresource of Invoice resource.
|
|
12
|
+
See: https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
|
|
13
|
+
|
|
14
|
+
New transaction type "PAYMENT_REVERSAL" is returned as part of Transaction resource.
|
|
15
|
+
See: https://apidocs.chargebee.com/docs/api/transactions#transaction_attributes
|
|
16
|
+
|
|
17
|
+
New attributes "amount_unused", "reference_transaction_id", "reversal_transaction_id" & "linked_refunds" subresource are returned as part of Transaction resource.
|
|
18
|
+
|
|
19
|
+
New attribute "applied_at" is returmed as part of Linked Invoice subresource of Transaction resource.
|
|
20
|
+
See: https://apidocs.chargebee.com/docs/api/transactions#transaction_attributes
|
|
21
|
+
|
|
1
22
|
### v1.6.4 (2015-10-26)
|
|
2
23
|
* * *
|
|
3
24
|
|
data/chargebee.gemspec
CHANGED
|
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
|
5
5
|
|
|
6
6
|
s.name = 'chargebee'
|
|
7
|
-
s.version = '1.6.
|
|
8
|
-
s.date = '2015-
|
|
7
|
+
s.version = '1.6.5'
|
|
8
|
+
s.date = '2015-11-09'
|
|
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
|
@@ -11,7 +11,7 @@ module ChargeBee
|
|
|
11
11
|
|
|
12
12
|
attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
|
|
13
13
|
:allow_direct_debit, :created_at, :created_from_ip, :taxability, :card_status, :billing_address,
|
|
14
|
-
:payment_method, :invoice_notes, :account_credits
|
|
14
|
+
:payment_method, :invoice_notes, :account_credits, :excess_payments
|
|
15
15
|
|
|
16
16
|
# OPERATIONS
|
|
17
17
|
#-----------
|
|
@@ -14,7 +14,7 @@ module ChargeBee
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
class LinkedTransaction < Model
|
|
17
|
-
attr_accessor :txn_id, :applied_amount, :txn_type, :txn_status, :txn_date, :txn_amount
|
|
17
|
+
attr_accessor :txn_id, :applied_amount, :applied_at, :txn_type, :txn_status, :txn_date, :txn_amount
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
class LinkedOrder < Model
|
|
@@ -2,12 +2,17 @@ module ChargeBee
|
|
|
2
2
|
class Transaction < Model
|
|
3
3
|
|
|
4
4
|
class LinkedInvoice < Model
|
|
5
|
-
attr_accessor :invoice_id, :applied_amount, :invoice_date, :invoice_amount
|
|
5
|
+
attr_accessor :invoice_id, :applied_amount, :applied_at, :invoice_date, :invoice_amount
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class LinkedRefund < Model
|
|
9
|
+
attr_accessor :txn_amount, :txn_date, :txn_id, :txn_status
|
|
6
10
|
end
|
|
7
11
|
|
|
8
12
|
attr_accessor :id, :customer_id, :subscription_id, :payment_method, :reference_number, :gateway,
|
|
9
13
|
:description, :type, :date, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at,
|
|
10
|
-
:void_description, :
|
|
14
|
+
:void_description, :amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id,
|
|
15
|
+
:reversal_transaction_id, :linked_invoices, :linked_refunds, :currency_code
|
|
11
16
|
|
|
12
17
|
# OPERATIONS
|
|
13
18
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
|
@@ -30,7 +30,7 @@ module ChargeBee
|
|
|
30
30
|
|
|
31
31
|
def transaction()
|
|
32
32
|
get(:transaction, Transaction,
|
|
33
|
-
{:invoice_transactions => Transaction::LinkedInvoice});
|
|
33
|
+
{:invoice_transactions => Transaction::LinkedInvoice, :txn_refunds_and_reversals => Transaction::LinkedRefund});
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def hosted_page()
|
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: 1.6.
|
|
4
|
+
version: 1.6.5
|
|
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: 2015-
|
|
12
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json_pure
|