Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move deprecation annotations to class level #534

Merged
merged 4 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Adyen/Service/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the BalancePlatform and LegalEntityManagement services instead
* @see \Adyen\Service\BalancePlatform\
* @see \Adyen\Service\LegalEntityManagement\
*/
class Account extends \Adyen\Service
{
/**
Expand Down Expand Up @@ -86,6 +91,7 @@ class Account extends \Adyen\Service

/**
* Account constructor.
*
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/BinLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\BinLookupApi
*/
class BinLookup extends \Adyen\Service
{
/**
Expand All @@ -17,7 +21,6 @@ class BinLookup extends \Adyen\Service
/**
* BinLookup constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

use Adyen\Service\ResourceModel\Checkout\Recurring;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\Checkout\
*/
class Checkout extends \Adyen\ApiKeyAuthenticatedService
{
/**
Expand Down Expand Up @@ -101,7 +105,6 @@ class Checkout extends \Adyen\ApiKeyAuthenticatedService
/**
* Checkout constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/CheckoutUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\Checkout\UtilityApi
*/
class CheckoutUtility extends \Adyen\ApiKeyAuthenticatedService
{
/**
Expand All @@ -12,7 +16,6 @@ class CheckoutUtility extends \Adyen\ApiKeyAuthenticatedService
/**
* CheckoutUtility constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
6 changes: 6 additions & 0 deletions src/Adyen/Service/Fund.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the BalancePlatform and Transfers services instead
* @see \Adyen\Service\BalancePlatform\
* @see \Adyen\Service\Transfers\
*/
class Fund extends \Adyen\Service
{

Expand Down Expand Up @@ -37,6 +42,7 @@ class Fund extends \Adyen\Service

/**
* Fund constructor.
*
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Adyen/Service/Hop.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the LegalEntityManagement services instead
* @see \Adyen\Service\LegalEntityManagement\
*/
class Hop extends \Adyen\Service
{
/**
Expand All @@ -16,6 +20,7 @@ class Hop extends \Adyen\Service

/**
* Hop constructor.
*
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/Management.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
use Adyen\Service\ResourceModel\Management\MerchantClientKey;
use Adyen\Service\ResourceModel\Management\MerchantWebhooks;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\Management\
*/
class Management extends \Adyen\Service
{
/**
Expand Down Expand Up @@ -52,7 +56,6 @@ class Management extends \Adyen\Service
/**
* Management constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/Modification.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\Payments\ModificationsApi
*/
class Modification extends \Adyen\Service
{
/**
Expand Down Expand Up @@ -37,7 +41,6 @@ class Modification extends \Adyen\Service
/**
* Modification constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
6 changes: 6 additions & 0 deletions src/Adyen/Service/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
use Adyen\Service\ResourceModel\Notification\TestNotificationConfiguration;
use Adyen\Service\ResourceModel\Notification\UpdateNotificationConfiguration;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\BalancePlatform\
* @see \Adyen\Service\Transfers\
*/
class Notification extends Service
{

Expand Down Expand Up @@ -47,6 +52,7 @@ class Notification extends Service

/**
* Notification constructor.
*
* @param Client $client
* @throws AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\Payments\GeneralApi
*/
class Payment extends \Adyen\Service
{
/**
Expand All @@ -22,7 +26,6 @@ class Payment extends \Adyen\Service
/**
* Payment constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
use Adyen\Service\ResourceModel\Payout\ThirdParty\StoreDetailsAndSubmitThirdParty;
use Adyen\Service\ResourceModel\Payout\ThirdParty\SubmitThirdParty;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\Payout\
*/
class Payout extends Service
{
/**
Expand Down Expand Up @@ -65,7 +69,6 @@ class Payout extends Service
/**
* Payout constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param Client $client
* @throws AdyenException
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Adyen/Service/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

namespace Adyen\Service;

/**
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @see \Adyen\Service\RecurringApi
*/
class Recurring extends \Adyen\Service
{
/**
Expand All @@ -27,7 +31,6 @@ class Recurring extends \Adyen\Service
/**
* Recurring constructor.
*
* @deprecated Please consider using the model based services instead (suffix -Api.php)
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Adyen/Service/RiskManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Adyen\Service;

/**
* @deprecated
*/
class RiskManagement extends \Adyen\Service
{
/**
Expand Down