AlipayUserMemberBenefitsSendRequest.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.user.member.benefits.send request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayUserMemberBenefitsSendRequest
  9. {
  10. /**
  11. * 会员卡卡号
  12. **/
  13. private $bizCardNo;
  14. /**
  15. * 特权详情
  16. **/
  17. private $desc;
  18. /**
  19. * 失效日期。 格式:yyyy-mm-dd。
  20. **/
  21. private $endDate;
  22. /**
  23. * 优惠券发放张数
  24. **/
  25. private $sendNum;
  26. /**
  27. * 流水号。 用于控制权益发放的幂等性。
  28. **/
  29. private $serialNo;
  30. /**
  31. * 生效日期。 格式:yyyy-mm-d
  32. **/
  33. private $startDate;
  34. /**
  35. * 特权名称
  36. **/
  37. private $title;
  38. /**
  39. * 自定义核销码,如果为空则由支付宝自动生成
  40. **/
  41. private $verifyCode;
  42. /**
  43. * 核销方式,可多选。 支持:test-纯文本,barcode-条码,qucode-二维码,wave-...
  44. **/
  45. private $verifyTypes;
  46. private $apiParas = array();
  47. private $terminalType;
  48. private $terminalInfo;
  49. private $prodCode;
  50. private $apiVersion="1.0";
  51. private $notifyUrl;
  52. private $returnUrl;
  53. private $needEncrypt=false;
  54. public function setBizCardNo($bizCardNo)
  55. {
  56. $this->bizCardNo = $bizCardNo;
  57. $this->apiParas["biz_card_no"] = $bizCardNo;
  58. }
  59. public function getBizCardNo()
  60. {
  61. return $this->bizCardNo;
  62. }
  63. public function setDesc($desc)
  64. {
  65. $this->desc = $desc;
  66. $this->apiParas["desc"] = $desc;
  67. }
  68. public function getDesc()
  69. {
  70. return $this->desc;
  71. }
  72. public function setEndDate($endDate)
  73. {
  74. $this->endDate = $endDate;
  75. $this->apiParas["end_date"] = $endDate;
  76. }
  77. public function getEndDate()
  78. {
  79. return $this->endDate;
  80. }
  81. public function setSendNum($sendNum)
  82. {
  83. $this->sendNum = $sendNum;
  84. $this->apiParas["send_num"] = $sendNum;
  85. }
  86. public function getSendNum()
  87. {
  88. return $this->sendNum;
  89. }
  90. public function setSerialNo($serialNo)
  91. {
  92. $this->serialNo = $serialNo;
  93. $this->apiParas["serial_no"] = $serialNo;
  94. }
  95. public function getSerialNo()
  96. {
  97. return $this->serialNo;
  98. }
  99. public function setStartDate($startDate)
  100. {
  101. $this->startDate = $startDate;
  102. $this->apiParas["start_date"] = $startDate;
  103. }
  104. public function getStartDate()
  105. {
  106. return $this->startDate;
  107. }
  108. public function setTitle($title)
  109. {
  110. $this->title = $title;
  111. $this->apiParas["title"] = $title;
  112. }
  113. public function getTitle()
  114. {
  115. return $this->title;
  116. }
  117. public function setVerifyCode($verifyCode)
  118. {
  119. $this->verifyCode = $verifyCode;
  120. $this->apiParas["verify_code"] = $verifyCode;
  121. }
  122. public function getVerifyCode()
  123. {
  124. return $this->verifyCode;
  125. }
  126. public function setVerifyTypes($verifyTypes)
  127. {
  128. $this->verifyTypes = $verifyTypes;
  129. $this->apiParas["verify_types"] = $verifyTypes;
  130. }
  131. public function getVerifyTypes()
  132. {
  133. return $this->verifyTypes;
  134. }
  135. public function getApiMethodName()
  136. {
  137. return "alipay.user.member.benefits.send";
  138. }
  139. public function setNotifyUrl($notifyUrl)
  140. {
  141. $this->notifyUrl=$notifyUrl;
  142. }
  143. public function getNotifyUrl()
  144. {
  145. return $this->notifyUrl;
  146. }
  147. public function setReturnUrl($returnUrl)
  148. {
  149. $this->returnUrl=$returnUrl;
  150. }
  151. public function getReturnUrl()
  152. {
  153. return $this->returnUrl;
  154. }
  155. public function getApiParas()
  156. {
  157. return $this->apiParas;
  158. }
  159. public function getTerminalType()
  160. {
  161. return $this->terminalType;
  162. }
  163. public function setTerminalType($terminalType)
  164. {
  165. $this->terminalType = $terminalType;
  166. }
  167. public function getTerminalInfo()
  168. {
  169. return $this->terminalInfo;
  170. }
  171. public function setTerminalInfo($terminalInfo)
  172. {
  173. $this->terminalInfo = $terminalInfo;
  174. }
  175. public function getProdCode()
  176. {
  177. return $this->prodCode;
  178. }
  179. public function setProdCode($prodCode)
  180. {
  181. $this->prodCode = $prodCode;
  182. }
  183. public function setApiVersion($apiVersion)
  184. {
  185. $this->apiVersion=$apiVersion;
  186. }
  187. public function getApiVersion()
  188. {
  189. return $this->apiVersion;
  190. }
  191. public function setNeedEncrypt($needEncrypt)
  192. {
  193. $this->needEncrypt=$needEncrypt;
  194. }
  195. public function getNeedEncrypt()
  196. {
  197. return $this->needEncrypt;
  198. }
  199. }