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

4648 method enum marked as deprecated #42

Merged
merged 1 commit into from
Jun 12, 2023
Merged
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
49 changes: 49 additions & 0 deletions src/ValueObject/PaymentMethodCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,71 @@

namespace ThePay\ApiClient\ValueObject;

/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
class PaymentMethodCode extends EnumValueObject
{
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const CARD = 'card';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const PLATBA_24 = 'platba_24';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const MOJEPLATBA = 'mojeplatba';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const CSOB = 'csob';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const POSTOVNI_SPORITELNA = 'postovni_sporitelna';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const EKONTO = 'ekonto';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const UNI_CREDIT = 'uni_credit';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const MBANK = 'mbank';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const FIO_BANKA = 'fio_banka';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const MONETA = 'moneta';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const EQUA_BANK = 'equa_bank';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const TRANSFER = 'transfer';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const BITCOIN = 'bitcoin';
/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*/
const PLATIMPAK = 'platimpak';

/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*
* @param string $paymentMethodCode
*/
public function __construct($paymentMethodCode)
Expand All @@ -28,6 +75,8 @@ public function __construct($paymentMethodCode)
}

/**
* @deprecated will be removed, for customer method selection in payment process use: ThePay\ApiClient\TheClient::getActivePaymentMethods
*
* @return string[]
*/
public static function getOptions()
Expand Down