OapiRhinoMosExecClothesSynccreateRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.clothes.synccreate request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.03.23
  7. */
  8. class OapiRhinoMosExecClothesSynccreateRequest
  9. {
  10. /**
  11. * 工序信息
  12. **/
  13. private $additionalOperations;
  14. /**
  15. * 衣服状态是否自动开启
  16. **/
  17. private $autoStart;
  18. /**
  19. * 业务类型
  20. **/
  21. private $bizType;
  22. /**
  23. * 衣服详情
  24. **/
  25. private $clothes;
  26. /**
  27. * 实体类型
  28. **/
  29. private $entityType;
  30. /**
  31. * 订单ID
  32. **/
  33. private $orderId;
  34. /**
  35. * 来源
  36. **/
  37. private $source;
  38. /**
  39. * 租户ID
  40. **/
  41. private $tenantId;
  42. /**
  43. * 业务参数[这里先预留],这里是用户ID,比如钉钉用户ID
  44. **/
  45. private $userid;
  46. private $apiParas = array();
  47. public function setAdditionalOperations($additionalOperations)
  48. {
  49. $this->additionalOperations = $additionalOperations;
  50. $this->apiParas["additional_operations"] = $additionalOperations;
  51. }
  52. public function getAdditionalOperations()
  53. {
  54. return $this->additionalOperations;
  55. }
  56. public function setAutoStart($autoStart)
  57. {
  58. $this->autoStart = $autoStart;
  59. $this->apiParas["auto_start"] = $autoStart;
  60. }
  61. public function getAutoStart()
  62. {
  63. return $this->autoStart;
  64. }
  65. public function setBizType($bizType)
  66. {
  67. $this->bizType = $bizType;
  68. $this->apiParas["biz_type"] = $bizType;
  69. }
  70. public function getBizType()
  71. {
  72. return $this->bizType;
  73. }
  74. public function setClothes($clothes)
  75. {
  76. $this->clothes = $clothes;
  77. $this->apiParas["clothes"] = $clothes;
  78. }
  79. public function getClothes()
  80. {
  81. return $this->clothes;
  82. }
  83. public function setEntityType($entityType)
  84. {
  85. $this->entityType = $entityType;
  86. $this->apiParas["entity_type"] = $entityType;
  87. }
  88. public function getEntityType()
  89. {
  90. return $this->entityType;
  91. }
  92. public function setOrderId($orderId)
  93. {
  94. $this->orderId = $orderId;
  95. $this->apiParas["order_id"] = $orderId;
  96. }
  97. public function getOrderId()
  98. {
  99. return $this->orderId;
  100. }
  101. public function setSource($source)
  102. {
  103. $this->source = $source;
  104. $this->apiParas["source"] = $source;
  105. }
  106. public function getSource()
  107. {
  108. return $this->source;
  109. }
  110. public function setTenantId($tenantId)
  111. {
  112. $this->tenantId = $tenantId;
  113. $this->apiParas["tenant_id"] = $tenantId;
  114. }
  115. public function getTenantId()
  116. {
  117. return $this->tenantId;
  118. }
  119. public function setUserid($userid)
  120. {
  121. $this->userid = $userid;
  122. $this->apiParas["userid"] = $userid;
  123. }
  124. public function getUserid()
  125. {
  126. return $this->userid;
  127. }
  128. public function getApiMethodName()
  129. {
  130. return "dingtalk.oapi.rhino.mos.exec.clothes.synccreate";
  131. }
  132. public function getApiParas()
  133. {
  134. return $this->apiParas;
  135. }
  136. public function check()
  137. {
  138. RequestCheckUtil::checkNotNull($this->entityType,"entityType");
  139. RequestCheckUtil::checkNotNull($this->orderId,"orderId");
  140. }
  141. public function putOtherTextParam($key, $value) {
  142. $this->apiParas[$key] = $value;
  143. $this->$key = $value;
  144. }
  145. }