CurrencyInterface
Magento\Quote\Api\Data\CurrencyInterface
What it does
This interface defines the contract for managing currency information within a shopping cart quote in Magento 2.
Developers use this to access and manipulate currency codes (global, base, store, and quote currencies) and conversion rates between them when working with multi-currency quotes.
It's essential when building features that handle international transactions or need to display prices in different currencies.
Public Methods
- getGlobalCurrencyCode()
- setGlobalCurrencyCode()
- getBaseCurrencyCode()
- setBaseCurrencyCode()
- getStoreCurrencyCode()
- setStoreCurrencyCode()
- getQuoteCurrencyCode()
- setQuoteCurrencyCode()
- getStoreToBaseRate()
- setStoreToBaseRate()
- getStoreToQuoteRate()
- setStoreToQuoteRate()
- getBaseToGlobalRate()
- setBaseToGlobalRate()
- getBaseToQuoteRate()
- setBaseToQuoteRate()
- getExtensionAttributes()
- setExtensionAttributes()