AlipayInsDataDsbImageUploadRequest.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ins.data.dsb.image.upload request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-01-07 20:51:15
  7. */
  8. class AlipayInsDataDsbImageUploadRequest
  9. {
  10. /**
  11. * 保险公司定损单号,唯一标识一个定损单的id
  12. **/
  13. private $estimateNo;
  14. /**
  15. * 车架号
  16. **/
  17. private $frameNo;
  18. /**
  19. * 图片二进制字节流,上传图片是文件提交方式的必须提供该字段。
  20. 提供可下载的图片url或图片存储拉取方式的保司可不传该字段
  21. **/
  22. private $imageContent;
  23. /**
  24. * 图像格式类型,目前仅支持jpg格式
  25. **/
  26. private $imageFormat;
  27. /**
  28. * 图像文件名称
  29. **/
  30. private $imageName;
  31. /**
  32. * 图像文件在存储上的路径,与蚂蚁接口负责人确定上传方式是图片url拉取、通过oss拉取等方式可行后传入该字段。
  33. 该字段与图片二进制流参数选传其一。
  34. **/
  35. private $imagePath;
  36. /**
  37. * 图片扩展属性信息json格式,如照片拍摄参数等
  38. **/
  39. private $imageProperties;
  40. /**
  41. * 图片来源描述,如weixin、app等
  42. **/
  43. private $imageSource;
  44. /**
  45. * 照片存储类型,枚举值如下
  46. OSS-阿里云oss存储
  47. SELF-自建类型
  48. **/
  49. private $imageStoreType;
  50. /**
  51. * 图片类型,比如:car_damage(车损图像)、certificate(证照图像)、material(资料图像)、other(其他图像)
  52. **/
  53. private $imageType;
  54. /**
  55. * 车牌号
  56. **/
  57. private $licenseNo;
  58. /**
  59. * 报案号,2017-10-12后接入的公司必传该字段
  60. **/
  61. private $reportNo;
  62. /**
  63. * 照片拍摄时间,精确到秒,格式yyyyMMddHHmmss
  64. **/
  65. private $shootTime;
  66. private $apiParas = array();
  67. private $terminalType;
  68. private $terminalInfo;
  69. private $prodCode;
  70. private $apiVersion="1.0";
  71. private $notifyUrl;
  72. private $returnUrl;
  73. private $needEncrypt=false;
  74. public function setEstimateNo($estimateNo)
  75. {
  76. $this->estimateNo = $estimateNo;
  77. $this->apiParas["estimate_no"] = $estimateNo;
  78. }
  79. public function getEstimateNo()
  80. {
  81. return $this->estimateNo;
  82. }
  83. public function setFrameNo($frameNo)
  84. {
  85. $this->frameNo = $frameNo;
  86. $this->apiParas["frame_no"] = $frameNo;
  87. }
  88. public function getFrameNo()
  89. {
  90. return $this->frameNo;
  91. }
  92. public function setImageContent($imageContent)
  93. {
  94. $this->imageContent = $imageContent;
  95. $this->apiParas["image_content"] = $imageContent;
  96. }
  97. public function getImageContent()
  98. {
  99. return $this->imageContent;
  100. }
  101. public function setImageFormat($imageFormat)
  102. {
  103. $this->imageFormat = $imageFormat;
  104. $this->apiParas["image_format"] = $imageFormat;
  105. }
  106. public function getImageFormat()
  107. {
  108. return $this->imageFormat;
  109. }
  110. public function setImageName($imageName)
  111. {
  112. $this->imageName = $imageName;
  113. $this->apiParas["image_name"] = $imageName;
  114. }
  115. public function getImageName()
  116. {
  117. return $this->imageName;
  118. }
  119. public function setImagePath($imagePath)
  120. {
  121. $this->imagePath = $imagePath;
  122. $this->apiParas["image_path"] = $imagePath;
  123. }
  124. public function getImagePath()
  125. {
  126. return $this->imagePath;
  127. }
  128. public function setImageProperties($imageProperties)
  129. {
  130. $this->imageProperties = $imageProperties;
  131. $this->apiParas["image_properties"] = $imageProperties;
  132. }
  133. public function getImageProperties()
  134. {
  135. return $this->imageProperties;
  136. }
  137. public function setImageSource($imageSource)
  138. {
  139. $this->imageSource = $imageSource;
  140. $this->apiParas["image_source"] = $imageSource;
  141. }
  142. public function getImageSource()
  143. {
  144. return $this->imageSource;
  145. }
  146. public function setImageStoreType($imageStoreType)
  147. {
  148. $this->imageStoreType = $imageStoreType;
  149. $this->apiParas["image_store_type"] = $imageStoreType;
  150. }
  151. public function getImageStoreType()
  152. {
  153. return $this->imageStoreType;
  154. }
  155. public function setImageType($imageType)
  156. {
  157. $this->imageType = $imageType;
  158. $this->apiParas["image_type"] = $imageType;
  159. }
  160. public function getImageType()
  161. {
  162. return $this->imageType;
  163. }
  164. public function setLicenseNo($licenseNo)
  165. {
  166. $this->licenseNo = $licenseNo;
  167. $this->apiParas["license_no"] = $licenseNo;
  168. }
  169. public function getLicenseNo()
  170. {
  171. return $this->licenseNo;
  172. }
  173. public function setReportNo($reportNo)
  174. {
  175. $this->reportNo = $reportNo;
  176. $this->apiParas["report_no"] = $reportNo;
  177. }
  178. public function getReportNo()
  179. {
  180. return $this->reportNo;
  181. }
  182. public function setShootTime($shootTime)
  183. {
  184. $this->shootTime = $shootTime;
  185. $this->apiParas["shoot_time"] = $shootTime;
  186. }
  187. public function getShootTime()
  188. {
  189. return $this->shootTime;
  190. }
  191. public function getApiMethodName()
  192. {
  193. return "alipay.ins.data.dsb.image.upload";
  194. }
  195. public function setNotifyUrl($notifyUrl)
  196. {
  197. $this->notifyUrl=$notifyUrl;
  198. }
  199. public function getNotifyUrl()
  200. {
  201. return $this->notifyUrl;
  202. }
  203. public function setReturnUrl($returnUrl)
  204. {
  205. $this->returnUrl=$returnUrl;
  206. }
  207. public function getReturnUrl()
  208. {
  209. return $this->returnUrl;
  210. }
  211. public function getApiParas()
  212. {
  213. return $this->apiParas;
  214. }
  215. public function getTerminalType()
  216. {
  217. return $this->terminalType;
  218. }
  219. public function setTerminalType($terminalType)
  220. {
  221. $this->terminalType = $terminalType;
  222. }
  223. public function getTerminalInfo()
  224. {
  225. return $this->terminalInfo;
  226. }
  227. public function setTerminalInfo($terminalInfo)
  228. {
  229. $this->terminalInfo = $terminalInfo;
  230. }
  231. public function getProdCode()
  232. {
  233. return $this->prodCode;
  234. }
  235. public function setProdCode($prodCode)
  236. {
  237. $this->prodCode = $prodCode;
  238. }
  239. public function setApiVersion($apiVersion)
  240. {
  241. $this->apiVersion=$apiVersion;
  242. }
  243. public function getApiVersion()
  244. {
  245. return $this->apiVersion;
  246. }
  247. public function setNeedEncrypt($needEncrypt)
  248. {
  249. $this->needEncrypt=$needEncrypt;
  250. }
  251. public function getNeedEncrypt()
  252. {
  253. return $this->needEncrypt;
  254. }
  255. }