recurly/recurly-client-ruby — pull request #165 by bhelx (2014-12-16 23:53:37+00:00)
Title: Adding address to invoice and subscription preview

API feature is coming out that adds an address to the root level on
subscriptions and invoices for the preview path. This is part of a
larger requirement for VAT 2015.

Testing
=======

For subscriptions:
* grab an account
* build a subscription preview
* verify that the address is on there

```ruby
account = Recurly::Account.all.first
subscription = Recurly::Subscription.preview(plan_code: 'gold', account:
account)

puts subscription.address.inspect
```

For invoices:

* add an uninvoiced charge to an account
* grab that account
* build an invoice off of it
* verify that the address is on there

```ruby
account = Recurly::Account.all.first
invoice = account.build_invoice

puts invoice.address.inspect
```

Approvers: @cbarton

TODO
======

* Still needs specs
* Relies on merging and deployment of API side