AlipayTopatsUserAccountreportGetRequest.php
2.46 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
/**
* TOP API: alipay.topats.user.accountreport.get request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class AlipayTopatsUserAccountreportGetRequest
{
/**
* 返回下载结果文件的数据格式,只支持utf-8和gbk编码,默认是utf-8
**/
private $charset;
/**
* 对账单结束时间。end_time - start_time <= 1个自然月
**/
private $endTime;
/**
* 需要返回的字段列表。create_time:创建时间,type:账务类型,business_type:子业务类型,balance:当时支付宝账户余额,in_amount:收入金额,out_amount:支出金额,alipay_order_no:支付宝订单号,merchant_order_no:商户订单号,self_user_id:自己的支付宝ID,opt_user_id:对方的支付宝ID,memo:账号备注
**/
private $fields;
/**
* 对账单开始时间。最近一个月内的日期。
**/
private $startTime;
/**
* 账务类型。多个类型是,用逗号分隔,不传则查询所有类型的。PAYMENT:在线支付,TRANSFER:转账,DEPOSIT:充值,WITHDRAW:提现,CHARGE:收费,PREAUTH:预授权,OTHER:其它。
**/
private $type;
private $apiParas = array();
public function setCharset($charset)
{
$this->charset = $charset;
$this->apiParas["charset"] = $charset;
}
public function getCharset()
{
return $this->charset;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
$this->apiParas["end_time"] = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setFields($fields)
{
$this->fields = $fields;
$this->apiParas["fields"] = $fields;
}
public function getFields()
{
return $this->fields;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
$this->apiParas["start_time"] = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setType($type)
{
$this->type = $type;
$this->apiParas["type"] = $type;
}
public function getType()
{
return $this->type;
}
public function getApiMethodName()
{
return "alipay.topats.user.accountreport.get";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->endTime,"endTime");
RequestCheckUtil::checkNotNull($this->fields,"fields");
RequestCheckUtil::checkNotNull($this->startTime,"startTime");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}