You are here

interface SupportedCurrencyInterface in Payment 8.2

Defines a currency that is supported by a payment method.

Hierarchy

Expanded class hierarchy of SupportedCurrencyInterface

All classes that implement SupportedCurrencyInterface

File

src/Plugin/Payment/Method/SupportedCurrencyInterface.php, line 8

Namespace

Drupal\payment\Plugin\Payment\Method
View source
interface SupportedCurrencyInterface {

  /**
   * Gets the currency code.
   *
   * @return string
   */
  public function getCurrencyCode();

  /**
   * Gets the lowest supported amount.
   *
   * @return int|float|null
   *   The amount or NULL if there is no minimum amount.
   */
  public function getMinimumAmount();

  /**
   * Gets the highest supported amount.
   *
   * @return int|float|null
   *   The amount or NULL if there is no maximum amount.
   */
  public function getMaximumAmount();

}

Members

Namesort descending Modifiers Type Description Overrides
SupportedCurrencyInterface::getCurrencyCode public function Gets the currency code. 1
SupportedCurrencyInterface::getMaximumAmount public function Gets the highest supported amount. 1
SupportedCurrencyInterface::getMinimumAmount public function Gets the lowest supported amount. 1