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 PayPalResourceModel

Class PayPalResourceModel An Executable PayPalModel Class

PayPal\Common\PayPalModel
Extended by PayPal\Common\PayPalResourceModel implements PayPal\Rest\IResource

Direct known subclasses

PayPal\Api\Agreement, PayPal\Api\Authorization, PayPal\Api\PaymentInstruction, PayPal\Api\Payout, PayPal\Api\PayoutItem, PayPal\Api\Plan, PayPal\Api\Refund, PayPal\Api\Sale, PayPal\Api\Template, PayPal\Api\Templates, PayPal\Api\VerifyWebhookSignature, PayPal\Api\Webhook, PayPal\Api\Capture, PayPal\Api\WebhookEvent, PayPal\Api\WebhookEventType, PayPal\Api\WebProfile, PayPal\Auth\OAuthTokenCredential, PayPal\Api\CreditCard, PayPal\Api\CreditCardList, PayPal\Api\Invoice, PayPal\Api\OpenIdTokeninfo, PayPal\Api\OpenIdUserinfo, PayPal\Api\Order, PayPal\Api\Payment

Indirect known subclasses

PayPal\Api\CreateProfileResponse, PayPal\Api\DetailedRefund, PayPal\Api\FuturePayment

Namespace: PayPal\Common
Package: PayPal\Common
Located at PayPal/Common/PayPalResourceModel.php

Methods summary

public
# setLinks( PayPal\Api\Links[] $links )

Sets Links

Sets Links

Parameters

$links

Returns


$this
public PayPal\Api\Links[]
# getLinks( )

Gets Links

Gets Links

Returns

PayPal\Api\Links[]
public
# getLink( $rel )
public
# addLink( PayPal\Api\Links $links )

Append Links to the list.

Append Links to the list.

Parameters

$links

Returns


$this
public
# removeLink( PayPal\Api\Links $links )

Remove Links from the list.

Remove Links from the list.

Parameters

$links

Returns


$this
protected static string
# executeCall( string $url, string $method, string $payLoad, array $headers = array(), PayPal\Rest\ApiContext $apiContext = null, PayPal\Transport\PayPalRestCall $restCall = null, array $handlers = array('PayPal\Handler\RestHandler') )

Execute SDK Call to Paypal services

Execute SDK Call to Paypal services

Parameters

$url
$method
$payLoad
$headers
$apiContext
$restCall
$handlers

Returns

string
json response of the object
public
# updateAccessToken( string|null $refreshToken, PayPal\Rest\ApiContext $apiContext )

Updates Access Token using long lived refresh token

Updates Access Token using long lived refresh token

Parameters

$refreshToken
$apiContext

Methods inherited from PayPal\Common\PayPalModel

__construct(), __get(), __isset(), __set(), __toString(), __unset(), fromArray(), fromJson(), getList(), setCredential(), toArray(), toJSON()

Properties summary

Properties inherited from PayPal\Common\PayPalModel

$credential

API documentation generated by ApiGen