AlibabaAlihealthSynergyYzwDrugreportOptByagentRequest.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.synergy.yzw.drugreport.opt.byagent request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.10.22
  7. */
  8. class AlibabaAlihealthSynergyYzwDrugreportOptByagentRequest
  9. {
  10. /**
  11. * 授权单位企业id
  12. **/
  13. private $assRefEntId;
  14. /**
  15. * 授权单位的章信息
  16. **/
  17. private $assSealInfo;
  18. /**
  19. * 单据id
  20. **/
  21. private $billId;
  22. /**
  23. * 单据类型
  24. **/
  25. private $billType;
  26. /**
  27. * 单据明细id
  28. **/
  29. private $detailBillId;
  30. /**
  31. * 拒绝原因(当操作类型为拒收(rejectReceive)需要该字段)
  32. **/
  33. private $operNote;
  34. /**
  35. * 操作类型:签收(onlySign),拒收(rejectReceive),签收并盖章(signAndSeal),盖章签收后的报告(sealAfterSign)
  36. **/
  37. private $operType;
  38. /**
  39. * 代理操作企业refEntId(调用企业refEntId)
  40. **/
  41. private $refEntId;
  42. /**
  43. * onlySelf(仅盖自己的章),onlyAuthorized(仅盖授权单位的章),both(自己和授权单位的章);当操作为签收并盖章(signAndSeal),盖章签收后的报告(sealAfterSign)需要该字段
  44. **/
  45. private $sealMode;
  46. /**
  47. * 代理操作企业(调用企业)的章信息
  48. **/
  49. private $selfSealInfo;
  50. /**
  51. * 用户id
  52. **/
  53. private $userId;
  54. private $apiParas = array();
  55. public function setAssRefEntId($assRefEntId)
  56. {
  57. $this->assRefEntId = $assRefEntId;
  58. $this->apiParas["ass_ref_ent_id"] = $assRefEntId;
  59. }
  60. public function getAssRefEntId()
  61. {
  62. return $this->assRefEntId;
  63. }
  64. public function setAssSealInfo($assSealInfo)
  65. {
  66. $this->assSealInfo = $assSealInfo;
  67. $this->apiParas["ass_seal_info"] = $assSealInfo;
  68. }
  69. public function getAssSealInfo()
  70. {
  71. return $this->assSealInfo;
  72. }
  73. public function setBillId($billId)
  74. {
  75. $this->billId = $billId;
  76. $this->apiParas["bill_id"] = $billId;
  77. }
  78. public function getBillId()
  79. {
  80. return $this->billId;
  81. }
  82. public function setBillType($billType)
  83. {
  84. $this->billType = $billType;
  85. $this->apiParas["bill_type"] = $billType;
  86. }
  87. public function getBillType()
  88. {
  89. return $this->billType;
  90. }
  91. public function setDetailBillId($detailBillId)
  92. {
  93. $this->detailBillId = $detailBillId;
  94. $this->apiParas["detail_bill_id"] = $detailBillId;
  95. }
  96. public function getDetailBillId()
  97. {
  98. return $this->detailBillId;
  99. }
  100. public function setOperNote($operNote)
  101. {
  102. $this->operNote = $operNote;
  103. $this->apiParas["oper_note"] = $operNote;
  104. }
  105. public function getOperNote()
  106. {
  107. return $this->operNote;
  108. }
  109. public function setOperType($operType)
  110. {
  111. $this->operType = $operType;
  112. $this->apiParas["oper_type"] = $operType;
  113. }
  114. public function getOperType()
  115. {
  116. return $this->operType;
  117. }
  118. public function setRefEntId($refEntId)
  119. {
  120. $this->refEntId = $refEntId;
  121. $this->apiParas["ref_ent_id"] = $refEntId;
  122. }
  123. public function getRefEntId()
  124. {
  125. return $this->refEntId;
  126. }
  127. public function setSealMode($sealMode)
  128. {
  129. $this->sealMode = $sealMode;
  130. $this->apiParas["seal_mode"] = $sealMode;
  131. }
  132. public function getSealMode()
  133. {
  134. return $this->sealMode;
  135. }
  136. public function setSelfSealInfo($selfSealInfo)
  137. {
  138. $this->selfSealInfo = $selfSealInfo;
  139. $this->apiParas["self_seal_info"] = $selfSealInfo;
  140. }
  141. public function getSelfSealInfo()
  142. {
  143. return $this->selfSealInfo;
  144. }
  145. public function setUserId($userId)
  146. {
  147. $this->userId = $userId;
  148. $this->apiParas["user_id"] = $userId;
  149. }
  150. public function getUserId()
  151. {
  152. return $this->userId;
  153. }
  154. public function getApiMethodName()
  155. {
  156. return "alibaba.alihealth.synergy.yzw.drugreport.opt.byagent";
  157. }
  158. public function getApiParas()
  159. {
  160. return $this->apiParas;
  161. }
  162. public function check()
  163. {
  164. RequestCheckUtil::checkNotNull($this->assRefEntId,"assRefEntId");
  165. RequestCheckUtil::checkNotNull($this->billId,"billId");
  166. RequestCheckUtil::checkNotNull($this->billType,"billType");
  167. RequestCheckUtil::checkNotNull($this->detailBillId,"detailBillId");
  168. RequestCheckUtil::checkNotNull($this->operType,"operType");
  169. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  170. RequestCheckUtil::checkNotNull($this->userId,"userId");
  171. }
  172. public function putOtherTextParam($key, $value) {
  173. $this->apiParas[$key] = $value;
  174. $this->$key = $value;
  175. }
  176. }