recurly/recurly-client-python — pull request #99 by bhelx (2014-12-17 00:18:07+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

```python
account = recurly.Account.get('test@example.com')
invoice = account.build_invoice()

print invoice.address
print invoice.address.country
```

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

```python
account = recurly.Account.get('test@example.com')

subscription = recurly.Subscription()
subscription.account = account
subscription.plan_code = 'gold'

subscription.preview()

print subscription.address
print subscription.address.country
```

Approvers: @cbarton

TODO
=====

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