PayPalApiPayoutBatch

Class PayoutBatch.

Defined (1)

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

/classes/lib/PayPal/Api/PayoutBatch.php  
  1. class PayoutBatch extends PayPalModel 
  2. /** 
  3. * A batch header that includes the generated batch status. 
  4. * @param \PayPal\Api\PayoutBatchHeader $batch_header 
  5. *  
  6. * @return $this 
  7. */ 
  8. public function setBatchHeader($batch_header) 
  9. $this->batch_header = $batch_header; 
  10. return $this; 
  11.  
  12. /** 
  13. * A batch header that includes the generated batch status. 
  14. * @return \PayPal\Api\PayoutBatchHeader 
  15. */ 
  16. public function getBatchHeader() 
  17. return $this->batch_header; 
  18.  
  19. /** 
  20. * Array of the items in a batch payout. 
  21. * @param \PayPal\Api\PayoutItemDetails[] $items 
  22. *  
  23. * @return $this 
  24. */ 
  25. public function setItems($items) 
  26. $this->items = $items; 
  27. return $this; 
  28.  
  29. /** 
  30. * Array of the items in a batch payout. 
  31. * @return \PayPal\Api\PayoutItemDetails[] 
  32. */ 
  33. public function getItems() 
  34. return $this->items; 
  35.  
  36. /** 
  37. * Append Items to the list. 
  38. * @param \PayPal\Api\PayoutItemDetails $payoutItemDetails 
  39. * @return $this 
  40. */ 
  41. public function addItem($payoutItemDetails) 
  42. if (!$this->getItems()) { 
  43. return $this->setItems(array($payoutItemDetails)); 
  44. } else { 
  45. return $this->setItems( 
  46. array_merge($this->getItems(), array($payoutItemDetails)) 
  47. ); 
  48.  
  49. /** 
  50. * Remove Items from the list. 
  51. * @param \PayPal\Api\PayoutItemDetails $payoutItemDetails 
  52. * @return $this 
  53. */ 
  54. public function removeItem($payoutItemDetails) 
  55. return $this->setItems( 
  56. array_diff($this->getItems(), array($payoutItemDetails)) 
  57. ); 
  58.  
  59.  
  60. /** 
  61. * Sets Links 
  62. * @param \PayPal\Api\Links[] $links 
  63. * @return $this 
  64. */ 
  65. public function setLinks($links) 
  66. $this->links = $links; 
  67. return $this; 
  68.  
  69. /** 
  70. * Gets Links 
  71. * @return \PayPal\Api\Links[] 
  72. */ 
  73. public function getLinks() 
  74. return $this->links; 
  75.