AlipayMemberConsumeNotifyRequest.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.member.consume.notify request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2014-12-09 14:01:31
  7. */
  8. class AlipayMemberConsumeNotifyRequest
  9. {
  10. /**
  11. * 实付金额
  12. **/
  13. private $actPayAmount;
  14. /**
  15. * 会员卡卡号
  16. **/
  17. private $bizCardNo;
  18. /**
  19. * point:整数
  20. balance:金额格式
  21. level:String
  22. **/
  23. private $cardInfo;
  24. /**
  25. * 商户给会员开设的卡号,最大长度不超过32
  26. **/
  27. private $externalCardNo;
  28. /**
  29. * 获取权益列表,是指由于发生当前交易,而使用户最终获取到的特权列表信息,
  30. 实际消耗的权益,这是个json字段
  31. &#61550; 卡面额权益说明(元为单位)
  32. benefitType:PRE_FUND(卡面额)
  33. amount:80.00
  34. &#61550; 券权益说明(张数为单位)
  35. benefitType:COUPON
  36. count:5
  37. description:2元抵用券
  38. amount:10.00
  39. **/
  40. private $gainBenefitList;
  41. /**
  42. * 备注信息,现有直接填写门店信息
  43. **/
  44. private $memo;
  45. /**
  46. * 门店编号
  47. **/
  48. private $shopCode;
  49. /**
  50. * ALIPAY:支付宝电子卡
  51. ENTITY:实体卡
  52. OTHER:其他
  53. **/
  54. private $swipeCertType;
  55. /**
  56. * 交易金额:本次交易的实际总金额(可认为标价金额)
  57. **/
  58. private $tradeAmount;
  59. /**
  60. * 交易名称
  61. **/
  62. private $tradeName;
  63. /**
  64. * 商户端对当前消费交易的单据号
  65. **/
  66. private $tradeNo;
  67. /**
  68. * 交易事件
  69. **/
  70. private $tradeTime;
  71. /**
  72. * 交易类型
  73. 消费:TRADE
  74. 充值:DEPOSIT
  75. **/
  76. private $tradeType;
  77. /**
  78. * 实际消耗的权益,这是个json字段
  79. &#61550; 卡面额权益说明(元为单位)
  80. benefitType:PRE_FUND(卡面额)
  81. amount:80.00
  82. &#61550; 折扣权益说明(元为单位)
  83. benefitType:DISCOUNT
  84. amount:10.00
  85. description:折扣10元
  86. &#61550; 券权益说明(张数为单位)
  87. benefitType:COUPON
  88. count:5
  89. description:2元抵用券
  90. **/
  91. private $useBenefitList;
  92. private $apiParas = array();
  93. private $terminalType;
  94. private $terminalInfo;
  95. private $prodCode;
  96. private $apiVersion="1.0";
  97. private $notifyUrl;
  98. private $returnUrl;
  99. private $needEncrypt=false;
  100. public function setActPayAmount($actPayAmount)
  101. {
  102. $this->actPayAmount = $actPayAmount;
  103. $this->apiParas["act_pay_amount"] = $actPayAmount;
  104. }
  105. public function getActPayAmount()
  106. {
  107. return $this->actPayAmount;
  108. }
  109. public function setBizCardNo($bizCardNo)
  110. {
  111. $this->bizCardNo = $bizCardNo;
  112. $this->apiParas["biz_card_no"] = $bizCardNo;
  113. }
  114. public function getBizCardNo()
  115. {
  116. return $this->bizCardNo;
  117. }
  118. public function setCardInfo($cardInfo)
  119. {
  120. $this->cardInfo = $cardInfo;
  121. $this->apiParas["card_info"] = $cardInfo;
  122. }
  123. public function getCardInfo()
  124. {
  125. return $this->cardInfo;
  126. }
  127. public function setExternalCardNo($externalCardNo)
  128. {
  129. $this->externalCardNo = $externalCardNo;
  130. $this->apiParas["external_card_no"] = $externalCardNo;
  131. }
  132. public function getExternalCardNo()
  133. {
  134. return $this->externalCardNo;
  135. }
  136. public function setGainBenefitList($gainBenefitList)
  137. {
  138. $this->gainBenefitList = $gainBenefitList;
  139. $this->apiParas["gain_benefit_list"] = $gainBenefitList;
  140. }
  141. public function getGainBenefitList()
  142. {
  143. return $this->gainBenefitList;
  144. }
  145. public function setMemo($memo)
  146. {
  147. $this->memo = $memo;
  148. $this->apiParas["memo"] = $memo;
  149. }
  150. public function getMemo()
  151. {
  152. return $this->memo;
  153. }
  154. public function setShopCode($shopCode)
  155. {
  156. $this->shopCode = $shopCode;
  157. $this->apiParas["shop_code"] = $shopCode;
  158. }
  159. public function getShopCode()
  160. {
  161. return $this->shopCode;
  162. }
  163. public function setSwipeCertType($swipeCertType)
  164. {
  165. $this->swipeCertType = $swipeCertType;
  166. $this->apiParas["swipe_cert_type"] = $swipeCertType;
  167. }
  168. public function getSwipeCertType()
  169. {
  170. return $this->swipeCertType;
  171. }
  172. public function setTradeAmount($tradeAmount)
  173. {
  174. $this->tradeAmount = $tradeAmount;
  175. $this->apiParas["trade_amount"] = $tradeAmount;
  176. }
  177. public function getTradeAmount()
  178. {
  179. return $this->tradeAmount;
  180. }
  181. public function setTradeName($tradeName)
  182. {
  183. $this->tradeName = $tradeName;
  184. $this->apiParas["trade_name"] = $tradeName;
  185. }
  186. public function getTradeName()
  187. {
  188. return $this->tradeName;
  189. }
  190. public function setTradeNo($tradeNo)
  191. {
  192. $this->tradeNo = $tradeNo;
  193. $this->apiParas["trade_no"] = $tradeNo;
  194. }
  195. public function getTradeNo()
  196. {
  197. return $this->tradeNo;
  198. }
  199. public function setTradeTime($tradeTime)
  200. {
  201. $this->tradeTime = $tradeTime;
  202. $this->apiParas["trade_time"] = $tradeTime;
  203. }
  204. public function getTradeTime()
  205. {
  206. return $this->tradeTime;
  207. }
  208. public function setTradeType($tradeType)
  209. {
  210. $this->tradeType = $tradeType;
  211. $this->apiParas["trade_type"] = $tradeType;
  212. }
  213. public function getTradeType()
  214. {
  215. return $this->tradeType;
  216. }
  217. public function setUseBenefitList($useBenefitList)
  218. {
  219. $this->useBenefitList = $useBenefitList;
  220. $this->apiParas["use_benefit_list"] = $useBenefitList;
  221. }
  222. public function getUseBenefitList()
  223. {
  224. return $this->useBenefitList;
  225. }
  226. public function getApiMethodName()
  227. {
  228. return "alipay.member.consume.notify";
  229. }
  230. public function setNotifyUrl($notifyUrl)
  231. {
  232. $this->notifyUrl=$notifyUrl;
  233. }
  234. public function getNotifyUrl()
  235. {
  236. return $this->notifyUrl;
  237. }
  238. public function setReturnUrl($returnUrl)
  239. {
  240. $this->returnUrl=$returnUrl;
  241. }
  242. public function getReturnUrl()
  243. {
  244. return $this->returnUrl;
  245. }
  246. public function getApiParas()
  247. {
  248. return $this->apiParas;
  249. }
  250. public function getTerminalType()
  251. {
  252. return $this->terminalType;
  253. }
  254. public function setTerminalType($terminalType)
  255. {
  256. $this->terminalType = $terminalType;
  257. }
  258. public function getTerminalInfo()
  259. {
  260. return $this->terminalInfo;
  261. }
  262. public function setTerminalInfo($terminalInfo)
  263. {
  264. $this->terminalInfo = $terminalInfo;
  265. }
  266. public function getProdCode()
  267. {
  268. return $this->prodCode;
  269. }
  270. public function setProdCode($prodCode)
  271. {
  272. $this->prodCode = $prodCode;
  273. }
  274. public function setApiVersion($apiVersion)
  275. {
  276. $this->apiVersion=$apiVersion;
  277. }
  278. public function getApiVersion()
  279. {
  280. return $this->apiVersion;
  281. }
  282. public function setNeedEncrypt($needEncrypt)
  283. {
  284. $this->needEncrypt=$needEncrypt;
  285. }
  286. public function getNeedEncrypt()
  287. {
  288. return $this->needEncrypt;
  289. }
  290. }