![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ |
<?php namespace PayPal\Api; use PayPal\Common\PayPalModel; use PayPal\Converter\FormatConverter; use PayPal\Validation\NumericValidator; /** * Class Tax * * Tax information. * * @package PayPal\Api * * @property string id * @property string name * @property \PayPal\Api\number percent * @property \PayPal\Api\Currency amount */ class Tax extends PayPalModel { /** * Identifier of the resource. * * @param string $id * * @return $this */ public function setId($id) { $this->id = $id; return $this; } /** * Identifier of the resource. * * @return string */ public function getId() { return $this->id; } /** * Name of the tax. 10 characters max. * * @param string $name * * @return $this */ public function setName($name) { $this->name = $name; return $this; } /** * Name of the tax. 10 characters max. * * @return string */ public function getName() { return $this->name; } /** * Rate of the specified tax. Range of 0.001 to 99.999. * * @param string|double $percent * * @return $this */ public function setPercent($percent) { NumericValidator::validate($percent, "Percent"); $percent = FormatConverter::formatToPrice($percent); $this->percent = $percent; return $this; } /** * Rate of the specified tax. Range of 0.001 to 99.999. * * @return string */ public function getPercent() { return $this->percent; } /** * Tax in the form of money. Cannot be specified in a request. * * @param \PayPal\Api\Currency $amount * * @return $this */ public function setAmount($amount) { $this->amount = $amount; return $this; } /** * Tax in the form of money. Cannot be specified in a request. * * @return \PayPal\Api\Currency */ public function getAmount() { return $this->amount; } }