AlipayUserMemberCardUpdateRequest.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.user.member.card.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2015-09-23 14:14:10
  7. */
  8. class AlipayUserMemberCardUpdateRequest
  9. {
  10. /**
  11. * 商户会员卡余额
  12. **/
  13. private $balance;
  14. /**
  15. * 会员卡卡号
  16. **/
  17. private $bizCardNo;
  18. /**
  19. * 发卡商户信息,json格式。
  20. 目前仅支持如下key:
  21. &#61548; merchantUniId:商户唯一标识
  22. &#61548; merchantUniIdType:支持以下3种取值。
  23. LOGON_ID:商户登录ID,邮箱或者手机号格式;
  24. UID:商户的支付宝用户号,以2088开头的16位纯数字组成;
  25. BINDING_MOBILE:商户支付宝账号绑定的手机号。
  26. 注意:
  27. 本参数主要用于发卡平台接入场景,request_from为PLATFORM时,不能为空。
  28. **/
  29. private $cardMerchantInfo;
  30. /**
  31. * 扩展参数,json格式。
  32. 用于商户的特定业务信息的传递,只有商户与支付宝约定了传递此参数且约定了参数含义,此参数才有效。
  33. **/
  34. private $extInfo;
  35. /**
  36. * 商户会员卡号。
  37. 比如淘宝会员卡号、商户实体会员卡号、商户自有CRM虚拟卡号等
  38. **/
  39. private $externalCardNo;
  40. /**
  41. * ALIPAY:支付宝
  42. PARTNER:商户
  43. PLATFORM:平台商
  44. **/
  45. private $issuerType;
  46. /**
  47. * 商户会员卡会员等级
  48. **/
  49. private $level;
  50. /**
  51. * 时间戳参数-orrur_time(精确至毫秒),标识业务发生的时间
  52. orrur_time 必须为long类型整数,时间维度目前未限制
  53. **/
  54. private $orrurTime;
  55. /**
  56. * 商户会员卡积分
  57. **/
  58. private $point;
  59. /**
  60. * 请求来源。
  61. PLATFORM:发卡平台商
  62. PARTNER:直联商户
  63. **/
  64. private $requestFrom;
  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 setBalance($balance)
  74. {
  75. $this->balance = $balance;
  76. $this->apiParas["balance"] = $balance;
  77. }
  78. public function getBalance()
  79. {
  80. return $this->balance;
  81. }
  82. public function setBizCardNo($bizCardNo)
  83. {
  84. $this->bizCardNo = $bizCardNo;
  85. $this->apiParas["biz_card_no"] = $bizCardNo;
  86. }
  87. public function getBizCardNo()
  88. {
  89. return $this->bizCardNo;
  90. }
  91. public function setCardMerchantInfo($cardMerchantInfo)
  92. {
  93. $this->cardMerchantInfo = $cardMerchantInfo;
  94. $this->apiParas["card_merchant_info"] = $cardMerchantInfo;
  95. }
  96. public function getCardMerchantInfo()
  97. {
  98. return $this->cardMerchantInfo;
  99. }
  100. public function setExtInfo($extInfo)
  101. {
  102. $this->extInfo = $extInfo;
  103. $this->apiParas["ext_info"] = $extInfo;
  104. }
  105. public function getExtInfo()
  106. {
  107. return $this->extInfo;
  108. }
  109. public function setExternalCardNo($externalCardNo)
  110. {
  111. $this->externalCardNo = $externalCardNo;
  112. $this->apiParas["external_card_no"] = $externalCardNo;
  113. }
  114. public function getExternalCardNo()
  115. {
  116. return $this->externalCardNo;
  117. }
  118. public function setIssuerType($issuerType)
  119. {
  120. $this->issuerType = $issuerType;
  121. $this->apiParas["issuer_type"] = $issuerType;
  122. }
  123. public function getIssuerType()
  124. {
  125. return $this->issuerType;
  126. }
  127. public function setLevel($level)
  128. {
  129. $this->level = $level;
  130. $this->apiParas["level"] = $level;
  131. }
  132. public function getLevel()
  133. {
  134. return $this->level;
  135. }
  136. public function setOrrurTime($orrurTime)
  137. {
  138. $this->orrurTime = $orrurTime;
  139. $this->apiParas["orrur_time"] = $orrurTime;
  140. }
  141. public function getOrrurTime()
  142. {
  143. return $this->orrurTime;
  144. }
  145. public function setPoint($point)
  146. {
  147. $this->point = $point;
  148. $this->apiParas["point"] = $point;
  149. }
  150. public function getPoint()
  151. {
  152. return $this->point;
  153. }
  154. public function setRequestFrom($requestFrom)
  155. {
  156. $this->requestFrom = $requestFrom;
  157. $this->apiParas["request_from"] = $requestFrom;
  158. }
  159. public function getRequestFrom()
  160. {
  161. return $this->requestFrom;
  162. }
  163. public function getApiMethodName()
  164. {
  165. return "alipay.user.member.card.update";
  166. }
  167. public function setNotifyUrl($notifyUrl)
  168. {
  169. $this->notifyUrl=$notifyUrl;
  170. }
  171. public function getNotifyUrl()
  172. {
  173. return $this->notifyUrl;
  174. }
  175. public function setReturnUrl($returnUrl)
  176. {
  177. $this->returnUrl=$returnUrl;
  178. }
  179. public function getReturnUrl()
  180. {
  181. return $this->returnUrl;
  182. }
  183. public function getApiParas()
  184. {
  185. return $this->apiParas;
  186. }
  187. public function getTerminalType()
  188. {
  189. return $this->terminalType;
  190. }
  191. public function setTerminalType($terminalType)
  192. {
  193. $this->terminalType = $terminalType;
  194. }
  195. public function getTerminalInfo()
  196. {
  197. return $this->terminalInfo;
  198. }
  199. public function setTerminalInfo($terminalInfo)
  200. {
  201. $this->terminalInfo = $terminalInfo;
  202. }
  203. public function getProdCode()
  204. {
  205. return $this->prodCode;
  206. }
  207. public function setProdCode($prodCode)
  208. {
  209. $this->prodCode = $prodCode;
  210. }
  211. public function setApiVersion($apiVersion)
  212. {
  213. $this->apiVersion=$apiVersion;
  214. }
  215. public function getApiVersion()
  216. {
  217. return $this->apiVersion;
  218. }
  219. public function setNeedEncrypt($needEncrypt)
  220. {
  221. $this->needEncrypt=$needEncrypt;
  222. }
  223. public function getNeedEncrypt()
  224. {
  225. return $this->needEncrypt;
  226. }
  227. }