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 
  6 /**
  7  * Class DetailedRefund
  8  *
  9  * A refund transaction. This is the resource that is returned on GET /refund
 10  *
 11  * @package PayPal\Api
 12  *
 13  * @property string custom
 14  * @property \PayPal\Api\Currency refund_to_payer
 15  * @property \PayPal\Api\ExternalFunding[] refund_to_external_funding
 16  * @property \PayPal\Api\Currency refund_from_transaction_fee
 17  * @property \PayPal\Api\Currency refund_from_received_amount
 18  * @property \PayPal\Api\Currency total_refunded_amount
 19  */
 20 class DetailedRefund extends Refund
 21 {
 22     /**
 23      * free-form field for the use of clients
 24      *
 25      * @param string $custom
 26      * 
 27      * @return $this
 28      */
 29     public function setCustom($custom)
 30     {
 31         $this->custom = $custom;
 32         return $this;
 33     }
 34 
 35     /**
 36      * free-form field for the use of clients
 37      *
 38      * @return string
 39      */
 40     public function getCustom()
 41     {
 42         return $this->custom;
 43     }
 44 
 45     /**
 46      * Amount refunded to payer of the original transaction, in the current Refund call
 47      *
 48      * @param \PayPal\Api\Currency $refund_to_payer
 49      * 
 50      * @return $this
 51      */
 52     public function setRefundToPayer($refund_to_payer)
 53     {
 54         $this->refund_to_payer = $refund_to_payer;
 55         return $this;
 56     }
 57 
 58     /**
 59      * Amount refunded to payer of the original transaction, in the current Refund call
 60      *
 61      * @return \PayPal\Api\Currency
 62      */
 63     public function getRefundToPayer()
 64     {
 65         return $this->refund_to_payer;
 66     }
 67 
 68     /**
 69      * List of external funding that were refunded by the Refund call. Each external_funding unit should have a unique reference_id
 70      *
 71      * @param \PayPal\Api\ExternalFunding[] $refund_to_external_funding
 72      * 
 73      * @return $this
 74      */
 75     public function setRefundToExternalFunding($refund_to_external_funding)
 76     {
 77         $this->refund_to_external_funding = $refund_to_external_funding;
 78         return $this;
 79     }
 80 
 81     /**
 82      * List of external funding that were refunded by the Refund call. Each external_funding unit should have a unique reference_id
 83      *
 84      * @return \PayPal\Api\ExternalFunding[]
 85      */
 86     public function getRefundToExternalFunding()
 87     {
 88         return $this->refund_to_external_funding;
 89     }
 90 
 91     /**
 92      * Transaction fee refunded to original recipient of payment.
 93      *
 94      * @param \PayPal\Api\Currency $refund_from_transaction_fee
 95      * 
 96      * @return $this
 97      */
 98     public function setRefundFromTransactionFee($refund_from_transaction_fee)
 99     {
100         $this->refund_from_transaction_fee = $refund_from_transaction_fee;
101         return $this;
102     }
103 
104     /**
105      * Transaction fee refunded to original recipient of payment.
106      *
107      * @return \PayPal\Api\Currency
108      */
109     public function getRefundFromTransactionFee()
110     {
111         return $this->refund_from_transaction_fee;
112     }
113 
114     /**
115      * Amount subtracted from PayPal balance of the original recipient of payment, to make this refund.
116      *
117      * @param \PayPal\Api\Currency $refund_from_received_amount
118      * 
119      * @return $this
120      */
121     public function setRefundFromReceivedAmount($refund_from_received_amount)
122     {
123         $this->refund_from_received_amount = $refund_from_received_amount;
124         return $this;
125     }
126 
127     /**
128      * Amount subtracted from PayPal balance of the original recipient of payment, to make this refund.
129      *
130      * @return \PayPal\Api\Currency
131      */
132     public function getRefundFromReceivedAmount()
133     {
134         return $this->refund_from_received_amount;
135     }
136 
137     /**
138      * Total amount refunded so far from the original purchase. Say, for example, a buyer makes $100 purchase, the buyer was refunded $20 a week ago and is refunded $30 in this transaction. The gross refund amount is $30 (in this transaction). The total refunded amount is $50.
139      *
140      * @param \PayPal\Api\Currency $total_refunded_amount
141      * 
142      * @return $this
143      */
144     public function setTotalRefundedAmount($total_refunded_amount)
145     {
146         $this->total_refunded_amount = $total_refunded_amount;
147         return $this;
148     }
149 
150     /**
151      * Total amount refunded so far from the original purchase. Say, for example, a buyer makes $100 purchase, the buyer was refunded $20 a week ago and is refunded $30 in this transaction. The gross refund amount is $30 (in this transaction). The total refunded amount is $50.
152      *
153      * @return \PayPal\Api\Currency
154      */
155     public function getTotalRefundedAmount()
156     {
157         return $this->total_refunded_amount;
158     }
159 
160 }
161 
API documentation generated by ApiGen