|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Kaylyu\Alipay\F2fpay\Base\Model\Builder; |
|
4
|
|
|
|
|
5
|
|
|
class RoyaltyDetailInfo |
|
6
|
|
|
{ |
|
7
|
|
|
//分账序列号,表示分账执行的顺序,必须为正整数 |
|
8
|
|
|
private $serialNo; |
|
9
|
|
|
|
|
10
|
|
|
//接受分账金额的账户类型:默认值为userId。 |
|
11
|
|
|
//userId:支付宝账号对应的支付宝唯一用户号。 |
|
12
|
|
|
//bankIndex:分账到银行账户的银行编号。目前暂时只支持分账到一个银行编号。 |
|
13
|
|
|
//storeId:分账到门店对应的银行卡编号。 |
|
14
|
|
|
private $transInType; |
|
15
|
|
|
|
|
16
|
|
|
//(必填)分账批次号 分账批次号。 目前需要和转入账号类型为bankIndex配合使用 |
|
17
|
|
|
private $batchNo; |
|
18
|
|
|
|
|
19
|
|
|
//商户分账的外部关联号,用于关联到每一笔分账信息,商户需保证其唯一性。 |
|
20
|
|
|
//如果为空,该值则默认为“商户网站唯一订单号+分账序列号” |
|
21
|
|
|
private $outRelationId; |
|
22
|
|
|
|
|
23
|
|
|
//(必填)要分账的账户类型,默认值为userId |
|
24
|
|
|
//目前只支持userId:支付宝账号对应的支付宝唯一用户号 |
|
25
|
|
|
private $transOutType; |
|
26
|
|
|
|
|
27
|
|
|
//(必填)如果转出账号类型为userId,本参数为要分账的支付宝账号对应的支付宝唯一用户号。 |
|
28
|
|
|
//以2088开头的纯16位数字。 |
|
29
|
|
|
private $transOut; |
|
30
|
|
|
|
|
31
|
|
|
//(必填)如果转入账号类型为userId,本参数为接受分账金额的支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字。 |
|
32
|
|
|
//如果转入账号类型为bankIndex,本参数为28位的银行编号(商户和支付宝签约时确定) |
|
33
|
|
|
//如果转入账号类型为storeId,本参数为商户的门店ID。 |
|
34
|
|
|
private $transIn; |
|
35
|
|
|
|
|
36
|
|
|
//(必填)分账的金额,单位为元 |
|
37
|
|
|
private $amount; |
|
38
|
|
|
|
|
39
|
|
|
//分账描述信息 |
|
40
|
|
|
private $desc; |
|
41
|
|
|
|
|
42
|
|
|
private $royaltyDetailInfo = array(); |
|
43
|
|
|
|
|
44
|
|
|
public function __construct() |
|
45
|
|
|
{ |
|
46
|
|
|
$this->setTransInType("userId"); |
|
47
|
|
|
$this->setTransOutType("userId"); |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
public function RoyaltyDetailInfo() |
|
51
|
|
|
{ |
|
52
|
|
|
$this->__construct(); |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
public function getRoyaltyDetailInfo() |
|
56
|
|
|
{ |
|
57
|
|
|
return $this->royaltyDetailInfo; |
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
public function getAmount() |
|
61
|
|
|
{ |
|
62
|
|
|
return $this->amount; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
public function getBatchNo() |
|
66
|
|
|
{ |
|
67
|
|
|
return $this->batchNo; |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
public function getDesc() |
|
71
|
|
|
{ |
|
72
|
|
|
return $this->desc; |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
public function getOutRelationId() |
|
76
|
|
|
{ |
|
77
|
|
|
return $this->outRelationId; |
|
78
|
|
|
} |
|
79
|
|
|
|
|
80
|
|
|
public function getSerialNo() |
|
81
|
|
|
{ |
|
82
|
|
|
return $this->serialNo; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
public function getTransIn() |
|
86
|
|
|
{ |
|
87
|
|
|
return $this->transIn; |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
public function getTransInType() |
|
91
|
|
|
{ |
|
92
|
|
|
return $this->transInType; |
|
93
|
|
|
} |
|
94
|
|
|
|
|
95
|
|
|
public function getTransOut() |
|
96
|
|
|
{ |
|
97
|
|
|
return $this->transOut; |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
public function getTransOutType() |
|
101
|
|
|
{ |
|
102
|
|
|
return $this->transOutType; |
|
103
|
|
|
} |
|
104
|
|
|
|
|
105
|
|
|
public function setAmount($amount) |
|
106
|
|
|
{ |
|
107
|
|
|
$this->amount = $amount; |
|
108
|
|
|
$this->royaltyDetailInfo['amount'] = $amount; |
|
109
|
|
|
} |
|
110
|
|
|
|
|
111
|
|
|
public function setBatchNo($batchNo) |
|
112
|
|
|
{ |
|
113
|
|
|
$this->batchNo = $batchNo; |
|
114
|
|
|
$this->royaltyDetailInfo['batch_no'] = $batchNo; |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
public function setDesc($desc) |
|
118
|
|
|
{ |
|
119
|
|
|
$this->desc = $desc; |
|
120
|
|
|
$this->royaltyDetailInfo['desc'] = $desc; |
|
121
|
|
|
} |
|
122
|
|
|
|
|
123
|
|
|
public function setOutRelationId($outRelationId) |
|
124
|
|
|
{ |
|
125
|
|
|
$this->outRelationId = $outRelationId; |
|
126
|
|
|
$this->royaltyDetailInfo['out_relation_id'] = $outRelationId; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
public function setSerialNo($serialNo) |
|
130
|
|
|
{ |
|
131
|
|
|
$this->serialNo = $serialNo; |
|
132
|
|
|
$this->royaltyDetailInfo['serial_no'] = $serialNo; |
|
133
|
|
|
} |
|
134
|
|
|
|
|
135
|
|
|
public function setTransIn($transIn) |
|
136
|
|
|
{ |
|
137
|
|
|
$this->transIn = $transIn; |
|
138
|
|
|
$this->royaltyDetailInfo['trans_in'] = $transIn; |
|
139
|
|
|
} |
|
140
|
|
|
|
|
141
|
|
|
public function setTransInType($transInType) |
|
142
|
|
|
{ |
|
143
|
|
|
$this->transInType = $transInType; |
|
144
|
|
|
$this->royaltyDetailInfo['trans_in_type'] = $transInType; |
|
145
|
|
|
} |
|
146
|
|
|
|
|
147
|
|
|
public function setTransOut($transOut) |
|
148
|
|
|
{ |
|
149
|
|
|
$this->transOut = $transOut; |
|
150
|
|
|
$this->royaltyDetailInfo['trans_out'] = $transOut; |
|
151
|
|
|
} |
|
152
|
|
|
|
|
153
|
|
|
public function setTransOutType($transOutType) |
|
154
|
|
|
{ |
|
155
|
|
|
$this->transOutType = $transOutType; |
|
156
|
|
|
$this->royaltyDetailInfo['trans_out_type'] = $transOutType; |
|
157
|
|
|
} |
|
158
|
|
|
} |