recurly 2.3.7 → 2.3.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/recurly/add_on.rb +1 -0
- data/lib/recurly/invoice.rb +2 -0
- data/lib/recurly/subscription.rb +15 -0
- data/lib/recurly/version.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: 39b70aa8c737d69a73627a29746d60d2770f83d9
|
4
|
+
data.tar.gz: 2da0f0fcdeb0bb1756c16a686ce3cb896f5c6f81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b177588a7af6046a5f7ac9675f9755535a579dedf1242c43524f8cb7f8c8684f591cd34159bc15d24faa395d510478920f6bbbaa870a375d2e3c799de45f68
|
7
|
+
data.tar.gz: 89abb082f08d510de59ba11801f357175847b876e75a281d030fd78130de6c9ec5986b643d80208b708315ba57752b1328d827754253de6d2bef573d764ba136
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
|
|
12
12
|
[Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
|
13
13
|
|
14
14
|
``` ruby
|
15
|
-
gem 'recurly', '~> 2.3.
|
15
|
+
gem 'recurly', '~> 2.3.8'
|
16
16
|
```
|
17
17
|
|
18
18
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/add_on.rb
CHANGED
data/lib/recurly/invoice.rb
CHANGED
@@ -30,6 +30,7 @@ module Recurly
|
|
30
30
|
subtotal_in_cents
|
31
31
|
tax_in_cents
|
32
32
|
tax_type
|
33
|
+
tax_region
|
33
34
|
tax_rate
|
34
35
|
total_in_cents
|
35
36
|
currency
|
@@ -40,6 +41,7 @@ module Recurly
|
|
40
41
|
transactions
|
41
42
|
terms_and_conditions
|
42
43
|
customer_notes
|
44
|
+
address
|
43
45
|
)
|
44
46
|
alias to_param invoice_number
|
45
47
|
|
data/lib/recurly/subscription.rb
CHANGED
@@ -49,10 +49,13 @@ module Recurly
|
|
49
49
|
po_number
|
50
50
|
tax_in_cents
|
51
51
|
tax_type
|
52
|
+
tax_region
|
52
53
|
tax_rate
|
53
54
|
bulk
|
54
55
|
terms_and_conditions
|
55
56
|
customer_notes
|
57
|
+
vat_reverse_charge_notes
|
58
|
+
address
|
56
59
|
)
|
57
60
|
alias to_param uuid
|
58
61
|
|
@@ -176,6 +179,18 @@ module Recurly
|
|
176
179
|
true
|
177
180
|
end
|
178
181
|
|
182
|
+
# Update the notes sections of the subscription
|
183
|
+
#
|
184
|
+
# @return [true, false] +true+ when successful, +false+ when unable to
|
185
|
+
# @params notes [Hash] should be the notes parameters you wish to update
|
186
|
+
def update_notes(notes)
|
187
|
+
self.attributes = notes
|
188
|
+
@response = API.send(:put, "#{path}/notes", to_xml)
|
189
|
+
reload response
|
190
|
+
rescue API::UnprocessableEntity => e
|
191
|
+
apply_errors e
|
192
|
+
end
|
193
|
+
|
179
194
|
def signable_attributes
|
180
195
|
super.merge :plan_code => plan_code
|
181
196
|
end
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|