AlipayTransferThirdpartyBillCreateRequest.php
5.0 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<?php
/**
* ALIPAY API: alipay.transfer.thirdparty.bill.create request
*
* @author auto create
* @since 1.0, 2014-06-25 17:00:56
*/
class AlipayTransferThirdpartyBillCreateRequest
{
/**
* 收款金额,单位:分
**/
private $amount;
/**
* 收款币种,默认为156(人民币)目前只允许转账人民币
**/
private $currency;
/**
* 扩展参数
**/
private $extParam;
/**
* 转账备注
**/
private $memo;
/**
* 合作方的支付宝帐号UID
**/
private $partnerId;
/**
* 外部系统收款方UID,付款人和收款人不能是同一个帐户
**/
private $payeeAccount;
/**
* (同payer_type所列举的)
目前限制payer_type和payee_type必须一致
**/
private $payeeType;
/**
* 外部系统付款方的UID
**/
private $payerAccount;
/**
* 1-支付宝帐户
2-淘宝帐户
10001-新浪微博帐户
10002-阿里云帐户
(1、2目前对外不可见、不可用)
**/
private $payerType;
/**
* 发起支付交易来源方定义的交易ID,用于将支付回执通知给来源方。不同来源方给出的ID可以重复,同一个来源方给出的ID唯一性由来源方保证。
**/
private $paymentId;
/**
* 支付来源
10001-新浪微博
10002-阿里云
**/
private $paymentSource;
/**
* 支付款项的标题
**/
private $title;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setAmount($amount)
{
$this->amount = $amount;
$this->apiParas["amount"] = $amount;
}
public function getAmount()
{
return $this->amount;
}
public function setCurrency($currency)
{
$this->currency = $currency;
$this->apiParas["currency"] = $currency;
}
public function getCurrency()
{
return $this->currency;
}
public function setExtParam($extParam)
{
$this->extParam = $extParam;
$this->apiParas["ext_param"] = $extParam;
}
public function getExtParam()
{
return $this->extParam;
}
public function setMemo($memo)
{
$this->memo = $memo;
$this->apiParas["memo"] = $memo;
}
public function getMemo()
{
return $this->memo;
}
public function setPartnerId($partnerId)
{
$this->partnerId = $partnerId;
$this->apiParas["partner_id"] = $partnerId;
}
public function getPartnerId()
{
return $this->partnerId;
}
public function setPayeeAccount($payeeAccount)
{
$this->payeeAccount = $payeeAccount;
$this->apiParas["payee_account"] = $payeeAccount;
}
public function getPayeeAccount()
{
return $this->payeeAccount;
}
public function setPayeeType($payeeType)
{
$this->payeeType = $payeeType;
$this->apiParas["payee_type"] = $payeeType;
}
public function getPayeeType()
{
return $this->payeeType;
}
public function setPayerAccount($payerAccount)
{
$this->payerAccount = $payerAccount;
$this->apiParas["payer_account"] = $payerAccount;
}
public function getPayerAccount()
{
return $this->payerAccount;
}
public function setPayerType($payerType)
{
$this->payerType = $payerType;
$this->apiParas["payer_type"] = $payerType;
}
public function getPayerType()
{
return $this->payerType;
}
public function setPaymentId($paymentId)
{
$this->paymentId = $paymentId;
$this->apiParas["payment_id"] = $paymentId;
}
public function getPaymentId()
{
return $this->paymentId;
}
public function setPaymentSource($paymentSource)
{
$this->paymentSource = $paymentSource;
$this->apiParas["payment_source"] = $paymentSource;
}
public function getPaymentSource()
{
return $this->paymentSource;
}
public function setTitle($title)
{
$this->title = $title;
$this->apiParas["title"] = $title;
}
public function getTitle()
{
return $this->title;
}
public function getApiMethodName()
{
return "alipay.transfer.thirdparty.bill.create";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
}