You are here

SupportedCurrencyInterface.php in Payment 8.2

File

src/Plugin/Payment/Method/SupportedCurrencyInterface.php
View source
<?php

namespace Drupal\payment\Plugin\Payment\Method;


/**
 * Defines a currency that is supported by a payment method.
 */
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();

}

Interfaces

Namesort descending Description
SupportedCurrencyInterface Defines a currency that is supported by a payment method.