ZhimaDataBatchFeedbackRequest.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?php
  2. /**
  3. * ALIPAY API: zhima.data.batch.feedback request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017-05-02 14:40:53
  7. */
  8. class ZhimaDataBatchFeedbackRequest
  9. {
  10. /**
  11. * 扩展参数
  12. **/
  13. private $bizExtParams;
  14. /**
  15. * 单条数据的数据列,多个列以逗号隔开
  16. **/
  17. private $columns;
  18. /**
  19. * 反馈的json格式文件,其中{"records": 是每个文件的固定开头,文件中的字段名请使用数据反馈模板(该模板是通过“获取数据反馈模板”接口获得)中字段编码列的英文字段来组装
  20. **/
  21. private $file;
  22. /**
  23. * 是反馈文件的数据编码,如果文件格式是UTF-8,则填写UTF-8,如果文件格式是GBK,则填写GBK
  24. **/
  25. private $fileCharset;
  26. /**
  27. * 文件描述信息
  28. **/
  29. private $fileDescription;
  30. /**
  31. * 反馈的数据类型
  32. **/
  33. private $fileType;
  34. /**
  35. * 主键列使用反馈字段进行组合,也可以使用反馈的某个单字段(确保主键稳定,而且可以很好的区分不同的数据)。例如order_no,pay_month或者order_no,bill_month组合,对于一个order_no只会有一条数据的情况,直接使用order_no作为主键列
  36. **/
  37. private $primaryKeyColumns;
  38. /**
  39. * 文件数据记录条数
  40. **/
  41. private $records;
  42. private $apiParas = array();
  43. private $terminalType;
  44. private $terminalInfo;
  45. private $prodCode;
  46. private $apiVersion="1.0";
  47. private $notifyUrl;
  48. private $returnUrl;
  49. private $needEncrypt=false;
  50. public function setBizExtParams($bizExtParams)
  51. {
  52. $this->bizExtParams = $bizExtParams;
  53. $this->apiParas["biz_ext_params"] = $bizExtParams;
  54. }
  55. public function getBizExtParams()
  56. {
  57. return $this->bizExtParams;
  58. }
  59. public function setColumns($columns)
  60. {
  61. $this->columns = $columns;
  62. $this->apiParas["columns"] = $columns;
  63. }
  64. public function getColumns()
  65. {
  66. return $this->columns;
  67. }
  68. public function setFile($file)
  69. {
  70. $this->file = $file;
  71. $this->apiParas["file"] = $file;
  72. }
  73. public function getFile()
  74. {
  75. return $this->file;
  76. }
  77. public function setFileCharset($fileCharset)
  78. {
  79. $this->fileCharset = $fileCharset;
  80. $this->apiParas["file_charset"] = $fileCharset;
  81. }
  82. public function getFileCharset()
  83. {
  84. return $this->fileCharset;
  85. }
  86. public function setFileDescription($fileDescription)
  87. {
  88. $this->fileDescription = $fileDescription;
  89. $this->apiParas["file_description"] = $fileDescription;
  90. }
  91. public function getFileDescription()
  92. {
  93. return $this->fileDescription;
  94. }
  95. public function setFileType($fileType)
  96. {
  97. $this->fileType = $fileType;
  98. $this->apiParas["file_type"] = $fileType;
  99. }
  100. public function getFileType()
  101. {
  102. return $this->fileType;
  103. }
  104. public function setPrimaryKeyColumns($primaryKeyColumns)
  105. {
  106. $this->primaryKeyColumns = $primaryKeyColumns;
  107. $this->apiParas["primary_key_columns"] = $primaryKeyColumns;
  108. }
  109. public function getPrimaryKeyColumns()
  110. {
  111. return $this->primaryKeyColumns;
  112. }
  113. public function setRecords($records)
  114. {
  115. $this->records = $records;
  116. $this->apiParas["records"] = $records;
  117. }
  118. public function getRecords()
  119. {
  120. return $this->records;
  121. }
  122. public function getApiMethodName()
  123. {
  124. return "zhima.data.batch.feedback";
  125. }
  126. public function setNotifyUrl($notifyUrl)
  127. {
  128. $this->notifyUrl=$notifyUrl;
  129. }
  130. public function getNotifyUrl()
  131. {
  132. return $this->notifyUrl;
  133. }
  134. public function setReturnUrl($returnUrl)
  135. {
  136. $this->returnUrl=$returnUrl;
  137. }
  138. public function getReturnUrl()
  139. {
  140. return $this->returnUrl;
  141. }
  142. public function getApiParas()
  143. {
  144. return $this->apiParas;
  145. }
  146. public function getTerminalType()
  147. {
  148. return $this->terminalType;
  149. }
  150. public function setTerminalType($terminalType)
  151. {
  152. $this->terminalType = $terminalType;
  153. }
  154. public function getTerminalInfo()
  155. {
  156. return $this->terminalInfo;
  157. }
  158. public function setTerminalInfo($terminalInfo)
  159. {
  160. $this->terminalInfo = $terminalInfo;
  161. }
  162. public function getProdCode()
  163. {
  164. return $this->prodCode;
  165. }
  166. public function setProdCode($prodCode)
  167. {
  168. $this->prodCode = $prodCode;
  169. }
  170. public function setApiVersion($apiVersion)
  171. {
  172. $this->apiVersion=$apiVersion;
  173. }
  174. public function getApiVersion()
  175. {
  176. return $this->apiVersion;
  177. }
  178. public function setNeedEncrypt($needEncrypt)
  179. {
  180. $this->needEncrypt=$needEncrypt;
  181. }
  182. public function getNeedEncrypt()
  183. {
  184. return $this->needEncrypt;
  185. }
  186. }