1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Tax\Api\Data;
- /**
- * Applied tax interface.
- * @api
- * @since 100.0.2
- */
- interface AppliedTaxInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**
- * Get tax rate key
- *
- * @return string|null
- */
- public function getTaxRateKey();
- /**
- * Set tax rate key
- *
- * @param string $taxRateKey
- * @return $this
- */
- public function setTaxRateKey($taxRateKey);
- /**
- * Get percent
- *
- * @return float
- */
- public function getPercent();
- /**
- * Set percent
- *
- * @param float $percent
- * @return $this
- */
- public function setPercent($percent);
- /**
- * Get amount
- *
- * @return float
- */
- public function getAmount();
- /**
- * Get amount
- *
- * @param float $amount
- * @return $this
- */
- public function setAmount($amount);
- /**
- * Get rates
- *
- * @return \Magento\Tax\Api\Data\AppliedTaxRateInterface[]|null
- */
- public function getRates();
- /**
- * Set rates
- *
- * @param \Magento\Tax\Api\Data\AppliedTaxRateInterface[] $rates
- * @return $this
- */
- public function setRates(array $rates = null);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Tax\Api\Data\AppliedTaxExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Tax\Api\Data\AppliedTaxExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(\Magento\Tax\Api\Data\AppliedTaxExtensionInterface $extensionAttributes);
- }
|