chargebee 2.5.8 → 2.5.9
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 +12 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/transaction.rb +16 -4
- 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: a1e8806722f537a897b04ed429f572d62252f89c
|
4
|
+
data.tar.gz: d61538bd2e7c9ba6d406c3b760c235b5678715f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f662d0a1a8685e6c3f2d447592ccdec09b57898d55c50d86e569642238b05f007ef5e1d2c47f4fbd330857fafd01377f17e24fefbbb50db61422ecb568438de
|
7
|
+
data.tar.gz: 98128a553b7ed8d16c77a61259d6ea3edac3b43c70b71c7fc4b16834cbe101d618aefe048e551fd11d4f2f996ff99eba6a078477439858e26acab4e89b6ae016
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
### v2.5.9 (2018-10-26)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
* The attributes authorization_reason, reference_authorization_id, amount_capturable and linked_payments have been added in Transaction resource.
|
5
|
+
* The input parameter transaction amount_capturable has been added in export transaction API.
|
6
|
+
* The input parameters authorization_transaction_id and auto_collection have been added in create invoice API.
|
7
|
+
* The input parameter authorization_transaction_id has been added in Collect payment for invoice API.
|
8
|
+
* Type authorization_reason with values blocking_funds and verification has been added in Transaction resource.
|
9
|
+
* New endpoints "Create an authorization payment " and "Void an authorization transaction" have been in added in Transaction API.
|
10
|
+
* The input filter parameter amount_capturable has been added in list transactions API.
|
11
|
+
* The Event types authorization_succeeded, authorization_voided, order_ready_to_process, order_ready_to_ship have been added.
|
12
|
+
|
1
13
|
### v2.5.8 (2018-10-17)
|
2
14
|
* * *
|
3
15
|
|
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.5.
|
8
|
-
s.date = '2018-10-
|
7
|
+
s.version = '2.5.9'
|
8
|
+
s.date = '2018-10-26'
|
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
@@ -13,16 +13,28 @@ module ChargeBee
|
|
13
13
|
attr_accessor :txn_id, :txn_status, :txn_date, :txn_amount
|
14
14
|
end
|
15
15
|
|
16
|
+
class LinkedPayment < Model
|
17
|
+
attr_accessor :id, :status, :amount, :date
|
18
|
+
end
|
19
|
+
|
16
20
|
attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_source_id,
|
17
21
|
:payment_method, :reference_number, :gateway, :type, :date, :settled_at, :currency_code, :amount,
|
18
|
-
:id_at_gateway, :status, :fraud_flag, :error_code, :error_text, :voided_at,
|
19
|
-
:updated_at, :fraud_reason, :amount_unused, :masked_card_number, :reference_transaction_id,
|
20
|
-
:refunded_txn_id, :
|
21
|
-
:deleted
|
22
|
+
:id_at_gateway, :status, :fraud_flag, :authorization_reason, :error_code, :error_text, :voided_at,
|
23
|
+
:resource_version, :updated_at, :fraud_reason, :amount_unused, :masked_card_number, :reference_transaction_id,
|
24
|
+
:refunded_txn_id, :reference_authorization_id, :amount_capturable, :reversal_transaction_id,
|
25
|
+
:linked_invoices, :linked_credit_notes, :linked_refunds, :linked_payments, :deleted
|
22
26
|
|
23
27
|
# OPERATIONS
|
24
28
|
#-----------
|
25
29
|
|
30
|
+
def self.create_authorization(params, env=nil, headers={})
|
31
|
+
Request.send('post', uri_path("transactions","create_authorization"), params, env, headers)
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.void_transaction(id, env=nil, headers={})
|
35
|
+
Request.send('post', uri_path("transactions",id.to_s,"void"), {}, env, headers)
|
36
|
+
end
|
37
|
+
|
26
38
|
def self.list(params={}, env=nil, headers={})
|
27
39
|
Request.send_list_request('get', uri_path("transactions"), params, env, headers)
|
28
40
|
end
|
data/lib/chargebee/result.rb
CHANGED
@@ -74,7 +74,7 @@ module ChargeBee
|
|
74
74
|
|
75
75
|
def transaction()
|
76
76
|
transaction = get(:transaction, Transaction,
|
77
|
-
{:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund});
|
77
|
+
{:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment});
|
78
78
|
return transaction;
|
79
79
|
end
|
80
80
|
|
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.5.
|
4
|
+
version: 2.5.9
|
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: 2018-10-
|
12
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|