colly_wyx
2018-06-13 e4d5467f055ece8cc9dfdc02dd836bcc187034a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?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;
    }
}