AlibabaAlihealthDrugMscRemnantbillUploadRequest.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.drug.msc.remnantbill.upload request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2024.12.30
  7. */
  8. class AlibabaAlihealthDrugMscRemnantbillUploadRequest
  9. {
  10. /**
  11. * 委托企业【注意:该入参是ref_ent_id,并不是ent_id】
  12. **/
  13. private $assRefEntId;
  14. /**
  15. * 单据编号
  16. **/
  17. private $billCode;
  18. /**
  19. * 单据时间:yyyy-MM-dd HH:mm:ss
  20. **/
  21. private $billTime;
  22. /**
  23. * 零头入库:106;零头出库:210
  24. **/
  25. private $billType;
  26. /**
  27. * 配送企业【注意:该入参是ref_ent_id,并不是ent_id】
  28. **/
  29. private $disRefEntId;
  30. /**
  31. * 药品ID
  32. **/
  33. private $drugEntBaseInfoId;
  34. /**
  35. * 有效期:yyyyMMdd
  36. **/
  37. private $expireDate;
  38. /**
  39. * 发货企业【注意:该入参是ref_ent_id,并不是ent_id】
  40. **/
  41. private $fromRefUserId;
  42. /**
  43. * 药品数量
  44. **/
  45. private $inputAmount;
  46. /**
  47. * 生产批次
  48. **/
  49. private $produceBatchNo;
  50. /**
  51. * 生产日期:yyyy-MM-dd
  52. **/
  53. private $produceDate;
  54. /**
  55. * 企业ref_ent_id
  56. **/
  57. private $refEntId;
  58. /**
  59. * 收货企业【注意:该入参是ref_ent_id,并不是ent_id】
  60. **/
  61. private $toRefUserId;
  62. private $apiParas = array();
  63. public function setAssRefEntId($assRefEntId)
  64. {
  65. $this->assRefEntId = $assRefEntId;
  66. $this->apiParas["ass_ref_ent_id"] = $assRefEntId;
  67. }
  68. public function getAssRefEntId()
  69. {
  70. return $this->assRefEntId;
  71. }
  72. public function setBillCode($billCode)
  73. {
  74. $this->billCode = $billCode;
  75. $this->apiParas["bill_code"] = $billCode;
  76. }
  77. public function getBillCode()
  78. {
  79. return $this->billCode;
  80. }
  81. public function setBillTime($billTime)
  82. {
  83. $this->billTime = $billTime;
  84. $this->apiParas["bill_time"] = $billTime;
  85. }
  86. public function getBillTime()
  87. {
  88. return $this->billTime;
  89. }
  90. public function setBillType($billType)
  91. {
  92. $this->billType = $billType;
  93. $this->apiParas["bill_type"] = $billType;
  94. }
  95. public function getBillType()
  96. {
  97. return $this->billType;
  98. }
  99. public function setDisRefEntId($disRefEntId)
  100. {
  101. $this->disRefEntId = $disRefEntId;
  102. $this->apiParas["dis_ref_ent_id"] = $disRefEntId;
  103. }
  104. public function getDisRefEntId()
  105. {
  106. return $this->disRefEntId;
  107. }
  108. public function setDrugEntBaseInfoId($drugEntBaseInfoId)
  109. {
  110. $this->drugEntBaseInfoId = $drugEntBaseInfoId;
  111. $this->apiParas["drug_ent_base_info_id"] = $drugEntBaseInfoId;
  112. }
  113. public function getDrugEntBaseInfoId()
  114. {
  115. return $this->drugEntBaseInfoId;
  116. }
  117. public function setExpireDate($expireDate)
  118. {
  119. $this->expireDate = $expireDate;
  120. $this->apiParas["expire_date"] = $expireDate;
  121. }
  122. public function getExpireDate()
  123. {
  124. return $this->expireDate;
  125. }
  126. public function setFromRefUserId($fromRefUserId)
  127. {
  128. $this->fromRefUserId = $fromRefUserId;
  129. $this->apiParas["from_ref_user_id"] = $fromRefUserId;
  130. }
  131. public function getFromRefUserId()
  132. {
  133. return $this->fromRefUserId;
  134. }
  135. public function setInputAmount($inputAmount)
  136. {
  137. $this->inputAmount = $inputAmount;
  138. $this->apiParas["input_amount"] = $inputAmount;
  139. }
  140. public function getInputAmount()
  141. {
  142. return $this->inputAmount;
  143. }
  144. public function setProduceBatchNo($produceBatchNo)
  145. {
  146. $this->produceBatchNo = $produceBatchNo;
  147. $this->apiParas["produce_batch_no"] = $produceBatchNo;
  148. }
  149. public function getProduceBatchNo()
  150. {
  151. return $this->produceBatchNo;
  152. }
  153. public function setProduceDate($produceDate)
  154. {
  155. $this->produceDate = $produceDate;
  156. $this->apiParas["produce_date"] = $produceDate;
  157. }
  158. public function getProduceDate()
  159. {
  160. return $this->produceDate;
  161. }
  162. public function setRefEntId($refEntId)
  163. {
  164. $this->refEntId = $refEntId;
  165. $this->apiParas["ref_ent_id"] = $refEntId;
  166. }
  167. public function getRefEntId()
  168. {
  169. return $this->refEntId;
  170. }
  171. public function setToRefUserId($toRefUserId)
  172. {
  173. $this->toRefUserId = $toRefUserId;
  174. $this->apiParas["to_ref_user_id"] = $toRefUserId;
  175. }
  176. public function getToRefUserId()
  177. {
  178. return $this->toRefUserId;
  179. }
  180. public function getApiMethodName()
  181. {
  182. return "alibaba.alihealth.drug.msc.remnantbill.upload";
  183. }
  184. public function getApiParas()
  185. {
  186. return $this->apiParas;
  187. }
  188. public function check()
  189. {
  190. RequestCheckUtil::checkNotNull($this->billCode,"billCode");
  191. RequestCheckUtil::checkNotNull($this->billTime,"billTime");
  192. RequestCheckUtil::checkNotNull($this->billType,"billType");
  193. RequestCheckUtil::checkNotNull($this->drugEntBaseInfoId,"drugEntBaseInfoId");
  194. RequestCheckUtil::checkNotNull($this->expireDate,"expireDate");
  195. RequestCheckUtil::checkNotNull($this->fromRefUserId,"fromRefUserId");
  196. RequestCheckUtil::checkNotNull($this->inputAmount,"inputAmount");
  197. RequestCheckUtil::checkNotNull($this->produceBatchNo,"produceBatchNo");
  198. RequestCheckUtil::checkNotNull($this->produceDate,"produceDate");
  199. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  200. RequestCheckUtil::checkNotNull($this->toRefUserId,"toRefUserId");
  201. }
  202. public function putOtherTextParam($key, $value) {
  203. $this->apiParas[$key] = $value;
  204. $this->$key = $value;
  205. }
  206. }