OapiRhinoMosExecTrackUnbindRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.track.unbind request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.03
  7. */
  8. class OapiRhinoMosExecTrackUnbindRequest
  9. {
  10. /**
  11. * 实体ID列表
  12. **/
  13. private $entities;
  14. /**
  15. * 实体类型
  16. **/
  17. private $entityType;
  18. /**
  19. * 订单ID
  20. **/
  21. private $orderId;
  22. /**
  23. * 租户ID
  24. **/
  25. private $tenantId;
  26. /**
  27. * 追踪ID
  28. **/
  29. private $trackId;
  30. /**
  31. * 追踪类型,吊挂或才RF
  32. **/
  33. private $trackType;
  34. /**
  35. * 预留参数
  36. **/
  37. private $userid;
  38. /**
  39. * 工位
  40. **/
  41. private $workstationCode;
  42. private $apiParas = array();
  43. public function setEntities($entities)
  44. {
  45. $this->entities = $entities;
  46. $this->apiParas["entities"] = $entities;
  47. }
  48. public function getEntities()
  49. {
  50. return $this->entities;
  51. }
  52. public function setEntityType($entityType)
  53. {
  54. $this->entityType = $entityType;
  55. $this->apiParas["entity_type"] = $entityType;
  56. }
  57. public function getEntityType()
  58. {
  59. return $this->entityType;
  60. }
  61. public function setOrderId($orderId)
  62. {
  63. $this->orderId = $orderId;
  64. $this->apiParas["order_id"] = $orderId;
  65. }
  66. public function getOrderId()
  67. {
  68. return $this->orderId;
  69. }
  70. public function setTenantId($tenantId)
  71. {
  72. $this->tenantId = $tenantId;
  73. $this->apiParas["tenant_id"] = $tenantId;
  74. }
  75. public function getTenantId()
  76. {
  77. return $this->tenantId;
  78. }
  79. public function setTrackId($trackId)
  80. {
  81. $this->trackId = $trackId;
  82. $this->apiParas["track_id"] = $trackId;
  83. }
  84. public function getTrackId()
  85. {
  86. return $this->trackId;
  87. }
  88. public function setTrackType($trackType)
  89. {
  90. $this->trackType = $trackType;
  91. $this->apiParas["track_type"] = $trackType;
  92. }
  93. public function getTrackType()
  94. {
  95. return $this->trackType;
  96. }
  97. public function setUserid($userid)
  98. {
  99. $this->userid = $userid;
  100. $this->apiParas["userid"] = $userid;
  101. }
  102. public function getUserid()
  103. {
  104. return $this->userid;
  105. }
  106. public function setWorkstationCode($workstationCode)
  107. {
  108. $this->workstationCode = $workstationCode;
  109. $this->apiParas["workstation_code"] = $workstationCode;
  110. }
  111. public function getWorkstationCode()
  112. {
  113. return $this->workstationCode;
  114. }
  115. public function getApiMethodName()
  116. {
  117. return "dingtalk.oapi.rhino.mos.exec.track.unbind";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->entities,"entities");
  126. RequestCheckUtil::checkMaxListSize($this->entities,500,"entities");
  127. RequestCheckUtil::checkNotNull($this->entityType,"entityType");
  128. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  129. RequestCheckUtil::checkNotNull($this->trackId,"trackId");
  130. RequestCheckUtil::checkNotNull($this->trackType,"trackType");
  131. }
  132. public function putOtherTextParam($key, $value) {
  133. $this->apiParas[$key] = $value;
  134. $this->$key = $value;
  135. }
  136. }