PayPalApiFundingSource

Class FundingSource.

Defined (1)

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

/classes/lib/PayPal/Api/FundingSource.php  
  1. class FundingSource extends PayPalModel 
  2. /** 
  3. * specifies funding mode of the instrument 
  4. * Valid Values: ["INSTANT_TRANSFER", "MANUAL_BANK_TRANSFER", "DELAYED_TRANSFER", "ECHECK"] 
  5. * @param string $funding_mode 
  6. * @return $this 
  7. */ 
  8. public function setFundingMode($funding_mode) 
  9. $this->funding_mode = $funding_mode; 
  10. return $this; 
  11.  
  12. /** 
  13. * specifies funding mode of the instrument 
  14. * @return string 
  15. */ 
  16. public function getFundingMode() 
  17. return $this->funding_mode; 
  18.  
  19. /** 
  20. * Instrument type for this funding source 
  21. * Valid Values: ["BALANCE", "PAYMENT_CARD", "BANK_ACCOUNT", "CREDIT", "INCENTIVE"] 
  22. * @param string $funding_instrument_type 
  23. * @return $this 
  24. */ 
  25. public function setFundingInstrumentType($funding_instrument_type) 
  26. $this->funding_instrument_type = $funding_instrument_type; 
  27. return $this; 
  28.  
  29. /** 
  30. * Instrument type for this funding source 
  31. * @return string 
  32. */ 
  33. public function getFundingInstrumentType() 
  34. return $this->funding_instrument_type; 
  35.  
  36. /** 
  37. * Soft descriptor used when charging this funding source. 
  38. * @param string $soft_descriptor 
  39. * @return $this 
  40. */ 
  41. public function setSoftDescriptor($soft_descriptor) 
  42. $this->soft_descriptor = $soft_descriptor; 
  43. return $this; 
  44.  
  45. /** 
  46. * Soft descriptor used when charging this funding source. 
  47. * @return string 
  48. */ 
  49. public function getSoftDescriptor() 
  50. return $this->soft_descriptor; 
  51.  
  52. /** 
  53. * Total anticipated amount of money to be pulled from instrument. 
  54. * @param \PayPal\Api\Currency $amount 
  55. * @return $this 
  56. */ 
  57. public function setAmount($amount) 
  58. $this->amount = $amount; 
  59. return $this; 
  60.  
  61. /** 
  62. * Total anticipated amount of money to be pulled from instrument. 
  63. * @return \PayPal\Api\Currency 
  64. */ 
  65. public function getAmount() 
  66. return $this->amount; 
  67.  
  68. /** 
  69. * Additional amount to be pulled from the instrument to recover a negative balance on the buyer 
  70. * @param \PayPal\Api\Currency $amount 
  71. * @return $this 
  72. */ 
  73. public function setNegativeBalanceAmount($amount) 
  74. $this->amount = $amount; 
  75. return $this; 
  76.  
  77. /** 
  78. * Additional amount to be pulled from the instrument to recover a negative balance on the buyer 
  79. * @return \PayPal\Api\Currency 
  80. */ 
  81. public function getNegativeBalanceAmount() 
  82. return $this->amount; 
  83.  
  84. /** 
  85. * Localized legal text relevant to funding source. 
  86. * @param string $legal_text 
  87. * @return $this 
  88. */ 
  89. public function setLegalText($legal_text) 
  90. $this->legal_text = $legal_text; 
  91. return $this; 
  92.  
  93. /** 
  94. * Localized legal text relevant to funding source. 
  95. * @return string 
  96. */ 
  97. public function getLegalText() 
  98. return $this->legal_text; 
  99.  
  100. /** 
  101. * Additional detail of the funding. 
  102. * @param \PayPal\Api\FundingDetail $funding_detail 
  103. * @return $this 
  104. */ 
  105. public function setFundingDetail($funding_detail) 
  106. $this->funding_detail = $funding_detail; 
  107. return $this; 
  108.  
  109. /** 
  110. * Additional detail of the funding. 
  111. * @return \PayPal\Api\FundingDetail 
  112. */ 
  113. public function getFundingDetail() 
  114. return $this->funding_detail; 
  115.  
  116. /** 
  117. * Additional text relevant to funding source. 
  118. * @param string $additional_text 
  119. * @return $this 
  120. */ 
  121. public function setAdditionalText($additional_text) 
  122. $this->additional_text = $additional_text; 
  123. return $this; 
  124.  
  125. /** 
  126. * Additional text relevant to funding source. 
  127. * @return string 
  128. */ 
  129. public function getAdditionalText() 
  130. return $this->additional_text; 
  131.  
  132. /** 
  133. * Sets Extends 
  134. * @param \PayPal\Api\FundingInstrument $extends 
  135. * @return $this 
  136. */ 
  137. public function setExtends($extends) 
  138. $this->extends = $extends; 
  139. return $this; 
  140.  
  141. /** 
  142. * Gets Extends 
  143. * @return \PayPal\Api\FundingInstrument 
  144. */ 
  145. public function getExtends() 
  146. return $this->extends; 
  147.  
  148. /** 
  149. * Sets Links 
  150. * @param \PayPal\Api\Links[] $links 
  151. * @return $this 
  152. */ 
  153. public function setLinks($links) 
  154. $this->links = $links; 
  155. return $this; 
  156.  
  157. /** 
  158. * Gets Links 
  159. * @return \PayPal\Api\Links[] 
  160. */ 
  161. public function getLinks() 
  162. return $this->links; 
  163.  
  164. /** 
  165. * Append Links to the list. 
  166. * @param \PayPal\Api\Links $links 
  167. * @return $this 
  168. */ 
  169. public function addLink($links) 
  170. if (!$this->getLinks()) { 
  171. return $this->setLinks(array($links)); 
  172. } else { 
  173. return $this->setLinks( 
  174. array_merge($this->getLinks(), array($links)) 
  175. ); 
  176.  
  177. /** 
  178. * Remove Links from the list. 
  179. * @param \PayPal\Api\Links $links 
  180. * @return $this 
  181. */ 
  182. public function removeLink($links) 
  183. return $this->setLinks( 
  184. array_diff($this->getLinks(), array($links)) 
  185. ); 
  186.