chargebee 2.2.2 → 2.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cddf3182d1dc0790f72f2ba73c9af715ecdf11c
4
- data.tar.gz: b4be5ccd4e1ade22d21228096921efc463acfd42
3
+ metadata.gz: 332721f5c73724a60a9d60d3d09f41f9e0915024
4
+ data.tar.gz: ad9fb2c953d51d5d8a79c7d98039da5b6eea5f62
5
5
  SHA512:
6
- metadata.gz: eb2aa2d9e9dc4fd75a10a6ffaffe925cce4c6cde85088ccf51827fc30b320b0bfeb7f41feb1c2055f201df450ae6df1f605ff772f2753f4c2d13b9357fb43e8c
7
- data.tar.gz: d663e072a0fbebf146cb0abd44a32ee517f8d623e91fb2b3f3a6d04e2a45ea61f586ecf0c958c6331839dd45bbe5ee0a70f666a3a7f124c4029e3938ac6df663
6
+ metadata.gz: 927fe33f10759aafab39cdaa371f86fbe5384f43ca01c1985f5377528dbff65e37052c904f22bf7a18ea04c7aa8f637076cf2c077cad37c55fa2a8a8fdf11033
7
+ data.tar.gz: 293d436daae680c7815bd99da4e1d8559fa8c98bca1191c2291e4ebcebdfe5d72606707f2e62f5c442672a4072da99280975a4c9ea42aaa1954c02b727881237
@@ -1,3 +1,30 @@
1
+ ###v2.2.3 (2017-01-27)
2
+ * * *
3
+
4
+ ** APIs updated**:
5
+ A new attribute 'gateway_account_id' has been added to Card resource. A input param 'gateway' has been deprecated and a new input param 'gateway_account_id' has been added from Update card for customer, Switch gateway and Copy card APIs.
6
+ See: https://apidocs.chargebee.com/docs/api/cards
7
+
8
+ A input param 'gateway' has been deprecated and a new input param 'gateway_account_id' has been added to Card and Payment method sub resource in Create customer, Create subscription, Update Subscription and Import subscription API.
9
+ See: https://apidocs.chargebee.com/docs/api/customers
10
+
11
+ A input param 'fraud_flag' has been added to Update customer API.
12
+ See: https://apidocs.chargebee.com/docs/api/customers#update_a_customer
13
+
14
+ A input param 'gateway' has been deprecated and a new input param 'gateway_account_id' has been added to Payment method sub resource in Update card for a customer API.
15
+ See: https://apidocs.chargebee.com/docs/api/cards#update_card_for_a_customer
16
+
17
+ A input param 'gateway' has been deprecated and a new input param 'gateway_account_id' has been added to the Card resource in Checkout new, Checkout existing and Update card and Update Payment method APIs.
18
+ See: https://apidocs.chargebee.com/docs/api/hosted_pages#checkout_new_subscription
19
+
20
+ A new input params 'billing_address' and 'shipping_address' has been added to Checkout new hosted page API.
21
+ See: https://apidocs.chargebee.com/docs/api/hosted_pages#checkout_new_subscription
22
+
23
+ ** APIs added**:
24
+ A new endpoint Create subscription for a customer estimate has been added to the Estimate resource.
25
+ See: https://apidocs.chargebee.com/docs/api/estimates#create_subscription_for_a_customer_estimate
26
+
27
+
1
28
  ###v2.2.2 (2017-01-12)
2
29
  * * *
3
30
 
@@ -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 = '2.2.2'
8
- s.date = '2017-01-12'
7
+ s.version = '2.2.3'
8
+ s.date = '2017-01-27'
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."
@@ -33,7 +33,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
33
33
 
34
34
  module ChargeBee
35
35
 
36
- VERSION = '2.2.2'
36
+ VERSION = '2.2.3'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
@@ -1,9 +1,10 @@
1
1
  module ChargeBee
2
2
  class Card < Model
3
3
 
4
- attr_accessor :customer_id, :status, :gateway, :first_name, :last_name, :iin, :last4, :card_type,
5
- :funding_type, :expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :billing_state_code,
6
- :billing_state, :billing_country, :billing_zip, :ip_address, :masked_number
4
+ attr_accessor :customer_id, :status, :gateway, :gateway_account_id, :first_name, :last_name,
5
+ :iin, :last4, :card_type, :funding_type, :expiry_month, :expiry_year, :billing_addr1, :billing_addr2,
6
+ :billing_city, :billing_state_code, :billing_state, :billing_country, :billing_zip, :ip_address,
7
+ :masked_number
7
8
 
8
9
  # OPERATIONS
9
10
  #-----------
@@ -10,7 +10,7 @@ module ChargeBee
10
10
  end
11
11
 
12
12
  class PaymentMethod < Model
13
- attr_accessor :type, :gateway, :status, :reference_id
13
+ attr_accessor :type, :gateway, :gateway_account_id, :status, :reference_id
14
14
  end
15
15
 
16
16
  attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
@@ -11,6 +11,10 @@ module ChargeBee
11
11
  Request.send('post', uri_path("estimates","create_subscription"), params, env, headers)
12
12
  end
13
13
 
14
+ def self.create_sub_for_customer_estimate(id, params, env=nil, headers={})
15
+ Request.send('get', uri_path("customers",id.to_s,"create_subscription_estimate"), params, env, headers)
16
+ end
17
+
14
18
  def self.update_subscription(params, env=nil, headers={})
15
19
  Request.send('post', uri_path("estimates","update_subscription"), params, env, headers)
16
20
  end
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class ThirdPartyPaymentMethod < Model
3
3
 
4
- attr_accessor :type, :gateway, :reference_id
4
+ attr_accessor :type, :gateway, :gateway_account_id, :reference_id
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -13,9 +13,9 @@ module ChargeBee
13
13
  attr_accessor :txn_id, :txn_status, :txn_date, :txn_amount
14
14
  end
15
15
 
16
- attr_accessor :id, :customer_id, :subscription_id, :payment_method, :reference_number, :gateway,
17
- :type, :date, :currency_code, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at,
18
- :resource_version, :updated_at, :amount_unused, :masked_card_number, :reference_transaction_id,
16
+ attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_method, :reference_number,
17
+ :gateway, :type, :date, :currency_code, :amount, :id_at_gateway, :status, :error_code, :error_text,
18
+ :voided_at, :resource_version, :updated_at, :amount_unused, :masked_card_number, :reference_transaction_id,
19
19
  :refunded_txn_id, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
20
20
  :deleted
21
21
 
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.2.2
4
+ version: 2.2.3
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: 2017-01-12 00:00:00.000000000 Z
12
+ date: 2017-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure