AlipayAcquireOverseasSpotPayRequest.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.acquire.overseas.spot.pay request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayAcquireOverseasSpotPayRequest
  9. {
  10. /**
  11. * Used as identification of a Alipay user.
  12. The format of the Buyer_identity_code varies depending on the identity_code_type
  13. **/
  14. private $buyerIdentityCode;
  15. /**
  16. * The currency used for labeling the price of the transaction;Refer to the acronym of currency table
  17. **/
  18. private $currency;
  19. /**
  20. * Containing the extended parameters of the request, it’s in JSON format.
  21. For now it contains the following parameters:
  22. merchant_name;
  23. merchant_no;
  24. business_no;
  25. terminal_id;
  26. mcc;
  27. region_code
  28. **/
  29. private $extendInfo;
  30. /**
  31. * he identity code type could be qrcode, barcode or soundwave;
  32. only barcode is supported for now
  33. **/
  34. private $identityCodeType;
  35. /**
  36. * Transaction notes
  37. **/
  38. private $memo;
  39. /**
  40. * The transaction Id on the partner system which could be a sale order id and payment order id.
  41. Alipay system uses the partner_trans_id and the partner to identity a transaction on partner side
  42. **/
  43. private $partnerTransId;
  44. /**
  45. * There are three kinds of password: login password, payment password and mobile password.
  46. In the barcode payment scenario, the mobile password is used;
  47. 3DES is used for encryption/ decryption.
  48. **/
  49. private $password;
  50. /**
  51. * the transaction amount in the currency given above;
  52. Range: 0.01-100000000.00. Two digits after decimal point
  53. **/
  54. private $transAmount;
  55. /**
  56. * The name of the transaction which will be shown in the transaction records list
  57. **/
  58. private $transName;
  59. private $apiParas = array();
  60. private $terminalType;
  61. private $terminalInfo;
  62. private $prodCode;
  63. private $apiVersion="1.0";
  64. private $notifyUrl;
  65. private $returnUrl;
  66. private $needEncrypt=false;
  67. public function setBuyerIdentityCode($buyerIdentityCode)
  68. {
  69. $this->buyerIdentityCode = $buyerIdentityCode;
  70. $this->apiParas["buyer_identity_code"] = $buyerIdentityCode;
  71. }
  72. public function getBuyerIdentityCode()
  73. {
  74. return $this->buyerIdentityCode;
  75. }
  76. public function setCurrency($currency)
  77. {
  78. $this->currency = $currency;
  79. $this->apiParas["currency"] = $currency;
  80. }
  81. public function getCurrency()
  82. {
  83. return $this->currency;
  84. }
  85. public function setExtendInfo($extendInfo)
  86. {
  87. $this->extendInfo = $extendInfo;
  88. $this->apiParas["extend_info"] = $extendInfo;
  89. }
  90. public function getExtendInfo()
  91. {
  92. return $this->extendInfo;
  93. }
  94. public function setIdentityCodeType($identityCodeType)
  95. {
  96. $this->identityCodeType = $identityCodeType;
  97. $this->apiParas["identity_code_type"] = $identityCodeType;
  98. }
  99. public function getIdentityCodeType()
  100. {
  101. return $this->identityCodeType;
  102. }
  103. public function setMemo($memo)
  104. {
  105. $this->memo = $memo;
  106. $this->apiParas["memo"] = $memo;
  107. }
  108. public function getMemo()
  109. {
  110. return $this->memo;
  111. }
  112. public function setPartnerTransId($partnerTransId)
  113. {
  114. $this->partnerTransId = $partnerTransId;
  115. $this->apiParas["partner_trans_id"] = $partnerTransId;
  116. }
  117. public function getPartnerTransId()
  118. {
  119. return $this->partnerTransId;
  120. }
  121. public function setPassword($password)
  122. {
  123. $this->password = $password;
  124. $this->apiParas["password"] = $password;
  125. }
  126. public function getPassword()
  127. {
  128. return $this->password;
  129. }
  130. public function setTransAmount($transAmount)
  131. {
  132. $this->transAmount = $transAmount;
  133. $this->apiParas["trans_amount"] = $transAmount;
  134. }
  135. public function getTransAmount()
  136. {
  137. return $this->transAmount;
  138. }
  139. public function setTransName($transName)
  140. {
  141. $this->transName = $transName;
  142. $this->apiParas["trans_name"] = $transName;
  143. }
  144. public function getTransName()
  145. {
  146. return $this->transName;
  147. }
  148. public function getApiMethodName()
  149. {
  150. return "alipay.acquire.overseas.spot.pay";
  151. }
  152. public function setNotifyUrl($notifyUrl)
  153. {
  154. $this->notifyUrl=$notifyUrl;
  155. }
  156. public function getNotifyUrl()
  157. {
  158. return $this->notifyUrl;
  159. }
  160. public function setReturnUrl($returnUrl)
  161. {
  162. $this->returnUrl=$returnUrl;
  163. }
  164. public function getReturnUrl()
  165. {
  166. return $this->returnUrl;
  167. }
  168. public function getApiParas()
  169. {
  170. return $this->apiParas;
  171. }
  172. public function getTerminalType()
  173. {
  174. return $this->terminalType;
  175. }
  176. public function setTerminalType($terminalType)
  177. {
  178. $this->terminalType = $terminalType;
  179. }
  180. public function getTerminalInfo()
  181. {
  182. return $this->terminalInfo;
  183. }
  184. public function setTerminalInfo($terminalInfo)
  185. {
  186. $this->terminalInfo = $terminalInfo;
  187. }
  188. public function getProdCode()
  189. {
  190. return $this->prodCode;
  191. }
  192. public function setProdCode($prodCode)
  193. {
  194. $this->prodCode = $prodCode;
  195. }
  196. public function setApiVersion($apiVersion)
  197. {
  198. $this->apiVersion=$apiVersion;
  199. }
  200. public function getApiVersion()
  201. {
  202. return $this->apiVersion;
  203. }
  204. public function setNeedEncrypt($needEncrypt)
  205. {
  206. $this->needEncrypt=$needEncrypt;
  207. }
  208. public function getNeedEncrypt()
  209. {
  210. return $this->needEncrypt;
  211. }
  212. }