AlipayInsSceneClaimAttachmentUploadRequest.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ins.scene.claim.attachment.upload request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-01-07 20:51:15
  7. */
  8. class AlipayInsSceneClaimAttachmentUploadRequest
  9. {
  10. /**
  11. * 案件材料名称
  12. **/
  13. private $attachmentName;
  14. /**
  15. * 附件材料类型
  16. 现场照片:SCENE_PHOTO
  17. 身份证影印件: ID_COPY
  18. 发票: INVOICE
  19. 医疗凭证: MEDICAL_CERTIFICATE
  20. **/
  21. private $attachmentType;
  22. /**
  23. * 理赔申请报案号,通过理赔申请【alipay.ins.scene.claim.apply】接口的返回字段claim_report_no获取
  24. **/
  25. private $claimReportNo;
  26. /**
  27. * 报案材料描述
  28. **/
  29. private $description;
  30. /**
  31. * 报案材料内容
  32. **/
  33. private $fileContent;
  34. /**
  35. * 案件材料文件类型
  36. 例如一下值
  37. .jpg .png .csv .docx
  38. **/
  39. private $fileType;
  40. private $apiParas = array();
  41. private $terminalType;
  42. private $terminalInfo;
  43. private $prodCode;
  44. private $apiVersion="1.0";
  45. private $notifyUrl;
  46. private $returnUrl;
  47. private $needEncrypt=false;
  48. public function setAttachmentName($attachmentName)
  49. {
  50. $this->attachmentName = $attachmentName;
  51. $this->apiParas["attachment_name"] = $attachmentName;
  52. }
  53. public function getAttachmentName()
  54. {
  55. return $this->attachmentName;
  56. }
  57. public function setAttachmentType($attachmentType)
  58. {
  59. $this->attachmentType = $attachmentType;
  60. $this->apiParas["attachment_type"] = $attachmentType;
  61. }
  62. public function getAttachmentType()
  63. {
  64. return $this->attachmentType;
  65. }
  66. public function setClaimReportNo($claimReportNo)
  67. {
  68. $this->claimReportNo = $claimReportNo;
  69. $this->apiParas["claim_report_no"] = $claimReportNo;
  70. }
  71. public function getClaimReportNo()
  72. {
  73. return $this->claimReportNo;
  74. }
  75. public function setDescription($description)
  76. {
  77. $this->description = $description;
  78. $this->apiParas["description"] = $description;
  79. }
  80. public function getDescription()
  81. {
  82. return $this->description;
  83. }
  84. public function setFileContent($fileContent)
  85. {
  86. $this->fileContent = $fileContent;
  87. $this->apiParas["file_content"] = $fileContent;
  88. }
  89. public function getFileContent()
  90. {
  91. return $this->fileContent;
  92. }
  93. public function setFileType($fileType)
  94. {
  95. $this->fileType = $fileType;
  96. $this->apiParas["file_type"] = $fileType;
  97. }
  98. public function getFileType()
  99. {
  100. return $this->fileType;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "alipay.ins.scene.claim.attachment.upload";
  105. }
  106. public function setNotifyUrl($notifyUrl)
  107. {
  108. $this->notifyUrl=$notifyUrl;
  109. }
  110. public function getNotifyUrl()
  111. {
  112. return $this->notifyUrl;
  113. }
  114. public function setReturnUrl($returnUrl)
  115. {
  116. $this->returnUrl=$returnUrl;
  117. }
  118. public function getReturnUrl()
  119. {
  120. return $this->returnUrl;
  121. }
  122. public function getApiParas()
  123. {
  124. return $this->apiParas;
  125. }
  126. public function getTerminalType()
  127. {
  128. return $this->terminalType;
  129. }
  130. public function setTerminalType($terminalType)
  131. {
  132. $this->terminalType = $terminalType;
  133. }
  134. public function getTerminalInfo()
  135. {
  136. return $this->terminalInfo;
  137. }
  138. public function setTerminalInfo($terminalInfo)
  139. {
  140. $this->terminalInfo = $terminalInfo;
  141. }
  142. public function getProdCode()
  143. {
  144. return $this->prodCode;
  145. }
  146. public function setProdCode($prodCode)
  147. {
  148. $this->prodCode = $prodCode;
  149. }
  150. public function setApiVersion($apiVersion)
  151. {
  152. $this->apiVersion=$apiVersion;
  153. }
  154. public function getApiVersion()
  155. {
  156. return $this->apiVersion;
  157. }
  158. public function setNeedEncrypt($needEncrypt)
  159. {
  160. $this->needEncrypt=$needEncrypt;
  161. }
  162. public function getNeedEncrypt()
  163. {
  164. return $this->needEncrypt;
  165. }
  166. }