Skip to content

Commit

Permalink
Adding vat_location_valid field to Account
Browse files Browse the repository at this point in the history
This field will show up when the account is elligible and has been
location verified according to the VAT rules. It will be true when
passed and false when failed.
  • Loading branch information
bhelx committed Jan 8, 2015
1 parent 8831e48 commit 97fd9c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<a name="v2.4.0"></a>
## v2.4.0 (2015-1-7)
* Add `Invoice#original_invoice` for refund invoices [PR](https://github.com/recurly/recurly-client-ruby/pull/169)
* Add `vat_location_valid` to `Account` [PR](https://github.com/recurly/recurly-client-ruby/pull/171)

<a name="v2.3.8"></a>
## v2.3.8 (2014-12-22)
Expand Down
1 change: 1 addition & 0 deletions lib/recurly/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Account < Resource
tax_exempt
entity_use_code
created_at
vat_location_valid
)
alias to_param account_code

Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/accounts/show-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ Content-Type: application/xml; charset=utf-8
<country>US</country>
<phone>8015551234</phone>
</address>
<vat_location_valid type="boolean">true</vat_location_valid>
</account>
1 change: 1 addition & 0 deletions spec/recurly/account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
account.address.zip.must_equal '94105'
account.address.phone.must_equal '8015551234'
account.address.country.must_equal 'US'
account.vat_location_valid.must_equal true
end

it 'must return an account with tax state' do
Expand Down

0 comments on commit 97fd9c8

Please sign in to comment.