Overview
  • Namespace
  • Class

Namespaces

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

Classes

  • ArrayUtil
  • PayPalModel
  • PayPalResourceModel
  • PayPalUserAgent
  • ReflectionUtil

Class PayPalModel

Generic Model class that all API domain classes extend Stores all member data in a Hashmap that enables easy JSON encoding/decoding

Direct known subclasses

PayPal\Api\AgreementDetails, PayPal\Api\AgreementStateDescriptor, PayPal\Api\Billing, PayPal\Api\WebhookList, PayPal\Common\PayPalResourceModel, PayPal\Api\BillingAgreementToken, PayPal\Api\BillingInfo, PayPal\Api\CancelNotification, PayPal\Api\CarrierAccount, PayPal\Api\CarrierAccountToken, PayPal\Api\CartBase, PayPal\Api\ChargeModel, PayPal\Api\Cost, PayPal\Api\CountryCode, PayPal\Api\AgreementTransaction, PayPal\Api\Credit, PayPal\Api\CreditCardHistory, PayPal\Api\CreditCardToken, PayPal\Api\CreditFinancingOffered, PayPal\Api\Currency, PayPal\Api\CurrencyConversion, PayPal\Api\CustomAmount, PayPal\Api\Details, PayPal\Api\Error, PayPal\Api\ErrorDetails, PayPal\Api\AgreementTransactions, PayPal\Api\ExternalFunding, PayPal\Api\FileAttachment, PayPal\Api\FlowConfig, PayPal\Api\FmfDetails, PayPal\Api\FundingDetail, PayPal\Api\FundingInstrument, PayPal\Api\FundingOption, PayPal\Api\HyperSchema, PayPal\Api\Image, PayPal\Api\Incentive, PayPal\Api\AlternatePayment, PayPal\Api\InputFields, PayPal\Api\InstallmentInfo, PayPal\Api\InstallmentOption, PayPal\Api\InvoiceItem, PayPal\Api\InvoiceNumber, PayPal\Api\InvoiceSearchResponse, PayPal\Api\Item, PayPal\Api\ItemList, PayPal\Api\Links, PayPal\Api\Measurement, PayPal\Api\Amount, PayPal\Api\MerchantInfo, PayPal\Api\MerchantPreferences, PayPal\Api\Metadata, PayPal\Api\NameValuePair, PayPal\Api\Notification, PayPal\Api\OpenIdAddress, PayPal\Api\OpenIdError, PayPal\Api\OverrideChargeModel, PayPal\Api\Participant, PayPal\Api\Patch, PayPal\Api\BankAccount, PayPal\Api\PatchRequest, PayPal\Api\Payee, PayPal\Api\Payer, PayPal\Api\PayerInfo, PayPal\Api\PaymentCard, PayPal\Api\PaymentCardToken, PayPal\Api\PaymentDefinition, PayPal\Api\PaymentDetail, PayPal\Api\PaymentExecution, PayPal\Api\PaymentHistory, PayPal\Api\BankAccountsList, PayPal\Api\PaymentOptions, PayPal\Api\PaymentSummary, PayPal\Api\PaymentTerm, PayPal\Api\PayoutBatch, PayPal\Api\PayoutBatchHeader, PayPal\Api\PayoutItemDetails, PayPal\Api\PayoutSenderBatchHeader, PayPal\Api\Phone, PayPal\Api\PlanList, PayPal\Api\PotentialPayerInfo, PayPal\Api\BankToken, PayPal\Api\Presentation, PayPal\Api\PrivateLabelCard, PayPal\Api\ProcessorResponse, PayPal\Api\RecipientBankingInstruction, PayPal\Api\RedirectUrls, PayPal\Api\RefundDetail, PayPal\Api\RefundRequest, PayPal\Api\RelatedResources, PayPal\Api\Search, PayPal\Api\ShippingCost, PayPal\Api\BaseAddress, PayPal\Api\ShippingInfo, PayPal\Api\Tax, PayPal\Api\TemplateData, PayPal\Api\TemplateSettings, PayPal\Api\TemplateSettingsMetadata, PayPal\Api\Terms, PayPal\Api\Transactions, PayPal\Api\VerifyWebhookSignatureResponse, PayPal\Api\WebhookEventList, PayPal\Api\WebhookEventTypeList

Indirect known subclasses

PayPal\Api\Address, PayPal\Api\Agreement, PayPal\Api\FuturePayment, PayPal\Api\Invoice, PayPal\Api\InvoiceAddress, PayPal\Api\OpenIdTokeninfo, PayPal\Api\OpenIdUserinfo, PayPal\Api\Order, PayPal\Api\Payment, PayPal\Api\PaymentInstruction, PayPal\Api\Payout, PayPal\Api\PayoutItem, PayPal\Api\Authorization, PayPal\Api\Plan, PayPal\Api\Refund, PayPal\Api\Sale, PayPal\Api\ShippingAddress, PayPal\Api\Template, PayPal\Api\Templates, PayPal\Api\Transaction, PayPal\Api\TransactionBase, PayPal\Api\VerifyWebhookSignature, PayPal\Api\Webhook, PayPal\Api\Capture, PayPal\Api\WebhookEvent, PayPal\Api\WebhookEventType, PayPal\Api\WebProfile, PayPal\Auth\OAuthTokenCredential, PayPal\Api\CreateProfileResponse, PayPal\Api\CreditCard, PayPal\Api\CreditCardList, PayPal\Api\DetailedRefund, PayPal\Api\ExtendedBankAccount, PayPal\Api\FundingSource

Namespace: PayPal\Common
Located at PayPal/Common/PayPalModel.php

Methods summary

public static
# setCredential( PayPal\Auth\OAuthTokenCredential $credential )

Sets Credential

Sets Credential

Deprecated

Pass ApiContext to create/get methods instead

Parameters

$credential
public
# __construct( array|string|null $data = null )

Default Constructor

Default Constructor

You can pass data as a json representation or array object. This argument eliminates the need to do $obj->fromJson($data) later after creating the object.

Parameters

$data

Throws

InvalidArgumentException
public static array
# getList( mixed $data )

Returns a list of Object from Array or Json String. It is generally used when your json contains an array of this object

Returns a list of Object from Array or Json String. It is generally used when your json contains an array of this object

Parameters

$data
Array object or json string representation

Returns

array
public mixed
# __get( $key )

Magic Get Method

Magic Get Method

Parameters

$key

Returns

mixed
public
# __set( $key, $value )

Magic Set Method

Magic Set Method

Parameters

$key
$value
public boolean
# __isset( $key )

Magic isSet Method

Magic isSet Method

Parameters

$key

Returns

boolean
public
# __unset( $key )

Magic Unset Method

Magic Unset Method

Parameters

$key
public
# fromArray( $arr )

Fills object value from Array list

Fills object value from Array list

Parameters

$arr

Returns


$this
public
# fromJson( $json )

Fills object value from Json string

Fills object value from Json string

Parameters

$json

Returns


$this
public array
# toArray( )

Returns array representation of object

Returns array representation of object

Returns

array
public string
# toJSON( integer $options = 0 )

Returns object JSON representation

Returns object JSON representation

Parameters

$options
http://php.net/manual/en/json.constants.php

Returns

string
public string
# __toString( )

Magic Method for toString

Magic Method for toString

Returns

string

Properties summary

protected static PayPal\Auth\OAuthTokenCredential $credential

OAuth Credentials to use for this call

OAuth Credentials to use for this call

#
API documentation generated by ApiGen