chargebee 2.5.8 → 2.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d738a942027b6ff0e57dc98cd6dce5eab57adda4
4
- data.tar.gz: e67226421e275d4126523aab0ec907fa12d49434
3
+ metadata.gz: a1e8806722f537a897b04ed429f572d62252f89c
4
+ data.tar.gz: d61538bd2e7c9ba6d406c3b760c235b5678715f4
5
5
  SHA512:
6
- metadata.gz: 8698d6794b61f9d6c0fa7f34357317970b8dd172c9e47188d4dd560c1b8e22d1d9c1291d6aecf0910a5620958fc6c194874c68c502ac3fcde16f9eec9a87d025
7
- data.tar.gz: fa526dff7ad005f43ab36f622708c4ccca43f7d8cfc0b764d0c97bc8a74aeebf9aecc376211e35da0193c8fb8d5cd9f72869f9c2d9e225d077cd49c1e16e48c4
6
+ metadata.gz: 3f662d0a1a8685e6c3f2d447592ccdec09b57898d55c50d86e569642238b05f007ef5e1d2c47f4fbd330857fafd01377f17e24fefbbb50db61422ecb568438de
7
+ data.tar.gz: 98128a553b7ed8d16c77a61259d6ea3edac3b43c70b71c7fc4b16834cbe101d618aefe048e551fd11d4f2f996ff99eba6a078477439858e26acab4e89b6ae016
@@ -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
 
@@ -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'
8
- s.date = '2018-10-17'
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."
@@ -43,7 +43,7 @@ require File.dirname(__FILE__) + '/chargebee/models/contact.rb'
43
43
 
44
44
  module ChargeBee
45
45
 
46
- VERSION = '2.5.8'
46
+ VERSION = '2.5.9'
47
47
 
48
48
  @@default_env = nil
49
49
  @@verify_ca_certs = true
@@ -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, :resource_version,
19
- :updated_at, :fraud_reason, :amount_unused, :masked_card_number, :reference_transaction_id,
20
- :refunded_txn_id, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
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
@@ -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.8
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-17 00:00:00.000000000 Z
12
+ date: 2018-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure