PayPalApiChargeModel

Class ChargeModel.

Defined (1)

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

/classes/lib/PayPal/Api/ChargeModel.php  
  1. class ChargeModel extends PayPalModel 
  2. /** 
  3. * Identifier of the charge model. 128 characters max. 
  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 charge model. 128 characters max. 
  14. * @return string 
  15. */ 
  16. public function getId() 
  17. return $this->id; 
  18.  
  19. /** 
  20. * Type of charge model. Allowed values: `SHIPPING`, `TAX`. 
  21. * @param string $type 
  22. *  
  23. * @return $this 
  24. */ 
  25. public function setType($type) 
  26. $this->type = $type; 
  27. return $this; 
  28.  
  29. /** 
  30. * Type of charge model. Allowed values: `SHIPPING`, `TAX`. 
  31. * @return string 
  32. */ 
  33. public function getType() 
  34. return $this->type; 
  35.  
  36. /** 
  37. * Specific amount for this charge model. 
  38. * @param \PayPal\Api\Currency $amount 
  39. *  
  40. * @return $this 
  41. */ 
  42. public function setAmount($amount) 
  43. $this->amount = $amount; 
  44. return $this; 
  45.  
  46. /** 
  47. * Specific amount for this charge model. 
  48. * @return \PayPal\Api\Currency 
  49. */ 
  50. public function getAmount() 
  51. return $this->amount; 
  52.