AlipayTransferThirdpartyBillCreateRequest.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.transfer.thirdparty.bill.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2014-06-25 17:00:56
  7. */
  8. class AlipayTransferThirdpartyBillCreateRequest
  9. {
  10. /**
  11. * 收款金额,单位:分
  12. **/
  13. private $amount;
  14. /**
  15. * 收款币种,默认为156(人民币)目前只允许转账人民币
  16. **/
  17. private $currency;
  18. /**
  19. * 扩展参数
  20. **/
  21. private $extParam;
  22. /**
  23. * 转账备注
  24. **/
  25. private $memo;
  26. /**
  27. * 合作方的支付宝帐号UID
  28. **/
  29. private $partnerId;
  30. /**
  31. * 外部系统收款方UID,付款人和收款人不能是同一个帐户
  32. **/
  33. private $payeeAccount;
  34. /**
  35. * (同payer_type所列举的)
  36. 目前限制payer_type和payee_type必须一致
  37. **/
  38. private $payeeType;
  39. /**
  40. * 外部系统付款方的UID
  41. **/
  42. private $payerAccount;
  43. /**
  44. * 1-支付宝帐户
  45. 2-淘宝帐户
  46. 10001-新浪微博帐户
  47. 10002-阿里云帐户
  48. (1、2目前对外不可见、不可用)
  49. **/
  50. private $payerType;
  51. /**
  52. * 发起支付交易来源方定义的交易ID,用于将支付回执通知给来源方。不同来源方给出的ID可以重复,同一个来源方给出的ID唯一性由来源方保证。
  53. **/
  54. private $paymentId;
  55. /**
  56. * 支付来源
  57. 10001-新浪微博
  58. 10002-阿里云
  59. **/
  60. private $paymentSource;
  61. /**
  62. * 支付款项的标题
  63. **/
  64. private $title;
  65. private $apiParas = array();
  66. private $terminalType;
  67. private $terminalInfo;
  68. private $prodCode;
  69. private $apiVersion="1.0";
  70. private $notifyUrl;
  71. private $returnUrl;
  72. private $needEncrypt=false;
  73. public function setAmount($amount)
  74. {
  75. $this->amount = $amount;
  76. $this->apiParas["amount"] = $amount;
  77. }
  78. public function getAmount()
  79. {
  80. return $this->amount;
  81. }
  82. public function setCurrency($currency)
  83. {
  84. $this->currency = $currency;
  85. $this->apiParas["currency"] = $currency;
  86. }
  87. public function getCurrency()
  88. {
  89. return $this->currency;
  90. }
  91. public function setExtParam($extParam)
  92. {
  93. $this->extParam = $extParam;
  94. $this->apiParas["ext_param"] = $extParam;
  95. }
  96. public function getExtParam()
  97. {
  98. return $this->extParam;
  99. }
  100. public function setMemo($memo)
  101. {
  102. $this->memo = $memo;
  103. $this->apiParas["memo"] = $memo;
  104. }
  105. public function getMemo()
  106. {
  107. return $this->memo;
  108. }
  109. public function setPartnerId($partnerId)
  110. {
  111. $this->partnerId = $partnerId;
  112. $this->apiParas["partner_id"] = $partnerId;
  113. }
  114. public function getPartnerId()
  115. {
  116. return $this->partnerId;
  117. }
  118. public function setPayeeAccount($payeeAccount)
  119. {
  120. $this->payeeAccount = $payeeAccount;
  121. $this->apiParas["payee_account"] = $payeeAccount;
  122. }
  123. public function getPayeeAccount()
  124. {
  125. return $this->payeeAccount;
  126. }
  127. public function setPayeeType($payeeType)
  128. {
  129. $this->payeeType = $payeeType;
  130. $this->apiParas["payee_type"] = $payeeType;
  131. }
  132. public function getPayeeType()
  133. {
  134. return $this->payeeType;
  135. }
  136. public function setPayerAccount($payerAccount)
  137. {
  138. $this->payerAccount = $payerAccount;
  139. $this->apiParas["payer_account"] = $payerAccount;
  140. }
  141. public function getPayerAccount()
  142. {
  143. return $this->payerAccount;
  144. }
  145. public function setPayerType($payerType)
  146. {
  147. $this->payerType = $payerType;
  148. $this->apiParas["payer_type"] = $payerType;
  149. }
  150. public function getPayerType()
  151. {
  152. return $this->payerType;
  153. }
  154. public function setPaymentId($paymentId)
  155. {
  156. $this->paymentId = $paymentId;
  157. $this->apiParas["payment_id"] = $paymentId;
  158. }
  159. public function getPaymentId()
  160. {
  161. return $this->paymentId;
  162. }
  163. public function setPaymentSource($paymentSource)
  164. {
  165. $this->paymentSource = $paymentSource;
  166. $this->apiParas["payment_source"] = $paymentSource;
  167. }
  168. public function getPaymentSource()
  169. {
  170. return $this->paymentSource;
  171. }
  172. public function setTitle($title)
  173. {
  174. $this->title = $title;
  175. $this->apiParas["title"] = $title;
  176. }
  177. public function getTitle()
  178. {
  179. return $this->title;
  180. }
  181. public function getApiMethodName()
  182. {
  183. return "alipay.transfer.thirdparty.bill.create";
  184. }
  185. public function setNotifyUrl($notifyUrl)
  186. {
  187. $this->notifyUrl=$notifyUrl;
  188. }
  189. public function getNotifyUrl()
  190. {
  191. return $this->notifyUrl;
  192. }
  193. public function setReturnUrl($returnUrl)
  194. {
  195. $this->returnUrl=$returnUrl;
  196. }
  197. public function getReturnUrl()
  198. {
  199. return $this->returnUrl;
  200. }
  201. public function getApiParas()
  202. {
  203. return $this->apiParas;
  204. }
  205. public function getTerminalType()
  206. {
  207. return $this->terminalType;
  208. }
  209. public function setTerminalType($terminalType)
  210. {
  211. $this->terminalType = $terminalType;
  212. }
  213. public function getTerminalInfo()
  214. {
  215. return $this->terminalInfo;
  216. }
  217. public function setTerminalInfo($terminalInfo)
  218. {
  219. $this->terminalInfo = $terminalInfo;
  220. }
  221. public function getProdCode()
  222. {
  223. return $this->prodCode;
  224. }
  225. public function setProdCode($prodCode)
  226. {
  227. $this->prodCode = $prodCode;
  228. }
  229. public function setApiVersion($apiVersion)
  230. {
  231. $this->apiVersion=$apiVersion;
  232. }
  233. public function getApiVersion()
  234. {
  235. return $this->apiVersion;
  236. }
  237. public function setNeedEncrypt($needEncrypt)
  238. {
  239. $this->needEncrypt=$needEncrypt;
  240. }
  241. public function getNeedEncrypt()
  242. {
  243. return $this->needEncrypt;
  244. }
  245. }