interface SupportedCurrencyInterface in Payment 8.2
Defines a currency that is supported by a payment method.
Hierarchy
- interface \Drupal\payment\Plugin\Payment\Method\SupportedCurrencyInterface
Expanded class hierarchy of SupportedCurrencyInterface
All classes that implement SupportedCurrencyInterface
File
- src/
Plugin/ Payment/ Method/ SupportedCurrencyInterface.php, line 8
Namespace
Drupal\payment\Plugin\Payment\MethodView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SupportedCurrencyInterface:: |
public | function | Gets the currency code. | 1 |
SupportedCurrencyInterface:: |
public | function | Gets the highest supported amount. | 1 |
SupportedCurrencyInterface:: |
public | function | Gets the lowest supported amount. | 1 |