AlibabaAlihealthDrugMscUploadcircubillRequest.php 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.drug.msc.uploadcircubill request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.10.27
  7. */
  8. class AlibabaAlihealthDrugMscUploadcircubillRequest
  9. {
  10. /**
  11. * 单据委托企业entId
  12. **/
  13. private $assEntId;
  14. /**
  15. * 单据委托企业refEntId
  16. **/
  17. private $assRefEntId;
  18. /**
  19. * 单据编号(唯一)
  20. **/
  21. private $billCode;
  22. /**
  23. * 单据时间(一般为药品入出库时间)
  24. **/
  25. private $billTime;
  26. /**
  27. * 单据类型【102代表采购入库,201代表销售出库,其它单据类型详见文档】
  28. **/
  29. private $billType;
  30. /**
  31. * 请求端类型【暂定都写2】
  32. **/
  33. private $clientType;
  34. /**
  35. * 直调企业【注意:该入参是ent_id,并不是ref_ent_id】
  36. **/
  37. private $destUserId;
  38. /**
  39. * 药品配送企业entId【出库单填写】
  40. **/
  41. private $disEntId;
  42. /**
  43. * 药品配送企业refentid【出库单填写,与dis_ent_id入参选其一添加】
  44. **/
  45. private $disRefEntId;
  46. /**
  47. * 【可不填】药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期
  48. **/
  49. private $drugListJson;
  50. /**
  51. * 单据文件体【bas64字符串】,看对接文档中的代码示例,示例中有相应说明。
  52. **/
  53. private $fileContent;
  54. /**
  55. * 发货地址
  56. **/
  57. private $fromAddress;
  58. /**
  59. * 发货单编号
  60. **/
  61. private $fromBillCode;
  62. /**
  63. * 发货人(特药出单据必填)
  64. **/
  65. private $fromPerson;
  66. /**
  67. * 发货企业【注意:该入参是ent_id,并不是ref_ent_id】
  68. **/
  69. private $fromUserId;
  70. /**
  71. * 忽略校验项,1: 代表忽略码重复上传校验 0:代表需要进行码重复上传校验
  72. **/
  73. private $ignoreCheck;
  74. /**
  75. * 码解析策略,1代表整单解析成功(任一码解析失败,上传时整单返回错误),传其他值或者不传代表部分解析成功(跳过无法解析的码,其余正常处理并上传)
  76. **/
  77. private $ignorePartSuccessFlag;
  78. /**
  79. * 操作人标识(写appkey编号)
  80. **/
  81. private $operIcCode;
  82. /**
  83. * 单据提交者姓名
  84. **/
  85. private $operIcName;
  86. /**
  87. * 订货单编号
  88. **/
  89. private $orderCode;
  90. /**
  91. * 应收货总数量
  92. **/
  93. private $quReceivable;
  94. /**
  95. * 上传企业(单据的所有者,上传人)【注意:该入参是ref_ent_id,不是ent_id】,可通过“根据企业名称查询企业唯一标识”接口获取
  96. **/
  97. private $refUserId;
  98. /**
  99. * 收货地址
  100. **/
  101. private $toAddress;
  102. /**
  103. * 收货人(特药入单据必填)
  104. **/
  105. private $toPerson;
  106. /**
  107. * 收货企业【注意:该入参是ent_id,并不是ref_ent_id】
  108. **/
  109. private $toUserId;
  110. /**
  111. * 单据名称
  112. **/
  113. private $uploadFileName;
  114. /**
  115. * 是否验证,0:未通过验证,1:已验证
  116. **/
  117. private $xtCheckCode;
  118. /**
  119. * 未验证通过原因描述【验证未通过时填写】
  120. **/
  121. private $xtCheckCodeDesc;
  122. /**
  123. * 未验证通过原因【验证未通过时填写】
  124. **/
  125. private $xtIsCheck;
  126. private $apiParas = array();
  127. public function setAssEntId($assEntId)
  128. {
  129. $this->assEntId = $assEntId;
  130. $this->apiParas["ass_ent_id"] = $assEntId;
  131. }
  132. public function getAssEntId()
  133. {
  134. return $this->assEntId;
  135. }
  136. public function setAssRefEntId($assRefEntId)
  137. {
  138. $this->assRefEntId = $assRefEntId;
  139. $this->apiParas["ass_ref_ent_id"] = $assRefEntId;
  140. }
  141. public function getAssRefEntId()
  142. {
  143. return $this->assRefEntId;
  144. }
  145. public function setBillCode($billCode)
  146. {
  147. $this->billCode = $billCode;
  148. $this->apiParas["bill_code"] = $billCode;
  149. }
  150. public function getBillCode()
  151. {
  152. return $this->billCode;
  153. }
  154. public function setBillTime($billTime)
  155. {
  156. $this->billTime = $billTime;
  157. $this->apiParas["bill_time"] = $billTime;
  158. }
  159. public function getBillTime()
  160. {
  161. return $this->billTime;
  162. }
  163. public function setBillType($billType)
  164. {
  165. $this->billType = $billType;
  166. $this->apiParas["bill_type"] = $billType;
  167. }
  168. public function getBillType()
  169. {
  170. return $this->billType;
  171. }
  172. public function setClientType($clientType)
  173. {
  174. $this->clientType = $clientType;
  175. $this->apiParas["client_type"] = $clientType;
  176. }
  177. public function getClientType()
  178. {
  179. return $this->clientType;
  180. }
  181. public function setDestUserId($destUserId)
  182. {
  183. $this->destUserId = $destUserId;
  184. $this->apiParas["dest_user_id"] = $destUserId;
  185. }
  186. public function getDestUserId()
  187. {
  188. return $this->destUserId;
  189. }
  190. public function setDisEntId($disEntId)
  191. {
  192. $this->disEntId = $disEntId;
  193. $this->apiParas["dis_ent_id"] = $disEntId;
  194. }
  195. public function getDisEntId()
  196. {
  197. return $this->disEntId;
  198. }
  199. public function setDisRefEntId($disRefEntId)
  200. {
  201. $this->disRefEntId = $disRefEntId;
  202. $this->apiParas["dis_ref_ent_id"] = $disRefEntId;
  203. }
  204. public function getDisRefEntId()
  205. {
  206. return $this->disRefEntId;
  207. }
  208. public function setDrugListJson($drugListJson)
  209. {
  210. $this->drugListJson = $drugListJson;
  211. $this->apiParas["drug_list_json"] = $drugListJson;
  212. }
  213. public function getDrugListJson()
  214. {
  215. return $this->drugListJson;
  216. }
  217. public function setFileContent($fileContent)
  218. {
  219. $this->fileContent = $fileContent;
  220. $this->apiParas["file_content"] = $fileContent;
  221. }
  222. public function getFileContent()
  223. {
  224. return $this->fileContent;
  225. }
  226. public function setFromAddress($fromAddress)
  227. {
  228. $this->fromAddress = $fromAddress;
  229. $this->apiParas["from_address"] = $fromAddress;
  230. }
  231. public function getFromAddress()
  232. {
  233. return $this->fromAddress;
  234. }
  235. public function setFromBillCode($fromBillCode)
  236. {
  237. $this->fromBillCode = $fromBillCode;
  238. $this->apiParas["from_bill_code"] = $fromBillCode;
  239. }
  240. public function getFromBillCode()
  241. {
  242. return $this->fromBillCode;
  243. }
  244. public function setFromPerson($fromPerson)
  245. {
  246. $this->fromPerson = $fromPerson;
  247. $this->apiParas["from_person"] = $fromPerson;
  248. }
  249. public function getFromPerson()
  250. {
  251. return $this->fromPerson;
  252. }
  253. public function setFromUserId($fromUserId)
  254. {
  255. $this->fromUserId = $fromUserId;
  256. $this->apiParas["from_user_id"] = $fromUserId;
  257. }
  258. public function getFromUserId()
  259. {
  260. return $this->fromUserId;
  261. }
  262. public function setIgnoreCheck($ignoreCheck)
  263. {
  264. $this->ignoreCheck = $ignoreCheck;
  265. $this->apiParas["ignore_check"] = $ignoreCheck;
  266. }
  267. public function getIgnoreCheck()
  268. {
  269. return $this->ignoreCheck;
  270. }
  271. public function setIgnorePartSuccessFlag($ignorePartSuccessFlag)
  272. {
  273. $this->ignorePartSuccessFlag = $ignorePartSuccessFlag;
  274. $this->apiParas["ignore_part_success_flag"] = $ignorePartSuccessFlag;
  275. }
  276. public function getIgnorePartSuccessFlag()
  277. {
  278. return $this->ignorePartSuccessFlag;
  279. }
  280. public function setOperIcCode($operIcCode)
  281. {
  282. $this->operIcCode = $operIcCode;
  283. $this->apiParas["oper_ic_code"] = $operIcCode;
  284. }
  285. public function getOperIcCode()
  286. {
  287. return $this->operIcCode;
  288. }
  289. public function setOperIcName($operIcName)
  290. {
  291. $this->operIcName = $operIcName;
  292. $this->apiParas["oper_ic_name"] = $operIcName;
  293. }
  294. public function getOperIcName()
  295. {
  296. return $this->operIcName;
  297. }
  298. public function setOrderCode($orderCode)
  299. {
  300. $this->orderCode = $orderCode;
  301. $this->apiParas["order_code"] = $orderCode;
  302. }
  303. public function getOrderCode()
  304. {
  305. return $this->orderCode;
  306. }
  307. public function setQuReceivable($quReceivable)
  308. {
  309. $this->quReceivable = $quReceivable;
  310. $this->apiParas["qu_receivable"] = $quReceivable;
  311. }
  312. public function getQuReceivable()
  313. {
  314. return $this->quReceivable;
  315. }
  316. public function setRefUserId($refUserId)
  317. {
  318. $this->refUserId = $refUserId;
  319. $this->apiParas["ref_user_id"] = $refUserId;
  320. }
  321. public function getRefUserId()
  322. {
  323. return $this->refUserId;
  324. }
  325. public function setToAddress($toAddress)
  326. {
  327. $this->toAddress = $toAddress;
  328. $this->apiParas["to_address"] = $toAddress;
  329. }
  330. public function getToAddress()
  331. {
  332. return $this->toAddress;
  333. }
  334. public function setToPerson($toPerson)
  335. {
  336. $this->toPerson = $toPerson;
  337. $this->apiParas["to_person"] = $toPerson;
  338. }
  339. public function getToPerson()
  340. {
  341. return $this->toPerson;
  342. }
  343. public function setToUserId($toUserId)
  344. {
  345. $this->toUserId = $toUserId;
  346. $this->apiParas["to_user_id"] = $toUserId;
  347. }
  348. public function getToUserId()
  349. {
  350. return $this->toUserId;
  351. }
  352. public function setUploadFileName($uploadFileName)
  353. {
  354. $this->uploadFileName = $uploadFileName;
  355. $this->apiParas["upload_file_name"] = $uploadFileName;
  356. }
  357. public function getUploadFileName()
  358. {
  359. return $this->uploadFileName;
  360. }
  361. public function setXtCheckCode($xtCheckCode)
  362. {
  363. $this->xtCheckCode = $xtCheckCode;
  364. $this->apiParas["xt_check_code"] = $xtCheckCode;
  365. }
  366. public function getXtCheckCode()
  367. {
  368. return $this->xtCheckCode;
  369. }
  370. public function setXtCheckCodeDesc($xtCheckCodeDesc)
  371. {
  372. $this->xtCheckCodeDesc = $xtCheckCodeDesc;
  373. $this->apiParas["xt_check_code_desc"] = $xtCheckCodeDesc;
  374. }
  375. public function getXtCheckCodeDesc()
  376. {
  377. return $this->xtCheckCodeDesc;
  378. }
  379. public function setXtIsCheck($xtIsCheck)
  380. {
  381. $this->xtIsCheck = $xtIsCheck;
  382. $this->apiParas["xt_is_check"] = $xtIsCheck;
  383. }
  384. public function getXtIsCheck()
  385. {
  386. return $this->xtIsCheck;
  387. }
  388. public function getApiMethodName()
  389. {
  390. return "alibaba.alihealth.drug.msc.uploadcircubill";
  391. }
  392. public function getApiParas()
  393. {
  394. return $this->apiParas;
  395. }
  396. public function check()
  397. {
  398. RequestCheckUtil::checkNotNull($this->billCode,"billCode");
  399. RequestCheckUtil::checkNotNull($this->billTime,"billTime");
  400. RequestCheckUtil::checkNotNull($this->billType,"billType");
  401. RequestCheckUtil::checkNotNull($this->clientType,"clientType");
  402. RequestCheckUtil::checkNotNull($this->fileContent,"fileContent");
  403. RequestCheckUtil::checkNotNull($this->fromUserId,"fromUserId");
  404. RequestCheckUtil::checkNotNull($this->operIcCode,"operIcCode");
  405. RequestCheckUtil::checkNotNull($this->refUserId,"refUserId");
  406. RequestCheckUtil::checkNotNull($this->toUserId,"toUserId");
  407. RequestCheckUtil::checkNotNull($this->uploadFileName,"uploadFileName");
  408. }
  409. public function putOtherTextParam($key, $value) {
  410. $this->apiParas[$key] = $value;
  411. $this->$key = $value;
  412. }
  413. }