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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fab7cd65c0fd2456296451577b84c9d5d3764c1
4
- data.tar.gz: 422ff98f05b53e9eaab0de391c13508f27398ad9
3
+ metadata.gz: 39b70aa8c737d69a73627a29746d60d2770f83d9
4
+ data.tar.gz: 2da0f0fcdeb0bb1756c16a686ce3cb896f5c6f81
5
5
  SHA512:
6
- metadata.gz: 9dc46eadbd249450bd184304bc2c772d0a7485258a4f45f4f569da014abda53c058a596110861eea9502ca4bb390f607df92a0697c24013bee6623957e9b8558
7
- data.tar.gz: 73795704534874b8a4295ac6588e1e0b1295ad3f6e8c540fa7e755107edd164aa7512583d0f9b434977a6ec98a0ec89ea41c540231cac6137f335a656edf8d11
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.7'
15
+ gem 'recurly', '~> 2.3.8'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -6,6 +6,7 @@ module Recurly
6
6
  define_attribute_methods %w(
7
7
  add_on_code
8
8
  name
9
+ accounting_code
9
10
  default_quantity
10
11
  unit_amount_in_cents
11
12
  display_quantity_on_hosted_page
@@ -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
 
@@ -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
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 7
5
+ PATCH = 8
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
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.7
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-09 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake