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 MerchantInfo
  9  *
 10  * Merchant business information that appears on the invoice.
 11  *
 12  * @package PayPal\Api
 13  *
 14  * @property string email
 15  * @property string first_name
 16  * @property string last_name
 17  * @property \PayPal\Api\InvoiceAddress address
 18  * @property string business_name
 19  * @property \PayPal\Api\Phone phone
 20  * @property \PayPal\Api\Phone fax
 21  * @property string website
 22  * @property string tax_id
 23  * @property string additional_info_label
 24  * @property string additional_info
 25  */
 26 class MerchantInfo extends PayPalModel
 27 {
 28     /**
 29      * The merchant email address. Maximum length is 260 characters.
 30      *
 31      * @param string $email
 32      * 
 33      * @return $this
 34      */
 35     public function setEmail($email)
 36     {
 37         $this->email = $email;
 38         return $this;
 39     }
 40 
 41     /**
 42      * The merchant email address. Maximum length is 260 characters.
 43      *
 44      * @return string
 45      */
 46     public function getEmail()
 47     {
 48         return $this->email;
 49     }
 50 
 51     /**
 52      * The merchant first name. Maximum length is 30 characters.
 53      *
 54      * @param string $first_name
 55      * 
 56      * @return $this
 57      */
 58     public function setFirstName($first_name)
 59     {
 60         $this->first_name = $first_name;
 61         return $this;
 62     }
 63 
 64     /**
 65      * The merchant first name. Maximum length is 30 characters.
 66      *
 67      * @return string
 68      */
 69     public function getFirstName()
 70     {
 71         return $this->first_name;
 72     }
 73 
 74     /**
 75      * The merchant last name. Maximum length is 30 characters.
 76      *
 77      * @param string $last_name
 78      * 
 79      * @return $this
 80      */
 81     public function setLastName($last_name)
 82     {
 83         $this->last_name = $last_name;
 84         return $this;
 85     }
 86 
 87     /**
 88      * The merchant last name. Maximum length is 30 characters.
 89      *
 90      * @return string
 91      */
 92     public function getLastName()
 93     {
 94         return $this->last_name;
 95     }
 96 
 97     /**
 98      * The merchant address.
 99      *
100      * @param \PayPal\Api\InvoiceAddress $address
101      * 
102      * @return $this
103      */
104     public function setAddress($address)
105     {
106         $this->address = $address;
107         return $this;
108     }
109 
110     /**
111      * The merchant address.
112      *
113      * @return \PayPal\Api\InvoiceAddress
114      */
115     public function getAddress()
116     {
117         return $this->address;
118     }
119 
120     /**
121      * The merchant company business name. Maximum length is 100 characters.
122      *
123      * @param string $business_name
124      * 
125      * @return $this
126      */
127     public function setBusinessName($business_name)
128     {
129         $this->business_name = $business_name;
130         return $this;
131     }
132 
133     /**
134      * The merchant company business name. Maximum length is 100 characters.
135      *
136      * @return string
137      */
138     public function getBusinessName()
139     {
140         return $this->business_name;
141     }
142 
143     /**
144      * The merchant phone number.
145      *
146      * @param \PayPal\Api\Phone $phone
147      * 
148      * @return $this
149      */
150     public function setPhone($phone)
151     {
152         $this->phone = $phone;
153         return $this;
154     }
155 
156     /**
157      * The merchant phone number.
158      *
159      * @return \PayPal\Api\Phone
160      */
161     public function getPhone()
162     {
163         return $this->phone;
164     }
165 
166     /**
167      * The merchant fax number.
168      *
169      * @param \PayPal\Api\Phone $fax
170      * 
171      * @return $this
172      */
173     public function setFax($fax)
174     {
175         $this->fax = $fax;
176         return $this;
177     }
178 
179     /**
180      * The merchant fax number.
181      *
182      * @return \PayPal\Api\Phone
183      */
184     public function getFax()
185     {
186         return $this->fax;
187     }
188 
189     /**
190      * The merchant website. Maximum length is 2048 characters.
191      *
192      * @param string $website
193      * 
194      * @return $this
195      */
196     public function setWebsite($website)
197     {
198         $this->website = $website;
199         return $this;
200     }
201 
202     /**
203      * The merchant website. Maximum length is 2048 characters.
204      *
205      * @return string
206      */
207     public function getWebsite()
208     {
209         return $this->website;
210     }
211 
212     /**
213      * The merchant tax ID. Maximum length is 100 characters.
214      *
215      * @param string $tax_id
216      * 
217      * @return $this
218      */
219     public function setTaxId($tax_id)
220     {
221         $this->tax_id = $tax_id;
222         return $this;
223     }
224 
225     /**
226      * The merchant tax ID. Maximum length is 100 characters.
227      *
228      * @return string
229      */
230     public function getTaxId()
231     {
232         return $this->tax_id;
233     }
234 
235     /**
236      * Option to provide a label to the additional_info field. 40 characters max.
237      *
238      * @param string $additional_info_label
239      * 
240      * @return $this
241      */
242     public function setAdditionalInfoLabel($additional_info_label)
243     {
244         $this->additional_info_label = $additional_info_label;
245         return $this;
246     }
247 
248     /**
249      * Option to provide a label to the additional_info field. 40 characters max.
250      *
251      * @return string
252      */
253     public function getAdditionalInfoLabel()
254     {
255         return $this->additional_info_label;
256     }
257 
258     /**
259      * Additional information, such as business hours. Maximum length is 40 characters.
260      *
261      * @param string $additional_info
262      * 
263      * @return $this
264      */
265     public function setAdditionalInfo($additional_info)
266     {
267         $this->additional_info = $additional_info;
268         return $this;
269     }
270 
271     /**
272      * Additional information, such as business hours. Maximum length is 40 characters.
273      *
274      * @return string
275      */
276     public function getAdditionalInfo()
277     {
278         return $this->additional_info;
279     }
280 
281 }
282 
API documentation generated by ApiGen