1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class FundingInstrument
9 *
10 * A resource representing a Payer's funding instrument. An instance of this schema is valid if and only if it is valid against exactly one of these supported properties
11 *
12 * @package PayPal\Api
13 *
14 * @property \PayPal\Api\CreditCard credit_card
15 * @property \PayPal\Api\CreditCardToken credit_card_token
16 * @property \PayPal\Api\Billing billing
17 */
18 class FundingInstrument extends PayPalModel
19 {
20 /**
21 * Credit Card instrument.
22 *
23 * @param \PayPal\Api\CreditCard $credit_card
24 *
25 * @return $this
26 */
27 public function setCreditCard($credit_card)
28 {
29 $this->credit_card = $credit_card;
30 return $this;
31 }
32
33 /**
34 * Credit Card instrument.
35 *
36 * @return \PayPal\Api\CreditCard
37 */
38 public function getCreditCard()
39 {
40 return $this->credit_card;
41 }
42
43 /**
44 * PayPal vaulted credit Card instrument.
45 *
46 * @param \PayPal\Api\CreditCardToken $credit_card_token
47 *
48 * @return $this
49 */
50 public function setCreditCardToken($credit_card_token)
51 {
52 $this->credit_card_token = $credit_card_token;
53 return $this;
54 }
55
56 /**
57 * PayPal vaulted credit Card instrument.
58 *
59 * @return \PayPal\Api\CreditCardToken
60 */
61 public function getCreditCardToken()
62 {
63 return $this->credit_card_token;
64 }
65
66 /**
67 * Payment Card information.
68 *
69 * @param \PayPal\Api\PaymentCard $payment_card
70 *
71 * @return $this
72 */
73 public function setPaymentCard($payment_card)
74 {
75 $this->payment_card = $payment_card;
76 return $this;
77 }
78
79 /**
80 * Payment Card information.
81 *
82 * @return \PayPal\Api\PaymentCard
83 */
84 public function getPaymentCard()
85 {
86 return $this->payment_card;
87 }
88
89 /**
90 * Bank Account information.
91 * @deprecated Not publicly available
92 * @param \PayPal\Api\ExtendedBankAccount $bank_account
93 *
94 * @return $this
95 */
96 public function setBankAccount($bank_account)
97 {
98 $this->bank_account = $bank_account;
99 return $this;
100 }
101
102 /**
103 * Bank Account information.
104 * @deprecated Not publicly available
105 * @return \PayPal\Api\ExtendedBankAccount
106 */
107 public function getBankAccount()
108 {
109 return $this->bank_account;
110 }
111
112 /**
113 * Vaulted bank account instrument.
114 * @deprecated Not publicly available
115 * @param \PayPal\Api\BankToken $bank_account_token
116 *
117 * @return $this
118 */
119 public function setBankAccountToken($bank_account_token)
120 {
121 $this->bank_account_token = $bank_account_token;
122 return $this;
123 }
124
125 /**
126 * Vaulted bank account instrument.
127 * @deprecated Not publicly available
128 * @return \PayPal\Api\BankToken
129 */
130 public function getBankAccountToken()
131 {
132 return $this->bank_account_token;
133 }
134
135 /**
136 * PayPal credit funding instrument.
137 * @deprecated Not publicly available
138 * @param \PayPal\Api\Credit $credit
139 *
140 * @return $this
141 */
142 public function setCredit($credit)
143 {
144 $this->credit = $credit;
145 return $this;
146 }
147
148 /**
149 * PayPal credit funding instrument.
150 * @deprecated Not publicly available
151 * @return \PayPal\Api\Credit
152 */
153 public function getCredit()
154 {
155 return $this->credit;
156 }
157
158 /**
159 * Incentive funding instrument.
160 * @deprecated Not publicly available
161 * @param \PayPal\Api\Incentive $incentive
162 *
163 * @return $this
164 */
165 public function setIncentive($incentive)
166 {
167 $this->incentive = $incentive;
168 return $this;
169 }
170
171 /**
172 * Incentive funding instrument.
173 * @deprecated Not publicly available
174 * @return \PayPal\Api\Incentive
175 */
176 public function getIncentive()
177 {
178 return $this->incentive;
179 }
180
181 /**
182 * External funding instrument.
183 * @deprecated Not publicly available
184 * @param \PayPal\Api\ExternalFunding $external_funding
185 *
186 * @return $this
187 */
188 public function setExternalFunding($external_funding)
189 {
190 $this->external_funding = $external_funding;
191 return $this;
192 }
193
194 /**
195 * External funding instrument.
196 * @deprecated Not publicly available
197 * @return \PayPal\Api\ExternalFunding
198 */
199 public function getExternalFunding()
200 {
201 return $this->external_funding;
202 }
203
204 /**
205 * Carrier account token instrument.
206 * @deprecated Not publicly available
207 * @param \PayPal\Api\CarrierAccountToken $carrier_account_token
208 *
209 * @return $this
210 */
211 public function setCarrierAccountToken($carrier_account_token)
212 {
213 $this->carrier_account_token = $carrier_account_token;
214 return $this;
215 }
216
217 /**
218 * Carrier account token instrument.
219 * @deprecated Not publicly available
220 * @return \PayPal\Api\CarrierAccountToken
221 */
222 public function getCarrierAccountToken()
223 {
224 return $this->carrier_account_token;
225 }
226
227 /**
228 * Carrier account instrument
229 * @deprecated Not publicly available
230 * @param \PayPal\Api\CarrierAccount $carrier_account
231 *
232 * @return $this
233 */
234 public function setCarrierAccount($carrier_account)
235 {
236 $this->carrier_account = $carrier_account;
237 return $this;
238 }
239
240 /**
241 * Carrier account instrument
242 * @deprecated Not publicly available
243 * @return \PayPal\Api\CarrierAccount
244 */
245 public function getCarrierAccount()
246 {
247 return $this->carrier_account;
248 }
249
250 /**
251 * Private Label Card funding instrument. These are store cards provided by merchants to drive business with value to customer with convenience and rewards.
252 * @deprecated Not publicly available
253 * @param \PayPal\Api\PrivateLabelCard $private_label_card
254 *
255 * @return $this
256 */
257 public function setPrivateLabelCard($private_label_card)
258 {
259 $this->private_label_card = $private_label_card;
260 return $this;
261 }
262
263 /**
264 * Private Label Card funding instrument. These are store cards provided by merchants to drive business with value to customer with convenience and rewards.
265 * @deprecated Not publicly available
266 * @return \PayPal\Api\PrivateLabelCard
267 */
268 public function getPrivateLabelCard()
269 {
270 return $this->private_label_card;
271 }
272
273 /**
274 * Billing instrument that references pre-approval information for the payment
275 *
276 * @param \PayPal\Api\Billing $billing
277 *
278 * @return $this
279 */
280 public function setBilling($billing)
281 {
282 $this->billing = $billing;
283 return $this;
284 }
285
286 /**
287 * Billing instrument that references pre-approval information for the payment
288 *
289 * @return \PayPal\Api\Billing
290 */
291 public function getBilling()
292 {
293 return $this->billing;
294 }
295
296 /**
297 * Alternate Payment information - Mostly regional payment providers. For e.g iDEAL in Netherlands
298 *
299 * @deprecated Not publicly available
300 * @param \PayPal\Api\AlternatePayment $alternate_payment
301 *
302 * @return $this
303 */
304 public function setAlternatePayment($alternate_payment)
305 {
306 $this->alternate_payment = $alternate_payment;
307 return $this;
308 }
309
310 /**
311 * Alternate Payment information - Mostly regional payment providers. For e.g iDEAL in Netherlands
312 *
313 * @deprecated Not publicly available
314 * @return \PayPal\Api\AlternatePayment
315 */
316 public function getAlternatePayment()
317 {
318 return $this->alternate_payment;
319 }
320
321 }
322