diff --git a/lib/Service/AccountLinkService.php b/lib/Service/AccountLinkService.php index 2e9049239..0e72d20c2 100644 --- a/lib/Service/AccountLinkService.php +++ b/lib/Service/AccountLinkService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class AccountLinkService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class AccountLinkService extends \Stripe\Service\AbstractService * Onboarding flow. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index deb0bda2e..59dd4cd5b 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class AccountService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class AccountService extends \Stripe\Service\AbstractService * href="/docs/connect">Connect. If you’re not a platform, the list is empty. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function allCapabilities($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -63,7 +69,7 @@ public function allExternalAccounts($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -87,7 +93,7 @@ public function allPersons($parentId, $params = null, $opts = null) * account. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -103,7 +109,7 @@ public function create($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -124,7 +130,7 @@ public function createExternalAccount($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -140,7 +146,7 @@ public function createLoginLink($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -165,7 +171,7 @@ public function createPerson($parentId, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -182,7 +188,7 @@ public function delete($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -203,7 +209,7 @@ public function deleteExternalAccount($parentId, $id, $params = null, $opts = nu * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -222,7 +228,7 @@ public function deletePerson($parentId, $id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -239,7 +245,7 @@ public function reject($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -256,7 +262,7 @@ public function retrieveCapability($parentId, $id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -273,7 +279,7 @@ public function retrieveExternalAccount($parentId, $id, $params = null, $opts = * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -302,7 +308,7 @@ public function retrievePerson($parentId, $id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -320,7 +326,7 @@ public function update($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -343,7 +349,7 @@ public function updateCapability($parentId, $id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -360,7 +366,7 @@ public function updateExternalAccount($parentId, $id, $params = null, $opts = nu * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/AccountSessionService.php b/lib/Service/AccountSessionService.php index e7d8a1f9f..7c1dba0a3 100644 --- a/lib/Service/AccountSessionService.php +++ b/lib/Service/AccountSessionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class AccountSessionService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class AccountSessionService extends \Stripe\Service\AbstractService * platform can use on their front-end to grant client-side API access. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ApplePayDomainService.php b/lib/Service/ApplePayDomainService.php index 3a076f472..e15852b22 100644 --- a/lib/Service/ApplePayDomainService.php +++ b/lib/Service/ApplePayDomainService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ApplePayDomainService extends \Stripe\Service\AbstractService { /** * List apple pay domains. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Create an apple pay domain. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ApplicationFeeService.php b/lib/Service/ApplicationFeeService.php index 138c3794e..aa0fc3087 100644 --- a/lib/Service/ApplicationFeeService.php +++ b/lib/Service/ApplicationFeeService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ApplicationFeeService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class ApplicationFeeService extends \Stripe\Service\AbstractService * fees are returned in sorted order, with the most recent fees appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -56,7 +62,7 @@ public function allRefunds($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -73,7 +79,7 @@ public function createRefund($parentId, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -92,7 +98,7 @@ public function retrieve($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -112,7 +118,7 @@ public function retrieveRefund($parentId, $id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Apps/SecretService.php b/lib/Service/Apps/SecretService.php index 8c9c74b48..db3e777f4 100644 --- a/lib/Service/Apps/SecretService.php +++ b/lib/Service/Apps/SecretService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Apps; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SecretService extends \Stripe\Service\AbstractService { /** * List all secrets stored on the given scope. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Create or replace a secret in the secret store. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -40,7 +46,7 @@ public function create($params = null, $opts = null) * Deletes a secret from the secret store by name and scope. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -55,7 +61,7 @@ public function deleteWhere($params = null, $opts = null) * Finds a secret in the secret store by name and scope. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/BalanceService.php b/lib/Service/BalanceService.php index 0f55385f1..3785c205a 100644 --- a/lib/Service/BalanceService.php +++ b/lib/Service/BalanceService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class BalanceService extends \Stripe\Service\AbstractService { /** @@ -13,7 +19,7 @@ class BalanceService extends \Stripe\Service\AbstractService * for negative balances. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/BalanceTransactionService.php b/lib/Service/BalanceTransactionService.php index 9e6d37c04..49a486a18 100644 --- a/lib/Service/BalanceTransactionService.php +++ b/lib/Service/BalanceTransactionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class BalanceTransactionService extends \Stripe\Service\AbstractService { /** @@ -15,7 +21,7 @@ class BalanceTransactionService extends \Stripe\Service\AbstractService * path /v1/balance/history. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -34,7 +40,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/BillingPortal/ConfigurationService.php b/lib/Service/BillingPortal/ConfigurationService.php index 11d1a5a3a..983c83d63 100644 --- a/lib/Service/BillingPortal/ConfigurationService.php +++ b/lib/Service/BillingPortal/ConfigurationService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\BillingPortal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ConfigurationService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class ConfigurationService extends \Stripe\Service\AbstractService * portal. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * PortalSession. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -60,7 +66,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/BillingPortal/SessionService.php b/lib/Service/BillingPortal/SessionService.php index 6b3e60263..33eef5898 100644 --- a/lib/Service/BillingPortal/SessionService.php +++ b/lib/Service/BillingPortal/SessionService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\BillingPortal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SessionService extends \Stripe\Service\AbstractService { /** * Creates a session of the customer portal. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ChargeService.php b/lib/Service/ChargeService.php index dc23b6834..0610db842 100644 --- a/lib/Service/ChargeService.php +++ b/lib/Service/ChargeService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ChargeService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class ChargeService extends \Stripe\Service\AbstractService * sorted order, with the most recent charges appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -35,7 +41,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -53,7 +59,7 @@ public function capture($id, $params = null, $opts = null) * Charge object used to request payment. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -72,7 +78,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -92,7 +98,7 @@ public function retrieve($id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -109,7 +115,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Checkout/SessionService.php b/lib/Service/Checkout/SessionService.php index 2291ccd50..f6e8e7acc 100644 --- a/lib/Service/Checkout/SessionService.php +++ b/lib/Service/Checkout/SessionService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Checkout; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SessionService extends \Stripe\Service\AbstractService { /** * Returns a list of Checkout Sessions. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function allLineItems($id, $params = null, $opts = null) * Creates a Session object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -63,7 +69,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -79,7 +85,7 @@ public function expire($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Climate/OrderService.php b/lib/Service/Climate/OrderService.php index 7cb1bd36e..385f266e6 100644 --- a/lib/Service/Climate/OrderService.php +++ b/lib/Service/Climate/OrderService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Climate; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class OrderService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class OrderService extends \Stripe\Service\AbstractService * date, with the most recently created orders appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -32,7 +38,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -49,7 +55,7 @@ public function cancel($id, $params = null, $opts = null) * balance. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -65,7 +71,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -81,7 +87,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Climate/ProductService.php b/lib/Service/Climate/ProductService.php index 0a3d14642..210473d14 100644 --- a/lib/Service/Climate/ProductService.php +++ b/lib/Service/Climate/ProductService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Climate; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ProductService extends \Stripe\Service\AbstractService { /** * Lists all available Climate product objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Climate/SupplierService.php b/lib/Service/Climate/SupplierService.php index 40eac85f6..988c9688a 100644 --- a/lib/Service/Climate/SupplierService.php +++ b/lib/Service/Climate/SupplierService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Climate; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SupplierService extends \Stripe\Service\AbstractService { /** * Lists all available Climate supplier objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/CountrySpecService.php b/lib/Service/CountrySpecService.php index 8f3869fee..4c29d0489 100644 --- a/lib/Service/CountrySpecService.php +++ b/lib/Service/CountrySpecService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CountrySpecService extends \Stripe\Service\AbstractService { /** * Lists all Country Spec objects available in the API. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/CouponService.php b/lib/Service/CouponService.php index 89eb2c7d1..faa3ce5a2 100644 --- a/lib/Service/CouponService.php +++ b/lib/Service/CouponService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CouponService extends \Stripe\Service\AbstractService { /** * Returns a list of your coupons. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -38,7 +44,7 @@ public function all($params = null, $opts = null) * it. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -58,7 +64,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -74,7 +80,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -91,7 +97,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/CreditNoteService.php b/lib/Service/CreditNoteService.php index a00f010aa..9886f9dcd 100644 --- a/lib/Service/CreditNoteService.php +++ b/lib/Service/CreditNoteService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CreditNoteService extends \Stripe\Service\AbstractService { /** * Returns a list of credit notes. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -62,7 +68,7 @@ public function allLines($parentId, $params = null, $opts = null) * status at the time of credit note creation. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -77,7 +83,7 @@ public function create($params = null, $opts = null) * Get a preview of a credit note without creating it. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -94,7 +100,7 @@ public function preview($params = null, $opts = null) * the full (paginated) list of line items. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -110,7 +116,7 @@ public function previewLines($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -126,7 +132,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -143,7 +149,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php index 34346a1eb..ea2309943 100644 --- a/lib/Service/CustomerService.php +++ b/lib/Service/CustomerService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CustomerService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class CustomerService extends \Stripe\Service\AbstractService * date, with the most recent customers appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function allBalanceTransactions($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -61,7 +67,7 @@ public function allCashBalanceTransactions($parentId, $params = null, $opts = nu * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -77,7 +83,7 @@ public function allPaymentMethods($id, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -93,7 +99,7 @@ public function allSources($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -108,7 +114,7 @@ public function allTaxIds($parentId, $params = null, $opts = null) * Creates a new customer object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -125,7 +131,7 @@ public function create($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -145,7 +151,7 @@ public function createBalanceTransaction($parentId, $params = null, $opts = null * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -167,7 +173,7 @@ public function createFundingInstructions($id, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -183,7 +189,7 @@ public function createSource($parentId, $params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -200,7 +206,7 @@ public function createTaxId($parentId, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -216,7 +222,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -233,7 +239,7 @@ public function deleteDiscount($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -250,7 +256,7 @@ public function deleteSource($parentId, $id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -266,7 +272,7 @@ public function deleteTaxId($parentId, $id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -284,7 +290,7 @@ public function retrieve($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -300,7 +306,7 @@ public function retrieveBalanceTransaction($parentId, $id, $params = null, $opts * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -318,7 +324,7 @@ public function retrieveCashBalance($parentId, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -335,7 +341,7 @@ public function retrieveCashBalanceTransaction($parentId, $id, $params = null, $ * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -352,7 +358,7 @@ public function retrievePaymentMethod($parentId, $id, $params = null, $opts = nu * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -369,7 +375,7 @@ public function retrieveSource($parentId, $id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -389,7 +395,7 @@ public function retrieveTaxId($parentId, $id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -417,7 +423,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -435,7 +441,7 @@ public function update($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -451,7 +457,7 @@ public function updateBalanceTransaction($parentId, $id, $params = null, $opts = * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -468,7 +474,7 @@ public function updateCashBalance($parentId, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -485,7 +491,7 @@ public function updateSource($parentId, $id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/CustomerSessionService.php b/lib/Service/CustomerSessionService.php index 57dcba609..b0c19b201 100644 --- a/lib/Service/CustomerSessionService.php +++ b/lib/Service/CustomerSessionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CustomerSessionService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class CustomerSessionService extends \Stripe\Service\AbstractService * customer resources. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/DisputeService.php b/lib/Service/DisputeService.php index 86d3584a0..24d8d8d91 100644 --- a/lib/Service/DisputeService.php +++ b/lib/Service/DisputeService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class DisputeService extends \Stripe\Service\AbstractService { /** * Returns a list of your disputes. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -30,7 +36,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -46,7 +52,7 @@ public function close($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -70,7 +76,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/EphemeralKeyService.php b/lib/Service/EphemeralKeyService.php index 3ca14c904..dcfd17bc7 100644 --- a/lib/Service/EphemeralKeyService.php +++ b/lib/Service/EphemeralKeyService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class EphemeralKeyService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class EphemeralKeyService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/EventService.php b/lib/Service/EventService.php index 9e779dd9a..0994c505c 100644 --- a/lib/Service/EventService.php +++ b/lib/Service/EventService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class EventService extends \Stripe\Service\AbstractService { /** @@ -14,7 +20,7 @@ class EventService extends \Stripe\Service\AbstractService * Stripe-Version header). * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ExchangeRateService.php b/lib/Service/ExchangeRateService.php index fe010b00d..a7b6ce36f 100644 --- a/lib/Service/ExchangeRateService.php +++ b/lib/Service/ExchangeRateService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ExchangeRateService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class ExchangeRateService extends \Stripe\Service\AbstractService * converted to one another. Only shows the currencies for which Stripe supports. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/FileLinkService.php b/lib/Service/FileLinkService.php index 06929a9c6..ffd0890b5 100644 --- a/lib/Service/FileLinkService.php +++ b/lib/Service/FileLinkService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class FileLinkService extends \Stripe\Service\AbstractService { /** * Returns a list of file links. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Creates a new file link object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php index ef76f8f77..fe015f0f6 100644 --- a/lib/Service/FileService.php +++ b/lib/Service/FileService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class FileService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class FileService extends \Stripe\Service\AbstractService * files at the top. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -30,7 +36,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/FinancialConnections/AccountService.php b/lib/Service/FinancialConnections/AccountService.php index c7119687b..1cb211ec0 100644 --- a/lib/Service/FinancialConnections/AccountService.php +++ b/lib/Service/FinancialConnections/AccountService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\FinancialConnections; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class AccountService extends \Stripe\Service\AbstractService { /** * Returns a list of Financial Connections Account objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function allOwners($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -60,7 +66,7 @@ public function disconnect($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -76,7 +82,7 @@ public function refresh($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -93,7 +99,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -110,7 +116,7 @@ public function subscribe($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/FinancialConnections/SessionService.php b/lib/Service/FinancialConnections/SessionService.php index eab589cda..eee05c915 100644 --- a/lib/Service/FinancialConnections/SessionService.php +++ b/lib/Service/FinancialConnections/SessionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\FinancialConnections; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SessionService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class SessionService extends \Stripe\Service\AbstractService * launch the flow using Stripe.js. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/FinancialConnections/TransactionService.php b/lib/Service/FinancialConnections/TransactionService.php index 846662ee6..2e31075e5 100644 --- a/lib/Service/FinancialConnections/TransactionService.php +++ b/lib/Service/FinancialConnections/TransactionService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\FinancialConnections; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransactionService extends \Stripe\Service\AbstractService { /** * Returns a list of Financial Connections Transaction objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Identity/VerificationReportService.php b/lib/Service/Identity/VerificationReportService.php index 9289d9dfd..0a3b55942 100644 --- a/lib/Service/Identity/VerificationReportService.php +++ b/lib/Service/Identity/VerificationReportService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Identity; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class VerificationReportService extends \Stripe\Service\AbstractService { /** * List all verification reports. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Identity/VerificationSessionService.php b/lib/Service/Identity/VerificationSessionService.php index 96ccb4ded..90ed10b6d 100644 --- a/lib/Service/Identity/VerificationSessionService.php +++ b/lib/Service/Identity/VerificationSessionService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Identity; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class VerificationSessionService extends \Stripe\Service\AbstractService { /** * Returns a list of VerificationSessions. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -56,7 +62,7 @@ public function cancel($id, $params = null, $opts = null) * users’ identity documents * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -94,7 +100,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -114,7 +120,7 @@ public function redact($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -133,7 +139,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/InvoiceItemService.php b/lib/Service/InvoiceItemService.php index 45e207218..9ee425bbb 100644 --- a/lib/Service/InvoiceItemService.php +++ b/lib/Service/InvoiceItemService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class InvoiceItemService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class InvoiceItemService extends \Stripe\Service\AbstractService * creation date, with the most recently created invoice items appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * customer specified. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -46,7 +52,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -62,7 +68,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -80,7 +86,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/InvoiceService.php b/lib/Service/InvoiceService.php index cc61a320a..6bd77a287 100644 --- a/lib/Service/InvoiceService.php +++ b/lib/Service/InvoiceService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class InvoiceService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class InvoiceService extends \Stripe\Service\AbstractService * invoices appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -49,7 +55,7 @@ public function allLines($parentId, $params = null, $opts = null) * the invoice to your customers. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -68,7 +74,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -86,7 +92,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -103,7 +109,7 @@ public function finalizeInvoice($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -123,7 +129,7 @@ public function markUncollectible($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -139,7 +145,7 @@ public function pay($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -159,7 +165,7 @@ public function retrieve($id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -182,7 +188,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -217,7 +223,7 @@ public function sendInvoice($id, $params = null, $opts = null) * the subscription_proration_date on the upcoming invoice resource. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -235,7 +241,7 @@ public function upcoming($params = null, $opts = null) * line items. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -258,7 +264,7 @@ public function upcomingLines($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -277,7 +283,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Issuing/AuthorizationService.php b/lib/Service/Issuing/AuthorizationService.php index c3bcbc57f..0275a8907 100644 --- a/lib/Service/Issuing/AuthorizationService.php +++ b/lib/Service/Issuing/AuthorizationService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class AuthorizationService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService * object appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -33,7 +39,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -54,7 +60,7 @@ public function approve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -70,7 +76,7 @@ public function decline($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -88,7 +94,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Issuing/CardService.php b/lib/Service/Issuing/CardService.php index 22b7e5412..278264caa 100644 --- a/lib/Service/Issuing/CardService.php +++ b/lib/Service/Issuing/CardService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CardService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class CardService extends \Stripe\Service\AbstractService * appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * Creates an Issuing Card object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -60,7 +66,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Issuing/CardholderService.php b/lib/Service/Issuing/CardholderService.php index 65e675b36..40930d5f1 100644 --- a/lib/Service/Issuing/CardholderService.php +++ b/lib/Service/Issuing/CardholderService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CardholderService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class CardholderService extends \Stripe\Service\AbstractService * object appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * Creates a new Issuing Cardholder object that can be issued cards. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -61,7 +67,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Issuing/DisputeService.php b/lib/Service/Issuing/DisputeService.php index 45c252888..a90372bcc 100644 --- a/lib/Service/Issuing/DisputeService.php +++ b/lib/Service/Issuing/DisputeService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class DisputeService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class DisputeService extends \Stripe\Service\AbstractService * appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * reasons and evidence for more details about evidence requirements. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -47,7 +53,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -67,7 +73,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -86,7 +92,7 @@ public function submit($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Issuing/TokenService.php b/lib/Service/Issuing/TokenService.php index da60d4f06..9a6832889 100644 --- a/lib/Service/Issuing/TokenService.php +++ b/lib/Service/Issuing/TokenService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TokenService extends \Stripe\Service\AbstractService { /** * Lists all Issuing Token objects for a given card. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Issuing/TransactionService.php b/lib/Service/Issuing/TransactionService.php index dd83b1820..2d7c6fa28 100644 --- a/lib/Service/Issuing/TransactionService.php +++ b/lib/Service/Issuing/TransactionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransactionService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class TransactionService extends \Stripe\Service\AbstractService * object appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -46,7 +52,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/MandateService.php b/lib/Service/MandateService.php index 156bff0a0..c9c0ab7e2 100644 --- a/lib/Service/MandateService.php +++ b/lib/Service/MandateService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class MandateService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class MandateService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 468b72db0..7495911b6 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PaymentIntentService extends \Stripe\Service\AbstractService { /** * Returns a list of PaymentIntents. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -55,7 +61,7 @@ public function applyCustomerBalance($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -78,7 +84,7 @@ public function cancel($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -117,7 +123,7 @@ public function capture($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -142,7 +148,7 @@ public function confirm($id, $params = null, $opts = null) * API when you supply confirm=true. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -184,7 +190,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -207,7 +213,7 @@ public function incrementAuthorization($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -227,7 +233,7 @@ public function retrieve($id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -249,7 +255,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -265,7 +271,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PaymentLinkService.php b/lib/Service/PaymentLinkService.php index e5008d7a8..8fd3744e5 100644 --- a/lib/Service/PaymentLinkService.php +++ b/lib/Service/PaymentLinkService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PaymentLinkService extends \Stripe\Service\AbstractService { /** * Returns a list of your payment links. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function allLineItems($id, $params = null, $opts = null) * Creates a payment link. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -60,7 +66,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -76,7 +82,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PaymentMethodConfigurationService.php b/lib/Service/PaymentMethodConfigurationService.php index 8bdf4e8e7..570232646 100644 --- a/lib/Service/PaymentMethodConfigurationService.php +++ b/lib/Service/PaymentMethodConfigurationService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PaymentMethodConfigurationService extends \Stripe\Service\AbstractService { /** * List payment method configurations. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Creates a payment method configuration. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PaymentMethodDomainService.php b/lib/Service/PaymentMethodDomainService.php index aabcd9885..96eb4e0ca 100644 --- a/lib/Service/PaymentMethodDomainService.php +++ b/lib/Service/PaymentMethodDomainService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PaymentMethodDomainService extends \Stripe\Service\AbstractService { /** * Lists the details of existing payment method domains. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Creates a payment method domain. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -84,7 +90,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php index 70944daa9..88540f7db 100644 --- a/lib/Service/PaymentMethodService.php +++ b/lib/Service/PaymentMethodService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PaymentMethodService extends \Stripe\Service\AbstractService { /** @@ -13,7 +19,7 @@ class PaymentMethodService extends \Stripe\Service\AbstractService * PaymentMethods API instead. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -46,7 +52,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -69,7 +75,7 @@ public function attach($id, $params = null, $opts = null) * method details ahead of a future payment. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -86,7 +92,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -105,7 +111,7 @@ public function detach($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -122,7 +128,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PayoutService.php b/lib/Service/PayoutService.php index 47189f31a..79c0bada6 100644 --- a/lib/Service/PayoutService.php +++ b/lib/Service/PayoutService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PayoutService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class PayoutService extends \Stripe\Service\AbstractService * recently created payouts appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -30,7 +36,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -55,7 +61,7 @@ public function cancel($id, $params = null, $opts = null) * pending amounts by source type. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -73,7 +79,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -96,7 +102,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -114,7 +120,7 @@ public function reverse($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PlanService.php b/lib/Service/PlanService.php index 6c0a8d47a..45f41e396 100644 --- a/lib/Service/PlanService.php +++ b/lib/Service/PlanService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PlanService extends \Stripe\Service\AbstractService { /** * Returns a list of your plans. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * migration. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -60,7 +66,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -78,7 +84,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PriceService.php b/lib/Service/PriceService.php index 9117fb08e..805f081b0 100644 --- a/lib/Service/PriceService.php +++ b/lib/Service/PriceService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PriceService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class PriceService extends \Stripe\Service\AbstractService * For the list of inactive prices, set active to false. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * one-time. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -64,7 +70,7 @@ public function retrieve($id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -81,7 +87,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ProductService.php b/lib/Service/ProductService.php index 5eb6d82ce..da9485654 100644 --- a/lib/Service/ProductService.php +++ b/lib/Service/ProductService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ProductService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class ProductService extends \Stripe\Service\AbstractService * date, with the most recently created products appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * Creates a new product object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -44,7 +50,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -62,7 +68,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -82,7 +88,7 @@ public function retrieve($id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -99,7 +105,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/PromotionCodeService.php b/lib/Service/PromotionCodeService.php index 17461b4bf..39687d2b1 100644 --- a/lib/Service/PromotionCodeService.php +++ b/lib/Service/PromotionCodeService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class PromotionCodeService extends \Stripe\Service\AbstractService { /** * Returns a list of your promotion codes. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * specific customer, redemption limit, and expiration date. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -62,7 +68,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/QuoteService.php b/lib/Service/QuoteService.php index fe038a213..99882f6b2 100644 --- a/lib/Service/QuoteService.php +++ b/lib/Service/QuoteService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class QuoteService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class QuoteService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function accept($id, $params = null, $opts = null) * Returns a list of your quotes. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -63,7 +69,7 @@ public function allComputedUpfrontLineItems($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -79,7 +85,7 @@ public function allLineItems($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -97,7 +103,7 @@ public function cancel($id, $params = null, $opts = null) * href="https://dashboard.stripe.com/settings/billing/quote">quote template. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -113,7 +119,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -130,7 +136,7 @@ public function finalizeQuote($id, $params = null, $opts = null) * @param string $id * @param callable $readBodyChunkCallable * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -151,7 +157,7 @@ public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -167,7 +173,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Radar/EarlyFraudWarningService.php b/lib/Service/Radar/EarlyFraudWarningService.php index be119b4c8..332bd8489 100644 --- a/lib/Service/Radar/EarlyFraudWarningService.php +++ b/lib/Service/Radar/EarlyFraudWarningService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Radar; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class EarlyFraudWarningService extends \Stripe\Service\AbstractService { /** * Returns a list of early fraud warnings. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -30,7 +36,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Radar/ValueListItemService.php b/lib/Service/Radar/ValueListItemService.php index b9da3dd8b..553501db0 100644 --- a/lib/Service/Radar/ValueListItemService.php +++ b/lib/Service/Radar/ValueListItemService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Radar; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ValueListItemService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ValueListItemService extends \Stripe\Service\AbstractService * appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * parent value list. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -61,7 +67,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Radar/ValueListService.php b/lib/Service/Radar/ValueListService.php index 70d9b4863..2fa3a463a 100644 --- a/lib/Service/Radar/ValueListService.php +++ b/lib/Service/Radar/ValueListService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Radar; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ValueListService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ValueListService extends \Stripe\Service\AbstractService * appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * rules. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -46,7 +52,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -62,7 +68,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -80,7 +86,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/RefundService.php b/lib/Service/RefundService.php index cc7130adc..84517b48f 100644 --- a/lib/Service/RefundService.php +++ b/lib/Service/RefundService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class RefundService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class RefundService extends \Stripe\Service\AbstractService * are always available by default on the Charge object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -58,7 +64,7 @@ public function cancel($id, $params = null, $opts = null) * more money than is left on a charge. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -74,7 +80,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -93,7 +99,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Reporting/ReportRunService.php b/lib/Service/Reporting/ReportRunService.php index b62898fdb..332a39608 100644 --- a/lib/Service/Reporting/ReportRunService.php +++ b/lib/Service/Reporting/ReportRunService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Reporting; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReportRunService extends \Stripe\Service\AbstractService { /** * Returns a list of Report Runs, with the most recent appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * a live-mode API key.). * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -42,7 +48,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Reporting/ReportTypeService.php b/lib/Service/Reporting/ReportTypeService.php index 7fa503821..ca1db41d6 100644 --- a/lib/Service/Reporting/ReportTypeService.php +++ b/lib/Service/Reporting/ReportTypeService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Reporting; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReportTypeService extends \Stripe\Service\AbstractService { /** * Returns a full list of Report Types. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ReviewService.php b/lib/Service/ReviewService.php index 3bcd325b6..47c14bdd4 100644 --- a/lib/Service/ReviewService.php +++ b/lib/Service/ReviewService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReviewService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ReviewService extends \Stripe\Service\AbstractService * with the most recently created object appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function approve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/SetupAttemptService.php b/lib/Service/SetupAttemptService.php index 32c563760..4141eec2c 100644 --- a/lib/Service/SetupAttemptService.php +++ b/lib/Service/SetupAttemptService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SetupAttemptService extends \Stripe\Service\AbstractService { /** * Returns a list of SetupAttempts that associate with a provided SetupIntent. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/SetupIntentService.php b/lib/Service/SetupIntentService.php index 17927a0f1..195d5616e 100644 --- a/lib/Service/SetupIntentService.php +++ b/lib/Service/SetupIntentService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SetupIntentService extends \Stripe\Service\AbstractService { /** * Returns a list of SetupIntents. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function cancel($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -76,7 +82,7 @@ public function confirm($id, $params = null, $opts = null) * permissions to charge the payment method later. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -99,7 +105,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -115,7 +121,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -131,7 +137,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/ShippingRateService.php b/lib/Service/ShippingRateService.php index d141e484e..1225d070b 100644 --- a/lib/Service/ShippingRateService.php +++ b/lib/Service/ShippingRateService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ShippingRateService extends \Stripe\Service\AbstractService { /** * Returns a list of your shipping rates. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Creates a new shipping rate object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Sigma/ScheduledQueryRunService.php b/lib/Service/Sigma/ScheduledQueryRunService.php index 0fa8cd9ca..2a8376057 100644 --- a/lib/Service/Sigma/ScheduledQueryRunService.php +++ b/lib/Service/Sigma/ScheduledQueryRunService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Sigma; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ScheduledQueryRunService extends \Stripe\Service\AbstractService { /** * Returns a list of scheduled query runs. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/SourceService.php b/lib/Service/SourceService.php index e3c2b6445..139c8d6f6 100644 --- a/lib/Service/SourceService.php +++ b/lib/Service/SourceService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SourceService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class SourceService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function allSourceTransactions($id, $params = null, $opts = null) * Creates a new source object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function create($params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -61,7 +67,7 @@ public function detach($parentId, $id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -83,7 +89,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -99,7 +105,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/SubscriptionItemService.php b/lib/Service/SubscriptionItemService.php index e18c8de41..ffcc4db9e 100644 --- a/lib/Service/SubscriptionItemService.php +++ b/lib/Service/SubscriptionItemService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SubscriptionItemService extends \Stripe\Service\AbstractService { /** * Returns a list of your subscription items for a given subscription. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -35,7 +41,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -51,7 +57,7 @@ public function allUsageRecordSummaries($parentId, $params = null, $opts = null) * or replaced. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -89,7 +95,7 @@ public function create($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -106,7 +112,7 @@ public function createUsageRecord($parentId, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -122,7 +128,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -138,7 +144,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/SubscriptionScheduleService.php b/lib/Service/SubscriptionScheduleService.php index 42aaf6bbe..ce6c28a36 100644 --- a/lib/Service/SubscriptionScheduleService.php +++ b/lib/Service/SubscriptionScheduleService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SubscriptionScheduleService extends \Stripe\Service\AbstractService { /** * Retrieves the list of your subscription schedules. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -45,7 +51,7 @@ public function cancel($id, $params = null, $opts = null) * active or scheduled subscriptions. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -66,7 +72,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -84,7 +90,7 @@ public function release($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -100,7 +106,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index 131a138d1..1185a369d 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SubscriptionService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class SubscriptionService extends \Stripe\Service\AbstractService * order to list canceled subscriptions, specify status=canceled. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -70,7 +76,7 @@ public function cancel($id, $params = null, $opts = null) * billing configurations that change over time. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -86,7 +92,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -107,7 +113,7 @@ public function deleteDiscount($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -123,7 +129,7 @@ public function resume($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -143,7 +149,7 @@ public function retrieve($id, $params = null, $opts = null) * during outages. Search functionality is not available to merchants in India. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -204,7 +210,7 @@ public function search($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Tax/CalculationService.php b/lib/Service/Tax/CalculationService.php index dfb4b9046..a3ddf667f 100644 --- a/lib/Service/Tax/CalculationService.php +++ b/lib/Service/Tax/CalculationService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Tax; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CalculationService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class CalculationService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function allLineItems($id, $params = null, $opts = null) * Calculates tax based on input and returns a Tax Calculation object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Tax/RegistrationService.php b/lib/Service/Tax/RegistrationService.php index bb9cde14c..a4b4f19f8 100644 --- a/lib/Service/Tax/RegistrationService.php +++ b/lib/Service/Tax/RegistrationService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Tax; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class RegistrationService extends \Stripe\Service\AbstractService { /** * Returns a list of Tax Registration objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Creates a new Tax Registration object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -60,7 +66,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Tax/SettingsService.php b/lib/Service/Tax/SettingsService.php index 90eebbfef..e7d359bd2 100644 --- a/lib/Service/Tax/SettingsService.php +++ b/lib/Service/Tax/SettingsService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Tax; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class SettingsService extends \Stripe\Service\AbstractService { /** * Retrieves Tax Settings for a merchant. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function retrieve($params = null, $opts = null) * parameters are editable but none can be removed once set. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Tax/TransactionService.php b/lib/Service/Tax/TransactionService.php index 5374b5665..156b38360 100644 --- a/lib/Service/Tax/TransactionService.php +++ b/lib/Service/Tax/TransactionService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Tax; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransactionService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class TransactionService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function allLineItems($id, $params = null, $opts = null) * Creates a Tax Transaction from a calculation. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function createFromCalculation($params = null, $opts = null) * Partially or fully reverses a previously created Transaction. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function createReversal($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TaxCodeService.php b/lib/Service/TaxCodeService.php index fd167a101..a75a8a356 100644 --- a/lib/Service/TaxCodeService.php +++ b/lib/Service/TaxCodeService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TaxCodeService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class TaxCodeService extends \Stripe\Service\AbstractService * available to add to Products in order to allow specific tax calculations. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -28,7 +34,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TaxRateService.php b/lib/Service/TaxRateService.php index 0d67eec33..78aa851e3 100644 --- a/lib/Service/TaxRateService.php +++ b/lib/Service/TaxRateService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TaxRateService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class TaxRateService extends \Stripe\Service\AbstractService * date, with the most recently created tax rates appearing first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * Creates a new tax rate. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -42,7 +48,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -58,7 +64,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Terminal/ConfigurationService.php b/lib/Service/Terminal/ConfigurationService.php index 97c7c2758..96bc7d38a 100644 --- a/lib/Service/Terminal/ConfigurationService.php +++ b/lib/Service/Terminal/ConfigurationService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Terminal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ConfigurationService extends \Stripe\Service\AbstractService { /** * Returns a list of Configuration objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Creates a new Configuration object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -73,7 +79,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Terminal/ConnectionTokenService.php b/lib/Service/Terminal/ConnectionTokenService.php index 7b25b2315..e4ef6076e 100644 --- a/lib/Service/Terminal/ConnectionTokenService.php +++ b/lib/Service/Terminal/ConnectionTokenService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\Terminal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ConnectionTokenService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ConnectionTokenService extends \Stripe\Service\AbstractService * an endpoint that creates and returns a connection token. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Terminal/LocationService.php b/lib/Service/Terminal/LocationService.php index 74a776eb9..12da4ed95 100644 --- a/lib/Service/Terminal/LocationService.php +++ b/lib/Service/Terminal/LocationService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Terminal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class LocationService extends \Stripe\Service\AbstractService { /** * Returns a list of Location objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * href="/docs/terminal/fleet/locations">Manage locations guide. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -59,7 +65,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -76,7 +82,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Terminal/ReaderService.php b/lib/Service/Terminal/ReaderService.php index 1f40f8c23..488ad518e 100644 --- a/lib/Service/Terminal/ReaderService.php +++ b/lib/Service/Terminal/ReaderService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Terminal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReaderService extends \Stripe\Service\AbstractService { /** * Returns a list of Reader objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function cancelAction($id, $params = null, $opts = null) * Creates a new Reader object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -73,7 +79,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -89,7 +95,7 @@ public function processPaymentIntent($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -105,7 +111,7 @@ public function processSetupIntent($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -121,7 +127,7 @@ public function refundPayment($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -137,7 +143,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -154,7 +160,7 @@ public function setReaderDisplay($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/CustomerService.php b/lib/Service/TestHelpers/CustomerService.php index b65882838..ad461f21f 100644 --- a/lib/Service/TestHelpers/CustomerService.php +++ b/lib/Service/TestHelpers/CustomerService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CustomerService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class CustomerService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Issuing/AuthorizationService.php b/lib/Service/TestHelpers/Issuing/AuthorizationService.php index 73de27cb9..e621ee349 100644 --- a/lib/Service/TestHelpers/Issuing/AuthorizationService.php +++ b/lib/Service/TestHelpers/Issuing/AuthorizationService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class AuthorizationService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function capture($id, $params = null, $opts = null) * Create a test-mode authorization. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -42,7 +48,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -58,7 +64,7 @@ public function expire($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -74,7 +80,7 @@ public function increment($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Issuing/CardService.php b/lib/Service/TestHelpers/Issuing/CardService.php index 01d7080a4..651f93e8c 100644 --- a/lib/Service/TestHelpers/Issuing/CardService.php +++ b/lib/Service/TestHelpers/Issuing/CardService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CardService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class CardService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function deliverCard($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -46,7 +52,7 @@ public function failCard($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -63,7 +69,7 @@ public function returnCard($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Issuing/TransactionService.php b/lib/Service/TestHelpers/Issuing/TransactionService.php index 5fb2965db..6093869c5 100644 --- a/lib/Service/TestHelpers/Issuing/TransactionService.php +++ b/lib/Service/TestHelpers/Issuing/TransactionService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\TestHelpers\Issuing; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransactionService extends \Stripe\Service\AbstractService { /** * Allows the user to capture an arbitrary amount, also known as a forced capture. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function createForceCapture($params = null, $opts = null) * Allows the user to refund an arbitrary amount, also known as a unlinked refund. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function createUnlinkedRefund($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/RefundService.php b/lib/Service/TestHelpers/RefundService.php index de0e4d10b..497fe506d 100644 --- a/lib/Service/TestHelpers/RefundService.php +++ b/lib/Service/TestHelpers/RefundService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class RefundService extends \Stripe\Service\AbstractService { /** @@ -11,7 +17,7 @@ class RefundService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Terminal/ReaderService.php b/lib/Service/TestHelpers/Terminal/ReaderService.php index 2eb4de496..183419aa6 100644 --- a/lib/Service/TestHelpers/Terminal/ReaderService.php +++ b/lib/Service/TestHelpers/Terminal/ReaderService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Terminal; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReaderService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ReaderService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/TestClockService.php b/lib/Service/TestHelpers/TestClockService.php index a4eee8c3e..5c22b779c 100644 --- a/lib/Service/TestHelpers/TestClockService.php +++ b/lib/Service/TestHelpers/TestClockService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TestClockService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class TestClockService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function advance($id, $params = null, $opts = null) * Returns a list of your test clocks. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -42,7 +48,7 @@ public function all($params = null, $opts = null) * Creates a new test clock that can be attached to new customers and quotes. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -58,7 +64,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -74,7 +80,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Treasury/InboundTransferService.php b/lib/Service/TestHelpers/Treasury/InboundTransferService.php index 1c8247625..b8f0582ed 100644 --- a/lib/Service/TestHelpers/Treasury/InboundTransferService.php +++ b/lib/Service/TestHelpers/Treasury/InboundTransferService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class InboundTransferService extends \Stripe\Service\AbstractService { /** @@ -13,7 +19,7 @@ class InboundTransferService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function fail($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -49,7 +55,7 @@ public function returnInboundTransfer($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php b/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php index 4981e6852..57f94c47e 100644 --- a/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php +++ b/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class OutboundPaymentService extends \Stripe\Service\AbstractService { /** @@ -13,7 +19,7 @@ class OutboundPaymentService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function fail($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -49,7 +55,7 @@ public function post($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Treasury/OutboundTransferService.php b/lib/Service/TestHelpers/Treasury/OutboundTransferService.php index 4b26bedf2..5dc9d2f7c 100644 --- a/lib/Service/TestHelpers/Treasury/OutboundTransferService.php +++ b/lib/Service/TestHelpers/Treasury/OutboundTransferService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class OutboundTransferService extends \Stripe\Service\AbstractService { /** @@ -13,7 +19,7 @@ class OutboundTransferService extends \Stripe\Service\AbstractService * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -31,7 +37,7 @@ public function fail($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -49,7 +55,7 @@ public function post($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php b/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php index a90031a32..80051900a 100644 --- a/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php +++ b/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReceivedCreditService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ReceivedCreditService extends \Stripe\Service\AbstractService * third parties. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php b/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php index 17f4c8276..d8810aa82 100644 --- a/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php +++ b/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php @@ -4,6 +4,12 @@ namespace Stripe\Service\TestHelpers\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReceivedDebitService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class ReceivedDebitService extends \Stripe\Service\AbstractService * parties. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TokenService.php b/lib/Service/TokenService.php index 63d2b2bbb..27cf56009 100644 --- a/lib/Service/TokenService.php +++ b/lib/Service/TokenService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TokenService extends \Stripe\Service\AbstractService { /** @@ -13,7 +19,7 @@ class TokenService extends \Stripe\Service\AbstractService * account. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -29,7 +35,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TopupService.php b/lib/Service/TopupService.php index bd486b9e2..ffb3de04c 100644 --- a/lib/Service/TopupService.php +++ b/lib/Service/TopupService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TopupService extends \Stripe\Service\AbstractService { /** * Returns a list of top-ups. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null) * Top up the balance of an account. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -59,7 +65,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -76,7 +82,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/TransferService.php b/lib/Service/TransferService.php index b5113e9a8..fa6577881 100644 --- a/lib/Service/TransferService.php +++ b/lib/Service/TransferService.php @@ -4,6 +4,12 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransferService extends \Stripe\Service\AbstractService { /** @@ -12,7 +18,7 @@ class TransferService extends \Stripe\Service\AbstractService * first. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -32,7 +38,7 @@ public function all($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -49,7 +55,7 @@ public function allReversals($parentId, $params = null, $opts = null) * cover the transfer amount, or you’ll receive an “Insufficient Funds” error. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -72,7 +78,7 @@ public function create($params = null, $opts = null) * * @param string $parentId * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -90,7 +96,7 @@ public function createReversal($parentId, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -109,7 +115,7 @@ public function retrieve($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -128,7 +134,7 @@ public function retrieveReversal($parentId, $id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -148,7 +154,7 @@ public function update($id, $params = null, $opts = null) * @param string $parentId * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/CreditReversalService.php b/lib/Service/Treasury/CreditReversalService.php index 60bf900a9..804ee42b2 100644 --- a/lib/Service/Treasury/CreditReversalService.php +++ b/lib/Service/Treasury/CreditReversalService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class CreditReversalService extends \Stripe\Service\AbstractService { /** * Returns a list of CreditReversals. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Reverses a ReceivedCredit and creates a CreditReversal object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -43,7 +49,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/DebitReversalService.php b/lib/Service/Treasury/DebitReversalService.php index 8887ee145..3f11899de 100644 --- a/lib/Service/Treasury/DebitReversalService.php +++ b/lib/Service/Treasury/DebitReversalService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class DebitReversalService extends \Stripe\Service\AbstractService { /** * Returns a list of DebitReversals. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -25,7 +31,7 @@ public function all($params = null, $opts = null) * Reverses a ReceivedDebit and creates a DebitReversal object. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/FinancialAccountService.php b/lib/Service/Treasury/FinancialAccountService.php index 7aa4791ca..e61f5d44b 100644 --- a/lib/Service/Treasury/FinancialAccountService.php +++ b/lib/Service/Treasury/FinancialAccountService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class FinancialAccountService extends \Stripe\Service\AbstractService { /** * Returns a list of FinancialAccounts. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * one FinancialAccount. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -42,7 +48,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -58,7 +64,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -74,7 +80,7 @@ public function retrieveFeatures($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -90,7 +96,7 @@ public function update($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/InboundTransferService.php b/lib/Service/Treasury/InboundTransferService.php index 49ea32ba9..8d81ba3dd 100644 --- a/lib/Service/Treasury/InboundTransferService.php +++ b/lib/Service/Treasury/InboundTransferService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class InboundTransferService extends \Stripe\Service\AbstractService { /** * Returns a list of InboundTransfers sent from the specified FinancialAccount. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null) * Creates an InboundTransfer. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -57,7 +63,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/OutboundPaymentService.php b/lib/Service/Treasury/OutboundPaymentService.php index e6108e0c1..561231c3e 100644 --- a/lib/Service/Treasury/OutboundPaymentService.php +++ b/lib/Service/Treasury/OutboundPaymentService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class OutboundPaymentService extends \Stripe\Service\AbstractService { /** * Returns a list of OutboundPayments sent from the specified FinancialAccount. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null) * Creates an OutboundPayment. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -59,7 +65,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/OutboundTransferService.php b/lib/Service/Treasury/OutboundTransferService.php index f61318657..253d56296 100644 --- a/lib/Service/Treasury/OutboundTransferService.php +++ b/lib/Service/Treasury/OutboundTransferService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class OutboundTransferService extends \Stripe\Service\AbstractService { /** * Returns a list of OutboundTransfers sent from the specified FinancialAccount. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -41,7 +47,7 @@ public function cancel($id, $params = null, $opts = null) * Creates an OutboundTransfer. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -59,7 +65,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/ReceivedCreditService.php b/lib/Service/Treasury/ReceivedCreditService.php index 1355deb50..adf134cee 100644 --- a/lib/Service/Treasury/ReceivedCreditService.php +++ b/lib/Service/Treasury/ReceivedCreditService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReceivedCreditService extends \Stripe\Service\AbstractService { /** * Returns a list of ReceivedCredits. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/ReceivedDebitService.php b/lib/Service/Treasury/ReceivedDebitService.php index dfe3786b0..c9993dad5 100644 --- a/lib/Service/Treasury/ReceivedDebitService.php +++ b/lib/Service/Treasury/ReceivedDebitService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class ReceivedDebitService extends \Stripe\Service\AbstractService { /** * Returns a list of ReceivedDebits. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -27,7 +33,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/TransactionEntryService.php b/lib/Service/Treasury/TransactionEntryService.php index 3943de1c6..c45d1193d 100644 --- a/lib/Service/Treasury/TransactionEntryService.php +++ b/lib/Service/Treasury/TransactionEntryService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransactionEntryService extends \Stripe\Service\AbstractService { /** * Retrieves a list of TransactionEntry objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/Treasury/TransactionService.php b/lib/Service/Treasury/TransactionService.php index 232b2b1c2..92fd02f2c 100644 --- a/lib/Service/Treasury/TransactionService.php +++ b/lib/Service/Treasury/TransactionService.php @@ -4,13 +4,19 @@ namespace Stripe\Service\Treasury; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class TransactionService extends \Stripe\Service\AbstractService { /** * Retrieves a list of Transaction objects. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -26,7 +32,7 @@ public function all($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Service/WebhookEndpointService.php b/lib/Service/WebhookEndpointService.php index baa15bd24..f86119cdb 100644 --- a/lib/Service/WebhookEndpointService.php +++ b/lib/Service/WebhookEndpointService.php @@ -4,13 +4,19 @@ namespace Stripe\Service; +/** + * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ +/** + * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions + */ class WebhookEndpointService extends \Stripe\Service\AbstractService { /** * Returns a list of your webhook endpoints. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -33,7 +39,7 @@ public function all($params = null, $opts = null) * section of the Dashboard. * * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -51,7 +57,7 @@ public function create($params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -67,7 +73,7 @@ public function delete($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * @@ -84,7 +90,7 @@ public function retrieve($id, $params = null, $opts = null) * * @param string $id * @param null|array $params - * @param null|array|\Stripe\Util\RequestOptions $opts + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * diff --git a/lib/Util/RequestOptions.php b/lib/Util/RequestOptions.php index cce3a521b..488d234cc 100644 --- a/lib/Util/RequestOptions.php +++ b/lib/Util/RequestOptions.php @@ -2,6 +2,10 @@ namespace Stripe\Util; +/** + * @phpstan-type RequestOptionsArray array{api_key?: string, idempotency_key?: string, stripe_account?: string, stripe_version?: string, api_base?: string } + * @psalm-type RequestOptionsArray = array{api_key?: string, idempotency_key?: string, stripe_account?: string, stripe_version?: string, api_base?: string } + */ class RequestOptions { /**