Overview
  • Namespace
  • Class

Namespaces

  • PayPal
    • Api
    • Auth
    • Cache
    • Common
    • Converter
    • Core
    • Exception
    • Handler
    • Log
    • Rest
    • Security
    • Transport
    • Validation

Classes

  • PayPal\Api\Address
  • PayPal\Api\Agreement
  • PayPal\Api\AgreementDetails
  • PayPal\Api\AgreementStateDescriptor
  • PayPal\Api\AgreementTransaction
  • PayPal\Api\AgreementTransactions
  • PayPal\Api\AlternatePayment
  • PayPal\Api\Amount
  • PayPal\Api\Authorization
  • PayPal\Api\BankAccount
  • PayPal\Api\BankAccountsList
  • PayPal\Api\BankToken
  • PayPal\Api\BaseAddress
  • PayPal\Api\Billing
  • PayPal\Api\BillingAgreementToken
  • PayPal\Api\BillingInfo
  • PayPal\Api\CancelNotification
  • PayPal\Api\Capture
  • PayPal\Api\CarrierAccount
  • PayPal\Api\CarrierAccountToken
  • PayPal\Api\CartBase
  • PayPal\Api\ChargeModel
  • PayPal\Api\Cost
  • PayPal\Api\CountryCode
  • PayPal\Api\CreateProfileResponse
  • PayPal\Api\Credit
  • PayPal\Api\CreditCard
  • PayPal\Api\CreditCardHistory
  • PayPal\Api\CreditCardList
  • PayPal\Api\CreditCardToken
  • PayPal\Api\CreditFinancingOffered
  • PayPal\Api\Currency
  • PayPal\Api\CurrencyConversion
  • PayPal\Api\CustomAmount
  • PayPal\Api\DetailedRefund
  • PayPal\Api\Details
  • PayPal\Api\Error
  • PayPal\Api\ErrorDetails
  • PayPal\Api\ExtendedBankAccount
  • PayPal\Api\ExternalFunding
  • PayPal\Api\FileAttachment
  • PayPal\Api\FlowConfig
  • PayPal\Api\FmfDetails
  • PayPal\Api\FundingDetail
  • PayPal\Api\FundingInstrument
  • PayPal\Api\FundingOption
  • PayPal\Api\FundingSource
  • PayPal\Api\FuturePayment
  • PayPal\Api\HyperSchema
  • PayPal\Api\Image
  • PayPal\Api\Incentive
  • PayPal\Api\InputFields
  • PayPal\Api\InstallmentInfo
  • PayPal\Api\InstallmentOption
  • PayPal\Api\Invoice
  • PayPal\Api\InvoiceAddress
  • PayPal\Api\InvoiceItem
  • PayPal\Api\InvoiceNumber
  • PayPal\Api\InvoiceSearchResponse
  • PayPal\Api\Item
  • PayPal\Api\ItemList
  • PayPal\Api\Links
  • PayPal\Api\Measurement
  • PayPal\Api\MerchantInfo
  • PayPal\Api\MerchantPreferences
  • PayPal\Api\Metadata
  • PayPal\Api\NameValuePair
  • PayPal\Api\Notification
  • PayPal\Api\OpenIdAddress
  • PayPal\Api\OpenIdError
  • PayPal\Api\OpenIdSession
  • PayPal\Api\OpenIdTokeninfo
  • PayPal\Api\OpenIdUserinfo
  • PayPal\Api\Order
  • PayPal\Api\OverrideChargeModel
  • PayPal\Api\Participant
  • PayPal\Api\Patch
  • PayPal\Api\PatchRequest
  • PayPal\Api\Payee
  • PayPal\Api\Payer
  • PayPal\Api\PayerInfo
  • PayPal\Api\Payment
  • PayPal\Api\PaymentCard
  • PayPal\Api\PaymentCardToken
  • PayPal\Api\PaymentDefinition
  • PayPal\Api\PaymentDetail
  • PayPal\Api\PaymentExecution
  • PayPal\Api\PaymentHistory
  • PayPal\Api\PaymentInstruction
  • PayPal\Api\PaymentOptions
  • PayPal\Api\PaymentSummary
  • PayPal\Api\PaymentTerm
  • PayPal\Api\Payout
  • PayPal\Api\PayoutBatch
  • PayPal\Api\PayoutBatchHeader
  • PayPal\Api\PayoutItem
  • PayPal\Api\PayoutItemDetails
  • PayPal\Api\PayoutSenderBatchHeader
  • PayPal\Api\Phone
  • PayPal\Api\Plan
  • PayPal\Api\PlanList
  • PayPal\Api\PotentialPayerInfo
  • PayPal\Api\Presentation
  • PayPal\Api\PrivateLabelCard
  • PayPal\Api\ProcessorResponse
  • PayPal\Api\RecipientBankingInstruction
  • PayPal\Api\RedirectUrls
  • PayPal\Api\Refund
  • PayPal\Api\RefundDetail
  • PayPal\Api\RefundRequest
  • PayPal\Api\RelatedResources
  • PayPal\Api\Sale
  • PayPal\Api\Search
  • PayPal\Api\ShippingAddress
  • PayPal\Api\ShippingCost
  • PayPal\Api\ShippingInfo
  • PayPal\Api\Tax
  • PayPal\Api\Template
  • PayPal\Api\TemplateData
  • PayPal\Api\Templates
  • PayPal\Api\TemplateSettings
  • PayPal\Api\TemplateSettingsMetadata
  • PayPal\Api\Terms
  • PayPal\Api\Transaction
  • PayPal\Api\TransactionBase
  • PayPal\Api\Transactions
  • PayPal\Api\VerifyWebhookSignature
  • PayPal\Api\VerifyWebhookSignatureResponse
  • PayPal\Api\Webhook
  • PayPal\Api\WebhookEvent
  • PayPal\Api\WebhookEventList
  • PayPal\Api\WebhookEventType
  • PayPal\Api\WebhookEventTypeList
  • PayPal\Api\WebhookList
  • PayPal\Api\WebProfile
  • PayPal\Auth\OAuthTokenCredential
  • PayPal\Cache\AuthorizationCache
  • PayPal\Common\ArrayUtil
  • PayPal\Common\PayPalModel
  • PayPal\Common\PayPalResourceModel
  • PayPal\Common\PayPalUserAgent
  • PayPal\Common\ReflectionUtil
  • PayPal\Converter\FormatConverter
  • PayPal\Core\PayPalConfigManager
  • PayPal\Core\PayPalConstants
  • PayPal\Core\PayPalCredentialManager
  • PayPal\Core\PayPalHttpConfig
  • PayPal\Core\PayPalHttpConnection
  • PayPal\Core\PayPalLoggingManager
  • PayPal\Handler\OauthHandler
  • PayPal\Handler\RestHandler
  • PayPal\Log\PayPalDefaultLogFactory
  • PayPal\Log\PayPalLogger
  • PayPal\Rest\ApiContext
  • PayPal\Security\Cipher
  • PayPal\Transport\PayPalRestCall
  • PayPal\Validation\ArgumentValidator
  • PayPal\Validation\JsonValidator
  • PayPal\Validation\NumericValidator
  • PayPal\Validation\UrlValidator

Interfaces

  • PayPal\Handler\IPayPalHandler
  • PayPal\Log\PayPalLogFactory
  • PayPal\Rest\IResource

Exceptions

  • PayPal\Exception\PayPalConfigurationException
  • PayPal\Exception\PayPalConnectionException
  • PayPal\Exception\PayPalInvalidCredentialException
  • PayPal\Exception\PayPalMissingCredentialException
  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 
API documentation generated by ApiGen