chargebee 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/address.rb +1 -1
- data/lib/chargebee/models/customer.rb +2 -2
- data/lib/chargebee/models/invoice.rb +2 -2
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/subscription_estimate.rb +5 -1
- 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: a662873559eadc08169e568490c045ea40b30f82
|
4
|
+
data.tar.gz: 8e8a60fa6e5740e620b00529e4c6251a2a33b7fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e63ff3252c61d822e4b0decab51934e703b6cf65b23ca0a250fb5d31bedca8757e6d29d8c2096f29593836e240e1b08bbd1e696a75c30f4d11b595677b04c32c
|
7
|
+
data.tar.gz: 8083b93b52b7302a5759732f113bfb0c701ae35c6598a2cf214a417509d1819a7ac34fa2e397f9d45d0a572cacadadceadf8712e83ce541aecc6eebb24248eb3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,32 @@
|
|
1
|
+
###v2.1.2 (2016-08-25)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** APIs updated**:
|
5
|
+
The attribute "validation_status" is added to address.
|
6
|
+
See : https://apidocs.chargebee.com/docs/api/addresses#address_attributes
|
7
|
+
|
8
|
+
The attribute "validation_status" is added to Customer billing address and the attribute "fraud_flag" is now returned Customer in case of any fraudulent transactions. The API's Create Customer, Update Billing Info for a Customer now take in "validation_status" for address objects.
|
9
|
+
See : https://apidocs.chargebee.com/docs/api/customers#customer_attributes
|
10
|
+
|
11
|
+
The attribute "validation_status" is added to Subscription shipping address. The API's Create Subscription, Create Subscription for Customer, Update Subscription now take in "validation_status" for address objects.
|
12
|
+
See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_attributes
|
13
|
+
|
14
|
+
The attribute "validation_status" is returned as part of Invoice billing and shipping address.
|
15
|
+
See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
|
16
|
+
|
17
|
+
The sub resource "shipping_address" is now returned as part of Subscription Estimate in Estimate APIs.
|
18
|
+
See : https://apidocs.chargebee.com/docs/api/estimates#estimate_attributes
|
19
|
+
|
20
|
+
The attribute "created_from_ip", "card_ip_address" is deprecated from Customer and Subscription resource.
|
21
|
+
See: https://apidocs.chargebee.com/docs/api/customers#customer_attributes
|
22
|
+
|
23
|
+
The attribute "tmp_token" is added to Payment Method subresource that can be used in Create and Update Payment Method for a Customer API for direct_debit type through Stripe gateway.
|
24
|
+
See : https://apidocs.chargebee.com/docs/api/customers#create_a_customer
|
25
|
+
|
26
|
+
The status "pending_verification" added to Payment Method status.
|
27
|
+
See : https://apidocs.chargebee.com/docs/api/customers#customer_attributes
|
28
|
+
|
29
|
+
|
1
30
|
###v2.1.1 (2016-08-02)
|
2
31
|
* * *
|
3
32
|
** APIs added**:
|
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.1.
|
8
|
-
s.date = '2016-08-
|
7
|
+
s.version = '2.1.2'
|
8
|
+
s.date = '2016-08-25'
|
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
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Address < Model
|
3
3
|
|
4
4
|
attr_accessor :label, :first_name, :last_name, :email, :company, :phone, :addr, :extended_addr,
|
5
|
-
:extended_addr2, :city, :state_code, :state, :country, :zip, :subscription_id
|
5
|
+
:extended_addr2, :city, :state_code, :state, :country, :zip, :validation_status, :subscription_id
|
6
6
|
|
7
7
|
# OPERATIONS
|
8
8
|
#-----------
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Customer < Model
|
3
3
|
|
4
4
|
class BillingAddress < Model
|
5
|
-
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
|
5
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
6
6
|
end
|
7
7
|
|
8
8
|
class Contact < Model
|
@@ -15,7 +15,7 @@ module ChargeBee
|
|
15
15
|
|
16
16
|
attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
|
17
17
|
:allow_direct_debit, :created_at, :created_from_ip, :taxability, :entity_code, :exempt_number,
|
18
|
-
:card_status, :billing_address, :contacts, :payment_method, :invoice_notes, :promotional_credits,
|
18
|
+
:card_status, :fraud_flag, :billing_address, :contacts, :payment_method, :invoice_notes, :promotional_credits,
|
19
19
|
:refundable_credits, :excess_payments, :meta_data
|
20
20
|
|
21
21
|
# OPERATIONS
|
@@ -42,11 +42,11 @@ module ChargeBee
|
|
42
42
|
end
|
43
43
|
|
44
44
|
class ShippingAddress < Model
|
45
|
-
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
|
45
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
46
46
|
end
|
47
47
|
|
48
48
|
class BillingAddress < Model
|
49
|
-
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
|
49
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
50
50
|
end
|
51
51
|
|
52
52
|
attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
10
10
|
end
|
11
11
|
|
12
12
|
class ShippingAddress < Model
|
13
|
-
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
|
13
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
14
14
|
end
|
15
15
|
|
16
16
|
attr_accessor :id, :customer_id, :currency_code, :plan_id, :plan_quantity, :status, :start_date,
|
@@ -1,7 +1,11 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class SubscriptionEstimate < Model
|
3
3
|
|
4
|
-
|
4
|
+
class ShippingAddress < Model
|
5
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
6
|
+
end
|
7
|
+
|
8
|
+
attr_accessor :id, :currency_code, :status, :next_billing_at, :shipping_address
|
5
9
|
|
6
10
|
# OPERATIONS
|
7
11
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -59,7 +59,7 @@ module ChargeBee
|
|
59
59
|
estimate = get(:estimate, Estimate, {},
|
60
60
|
{:subscription_estimate => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate});
|
61
61
|
estimate.init_dependant(@response[:estimate], :subscription_estimate,
|
62
|
-
{});
|
62
|
+
{:shipping_address => SubscriptionEstimate::ShippingAddress});
|
63
63
|
estimate.init_dependant(@response[:estimate], :invoice_estimate,
|
64
64
|
{:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax});
|
65
65
|
estimate.init_dependant(@response[:estimate], :next_invoice_estimate,
|
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.1.
|
4
|
+
version: 2.1.2
|
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: 2016-08-
|
12
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|