1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class PayoutItemDetails
9 *
10 * The payout item status and other details.
11 *
12 * @package PayPal\Api
13 *
14 * @property string payout_item_id
15 * @property string transaction_id
16 * @property string transaction_status
17 * @property \PayPal\Api\Currency payout_item_fee
18 * @property string payout_batch_id
19 * @property string sender_batch_id
20 * @property \PayPal\Api\PayoutItem payout_item
21 * @property string time_processed
22 * @property \PayPal\Api\Error errors
23 * @property \PayPal\Api\Links[] links
24 */
25 class PayoutItemDetails extends PayPalModel
26 {
27 /**
28 * The ID for the payout item. Viewable when you show details for a batch payout.
29 *
30 * @param string $payout_item_id
31 *
32 * @return $this
33 */
34 public function setPayoutItemId($payout_item_id)
35 {
36 $this->payout_item_id = $payout_item_id;
37 return $this;
38 }
39
40 /**
41 * The ID for the payout item. Viewable when you show details for a batch payout.
42 *
43 * @return string
44 */
45 public function getPayoutItemId()
46 {
47 return $this->payout_item_id;
48 }
49
50 /**
51 * The PayPal-generated ID for the transaction.
52 *
53 * @param string $transaction_id
54 *
55 * @return $this
56 */
57 public function setTransactionId($transaction_id)
58 {
59 $this->transaction_id = $transaction_id;
60 return $this;
61 }
62
63 /**
64 * The PayPal-generated ID for the transaction.
65 *
66 * @return string
67 */
68 public function getTransactionId()
69 {
70 return $this->transaction_id;
71 }
72
73 /**
74 * The transaction status.
75 *
76 * @param string $transaction_status
77 *
78 * @return $this
79 */
80 public function setTransactionStatus($transaction_status)
81 {
82 $this->transaction_status = $transaction_status;
83 return $this;
84 }
85
86 /**
87 * The transaction status.
88 *
89 * @return string
90 */
91 public function getTransactionStatus()
92 {
93 return $this->transaction_status;
94 }
95
96 /**
97 * The amount of money, in U.S. dollars, for fees.
98 *
99 * @param \PayPal\Api\Currency $payout_item_fee
100 *
101 * @return $this
102 */
103 public function setPayoutItemFee($payout_item_fee)
104 {
105 $this->payout_item_fee = $payout_item_fee;
106 return $this;
107 }
108
109 /**
110 * The amount of money, in U.S. dollars, for fees.
111 *
112 * @return \PayPal\Api\Currency
113 */
114 public function getPayoutItemFee()
115 {
116 return $this->payout_item_fee;
117 }
118
119 /**
120 * The PayPal-generated ID for the batch payout.
121 *
122 * @param string $payout_batch_id
123 *
124 * @return $this
125 */
126 public function setPayoutBatchId($payout_batch_id)
127 {
128 $this->payout_batch_id = $payout_batch_id;
129 return $this;
130 }
131
132 /**
133 * The PayPal-generated ID for the batch payout.
134 *
135 * @return string
136 */
137 public function getPayoutBatchId()
138 {
139 return $this->payout_batch_id;
140 }
141
142 /**
143 * A sender-specified ID number. Tracks the batch payout in an accounting system.
144 *
145 * @param string $sender_batch_id
146 *
147 * @return $this
148 */
149 public function setSenderBatchId($sender_batch_id)
150 {
151 $this->sender_batch_id = $sender_batch_id;
152 return $this;
153 }
154
155 /**
156 * A sender-specified ID number. Tracks the batch payout in an accounting system.
157 *
158 * @return string
159 */
160 public function getSenderBatchId()
161 {
162 return $this->sender_batch_id;
163 }
164
165 /**
166 * The sender-provided information for the payout item.
167 *
168 * @param \PayPal\Api\PayoutItem $payout_item
169 *
170 * @return $this
171 */
172 public function setPayoutItem($payout_item)
173 {
174 $this->payout_item = $payout_item;
175 return $this;
176 }
177
178 /**
179 * The sender-provided information for the payout item.
180 *
181 * @return \PayPal\Api\PayoutItem
182 */
183 public function getPayoutItem()
184 {
185 return $this->payout_item;
186 }
187
188 /**
189 * The date and time when this item was last processed.
190 *
191 * @param string $time_processed
192 *
193 * @return $this
194 */
195 public function setTimeProcessed($time_processed)
196 {
197 $this->time_processed = $time_processed;
198 return $this;
199 }
200
201 /**
202 * The date and time when this item was last processed.
203 *
204 * @return string
205 */
206 public function getTimeProcessed()
207 {
208 return $this->time_processed;
209 }
210
211 /**
212 * Sets Errors
213 *
214 * @param \PayPal\Api\Error $errors
215 *
216 * @return $this
217 */
218 public function setErrors($errors)
219 {
220 $this->errors = $errors;
221 return $this;
222 }
223
224 /**
225 * Gets Errors
226 *
227 * @return \PayPal\Api\Error
228 */
229 public function getErrors()
230 {
231 return $this->errors;
232 }
233
234 /**
235 * Sets Links
236 *
237 * @param \PayPal\Api\Links[] $links
238 *
239 * @return $this
240 */
241 public function setLinks($links)
242 {
243 $this->links = $links;
244 return $this;
245 }
246
247 /**
248 * Gets Links
249 *
250 * @return \PayPal\Api\Links[]
251 */
252 public function getLinks()
253 {
254 return $this->links;
255 }
256
257 /**
258 * Append Links to the list.
259 *
260 * @param \PayPal\Api\Links $links
261 * @return $this
262 */
263 public function addLink($links)
264 {
265 if (!$this->getLinks()) {
266 return $this->setLinks(array($links));
267 } else {
268 return $this->setLinks(
269 array_merge($this->getLinks(), array($links))
270 );
271 }
272 }
273
274 /**
275 * Remove Links from the list.
276 *
277 * @param \PayPal\Api\Links $links
278 * @return $this
279 */
280 public function removeLink($links)
281 {
282 return $this->setLinks(
283 array_diff($this->getLinks(), array($links))
284 );
285 }
286
287 }
288