AlibabaAlihealthDrugtraceTopYljgUploadinoutbillRequest.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.drugtrace.top.yljg.uploadinoutbill request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.10.27
  7. */
  8. class AlibabaAlihealthDrugtraceTopYljgUploadinoutbillRequest
  9. {
  10. /**
  11. * 代理企业REF标识
  12. **/
  13. private $agentRefUserId;
  14. /**
  15. * (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】
  16. **/
  17. private $assEntId;
  18. /**
  19. * (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】
  20. **/
  21. private $assRefEntId;
  22. /**
  23. * 单据编号(唯一)
  24. **/
  25. private $billCode;
  26. /**
  27. * 单据时间(一般为药品入出库时间)
  28. **/
  29. private $billTime;
  30. /**
  31. * 单据类型:102代表采购入库、202代表退货出库、205代表销毁出库
  32. **/
  33. private $billType;
  34. /**
  35. * 已废弃,无需填写
  36. **/
  37. private $cancelReasonCode;
  38. /**
  39. * 已废弃,无需填写
  40. **/
  41. private $cancelReasonDes;
  42. /**
  43. * 客户端类型[必须填2]
  44. **/
  45. private $clientType;
  46. /**
  47. * 直调企业标识
  48. **/
  49. private $destUserId;
  50. /**
  51. * (协同平台数据合规)药品配送企业entId【添写ent_id】
  52. **/
  53. private $disEntId;
  54. /**
  55. * (协同平台数据合规)药品配送企业【添写ref_ent_id】
  56. **/
  57. private $disRefEntId;
  58. /**
  59. * 药品ID[企业自已系统的药品ID]
  60. **/
  61. private $drugId;
  62. /**
  63. * (协同平台数据合规)药品列表Json[可不填写]
  64. **/
  65. private $drugListJson;
  66. /**
  67. * 已废弃,无需填写
  68. **/
  69. private $executerCode;
  70. /**
  71. * 已废弃,无需填写
  72. **/
  73. private $executerName;
  74. /**
  75. * (协同平台数据合规)发货地址(可为空)
  76. **/
  77. private $fromAddress;
  78. /**
  79. * (协同平台数据合规)发货单编号(可为空)
  80. **/
  81. private $fromBillCode;
  82. /**
  83. * (协同平台数据合规)发货人(可为空)
  84. **/
  85. private $fromPerson;
  86. /**
  87. * 发货企业ent_id,可通过“通过企业名得到唯一标识”接口获取;(102采购入库填药品供应商id、202退货出库填医院id、205销毁出库填医院id)
  88. **/
  89. private $fromUserId;
  90. /**
  91. * 码解析策略,1代表整单解析成功(任一码解析失败,上传时整单返回错误),传其他值或者不传代表部分解析成功(跳过无法解析的码,其余正常处理并上传)
  92. **/
  93. private $ignorePartSuccessFlag;
  94. /**
  95. * 单据提交者(appkey编号、可为空)
  96. **/
  97. private $operIcCode;
  98. /**
  99. * 单据提交者姓名(可为空)
  100. **/
  101. private $operIcName;
  102. /**
  103. * (协同平台数据合规)订货单编号(可为空)
  104. **/
  105. private $orderCode;
  106. /**
  107. * 药品类型[2,特药,3,普药]【可以随便填写,单据上传后会以实际为准】
  108. **/
  109. private $physicType;
  110. /**
  111. * (协同平台数据合规)应收货总数量(可为空)
  112. **/
  113. private $quReceivable;
  114. /**
  115. * 上传单据的医疗机构在码上放心平台的ref_ent_id,可通过“通过企业名得到唯一标识”接口获取
  116. **/
  117. private $refUserId;
  118. /**
  119. * 已废弃,无需填写
  120. **/
  121. private $returnReasonCode;
  122. /**
  123. * 已废弃,无需填写
  124. **/
  125. private $returnReasonDes;
  126. /**
  127. * 已废弃,无需填写
  128. **/
  129. private $superviserCode;
  130. /**
  131. * 已废弃,无需填写
  132. **/
  133. private $superviserName;
  134. /**
  135. * (协同平台数据合规)收货地址(可为空)
  136. **/
  137. private $toAddress;
  138. /**
  139. * (协同平台数据合规)收货人(可为空)
  140. **/
  141. private $toPerson;
  142. /**
  143. * 收货企业ent_id,可通过“通过企业名得到唯一标识”接口获取;(102采购入库填医院id、202退货出库填药品供应商id、205销毁出库填医院id)
  144. **/
  145. private $toUserId;
  146. /**
  147. * 追溯码【多个码时用逗号拼接的字符串。要求数量在3500个码以下,但一般不要传这么多,如果网络不好很容易传输一半报错】注意:在同一张单据里,不能有重复的码;在同一张单据中不能同时上传有关联关系的大、小码
  148. **/
  149. private $traceCodes;
  150. /**
  151. * 仓号
  152. **/
  153. private $warehouseId;
  154. /**
  155. * (协同平台数据合规)未验证通过原因【验证未通过时填写】
  156. **/
  157. private $xtCheckCode;
  158. /**
  159. * (协同平台数据合规)未验证通过原因描述【验证未通过时填写】
  160. **/
  161. private $xtCheckCodeDesc;
  162. /**
  163. * (协同平台数据合规)是否验证,0:未通过验证,1:已验证
  164. **/
  165. private $xtIsCheck;
  166. private $apiParas = array();
  167. public function setAgentRefUserId($agentRefUserId)
  168. {
  169. $this->agentRefUserId = $agentRefUserId;
  170. $this->apiParas["agent_ref_user_id"] = $agentRefUserId;
  171. }
  172. public function getAgentRefUserId()
  173. {
  174. return $this->agentRefUserId;
  175. }
  176. public function setAssEntId($assEntId)
  177. {
  178. $this->assEntId = $assEntId;
  179. $this->apiParas["ass_ent_id"] = $assEntId;
  180. }
  181. public function getAssEntId()
  182. {
  183. return $this->assEntId;
  184. }
  185. public function setAssRefEntId($assRefEntId)
  186. {
  187. $this->assRefEntId = $assRefEntId;
  188. $this->apiParas["ass_ref_ent_id"] = $assRefEntId;
  189. }
  190. public function getAssRefEntId()
  191. {
  192. return $this->assRefEntId;
  193. }
  194. public function setBillCode($billCode)
  195. {
  196. $this->billCode = $billCode;
  197. $this->apiParas["bill_code"] = $billCode;
  198. }
  199. public function getBillCode()
  200. {
  201. return $this->billCode;
  202. }
  203. public function setBillTime($billTime)
  204. {
  205. $this->billTime = $billTime;
  206. $this->apiParas["bill_time"] = $billTime;
  207. }
  208. public function getBillTime()
  209. {
  210. return $this->billTime;
  211. }
  212. public function setBillType($billType)
  213. {
  214. $this->billType = $billType;
  215. $this->apiParas["bill_type"] = $billType;
  216. }
  217. public function getBillType()
  218. {
  219. return $this->billType;
  220. }
  221. public function setCancelReasonCode($cancelReasonCode)
  222. {
  223. $this->cancelReasonCode = $cancelReasonCode;
  224. $this->apiParas["cancel_reason_code"] = $cancelReasonCode;
  225. }
  226. public function getCancelReasonCode()
  227. {
  228. return $this->cancelReasonCode;
  229. }
  230. public function setCancelReasonDes($cancelReasonDes)
  231. {
  232. $this->cancelReasonDes = $cancelReasonDes;
  233. $this->apiParas["cancel_reason_des"] = $cancelReasonDes;
  234. }
  235. public function getCancelReasonDes()
  236. {
  237. return $this->cancelReasonDes;
  238. }
  239. public function setClientType($clientType)
  240. {
  241. $this->clientType = $clientType;
  242. $this->apiParas["client_type"] = $clientType;
  243. }
  244. public function getClientType()
  245. {
  246. return $this->clientType;
  247. }
  248. public function setDestUserId($destUserId)
  249. {
  250. $this->destUserId = $destUserId;
  251. $this->apiParas["dest_user_id"] = $destUserId;
  252. }
  253. public function getDestUserId()
  254. {
  255. return $this->destUserId;
  256. }
  257. public function setDisEntId($disEntId)
  258. {
  259. $this->disEntId = $disEntId;
  260. $this->apiParas["dis_ent_id"] = $disEntId;
  261. }
  262. public function getDisEntId()
  263. {
  264. return $this->disEntId;
  265. }
  266. public function setDisRefEntId($disRefEntId)
  267. {
  268. $this->disRefEntId = $disRefEntId;
  269. $this->apiParas["dis_ref_ent_id"] = $disRefEntId;
  270. }
  271. public function getDisRefEntId()
  272. {
  273. return $this->disRefEntId;
  274. }
  275. public function setDrugId($drugId)
  276. {
  277. $this->drugId = $drugId;
  278. $this->apiParas["drug_id"] = $drugId;
  279. }
  280. public function getDrugId()
  281. {
  282. return $this->drugId;
  283. }
  284. public function setDrugListJson($drugListJson)
  285. {
  286. $this->drugListJson = $drugListJson;
  287. $this->apiParas["drug_list_json"] = $drugListJson;
  288. }
  289. public function getDrugListJson()
  290. {
  291. return $this->drugListJson;
  292. }
  293. public function setExecuterCode($executerCode)
  294. {
  295. $this->executerCode = $executerCode;
  296. $this->apiParas["executer_code"] = $executerCode;
  297. }
  298. public function getExecuterCode()
  299. {
  300. return $this->executerCode;
  301. }
  302. public function setExecuterName($executerName)
  303. {
  304. $this->executerName = $executerName;
  305. $this->apiParas["executer_name"] = $executerName;
  306. }
  307. public function getExecuterName()
  308. {
  309. return $this->executerName;
  310. }
  311. public function setFromAddress($fromAddress)
  312. {
  313. $this->fromAddress = $fromAddress;
  314. $this->apiParas["from_address"] = $fromAddress;
  315. }
  316. public function getFromAddress()
  317. {
  318. return $this->fromAddress;
  319. }
  320. public function setFromBillCode($fromBillCode)
  321. {
  322. $this->fromBillCode = $fromBillCode;
  323. $this->apiParas["from_bill_code"] = $fromBillCode;
  324. }
  325. public function getFromBillCode()
  326. {
  327. return $this->fromBillCode;
  328. }
  329. public function setFromPerson($fromPerson)
  330. {
  331. $this->fromPerson = $fromPerson;
  332. $this->apiParas["from_person"] = $fromPerson;
  333. }
  334. public function getFromPerson()
  335. {
  336. return $this->fromPerson;
  337. }
  338. public function setFromUserId($fromUserId)
  339. {
  340. $this->fromUserId = $fromUserId;
  341. $this->apiParas["from_user_id"] = $fromUserId;
  342. }
  343. public function getFromUserId()
  344. {
  345. return $this->fromUserId;
  346. }
  347. public function setIgnorePartSuccessFlag($ignorePartSuccessFlag)
  348. {
  349. $this->ignorePartSuccessFlag = $ignorePartSuccessFlag;
  350. $this->apiParas["ignore_part_success_flag"] = $ignorePartSuccessFlag;
  351. }
  352. public function getIgnorePartSuccessFlag()
  353. {
  354. return $this->ignorePartSuccessFlag;
  355. }
  356. public function setOperIcCode($operIcCode)
  357. {
  358. $this->operIcCode = $operIcCode;
  359. $this->apiParas["oper_ic_code"] = $operIcCode;
  360. }
  361. public function getOperIcCode()
  362. {
  363. return $this->operIcCode;
  364. }
  365. public function setOperIcName($operIcName)
  366. {
  367. $this->operIcName = $operIcName;
  368. $this->apiParas["oper_ic_name"] = $operIcName;
  369. }
  370. public function getOperIcName()
  371. {
  372. return $this->operIcName;
  373. }
  374. public function setOrderCode($orderCode)
  375. {
  376. $this->orderCode = $orderCode;
  377. $this->apiParas["order_code"] = $orderCode;
  378. }
  379. public function getOrderCode()
  380. {
  381. return $this->orderCode;
  382. }
  383. public function setPhysicType($physicType)
  384. {
  385. $this->physicType = $physicType;
  386. $this->apiParas["physic_type"] = $physicType;
  387. }
  388. public function getPhysicType()
  389. {
  390. return $this->physicType;
  391. }
  392. public function setQuReceivable($quReceivable)
  393. {
  394. $this->quReceivable = $quReceivable;
  395. $this->apiParas["qu_receivable"] = $quReceivable;
  396. }
  397. public function getQuReceivable()
  398. {
  399. return $this->quReceivable;
  400. }
  401. public function setRefUserId($refUserId)
  402. {
  403. $this->refUserId = $refUserId;
  404. $this->apiParas["ref_user_id"] = $refUserId;
  405. }
  406. public function getRefUserId()
  407. {
  408. return $this->refUserId;
  409. }
  410. public function setReturnReasonCode($returnReasonCode)
  411. {
  412. $this->returnReasonCode = $returnReasonCode;
  413. $this->apiParas["return_reason_code"] = $returnReasonCode;
  414. }
  415. public function getReturnReasonCode()
  416. {
  417. return $this->returnReasonCode;
  418. }
  419. public function setReturnReasonDes($returnReasonDes)
  420. {
  421. $this->returnReasonDes = $returnReasonDes;
  422. $this->apiParas["return_reason_des"] = $returnReasonDes;
  423. }
  424. public function getReturnReasonDes()
  425. {
  426. return $this->returnReasonDes;
  427. }
  428. public function setSuperviserCode($superviserCode)
  429. {
  430. $this->superviserCode = $superviserCode;
  431. $this->apiParas["superviser_code"] = $superviserCode;
  432. }
  433. public function getSuperviserCode()
  434. {
  435. return $this->superviserCode;
  436. }
  437. public function setSuperviserName($superviserName)
  438. {
  439. $this->superviserName = $superviserName;
  440. $this->apiParas["superviser_name"] = $superviserName;
  441. }
  442. public function getSuperviserName()
  443. {
  444. return $this->superviserName;
  445. }
  446. public function setToAddress($toAddress)
  447. {
  448. $this->toAddress = $toAddress;
  449. $this->apiParas["to_address"] = $toAddress;
  450. }
  451. public function getToAddress()
  452. {
  453. return $this->toAddress;
  454. }
  455. public function setToPerson($toPerson)
  456. {
  457. $this->toPerson = $toPerson;
  458. $this->apiParas["to_person"] = $toPerson;
  459. }
  460. public function getToPerson()
  461. {
  462. return $this->toPerson;
  463. }
  464. public function setToUserId($toUserId)
  465. {
  466. $this->toUserId = $toUserId;
  467. $this->apiParas["to_user_id"] = $toUserId;
  468. }
  469. public function getToUserId()
  470. {
  471. return $this->toUserId;
  472. }
  473. public function setTraceCodes($traceCodes)
  474. {
  475. $this->traceCodes = $traceCodes;
  476. $this->apiParas["trace_codes"] = $traceCodes;
  477. }
  478. public function getTraceCodes()
  479. {
  480. return $this->traceCodes;
  481. }
  482. public function setWarehouseId($warehouseId)
  483. {
  484. $this->warehouseId = $warehouseId;
  485. $this->apiParas["warehouse_id"] = $warehouseId;
  486. }
  487. public function getWarehouseId()
  488. {
  489. return $this->warehouseId;
  490. }
  491. public function setXtCheckCode($xtCheckCode)
  492. {
  493. $this->xtCheckCode = $xtCheckCode;
  494. $this->apiParas["xt_check_code"] = $xtCheckCode;
  495. }
  496. public function getXtCheckCode()
  497. {
  498. return $this->xtCheckCode;
  499. }
  500. public function setXtCheckCodeDesc($xtCheckCodeDesc)
  501. {
  502. $this->xtCheckCodeDesc = $xtCheckCodeDesc;
  503. $this->apiParas["xt_check_code_desc"] = $xtCheckCodeDesc;
  504. }
  505. public function getXtCheckCodeDesc()
  506. {
  507. return $this->xtCheckCodeDesc;
  508. }
  509. public function setXtIsCheck($xtIsCheck)
  510. {
  511. $this->xtIsCheck = $xtIsCheck;
  512. $this->apiParas["xt_is_check"] = $xtIsCheck;
  513. }
  514. public function getXtIsCheck()
  515. {
  516. return $this->xtIsCheck;
  517. }
  518. public function getApiMethodName()
  519. {
  520. return "alibaba.alihealth.drugtrace.top.yljg.uploadinoutbill";
  521. }
  522. public function getApiParas()
  523. {
  524. return $this->apiParas;
  525. }
  526. public function check()
  527. {
  528. RequestCheckUtil::checkNotNull($this->billCode,"billCode");
  529. RequestCheckUtil::checkNotNull($this->billTime,"billTime");
  530. RequestCheckUtil::checkNotNull($this->billType,"billType");
  531. RequestCheckUtil::checkNotNull($this->clientType,"clientType");
  532. RequestCheckUtil::checkNotNull($this->fromUserId,"fromUserId");
  533. RequestCheckUtil::checkNotNull($this->physicType,"physicType");
  534. RequestCheckUtil::checkNotNull($this->refUserId,"refUserId");
  535. RequestCheckUtil::checkNotNull($this->toUserId,"toUserId");
  536. RequestCheckUtil::checkNotNull($this->traceCodes,"traceCodes");
  537. RequestCheckUtil::checkMaxListSize($this->traceCodes,10000,"traceCodes");
  538. }
  539. public function putOtherTextParam($key, $value) {
  540. $this->apiParas[$key] = $value;
  541. $this->$key = $value;
  542. }
  543. }