1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- /**
- * TOP API: alibaba.aliqin.fc.flow.charge request
- *
- * @author auto create
- * @since 1.0, 2016.03.30
- */
- class AlibabaAliqinFcFlowChargeRequest
- {
- /**
- * 需要充值的流量
- **/
- private $grade;
-
- /**
- * 唯一流水号
- **/
- private $outRechargeId;
-
- /**
- * 手机号
- **/
- private $phoneNum;
-
- /**
- * 充值原因
- **/
- private $reason;
-
- private $apiParas = array();
-
- public function setGrade($grade)
- {
- $this->grade = $grade;
- $this->apiParas["grade"] = $grade;
- }
- public function getGrade()
- {
- return $this->grade;
- }
- public function setOutRechargeId($outRechargeId)
- {
- $this->outRechargeId = $outRechargeId;
- $this->apiParas["out_recharge_id"] = $outRechargeId;
- }
- public function getOutRechargeId()
- {
- return $this->outRechargeId;
- }
- public function setPhoneNum($phoneNum)
- {
- $this->phoneNum = $phoneNum;
- $this->apiParas["phone_num"] = $phoneNum;
- }
- public function getPhoneNum()
- {
- return $this->phoneNum;
- }
- public function setReason($reason)
- {
- $this->reason = $reason;
- $this->apiParas["reason"] = $reason;
- }
- public function getReason()
- {
- return $this->reason;
- }
- public function getApiMethodName()
- {
- return "alibaba.aliqin.fc.flow.charge";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->grade,"grade");
- RequestCheckUtil::checkNotNull($this->outRechargeId,"outRechargeId");
- RequestCheckUtil::checkNotNull($this->phoneNum,"phoneNum");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|