AlipayOpenAgentOfflinepaymentSignRequest.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.agent.offlinepayment.sign request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 09:47:01
  7. */
  8. class AlipayOpenAgentOfflinepaymentSignRequest
  9. {
  10. /**
  11. * 代商户操作事务编号,通过alipay.open.agent.create接口进行创建。
  12. **/
  13. private $batchNo;
  14. /**
  15. * 被邀请授权的营业执照法人手机号码,上传非同人营业执照时必填
  16. **/
  17. private $businessLicenseMobile;
  18. /**
  19. * 营业执照号码。若填写,请与以下营业执照图片、期限、一起提供。
  20. **/
  21. private $businessLicenseNo;
  22. /**
  23. * 营业执照图片。被代创建商户运营主体为个人账户必填,企业账户无需填写,最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  24. **/
  25. private $businessLicensePic;
  26. /**
  27. * 营业期限
  28. **/
  29. private $dateLimitation;
  30. /**
  31. * 送货地址
  32. **/
  33. private $deliveryAddress;
  34. /**
  35. * 营业期限是否长期有效
  36. **/
  37. private $longTerm;
  38. /**
  39. * 所属MCCCode,可参考
  40. <a href="https://opendocs.alipay.com/open/01n22g#%E5%95%86%E5%AE%B6%E7%BB%8F%E8%90%A5%E7%B1%BB%E7%9B%AE">商家经营类目</a> 中的“经营类目编码”
  41. **/
  42. private $mccCode;
  43. /**
  44. * 服务费率(%),0.38~3之间,精确到0.01
  45. **/
  46. private $rate;
  47. /**
  48. * 店铺地址
  49. **/
  50. private $shopAddress;
  51. /**
  52. * 店铺名称
  53. **/
  54. private $shopName;
  55. /**
  56. * 店铺内景照片,最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  57. **/
  58. private $shopScenePic;
  59. /**
  60. * 店铺门头照图片,需要包括招牌信息。最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  61. **/
  62. private $shopSignBoardPic;
  63. /**
  64. * 企业特殊资质图片,可参考
  65. <a href="https://opendocs.alipay.com/open/01n22g#%E5%95%86%E5%AE%B6%E7%BB%8F%E8%90%A5%E7%B1%BB%E7%9B%AE">商家经营类目</a> 中的“需要的特殊资质证书”,最小5KB,图片格式必须为:png、bmp、gif、jpg、jpeg
  66. **/
  67. private $specialLicensePic;
  68. private $apiParas = array();
  69. private $terminalType;
  70. private $terminalInfo;
  71. private $prodCode;
  72. private $apiVersion="1.0";
  73. private $notifyUrl;
  74. private $returnUrl;
  75. private $needEncrypt=false;
  76. public function setBatchNo($batchNo)
  77. {
  78. $this->batchNo = $batchNo;
  79. $this->apiParas["batch_no"] = $batchNo;
  80. }
  81. public function getBatchNo()
  82. {
  83. return $this->batchNo;
  84. }
  85. public function setBusinessLicenseMobile($businessLicenseMobile)
  86. {
  87. $this->businessLicenseMobile = $businessLicenseMobile;
  88. $this->apiParas["business_license_mobile"] = $businessLicenseMobile;
  89. }
  90. public function getBusinessLicenseMobile()
  91. {
  92. return $this->businessLicenseMobile;
  93. }
  94. public function setBusinessLicenseNo($businessLicenseNo)
  95. {
  96. $this->businessLicenseNo = $businessLicenseNo;
  97. $this->apiParas["business_license_no"] = $businessLicenseNo;
  98. }
  99. public function getBusinessLicenseNo()
  100. {
  101. return $this->businessLicenseNo;
  102. }
  103. public function setBusinessLicensePic($businessLicensePic)
  104. {
  105. $this->businessLicensePic = $businessLicensePic;
  106. $this->apiParas["business_license_pic"] = $businessLicensePic;
  107. }
  108. public function getBusinessLicensePic()
  109. {
  110. return $this->businessLicensePic;
  111. }
  112. public function setDateLimitation($dateLimitation)
  113. {
  114. $this->dateLimitation = $dateLimitation;
  115. $this->apiParas["date_limitation"] = $dateLimitation;
  116. }
  117. public function getDateLimitation()
  118. {
  119. return $this->dateLimitation;
  120. }
  121. public function setDeliveryAddress($deliveryAddress)
  122. {
  123. $this->deliveryAddress = $deliveryAddress;
  124. $this->apiParas["delivery_address"] = $deliveryAddress;
  125. }
  126. public function getDeliveryAddress()
  127. {
  128. return $this->deliveryAddress;
  129. }
  130. public function setLongTerm($longTerm)
  131. {
  132. $this->longTerm = $longTerm;
  133. $this->apiParas["long_term"] = $longTerm;
  134. }
  135. public function getLongTerm()
  136. {
  137. return $this->longTerm;
  138. }
  139. public function setMccCode($mccCode)
  140. {
  141. $this->mccCode = $mccCode;
  142. $this->apiParas["mcc_code"] = $mccCode;
  143. }
  144. public function getMccCode()
  145. {
  146. return $this->mccCode;
  147. }
  148. public function setRate($rate)
  149. {
  150. $this->rate = $rate;
  151. $this->apiParas["rate"] = $rate;
  152. }
  153. public function getRate()
  154. {
  155. return $this->rate;
  156. }
  157. public function setShopAddress($shopAddress)
  158. {
  159. $this->shopAddress = $shopAddress;
  160. $this->apiParas["shop_address"] = $shopAddress;
  161. }
  162. public function getShopAddress()
  163. {
  164. return $this->shopAddress;
  165. }
  166. public function setShopName($shopName)
  167. {
  168. $this->shopName = $shopName;
  169. $this->apiParas["shop_name"] = $shopName;
  170. }
  171. public function getShopName()
  172. {
  173. return $this->shopName;
  174. }
  175. public function setShopScenePic($shopScenePic)
  176. {
  177. $this->shopScenePic = $shopScenePic;
  178. $this->apiParas["shop_scene_pic"] = $shopScenePic;
  179. }
  180. public function getShopScenePic()
  181. {
  182. return $this->shopScenePic;
  183. }
  184. public function setShopSignBoardPic($shopSignBoardPic)
  185. {
  186. $this->shopSignBoardPic = $shopSignBoardPic;
  187. $this->apiParas["shop_sign_board_pic"] = $shopSignBoardPic;
  188. }
  189. public function getShopSignBoardPic()
  190. {
  191. return $this->shopSignBoardPic;
  192. }
  193. public function setSpecialLicensePic($specialLicensePic)
  194. {
  195. $this->specialLicensePic = $specialLicensePic;
  196. $this->apiParas["special_license_pic"] = $specialLicensePic;
  197. }
  198. public function getSpecialLicensePic()
  199. {
  200. return $this->specialLicensePic;
  201. }
  202. public function getApiMethodName()
  203. {
  204. return "alipay.open.agent.offlinepayment.sign";
  205. }
  206. public function setNotifyUrl($notifyUrl)
  207. {
  208. $this->notifyUrl=$notifyUrl;
  209. }
  210. public function getNotifyUrl()
  211. {
  212. return $this->notifyUrl;
  213. }
  214. public function setReturnUrl($returnUrl)
  215. {
  216. $this->returnUrl=$returnUrl;
  217. }
  218. public function getReturnUrl()
  219. {
  220. return $this->returnUrl;
  221. }
  222. public function getApiParas()
  223. {
  224. return $this->apiParas;
  225. }
  226. public function getTerminalType()
  227. {
  228. return $this->terminalType;
  229. }
  230. public function setTerminalType($terminalType)
  231. {
  232. $this->terminalType = $terminalType;
  233. }
  234. public function getTerminalInfo()
  235. {
  236. return $this->terminalInfo;
  237. }
  238. public function setTerminalInfo($terminalInfo)
  239. {
  240. $this->terminalInfo = $terminalInfo;
  241. }
  242. public function getProdCode()
  243. {
  244. return $this->prodCode;
  245. }
  246. public function setProdCode($prodCode)
  247. {
  248. $this->prodCode = $prodCode;
  249. }
  250. public function setApiVersion($apiVersion)
  251. {
  252. $this->apiVersion=$apiVersion;
  253. }
  254. public function getApiVersion()
  255. {
  256. return $this->apiVersion;
  257. }
  258. public function setNeedEncrypt($needEncrypt)
  259. {
  260. $this->needEncrypt=$needEncrypt;
  261. }
  262. public function getNeedEncrypt()
  263. {
  264. return $this->needEncrypt;
  265. }
  266. }