123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Tax\Api\Data;
- /**
- * Tax rate interface.
- * @api
- * @since 100.0.2
- */
- interface TaxRateInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**
- * Get id
- *
- * @return int|null
- */
- public function getId();
- /**
- * Set id
- *
- * @param int $id
- * @return $this
- */
- public function setId($id);
- /**
- * Get country id
- *
- * @return string
- */
- public function getTaxCountryId();
- /**
- * Set country id
- *
- * @param string $taxCountryId
- * @return $this
- */
- public function setTaxCountryId($taxCountryId);
- /**
- * Get region id
- *
- * @return int|null
- */
- public function getTaxRegionId();
- /**
- * Set region id
- *
- * @param int $taxRegionId
- * @return $this
- */
- public function setTaxRegionId($taxRegionId);
- /**
- * Get region name
- *
- * @return string|null
- */
- public function getRegionName();
- /**
- * Set region name
- *
- * @param string $regionName
- * @return $this
- */
- public function setRegionName($regionName);
- /**
- * Get postcode
- *
- * @return string|null
- */
- public function getTaxPostcode();
- /**
- * Set postcode
- *
- * @param string $taxPostCode
- * @return $this
- */
- public function setTaxPostcode($taxPostCode);
- /**
- * Get zip is range
- *
- * @return int|null
- */
- public function getZipIsRange();
- /**
- * Set zip is range
- *
- * @param int $zipIsRange
- * @return $this
- */
- public function setZipIsRange($zipIsRange);
- /**
- * Get zip range from
- *
- * @return int|null
- */
- public function getZipFrom();
- /**
- * Set zip range from
- *
- * @param int $zipFrom
- * @return $this
- */
- public function setZipFrom($zipFrom);
- /**
- * Get zip range to
- *
- * @return int|null
- */
- public function getZipTo();
- /**
- * Set zip range to
- *
- * @param int $zipTo
- * @return $this
- */
- public function setZipTo($zipTo);
- /**
- * Get tax rate in percentage
- *
- * @return float
- */
- public function getRate();
- /**
- * Set tax rate in percentage
- *
- * @param float $rate
- * @return $this
- */
- public function setRate($rate);
- /**
- * Get tax rate code
- *
- * @return string
- */
- public function getCode();
- /**
- * Set tax rate code
- *
- * @param string $code
- * @return $this
- */
- public function setCode($code);
- /**
- * Get tax rate titles
- *
- * @return \Magento\Tax\Api\Data\TaxRateTitleInterface[]|null
- */
- public function getTitles();
- /**
- * Set tax rate titles
- *
- * @param \Magento\Tax\Api\Data\TaxRateTitleInterface[] $titles
- * @return $this
- */
- public function setTitles(array $titles = null);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Tax\Api\Data\TaxRateExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Tax\Api\Data\TaxRateExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(\Magento\Tax\Api\Data\TaxRateExtensionInterface $extensionAttributes);
- }
|