123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.appstore.orders.inquiry request
- *
- * @author auto create
- * @since 1.0, 2021.10.12
- */
- class OapiAppstoreOrdersInquiryRequest
- {
- /**
- * 询价企业id
- **/
- private $corpid;
-
- /**
- * 订购周期数量
- **/
- private $cycNum;
-
- /**
- * 订购周期单位
- **/
- private $cycUnit;
-
- /**
- * 商品码
- **/
- private $goodsCode;
-
- /**
- * 规格码
- **/
- private $itemCode;
-
- /**
- * 询价用户手机号
- **/
- private $mobile;
-
- /**
- * 订购人数
- **/
- private $quantity;
-
- private $apiParas = array();
-
- public function setCorpid($corpid)
- {
- $this->corpid = $corpid;
- $this->apiParas["corpid"] = $corpid;
- }
- public function getCorpid()
- {
- return $this->corpid;
- }
- public function setCycNum($cycNum)
- {
- $this->cycNum = $cycNum;
- $this->apiParas["cyc_num"] = $cycNum;
- }
- public function getCycNum()
- {
- return $this->cycNum;
- }
- public function setCycUnit($cycUnit)
- {
- $this->cycUnit = $cycUnit;
- $this->apiParas["cyc_unit"] = $cycUnit;
- }
- public function getCycUnit()
- {
- return $this->cycUnit;
- }
- public function setGoodsCode($goodsCode)
- {
- $this->goodsCode = $goodsCode;
- $this->apiParas["goods_code"] = $goodsCode;
- }
- public function getGoodsCode()
- {
- return $this->goodsCode;
- }
- public function setItemCode($itemCode)
- {
- $this->itemCode = $itemCode;
- $this->apiParas["item_code"] = $itemCode;
- }
- public function getItemCode()
- {
- return $this->itemCode;
- }
- public function setMobile($mobile)
- {
- $this->mobile = $mobile;
- $this->apiParas["mobile"] = $mobile;
- }
- public function getMobile()
- {
- return $this->mobile;
- }
- public function setQuantity($quantity)
- {
- $this->quantity = $quantity;
- $this->apiParas["quantity"] = $quantity;
- }
- public function getQuantity()
- {
- return $this->quantity;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.appstore.orders.inquiry";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->corpid,"corpid");
- RequestCheckUtil::checkNotNull($this->cycNum,"cycNum");
- RequestCheckUtil::checkNotNull($this->cycUnit,"cycUnit");
- RequestCheckUtil::checkNotNull($this->goodsCode,"goodsCode");
- RequestCheckUtil::checkNotNull($this->itemCode,"itemCode");
- RequestCheckUtil::checkNotNull($this->mobile,"mobile");
- RequestCheckUtil::checkNotNull($this->quantity,"quantity");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|