chargebee 1.5.1 → 1.5.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 +12 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/address.rb +1 -1
- data/lib/chargebee/models/card.rb +2 -2
- data/lib/chargebee/models/customer.rb +1 -1
- data/lib/chargebee/models/invoice.rb +1 -1
- data/lib/chargebee/models/subscription.rb +5 -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: d563d1d35b841f75d804390a529921071fc4c632
|
4
|
+
data.tar.gz: 51130ad57f36a130611b069332730ec985e10894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 895c2fcd126d98f039afe0fb0fc24bd1fef612e54513e2c82d5c6764a162fe2528cf37cd95e5998e1de9e9ab33f4c5b34aae88e8001b078f017a55649a81659f
|
7
|
+
data.tar.gz: 01fd9efa26205002846cf02fd56dd8927ff6f7e67adb35b15c50f02e12707bd9f9cc3db21b68a89c4c9477c825d76086592b34f0fb45fe963b70671cef64a2f1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
### v1.5.2 (2015-02-18)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** APIs added**:
|
5
|
+
A new API called Remove scheduled cancellation method(Subscription) added to remove the pending cancellation scheduled at end of the subscription term.
|
6
|
+
|
7
|
+
** APIs deprecated**:
|
8
|
+
Reactivate a subscription(Subscription) API is deprecated for subscriptions in Non-Renewing state as an alternate API(see above) is added.
|
9
|
+
|
10
|
+
** APIs updated**:
|
11
|
+
Create subscription/customer, update subscription/customer/payment method/billing info API now accepts the State Code for billing, shipping, subscription and card addresses.
|
12
|
+
|
1
13
|
### v1.5.1 (2015-01-07)
|
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
|
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '1.5.
|
8
|
-
s.date = '2015-
|
7
|
+
s.version = '1.5.2'
|
8
|
+
s.date = '2015-02-18'
|
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, :country, :zip, :subscription_id
|
5
|
+
:extended_addr2, :city, :state_code, :state, :country, :zip, :subscription_id
|
6
6
|
|
7
7
|
# OPERATIONS
|
8
8
|
#-----------
|
@@ -2,8 +2,8 @@ module ChargeBee
|
|
2
2
|
class Card < Model
|
3
3
|
|
4
4
|
attr_accessor :customer_id, :status, :gateway, :first_name, :last_name, :iin, :last4, :card_type,
|
5
|
-
:expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :
|
6
|
-
:billing_country, :billing_zip, :masked_number
|
5
|
+
:expiry_month, :expiry_year, :billing_addr1, :billing_addr2, :billing_city, :billing_state_code,
|
6
|
+
:billing_state, :billing_country, :billing_zip, :masked_number
|
7
7
|
|
8
8
|
# OPERATIONS
|
9
9
|
#-----------
|
@@ -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, :country, :zip
|
5
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
|
6
6
|
end
|
7
7
|
|
8
8
|
class PaymentMethod < Model
|
@@ -18,7 +18,7 @@ module ChargeBee
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class LinkedOrder < Model
|
21
|
-
attr_accessor :id, :
|
21
|
+
attr_accessor :id, :status, :reference_id, :fulfillment_status, :batch_id, :created_at
|
22
22
|
end
|
23
23
|
|
24
24
|
attr_accessor :id, :customer_id, :subscription_id, :recurring, :status, :vat_number, :start_date,
|
@@ -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, :country, :zip
|
13
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
|
14
14
|
end
|
15
15
|
|
16
16
|
attr_accessor :id, :plan_id, :plan_quantity, :status, :start_date, :trial_start, :trial_end,
|
@@ -49,6 +49,10 @@ module ChargeBee
|
|
49
49
|
Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_changes"), {}, env)
|
50
50
|
end
|
51
51
|
|
52
|
+
def self.remove_scheduled_cancellation(id, params={}, env=nil)
|
53
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_cancellation"), params, env)
|
54
|
+
end
|
55
|
+
|
52
56
|
def self.update(id, params={}, env=nil)
|
53
57
|
Request.send('post', uri_path("subscriptions",id.to_s), params, env)
|
54
58
|
end
|
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: 1.5.
|
4
|
+
version: 1.5.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: 2015-
|
12
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|