AlipayOpenAgentOfflinepaymentSignRequest.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.agent.offlinepayment.sign request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-11-01 16:41:27
  7. */
  8. class AlipayOpenAgentOfflinepaymentSignRequest
  9. {
  10. /**
  11. * 代商户操作事务编号,通过alipay.open.agent.create接口进行创建。
  12. **/
  13. private $batchNo;
  14. /**
  15. * 营业执照号码。若填写,请与以下营业执照图片、期限、一起提供。
  16. **/
  17. private $businessLicenseNo;
  18. /**
  19. * 营业执照图片。被代创建商户运营主体为个人账户必填,企业账户无需填写,最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  20. **/
  21. private $businessLicensePic;
  22. /**
  23. * 营业期限
  24. **/
  25. private $dateLimitation;
  26. /**
  27. * 营业期限是否长期有效
  28. **/
  29. private $longTerm;
  30. /**
  31. * 所属MCCCode,可参考
  32. <a href="https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.59bgD2&treeId=222&articleId=105364&docType=1#s1">商家经营类目</a> 中的“经营类目编码”
  33. **/
  34. private $mccCode;
  35. /**
  36. * 服务费率(%),0.38~3之间,精确到0.01
  37. **/
  38. private $rate;
  39. /**
  40. * 店铺门头照图片,需要包括招牌信息。最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  41. **/
  42. private $shopSignBoardPic;
  43. /**
  44. * 企业特殊资质图片,可参考
  45. <a href="https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.59bgD2&treeId=222&articleId=105364&docType=1#s1">商家经营类目</a> 中的“需要的特殊资质证书”,最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  46. **/
  47. private $specialLicensePic;
  48. private $apiParas = array();
  49. private $terminalType;
  50. private $terminalInfo;
  51. private $prodCode;
  52. private $apiVersion="1.0";
  53. private $notifyUrl;
  54. private $returnUrl;
  55. private $needEncrypt=false;
  56. public function setBatchNo($batchNo)
  57. {
  58. $this->batchNo = $batchNo;
  59. $this->apiParas["batch_no"] = $batchNo;
  60. }
  61. public function getBatchNo()
  62. {
  63. return $this->batchNo;
  64. }
  65. public function setBusinessLicenseNo($businessLicenseNo)
  66. {
  67. $this->businessLicenseNo = $businessLicenseNo;
  68. $this->apiParas["business_license_no"] = $businessLicenseNo;
  69. }
  70. public function getBusinessLicenseNo()
  71. {
  72. return $this->businessLicenseNo;
  73. }
  74. public function setBusinessLicensePic($businessLicensePic)
  75. {
  76. $this->businessLicensePic = $businessLicensePic;
  77. $this->apiParas["business_license_pic"] = $businessLicensePic;
  78. }
  79. public function getBusinessLicensePic()
  80. {
  81. return $this->businessLicensePic;
  82. }
  83. public function setDateLimitation($dateLimitation)
  84. {
  85. $this->dateLimitation = $dateLimitation;
  86. $this->apiParas["date_limitation"] = $dateLimitation;
  87. }
  88. public function getDateLimitation()
  89. {
  90. return $this->dateLimitation;
  91. }
  92. public function setLongTerm($longTerm)
  93. {
  94. $this->longTerm = $longTerm;
  95. $this->apiParas["long_term"] = $longTerm;
  96. }
  97. public function getLongTerm()
  98. {
  99. return $this->longTerm;
  100. }
  101. public function setMccCode($mccCode)
  102. {
  103. $this->mccCode = $mccCode;
  104. $this->apiParas["mcc_code"] = $mccCode;
  105. }
  106. public function getMccCode()
  107. {
  108. return $this->mccCode;
  109. }
  110. public function setRate($rate)
  111. {
  112. $this->rate = $rate;
  113. $this->apiParas["rate"] = $rate;
  114. }
  115. public function getRate()
  116. {
  117. return $this->rate;
  118. }
  119. public function setShopSignBoardPic($shopSignBoardPic)
  120. {
  121. $this->shopSignBoardPic = $shopSignBoardPic;
  122. $this->apiParas["shop_sign_board_pic"] = $shopSignBoardPic;
  123. }
  124. public function getShopSignBoardPic()
  125. {
  126. return $this->shopSignBoardPic;
  127. }
  128. public function setSpecialLicensePic($specialLicensePic)
  129. {
  130. $this->specialLicensePic = $specialLicensePic;
  131. $this->apiParas["special_license_pic"] = $specialLicensePic;
  132. }
  133. public function getSpecialLicensePic()
  134. {
  135. return $this->specialLicensePic;
  136. }
  137. public function getApiMethodName()
  138. {
  139. return "alipay.open.agent.offlinepayment.sign";
  140. }
  141. public function setNotifyUrl($notifyUrl)
  142. {
  143. $this->notifyUrl=$notifyUrl;
  144. }
  145. public function getNotifyUrl()
  146. {
  147. return $this->notifyUrl;
  148. }
  149. public function setReturnUrl($returnUrl)
  150. {
  151. $this->returnUrl=$returnUrl;
  152. }
  153. public function getReturnUrl()
  154. {
  155. return $this->returnUrl;
  156. }
  157. public function getApiParas()
  158. {
  159. return $this->apiParas;
  160. }
  161. public function getTerminalType()
  162. {
  163. return $this->terminalType;
  164. }
  165. public function setTerminalType($terminalType)
  166. {
  167. $this->terminalType = $terminalType;
  168. }
  169. public function getTerminalInfo()
  170. {
  171. return $this->terminalInfo;
  172. }
  173. public function setTerminalInfo($terminalInfo)
  174. {
  175. $this->terminalInfo = $terminalInfo;
  176. }
  177. public function getProdCode()
  178. {
  179. return $this->prodCode;
  180. }
  181. public function setProdCode($prodCode)
  182. {
  183. $this->prodCode = $prodCode;
  184. }
  185. public function setApiVersion($apiVersion)
  186. {
  187. $this->apiVersion=$apiVersion;
  188. }
  189. public function getApiVersion()
  190. {
  191. return $this->apiVersion;
  192. }
  193. public function setNeedEncrypt($needEncrypt)
  194. {
  195. $this->needEncrypt=$needEncrypt;
  196. }
  197. public function getNeedEncrypt()
  198. {
  199. return $this->needEncrypt;
  200. }
  201. }