Skip to content

Commit

Permalink
Updating documenation for User entity.
Browse files Browse the repository at this point in the history
Updating docblock type for all options to be array<string,mixed>
  • Loading branch information
brentscheffler committed Oct 12, 2021
1 parent 0f3a8d9 commit bfc48c2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 12 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,15 @@ The `TomorrowIdeas\Plaid\Entities\User` entity is used to represent your end use
Example:

```php
$token_user = new User($user->id, $user->name, $user->phone);
$token_user = new User(
string $id,
?string $name = null,
?string $phone_number = null,
?string $phone_number_verified_time = null,
?string $email_address = null,
?string $ssn = null,
?string $date_of_birth = null
)
```

### RecipientAddress
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function list(string $access_token, array $options = []): object
* Get Account balance.
*
* @param string $access_token
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Auth extends AbstractResource
* Get Auth request.
*
* @param string $access_token
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/Institutions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Institutions extends AbstractResource
*
* @param string $institution_id
* @param array<string> $country_codes
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand All @@ -36,7 +36,7 @@ public function get(string $institution_id, array $country_codes, array $options
* @param integer $count
* @param integer $offset
* @param array<string> $country_codes
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand All @@ -62,7 +62,7 @@ public function list(int $count, int $offset, array $country_codes, array $optio
* @param string $query
* @param array<string> $products
* @param array<string> $country_codes Possible values: US, GB, ES, NL, FR, IE, CA
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Investments.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Investments extends AbstractResource
* Get investment holdings.
*
* @param string $access_token
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand All @@ -35,7 +35,7 @@ public function listHoldings(string $access_token, array $options = []): object
* @param string $access_token
* @param DateTime $start_date
* @param DateTime $end_date
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Liabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Liabilities extends AbstractResource
* Get Liabilities request.
*
* @param string $access_token
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Reports extends AbstractResource
*
* @param array<string> $access_tokens
* @param integer $days_requested
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand All @@ -36,7 +36,7 @@ public function createAssetReport(array $access_tokens, int $days_requested, arr
*
* @param string $asset_report_token
* @param integer $days_requested
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Transactions extends AbstractResource
* @param string $access_token
* @param DateTime $start_date
* @param DateTime $end_date
* @param array<string,string> $options
* @param array<string,mixed> $options
* @throws PlaidRequestException
* @return object
*/
Expand Down

0 comments on commit bfc48c2

Please sign in to comment.