AlipayPassTplAddRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.tpl.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016-07-01 15:35:14
  7. */
  8. class AlipayPassTplAddRequest
  9. {
  10. /**
  11. * 支付宝pass模版内容【JSON格式】
  12. 具体格式可参考https://alipass.alipay.com中文档中心-格式说明
  13. **/
  14. private $tplContent;
  15. /**
  16. * 模版外部唯一标识:商户用于控制模版的唯一性。
  17. **/
  18. private $uniqueId;
  19. private $apiParas = array();
  20. private $terminalType;
  21. private $terminalInfo;
  22. private $prodCode;
  23. private $apiVersion="1.0";
  24. private $notifyUrl;
  25. private $returnUrl;
  26. private $needEncrypt=false;
  27. public function setTplContent($tplContent)
  28. {
  29. $this->tplContent = $tplContent;
  30. $this->apiParas["tpl_content"] = $tplContent;
  31. }
  32. public function getTplContent()
  33. {
  34. return $this->tplContent;
  35. }
  36. public function setUniqueId($uniqueId)
  37. {
  38. $this->uniqueId = $uniqueId;
  39. $this->apiParas["unique_id"] = $uniqueId;
  40. }
  41. public function getUniqueId()
  42. {
  43. return $this->uniqueId;
  44. }
  45. public function getApiMethodName()
  46. {
  47. return "alipay.pass.tpl.add";
  48. }
  49. public function setNotifyUrl($notifyUrl)
  50. {
  51. $this->notifyUrl=$notifyUrl;
  52. }
  53. public function getNotifyUrl()
  54. {
  55. return $this->notifyUrl;
  56. }
  57. public function setReturnUrl($returnUrl)
  58. {
  59. $this->returnUrl=$returnUrl;
  60. }
  61. public function getReturnUrl()
  62. {
  63. return $this->returnUrl;
  64. }
  65. public function getApiParas()
  66. {
  67. return $this->apiParas;
  68. }
  69. public function getTerminalType()
  70. {
  71. return $this->terminalType;
  72. }
  73. public function setTerminalType($terminalType)
  74. {
  75. $this->terminalType = $terminalType;
  76. }
  77. public function getTerminalInfo()
  78. {
  79. return $this->terminalInfo;
  80. }
  81. public function setTerminalInfo($terminalInfo)
  82. {
  83. $this->terminalInfo = $terminalInfo;
  84. }
  85. public function getProdCode()
  86. {
  87. return $this->prodCode;
  88. }
  89. public function setProdCode($prodCode)
  90. {
  91. $this->prodCode = $prodCode;
  92. }
  93. public function setApiVersion($apiVersion)
  94. {
  95. $this->apiVersion=$apiVersion;
  96. }
  97. public function getApiVersion()
  98. {
  99. return $this->apiVersion;
  100. }
  101. public function setNeedEncrypt($needEncrypt)
  102. {
  103. $this->needEncrypt=$needEncrypt;
  104. }
  105. public function getNeedEncrypt()
  106. {
  107. return $this->needEncrypt;
  108. }
  109. }