AlipayMemberCardTemplateSaveRequest.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.member.card.template.save request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayMemberCardTemplateSaveRequest
  9. {
  10. /**
  11. * 支付宝会员卡模板Id
  12. **/
  13. private $alipayTemplateId;
  14. /**
  15. * 使用说明
  16. **/
  17. private $applyExplain;
  18. /**
  19. * 权益描述集合,json结构,单个权益描述可选Key如下:
  20. title:权益标题;
  21. benefitDesc:权益描述
  22. benefitRange:特权使用范围-- GLOBAL:通用特权; CITY:城市特权; SHOP:门店特权。
  23. city:城市码,当benefit_range为CITY时,该属性不能为空。
  24. shop:门店码,当benefitRange为SHOP时,该属性不能为空。
  25. **/
  26. private $benifitConfigList;
  27. /**
  28. * 发卡机构。
  29. ALIPAY:支付宝
  30. PARTNER:合作商户
  31. **/
  32. private $cardInst;
  33. /**
  34. * 卡商户信息,json格式。
  35. 目前仅支持如下key:
  36. merchantUniId:商户唯一标识
  37. merchantUniIdType:支持以下3种取值。
  38. LOGON_ID:商户登录ID,邮箱或者手机号格式;
  39. UID:商户的支付宝用户号,以2088开头的16位纯数字组成;
  40. BINDING_MOBILE:商户支付宝账号绑定的手机号。
  41. 注意:
  42. 本参数主要用于发卡平台接入场景,request_from为PLATFORM时,不能为空。
  43. **/
  44. private $cardMerchantInfo;
  45. /**
  46. * 会员卡名称
  47. **/
  48. private $cardName;
  49. /**
  50. * 卡类型。
  51. MEMBER_CARD:会员卡
  52. FUND_CARD:资金卡
  53. **/
  54. private $cardType;
  55. /**
  56. * 统一服务电话
  57. **/
  58. private $contactTel;
  59. /**
  60. * 卡显示配置,json结构,可选key如下:
  61. displayBalance:是否显示余额,布尔值,下同;
  62. displayLevel:是否展示等级;
  63. displayPoint:是否显示积分;
  64. displayStore:是否展示门店信息;
  65. displayTelephone:是否展示统一联系电话
  66. **/
  67. private $displayConfig;
  68. /**
  69. * 扩展信息,json格式。
  70. **/
  71. private $extInfo;
  72. /**
  73. * 资金卡发行面额配置集合,json结构,当card_type为FUND_CARD时,该配置不能为空,单个发行面额可选key如下:
  74. denomination:面额
  75. discount:折扣
  76. validDate:面额日期,格式为yyyy-MM-dd HH:mm:ss。
  77. **/
  78. private $issuedConfigList;
  79. /**
  80. * 商家简介
  81. **/
  82. private $merchantIntroduction;
  83. /**
  84. * 外部商户卡模板Id
  85. **/
  86. private $outTemplateId;
  87. /**
  88. * 请求来源。
  89. PLATFORM:发卡平台商
  90. PARTNER:直联商户
  91. **/
  92. private $requestFrom;
  93. /**
  94. * 模板状态,目前只支持发行状态。
  95. 发行:PUBLISH
  96. **/
  97. private $status;
  98. /**
  99. * 卡样式配置,json结构,可选Key如下:
  100. logoUrl:图片链接,图片为正方形,推荐大小92*92
  101. backgroundUrl:背景链接,图片为长方形,推荐大小534*318
  102. **/
  103. private $styleConfig;
  104. /**
  105. * 有效期类型
  106. Interval:固定时间段;
  107. DeadLine:截止时间
  108. **/
  109. private $validDateType;
  110. /**
  111. * 有效期值
  112. Interval:0-永久,比如1\12\24(月为单位);
  113. DeadLine:格式为yyyy-MM-dd HH:mm:ss
  114. **/
  115. private $validDateValue;
  116. /**
  117. * 核销方式。
  118. QRCODE:二维码
  119. DQRCODE:动态二维码
  120. WAVE:声波
  121. BARCORE:条码
  122. DBARCORE:动态条码
  123. TEXT:文本
  124. **/
  125. private $writeOffType;
  126. private $apiParas = array();
  127. private $terminalType;
  128. private $terminalInfo;
  129. private $prodCode;
  130. private $apiVersion="1.0";
  131. private $notifyUrl;
  132. private $returnUrl;
  133. private $needEncrypt=false;
  134. public function setAlipayTemplateId($alipayTemplateId)
  135. {
  136. $this->alipayTemplateId = $alipayTemplateId;
  137. $this->apiParas["alipay_template_id"] = $alipayTemplateId;
  138. }
  139. public function getAlipayTemplateId()
  140. {
  141. return $this->alipayTemplateId;
  142. }
  143. public function setApplyExplain($applyExplain)
  144. {
  145. $this->applyExplain = $applyExplain;
  146. $this->apiParas["apply_explain"] = $applyExplain;
  147. }
  148. public function getApplyExplain()
  149. {
  150. return $this->applyExplain;
  151. }
  152. public function setBenifitConfigList($benifitConfigList)
  153. {
  154. $this->benifitConfigList = $benifitConfigList;
  155. $this->apiParas["benifit_config_list"] = $benifitConfigList;
  156. }
  157. public function getBenifitConfigList()
  158. {
  159. return $this->benifitConfigList;
  160. }
  161. public function setCardInst($cardInst)
  162. {
  163. $this->cardInst = $cardInst;
  164. $this->apiParas["card_inst"] = $cardInst;
  165. }
  166. public function getCardInst()
  167. {
  168. return $this->cardInst;
  169. }
  170. public function setCardMerchantInfo($cardMerchantInfo)
  171. {
  172. $this->cardMerchantInfo = $cardMerchantInfo;
  173. $this->apiParas["card_merchant_info"] = $cardMerchantInfo;
  174. }
  175. public function getCardMerchantInfo()
  176. {
  177. return $this->cardMerchantInfo;
  178. }
  179. public function setCardName($cardName)
  180. {
  181. $this->cardName = $cardName;
  182. $this->apiParas["card_name"] = $cardName;
  183. }
  184. public function getCardName()
  185. {
  186. return $this->cardName;
  187. }
  188. public function setCardType($cardType)
  189. {
  190. $this->cardType = $cardType;
  191. $this->apiParas["card_type"] = $cardType;
  192. }
  193. public function getCardType()
  194. {
  195. return $this->cardType;
  196. }
  197. public function setContactTel($contactTel)
  198. {
  199. $this->contactTel = $contactTel;
  200. $this->apiParas["contact_tel"] = $contactTel;
  201. }
  202. public function getContactTel()
  203. {
  204. return $this->contactTel;
  205. }
  206. public function setDisplayConfig($displayConfig)
  207. {
  208. $this->displayConfig = $displayConfig;
  209. $this->apiParas["display_config"] = $displayConfig;
  210. }
  211. public function getDisplayConfig()
  212. {
  213. return $this->displayConfig;
  214. }
  215. public function setExtInfo($extInfo)
  216. {
  217. $this->extInfo = $extInfo;
  218. $this->apiParas["ext_info"] = $extInfo;
  219. }
  220. public function getExtInfo()
  221. {
  222. return $this->extInfo;
  223. }
  224. public function setIssuedConfigList($issuedConfigList)
  225. {
  226. $this->issuedConfigList = $issuedConfigList;
  227. $this->apiParas["issued_config_list"] = $issuedConfigList;
  228. }
  229. public function getIssuedConfigList()
  230. {
  231. return $this->issuedConfigList;
  232. }
  233. public function setMerchantIntroduction($merchantIntroduction)
  234. {
  235. $this->merchantIntroduction = $merchantIntroduction;
  236. $this->apiParas["merchant_introduction"] = $merchantIntroduction;
  237. }
  238. public function getMerchantIntroduction()
  239. {
  240. return $this->merchantIntroduction;
  241. }
  242. public function setOutTemplateId($outTemplateId)
  243. {
  244. $this->outTemplateId = $outTemplateId;
  245. $this->apiParas["out_template_id"] = $outTemplateId;
  246. }
  247. public function getOutTemplateId()
  248. {
  249. return $this->outTemplateId;
  250. }
  251. public function setRequestFrom($requestFrom)
  252. {
  253. $this->requestFrom = $requestFrom;
  254. $this->apiParas["request_from"] = $requestFrom;
  255. }
  256. public function getRequestFrom()
  257. {
  258. return $this->requestFrom;
  259. }
  260. public function setStatus($status)
  261. {
  262. $this->status = $status;
  263. $this->apiParas["status"] = $status;
  264. }
  265. public function getStatus()
  266. {
  267. return $this->status;
  268. }
  269. public function setStyleConfig($styleConfig)
  270. {
  271. $this->styleConfig = $styleConfig;
  272. $this->apiParas["style_config"] = $styleConfig;
  273. }
  274. public function getStyleConfig()
  275. {
  276. return $this->styleConfig;
  277. }
  278. public function setValidDateType($validDateType)
  279. {
  280. $this->validDateType = $validDateType;
  281. $this->apiParas["valid_date_type"] = $validDateType;
  282. }
  283. public function getValidDateType()
  284. {
  285. return $this->validDateType;
  286. }
  287. public function setValidDateValue($validDateValue)
  288. {
  289. $this->validDateValue = $validDateValue;
  290. $this->apiParas["valid_date_value"] = $validDateValue;
  291. }
  292. public function getValidDateValue()
  293. {
  294. return $this->validDateValue;
  295. }
  296. public function setWriteOffType($writeOffType)
  297. {
  298. $this->writeOffType = $writeOffType;
  299. $this->apiParas["write_off_type"] = $writeOffType;
  300. }
  301. public function getWriteOffType()
  302. {
  303. return $this->writeOffType;
  304. }
  305. public function getApiMethodName()
  306. {
  307. return "alipay.member.card.template.save";
  308. }
  309. public function setNotifyUrl($notifyUrl)
  310. {
  311. $this->notifyUrl=$notifyUrl;
  312. }
  313. public function getNotifyUrl()
  314. {
  315. return $this->notifyUrl;
  316. }
  317. public function setReturnUrl($returnUrl)
  318. {
  319. $this->returnUrl=$returnUrl;
  320. }
  321. public function getReturnUrl()
  322. {
  323. return $this->returnUrl;
  324. }
  325. public function getApiParas()
  326. {
  327. return $this->apiParas;
  328. }
  329. public function getTerminalType()
  330. {
  331. return $this->terminalType;
  332. }
  333. public function setTerminalType($terminalType)
  334. {
  335. $this->terminalType = $terminalType;
  336. }
  337. public function getTerminalInfo()
  338. {
  339. return $this->terminalInfo;
  340. }
  341. public function setTerminalInfo($terminalInfo)
  342. {
  343. $this->terminalInfo = $terminalInfo;
  344. }
  345. public function getProdCode()
  346. {
  347. return $this->prodCode;
  348. }
  349. public function setProdCode($prodCode)
  350. {
  351. $this->prodCode = $prodCode;
  352. }
  353. public function setApiVersion($apiVersion)
  354. {
  355. $this->apiVersion=$apiVersion;
  356. }
  357. public function getApiVersion()
  358. {
  359. return $this->apiVersion;
  360. }
  361. public function setNeedEncrypt($needEncrypt)
  362. {
  363. $this->needEncrypt=$needEncrypt;
  364. }
  365. public function getNeedEncrypt()
  366. {
  367. return $this->needEncrypt;
  368. }
  369. }