Skip to content

Commit

Permalink
Merge pull request #153 from recurly/add_currency_on_billing_info
Browse files Browse the repository at this point in the history
Add currency to BillingInfo
  • Loading branch information
csmb committed Feb 22, 2016
2 parents 8cb2d0d + fa584ae commit f096b8b
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions recurly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class BillingInfo(Resource):
'account_type',
'routing_number',
'account_number',
'currency',
)
sensitive_attributes = ('number', 'verification_value', 'account_number')
xml_attribute_attributes = ('type',)
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/billing-info/account-embed-created.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>
</account>

Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/billing-info/account-embed-token.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Content-Type: application/xml; charset=utf-8
<account_code>binfo-mock-3</account_code>
<billing_info>
<token_id>abc123</token_id>
<currency>USD</currency>
</billing_info>
</account>

Expand Down
2 changes: 2 additions & 0 deletions tests/fixtures/billing-info/created.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>

HTTP/1.1 201 Created
Expand All @@ -38,4 +39,5 @@ Location: https://api.recurly.com/v2/accounts/binfomock/billing_info
<month type="integer">12</month>
<first_six>411111</first_six>
<last_four>1111</last_four>
<currency>USD</currency>
</billing_info>
1 change: 1 addition & 0 deletions tests/fixtures/billing-info/embedded-exists.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Content-Type: application/xml; charset=utf-8
<card_type>visa</card_type>
<first_six>411111</first_six>
<last_four>1111</last_four>
<currency>USD</currency>
</billing_info>
1 change: 1 addition & 0 deletions tests/fixtures/coupon/subscribed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>
</account>
</subscription>
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/subscribe-add-on/subscribed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>
</account>
</subscription>
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/subscription/subscribe-embedded-account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>
</account>
</subscription>
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/subscription/subscribed-billing-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>
</account>
</subscription>
Expand Down
2 changes: 2 additions & 0 deletions tests/fixtures/subscription/update-billing-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>

HTTP/1.1 201 Created
Expand All @@ -38,4 +39,5 @@ Location: https://api.recurly.com/v2/accounts/subscribemock/billing_info
<month type="integer">12</month>
<first_six>411111</first_six>
<last_four>1111</last_four>
<currency>USD</currency>
</billing_info>
2 changes: 2 additions & 0 deletions tests/fixtures/transaction-balance/set-billing-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>

HTTP/1.1 201 Created
Expand All @@ -38,4 +39,5 @@ Location: https://api.recurly.com/v2/accounts/transbalancemock/billing_info
<month type="integer">12</month>
<first_six>411111</first_six>
<last_four>1111</last_four>
<currency>USD</currency>
</billing_info>
1 change: 1 addition & 0 deletions tests/fixtures/transaction/created.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Content-Type: application/xml; charset=utf-8
<state>CA</state>
<zip>94105</zip>
<country>US</country>
<currency>USD</currency>
</billing_info>
</account>
<currency>USD</currency>
Expand Down

0 comments on commit f096b8b

Please sign in to comment.