chargebee 1.3.8 → 1.3.9
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.
- data/CHANGELOG.md +6 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/subscription.rb +5 -1
- data/lib/chargebee/result.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
+
### v1.3.9 (2014-04-22)
|
2
|
+
* * *
|
3
|
+
Support for returning shipping address as part of create/update subscription API.
|
4
|
+
|
1
5
|
### v1.3.8 (2014-03-26)
|
2
6
|
* * *
|
3
7
|
* Now the [Transaction attributes](https://apidocs.chargebee.com/docs/api/transactions#transaction_attributes "Transaction attributes") contains the details about the linked invoices.
|
4
8
|
|
5
9
|
* Now the [Invoice attributes](https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes "Invoice attributes") contains the details about the linked transactions.
|
6
10
|
|
11
|
+
* Support for recording a payment received via offline mode. See our API documentation on [Record Payment for an Invoice](https://apidocs.chargebee.com/docs/api/transactions#record_payment_for_an_invoice "Record Payment for an Invoice")
|
12
|
+
|
7
13
|
### v1.3.7 (2014-03-18)
|
8
14
|
* * *
|
9
15
|
Support for deleting the plans & addons. See our API documentation on [Delete a plan](https://apidocs.chargebee.com/docs/api/plans#delete_a_plan "Delete a plan") & [Delete an addon](https://apidocs.chargebee.com/docs/api/addons#delete_an_addon "Delete an addon").
|
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.3.
|
8
|
-
s.date = '2014-
|
7
|
+
s.version = '1.3.9'
|
8
|
+
s.date = '2014-04-22'
|
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
@@ -9,10 +9,14 @@ module ChargeBee
|
|
9
9
|
attr_accessor :coupon_id, :apply_till, :applied_count, :coupon_code
|
10
10
|
end
|
11
11
|
|
12
|
+
class ShippingAddress < Model
|
13
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state, :country, :zip
|
14
|
+
end
|
15
|
+
|
12
16
|
attr_accessor :id, :plan_id, :plan_quantity, :status, :start_date, :trial_start, :trial_end,
|
13
17
|
:current_term_start, :current_term_end, :remaining_billing_cycles, :created_at, :started_at,
|
14
18
|
:activated_at, :cancelled_at, :cancel_reason, :due_invoices_count, :due_since, :total_dues,
|
15
|
-
:addons, :coupon, :coupons
|
19
|
+
:addons, :coupon, :coupons, :shipping_address
|
16
20
|
|
17
21
|
# OPERATIONS
|
18
22
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -7,7 +7,7 @@ module ChargeBee
|
|
7
7
|
|
8
8
|
def subscription()
|
9
9
|
get(:subscription, Subscription,
|
10
|
-
{:addons => Subscription::Addon, :coupons => Subscription::Coupon});
|
10
|
+
{:addons => Subscription::Addon, :coupons => Subscription::Coupon, :shipping_address => Subscription::ShippingAddress});
|
11
11
|
end
|
12
12
|
|
13
13
|
def customer()
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Rajaraman S
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-04-22 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|