From 9891b9a88379a9787fb6a903bad66b0a1bf6c282 Mon Sep 17 00:00:00 2001 From: Chris Barton Date: Mon, 23 Mar 2015 13:19:35 -0700 Subject: [PATCH] Add bank account fields to billing info --- CHANGELOG | 5 +++++ recurly/__init__.py | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index bf2931ad..9763cc44 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,11 @@ ## Unreleased - Add `tax_type`, `tax_rate`, `tax_region` to `Adjustment` +- Added `bank_account` type and attributes to `BillingInfo`, these include: + - `name_on_account` + - `account_type` (`checking` or `savings`) + - `last_four` + - `routing_number` ## Version 2.2.9 February 6, 2015 diff --git a/recurly/__init__.py b/recurly/__init__.py index a8eb4dc2..54a7f4b3 100644 --- a/recurly/__init__.py +++ b/recurly/__init__.py @@ -256,6 +256,7 @@ class BillingInfo(Resource): attributes = ( 'type', + 'name_on_account', 'first_name', 'last_name', 'number', @@ -282,8 +283,11 @@ class BillingInfo(Resource): 'paypal_billing_agreement_id', 'amazon_billing_agreement_id', 'token_id', + 'account_type', + 'routing_number', + 'account_number', ) - sensitive_attributes = ('number', 'verification_value') + sensitive_attributes = ('number', 'verification_value', 'account_number') xml_attribute_attributes = ('type',) class Coupon(Resource):