* @copyright Mollie B.V. * @link https://www.mollie.com */ class Mollie_API_Object_Method { /** * @link https://mollie.com/ideal */ const IDEAL = "ideal"; /** * @link https://mollie.com/paysafecard */ const PAYSAFECARD = "paysafecard"; /** * @link https://mollie.com/creditcard */ const CREDITCARD = "creditcard"; /** * @link https://mollie.com/mistercash */ const MISTERCASH = "mistercash"; /** * @link https://mollie.com/sofort */ const SOFORT = "sofort"; /** * @link https://mollie.com/banktransfer */ const BANKTRANSFER = "banktransfer"; /** * @link https://mollie.com/directdebit */ const DIRECTDEBIT = "directdebit"; /** * @link https://mollie.com/paypal */ const PAYPAL = "paypal"; /** * @link https://mollie.com/bitcoin */ const BITCOIN = "bitcoin"; /** * @link https://mollie.com/belfiusdirectnet */ const BELFIUS = "belfius"; /** * Id of the payment method. * * @var string */ public $id; /** * More legible description of the payment method. * * @var string */ public $description; /** * The $amount->minimum and $amount->maximum supported by this method and the used API key. * * @var object */ public $amount; /** * The $image->normal and $image->bigger to display the payment method logo. * * @var object */ public $image; /** * @return float|null */ public function getMinimumAmount () { if (empty($this->amount)) { return NULL; } return (float) $this->amount->minimum; } /** * @return float|null */ public function getMaximumAmount () { if (empty($this->amount)) { return NULL; } return (float) $this->amount->maximum; } }