123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Directory\Api\Data;
- /**
- * Currency Information interface.
- *
- * @api
- * @since 100.0.2
- */
- interface CurrencyInformationInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**
- * Get the base currency code for the store.
- *
- * @return string
- */
- public function getBaseCurrencyCode();
- /**
- * Set the base currency code for the store.
- *
- * @param string $code
- * @return $this
- */
- public function setBaseCurrencyCode($code);
- /**
- * Get the currency symbol of the base currency for the store.
- *
- * @return string
- */
- public function getBaseCurrencySymbol();
- /**
- * Set the currency symbol of the base currency for the store.
- *
- * @param string $symbol
- * @return $this
- */
- public function setBaseCurrencySymbol($symbol);
- /**
- * Get the default display currency code for the store.
- *
- * @return string
- */
- public function getDefaultDisplayCurrencyCode();
- /**
- * Set the default display currency code for the store.
- *
- * @param string $code
- * @return $this
- */
- public function setDefaultDisplayCurrencyCode($code);
- /**
- * Get the currency symbol of the default display currency for the store.
- *
- * @return string
- */
- public function getDefaultDisplayCurrencySymbol();
- /**
- * Set the currency symbol of the default display currency for the store.
- *
- * @param string $symbol
- * @return $this
- */
- public function setDefaultDisplayCurrencySymbol($symbol);
- /**
- * Get the list of allowed currency codes for the store.
- *
- * @return string[]
- */
- public function getAvailableCurrencyCodes();
- /**
- * Set the list of allowed currency codes for the store.
- *
- * @param string[] $codes
- * @return $this
- */
- public function setAvailableCurrencyCodes(array $codes = null);
- /**
- * Get the list of exchange rate information for the store.
- *
- * @return \Magento\Directory\Api\Data\ExchangeRateInterface[]
- */
- public function getExchangeRates();
- /**
- * Set the list of exchange rate information for the store.
- *
- * @param \Magento\Directory\Api\Data\ExchangeRateInterface[] $exchangeRates
- * @return $this
- */
- public function setExchangeRates(array $exchangeRates = null);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Directory\Api\Data\CurrencyInformationExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Directory\Api\Data\CurrencyInformationExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\Directory\Api\Data\CurrencyInformationExtensionInterface $extensionAttributes
- );
- }
|