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 use PayPal\Validation\UrlValidator;
  7 
  8 /**
  9  * Class Metadata
 10  *
 11  * Audit information for the resource.
 12  *
 13  * @package PayPal\Api
 14  *
 15  * @property string created_date
 16  * @property string created_by
 17  * @property string cancelled_date
 18  * @property string cancelled_by
 19  * @property string last_updated_date
 20  * @property string last_updated_by
 21  * @property string first_sent_date
 22  * @property string last_sent_date
 23  * @property string last_sent_by
 24  * @property string payer_view_url
 25  */
 26 class Metadata extends PayPalModel
 27 {
 28     /**
 29      * The date and time when the resource was created.
 30      *
 31      * @param string $created_date
 32      * 
 33      * @return $this
 34      */
 35     public function setCreatedDate($created_date)
 36     {
 37         $this->created_date = $created_date;
 38         return $this;
 39     }
 40 
 41     /**
 42      * The date and time when the resource was created.
 43      *
 44      * @return string
 45      */
 46     public function getCreatedDate()
 47     {
 48         return $this->created_date;
 49     }
 50 
 51     /**
 52      * The email address of the account that created the resource.
 53      *
 54      * @param string $created_by
 55      * 
 56      * @return $this
 57      */
 58     public function setCreatedBy($created_by)
 59     {
 60         $this->created_by = $created_by;
 61         return $this;
 62     }
 63 
 64     /**
 65      * The email address of the account that created the resource.
 66      *
 67      * @return string
 68      */
 69     public function getCreatedBy()
 70     {
 71         return $this->created_by;
 72     }
 73 
 74     /**
 75      * The date and time when the resource was cancelled.
 76      *
 77      * @param string $cancelled_date
 78      * 
 79      * @return $this
 80      */
 81     public function setCancelledDate($cancelled_date)
 82     {
 83         $this->cancelled_date = $cancelled_date;
 84         return $this;
 85     }
 86 
 87     /**
 88      * The date and time when the resource was cancelled.
 89      *
 90      * @return string
 91      */
 92     public function getCancelledDate()
 93     {
 94         return $this->cancelled_date;
 95     }
 96 
 97     /**
 98      * The actor who cancelled the resource.
 99      *
100      * @param string $cancelled_by
101      * 
102      * @return $this
103      */
104     public function setCancelledBy($cancelled_by)
105     {
106         $this->cancelled_by = $cancelled_by;
107         return $this;
108     }
109 
110     /**
111      * The actor who cancelled the resource.
112      *
113      * @return string
114      */
115     public function getCancelledBy()
116     {
117         return $this->cancelled_by;
118     }
119 
120     /**
121      * The date and time when the resource was last edited.
122      *
123      * @param string $last_updated_date
124      * 
125      * @return $this
126      */
127     public function setLastUpdatedDate($last_updated_date)
128     {
129         $this->last_updated_date = $last_updated_date;
130         return $this;
131     }
132 
133     /**
134      * The date and time when the resource was last edited.
135      *
136      * @return string
137      */
138     public function getLastUpdatedDate()
139     {
140         return $this->last_updated_date;
141     }
142 
143     /**
144      * The email address of the account that last edited the resource.
145      *
146      * @param string $last_updated_by
147      * 
148      * @return $this
149      */
150     public function setLastUpdatedBy($last_updated_by)
151     {
152         $this->last_updated_by = $last_updated_by;
153         return $this;
154     }
155 
156     /**
157      * The email address of the account that last edited the resource.
158      *
159      * @return string
160      */
161     public function getLastUpdatedBy()
162     {
163         return $this->last_updated_by;
164     }
165 
166     /**
167      * The date and time when the resource was first sent.
168      *
169      * @param string $first_sent_date
170      * 
171      * @return $this
172      */
173     public function setFirstSentDate($first_sent_date)
174     {
175         $this->first_sent_date = $first_sent_date;
176         return $this;
177     }
178 
179     /**
180      * The date and time when the resource was first sent.
181      *
182      * @return string
183      */
184     public function getFirstSentDate()
185     {
186         return $this->first_sent_date;
187     }
188 
189     /**
190      * The date and time when the resource was last sent.
191      *
192      * @param string $last_sent_date
193      * 
194      * @return $this
195      */
196     public function setLastSentDate($last_sent_date)
197     {
198         $this->last_sent_date = $last_sent_date;
199         return $this;
200     }
201 
202     /**
203      * The date and time when the resource was last sent.
204      *
205      * @return string
206      */
207     public function getLastSentDate()
208     {
209         return $this->last_sent_date;
210     }
211 
212     /**
213      * The email address of the account that last sent the resource.
214      *
215      * @param string $last_sent_by
216      * 
217      * @return $this
218      */
219     public function setLastSentBy($last_sent_by)
220     {
221         $this->last_sent_by = $last_sent_by;
222         return $this;
223     }
224 
225     /**
226      * The email address of the account that last sent the resource.
227      *
228      * @return string
229      */
230     public function getLastSentBy()
231     {
232         return $this->last_sent_by;
233     }
234 
235     /**
236      * URL representing the payer's view of the invoice.
237      *
238      * @param string $payer_view_url
239      * @throws \InvalidArgumentException
240      * @return $this
241      */
242     public function setPayerViewUrl($payer_view_url)
243     {
244         UrlValidator::validate($payer_view_url, "PayerViewUrl");
245         $this->payer_view_url = $payer_view_url;
246         return $this;
247     }
248 
249     /**
250      * URL representing the payer's view of the invoice.
251      *
252      * @return string
253      */
254     public function getPayerViewUrl()
255     {
256         return $this->payer_view_url;
257     }
258 
259 }
260 
API documentation generated by ApiGen