From d00dda564fba2559a59ce0b400d7306c99cf2c4e Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Tue, 29 Jun 2021 15:23:01 -1000 Subject: [PATCH] add propTypes for Plaid accounts --- src/components/AddPlaidBankAccount.js | 29 ++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/components/AddPlaidBankAccount.js b/src/components/AddPlaidBankAccount.js index dc7b1bd51222..8c1829e79105 100644 --- a/src/components/AddPlaidBankAccount.js +++ b/src/components/AddPlaidBankAccount.js @@ -34,8 +34,35 @@ const propTypes = { /** Whether we are fetching the bank accounts from the API */ loading: PropTypes.bool, + /** Error object */ + error: PropTypes.shape({ + /** Error message */ + message: PropTypes.string, + + /** Error title */ + title: PropTypes.string, + }), + /** List of accounts */ - accounts: PropTypes.arrayOf(PropTypes.object), + accounts: PropTypes.arrayOf(PropTypes.shape({ + /** Masked account number */ + accountNumber: PropTypes.string, + + /** Name of account */ + addressName: PropTypes.string, + + /** Has this account has already been added? */ + alreadyExists: PropTypes.bool, + + /** Is the account a savings account? */ + isSavings: PropTypes.bool, + + /** Unique identifier for this account in Plaid */ + plaidAccountID: PropTypes.string, + + /** Routing number for the account */ + routingNumber: PropTypes.string, + })), }), /** Fired when the user exits the Plaid flow */