OapiAppstoreOrdersInquiryRequest.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.appstore.orders.inquiry request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.10.12
  7. */
  8. class OapiAppstoreOrdersInquiryRequest
  9. {
  10. /**
  11. * 询价企业id
  12. **/
  13. private $corpid;
  14. /**
  15. * 订购周期数量
  16. **/
  17. private $cycNum;
  18. /**
  19. * 订购周期单位
  20. **/
  21. private $cycUnit;
  22. /**
  23. * 商品码
  24. **/
  25. private $goodsCode;
  26. /**
  27. * 规格码
  28. **/
  29. private $itemCode;
  30. /**
  31. * 询价用户手机号
  32. **/
  33. private $mobile;
  34. /**
  35. * 订购人数
  36. **/
  37. private $quantity;
  38. private $apiParas = array();
  39. public function setCorpid($corpid)
  40. {
  41. $this->corpid = $corpid;
  42. $this->apiParas["corpid"] = $corpid;
  43. }
  44. public function getCorpid()
  45. {
  46. return $this->corpid;
  47. }
  48. public function setCycNum($cycNum)
  49. {
  50. $this->cycNum = $cycNum;
  51. $this->apiParas["cyc_num"] = $cycNum;
  52. }
  53. public function getCycNum()
  54. {
  55. return $this->cycNum;
  56. }
  57. public function setCycUnit($cycUnit)
  58. {
  59. $this->cycUnit = $cycUnit;
  60. $this->apiParas["cyc_unit"] = $cycUnit;
  61. }
  62. public function getCycUnit()
  63. {
  64. return $this->cycUnit;
  65. }
  66. public function setGoodsCode($goodsCode)
  67. {
  68. $this->goodsCode = $goodsCode;
  69. $this->apiParas["goods_code"] = $goodsCode;
  70. }
  71. public function getGoodsCode()
  72. {
  73. return $this->goodsCode;
  74. }
  75. public function setItemCode($itemCode)
  76. {
  77. $this->itemCode = $itemCode;
  78. $this->apiParas["item_code"] = $itemCode;
  79. }
  80. public function getItemCode()
  81. {
  82. return $this->itemCode;
  83. }
  84. public function setMobile($mobile)
  85. {
  86. $this->mobile = $mobile;
  87. $this->apiParas["mobile"] = $mobile;
  88. }
  89. public function getMobile()
  90. {
  91. return $this->mobile;
  92. }
  93. public function setQuantity($quantity)
  94. {
  95. $this->quantity = $quantity;
  96. $this->apiParas["quantity"] = $quantity;
  97. }
  98. public function getQuantity()
  99. {
  100. return $this->quantity;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "dingtalk.oapi.appstore.orders.inquiry";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->corpid,"corpid");
  113. RequestCheckUtil::checkNotNull($this->cycNum,"cycNum");
  114. RequestCheckUtil::checkNotNull($this->cycUnit,"cycUnit");
  115. RequestCheckUtil::checkNotNull($this->goodsCode,"goodsCode");
  116. RequestCheckUtil::checkNotNull($this->itemCode,"itemCode");
  117. RequestCheckUtil::checkNotNull($this->mobile,"mobile");
  118. RequestCheckUtil::checkNotNull($this->quantity,"quantity");
  119. }
  120. public function putOtherTextParam($key, $value) {
  121. $this->apiParas[$key] = $value;
  122. $this->$key = $value;
  123. }
  124. }