PayPalApiTax

Class Tax.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/Tax.php  
  1. class Tax extends PayPalModel 
  2. /** 
  3. * Identifier of the resource. 
  4. * @param string $id 
  5. *  
  6. * @return $this 
  7. */ 
  8. public function setId($id) 
  9. $this->id = $id; 
  10. return $this; 
  11.  
  12. /** 
  13. * Identifier of the resource. 
  14. * @return string 
  15. */ 
  16. public function getId() 
  17. return $this->id; 
  18.  
  19. /** 
  20. * Name of the tax. 10 characters max. 
  21. * @param string $name 
  22. *  
  23. * @return $this 
  24. */ 
  25. public function setName($name) 
  26. $this->name = $name; 
  27. return $this; 
  28.  
  29. /** 
  30. * Name of the tax. 10 characters max. 
  31. * @return string 
  32. */ 
  33. public function getName() 
  34. return $this->name; 
  35.  
  36. /** 
  37. * Rate of the specified tax. Range of 0.001 to 99.999. 
  38. * @param string|double $percent 
  39. *  
  40. * @return $this 
  41. */ 
  42. public function setPercent($percent) 
  43. NumericValidator::validate($percent, "Percent"); 
  44. $percent = FormatConverter::formatToPrice($percent); 
  45. $this->percent = $percent; 
  46. return $this; 
  47.  
  48. /** 
  49. * Rate of the specified tax. Range of 0.001 to 99.999. 
  50. * @return string 
  51. */ 
  52. public function getPercent() 
  53. return $this->percent; 
  54.  
  55. /** 
  56. * Tax in the form of money. Cannot be specified in a request. 
  57. * @param \PayPal\Api\Currency $amount 
  58. *  
  59. * @return $this 
  60. */ 
  61. public function setAmount($amount) 
  62. $this->amount = $amount; 
  63. return $this; 
  64.  
  65. /** 
  66. * Tax in the form of money. Cannot be specified in a request. 
  67. * @return \PayPal\Api\Currency 
  68. */ 
  69. public function getAmount() 
  70. return $this->amount; 
  71.