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 +4 -4
- data/CHANGELOG.md +27 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/card.rb +4 -3
- data/lib/chargebee/models/customer.rb +1 -1
- data/lib/chargebee/models/estimate.rb +4 -0
- data/lib/chargebee/models/third_party_payment_method.rb +1 -1
- data/lib/chargebee/models/transaction.rb +3 -3
- 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: 332721f5c73724a60a9d60d3d09f41f9e0915024
|
4
|
+
data.tar.gz: ad9fb2c953d51d5d8a79c7d98039da5b6eea5f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 927fe33f10759aafab39cdaa371f86fbe5384f43ca01c1985f5377528dbff65e37052c904f22bf7a18ea04c7aa8f637076cf2c077cad37c55fa2a8a8fdf11033
|
7
|
+
data.tar.gz: 293d436daae680c7815bd99da4e1d8559fa8c98bca1191c2291e4ebcebdfe5d72606707f2e62f5c442672a4072da99280975a4c9ea42aaa1954c02b727881237
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
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 = '2.2.
|
8
|
-
s.date = '2017-01-
|
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."
|
data/lib/chargebee.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Card < Model
|
3
3
|
|
4
|
-
attr_accessor :customer_id, :status, :gateway, :
|
5
|
-
:
|
6
|
-
:billing_state, :billing_country, :billing_zip, :ip_address,
|
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
|
@@ -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, :
|
17
|
-
:type, :date, :currency_code, :amount, :id_at_gateway, :status, :error_code, :error_text,
|
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.
|
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
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|