123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.dingpay.order.applypay request
- *
- * @author auto create
- * @since 1.0, 2021.01.31
- */
- class OapiDingpayOrderApplypayRequest
- {
- /**
- * 发起支付操作员userId
- **/
- private $applyPayOperatorUserid;
-
- /**
- * 扩展属性
- **/
- private $extension;
-
- /**
- * 订单号
- **/
- private $orderNos;
-
- /**
- * 支付渠道
- **/
- private $payChannel;
-
- /**
- * 支付渠道方付款者真实出资UID
- **/
- private $payChannelPayerRealUid;
-
- private $apiParas = array();
-
- public function setApplyPayOperatorUserid($applyPayOperatorUserid)
- {
- $this->applyPayOperatorUserid = $applyPayOperatorUserid;
- $this->apiParas["apply_pay_operator_userid"] = $applyPayOperatorUserid;
- }
- public function getApplyPayOperatorUserid()
- {
- return $this->applyPayOperatorUserid;
- }
- public function setExtension($extension)
- {
- $this->extension = $extension;
- $this->apiParas["extension"] = $extension;
- }
- public function getExtension()
- {
- return $this->extension;
- }
- public function setOrderNos($orderNos)
- {
- $this->orderNos = $orderNos;
- $this->apiParas["order_nos"] = $orderNos;
- }
- public function getOrderNos()
- {
- return $this->orderNos;
- }
- public function setPayChannel($payChannel)
- {
- $this->payChannel = $payChannel;
- $this->apiParas["pay_channel"] = $payChannel;
- }
- public function getPayChannel()
- {
- return $this->payChannel;
- }
- public function setPayChannelPayerRealUid($payChannelPayerRealUid)
- {
- $this->payChannelPayerRealUid = $payChannelPayerRealUid;
- $this->apiParas["pay_channel_payer_real_uid"] = $payChannelPayerRealUid;
- }
- public function getPayChannelPayerRealUid()
- {
- return $this->payChannelPayerRealUid;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.dingpay.order.applypay";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->applyPayOperatorUserid,"applyPayOperatorUserid");
- RequestCheckUtil::checkNotNull($this->orderNos,"orderNos");
- RequestCheckUtil::checkMaxListSize($this->orderNos,20,"orderNos");
- RequestCheckUtil::checkNotNull($this->payChannel,"payChannel");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|