Skip to content

Commit

Permalink
* Removing deprecated method names.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentscheffler committed Jan 27, 2021
1 parent 66c4e71 commit dcdcefc
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 304 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $plaid = new Plaid(
\getenv("PLAID_ENVIRONMENT")
);

$item = $plaid->items->getItem("itm_1234");
$item = $plaid->items->get("itm_1234");
```

## Resources
Expand Down
12 changes: 0 additions & 12 deletions src/Resources/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@

class Accounts extends AbstractResource
{
/**
* Get all Accounts.
*
* @deprecated 1.1 Use list() method.
* @param string $access_token
* @return object
*/
public function getAccounts(string $access_token): object
{
return $this->list($access_token);
}

/**
* Get all Accounts.
*
Expand Down
13 changes: 0 additions & 13 deletions src/Resources/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@

class Auth extends AbstractResource
{
/**
* Get Auth request.
*
* @deprecated 1.1 Use get() method
* @param string $access_token
* @param array<string,string> $options
* @return object
*/
public function getAuth(string $access_token, array $options = []): object
{
return $this->get($access_token, $options);
}

/**
* Get Auth request.
*
Expand Down
11 changes: 0 additions & 11 deletions src/Resources/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@

class Categories extends AbstractResource
{
/**
* Get all Plaid categories.
*
* @deprecated 1.1 Use list() method.
* @return object
*/
public function getCategories(): object
{
return $this->list();
}

/**
* Get all Plaid categories.
*
Expand Down
46 changes: 0 additions & 46 deletions src/Resources/Institutions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@

class Institutions extends AbstractResource
{
/**
* Get a specific Insitution.
*
* @deprecated 1.1 Use get() method.
* @param string $institution_id
* @param array<string,string> $options
* @return object
*/
public function getInstitution(string $institution_id, array $options = []): object
{
return $this->get($institution_id, $options);
}

/**
* Get a specific Insitution.
*
Expand All @@ -38,20 +25,6 @@ public function get(string $institution_id, array $options = []): object
);
}

/**
* Get all Institutions.
*
* @deprecated 1.1 Use list() method.
* @param integer $count
* @param integer $offset
* @param array<string,string> $options
* @return object
*/
public function getInstitutions(int $count, int $offset, array $options = []): object
{
return $this->list($count, $offset, $options);
}

/**
* Get all Institutions.
*
Expand All @@ -75,25 +48,6 @@ public function list(int $count, int $offset, array $options = []): object
);
}

/**
* Find an Institution by a search query.
*
* @deprecated 1.1 Use find() method.
* @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
* @return object
*/
public function findInstitution(
string $query,
array $country_codes,
array $products = [],
array $options = []): object
{
return $this->find($query, $country_codes, $products, $options);
}

/**
* Find an Institution by a search query.
*
Expand Down
28 changes: 0 additions & 28 deletions src/Resources/Investments.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@

class Investments extends AbstractResource
{
/**
* Get investment holdings.
*
* @deprecated 1.1 Use
* @param string $access_token
* @param array<string,string> $options
* @return object
*/
public function getInvestmentHoldings(string $access_token, array $options = []): object
{
return $this->listHoldings($access_token, $options);
}

/**
* Get investment holdings.
*
Expand All @@ -40,21 +27,6 @@ public function listHoldings(string $access_token, array $options = []): object
);
}

/**
* Get investment transactions.
*
* @deprecated 1.1
* @param string $access_token
* @param DateTime $start_date
* @param DateTime $end_date
* @param array<string,string> $options
* @return object
*/
public function getInvestmentTransactions(string $access_token, DateTime $start_date, DateTime $end_date, array $options = []): object
{
return $this->listTransactions($access_token, $start_date, $end_date, $options);
}

/**
* Get investment transactions.
*
Expand Down
24 changes: 0 additions & 24 deletions src/Resources/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@

class Items extends AbstractResource
{
/**
* Get an Item.
*
* @deprecated 1.1 Use get() method.
* @param string $access_token
* @return object
*/
public function getItem(string $access_token): object
{
return $this->get($access_token);
}

/**
* Get an Item.
*
Expand All @@ -36,18 +24,6 @@ public function get(string $access_token): object
);
}

/**
* Remove an Item.
*
* @deprecated 1.1 Use remove() method.
* @param string $access_token
* @return object
*/
public function removeItem(string $access_token): object
{
return $this->remove($access_token);
}

/**
* Remove an Item.
*
Expand Down
13 changes: 0 additions & 13 deletions src/Resources/Liabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@

class Liabilities extends AbstractResource
{
/**
* Get Liabilities request.
*
* @deprecated 1.1
* @param string $access_token
* @param array<string,string> $options
* @return object
*/
public function getLiabilities(string $access_token, array $options = []): object
{
return $this->list($access_token, $options);
}

/**
* Get Liabilities request.
*
Expand Down
52 changes: 0 additions & 52 deletions src/Resources/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,6 @@ public function listRecipients(): object
);
}

/**
* Create a payment request.
*
* @deprecated 1.1
* @param string $recipient_id
* @param string $reference
* @param float $amount
* @param string $currency
* @param PaymentSchedule|null $payment_schedule
* @return object
*/
public function createPayment(string $recipient_id, string $reference, float $amount, string $currency, PaymentSchedule $payment_schedule = null): object
{
return $this->create($recipient_id, $reference, $amount, $currency, $payment_schedule);
}

/**
* Create a payment request.
*
Expand Down Expand Up @@ -122,18 +106,6 @@ public function create(string $recipient_id, string $reference, float $amount, s
);
}

/**
* Create a payment token.
*
* @deprecated 1.1
* @param string $payment_id
* @return object
*/
public function createPaymentToken(string $payment_id): object
{
return $this->createToken($payment_id);
}

/**
* Create a payment token.
*
Expand All @@ -153,18 +125,6 @@ public function createToken(string $payment_id): object
);
}

/**
* Get payment details.
*
* @deprecated 1.1
* @param string $payment_id
* @return object
*/
public function getPayment(string $payment_id): object
{
return $this->get($payment_id);
}

/**
* Get payment details.
*
Expand All @@ -184,18 +144,6 @@ public function get(string $payment_id): object
);
}

/**
* List all payments.
*
* @deprecated 1.1
* @param array $options
* @return object
*/
public function listPayments(array $options = []): object
{
return $this->list($options);
}

/**
* List all payments.
*
Expand Down
60 changes: 0 additions & 60 deletions src/Resources/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,6 @@

class Tokens extends AbstractResource
{
/**
* Create a Link Token.
*
* @deprecated 1.1 Use the create() method instead.
* @param string $client_name
* @param string $language Possible values are: en, fr, es, nl
* @param array<string> $country_codes Possible values are: CA, FR, IE, NL, ES, GB, US
* @param string $client_user_id
* @param array<string> $products Possible values are: transactions, auth, identity, income, assets, investments, liabilities, payment_initiation
* @param string|null $webhook
* @param string|null $link_customization_name
* @param AccountFilters|null $account_filters
* @param string|null $access_token
* @param string|null $redirect_uri
* @param string|null $android_package_name
* @param string|null $payment_id
* @return object
*/
public function createLinkToken(
string $client_name,
string $language,
array $country_codes,
string $client_user_id,
array $products = [],
?string $webhook = null,
?string $link_customization_name = null,
?AccountFilters $account_filters = null,
?string $access_token = null,
?string $redirect_uri = null,
?string $android_package_name = null,
?string $payment_id = null): object {

return $this->create(
$client_name,
$language,
$country_codes,
new User($client_user_id),
$products,
$webhook,
$link_customization_name,
$account_filters,
$access_token,
$redirect_uri,
$android_package_name,
$payment_id
);
}

/**
* Create a Link Token.
*
Expand Down Expand Up @@ -131,18 +83,6 @@ public function create(
);
}

/**
* Get information about a previously created Link token.
*
* @deprecated 1.1 Use the get() method instead.
* @param string $link_token
* @return object
*/
public function getToken(string $link_token): object
{
return $this->get($link_token);
}

/**
* Get information about a previously created Link token.
*
Expand Down
Loading

0 comments on commit dcdcefc

Please sign in to comment.