PHP Class PayPal\Api\BillingInfo

Billing information for the invoice recipient.
Inheritance: extends PayPal\Common\PayPalModel
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getAdditionalInfo ( ) : string Additional information, such as business hours. Maximum length is 40 characters.
getAddress ( ) : InvoiceAddress The invoice recipient address.
getBusinessName ( ) : string The invoice recipient company business name. Maximum length is 100 characters.
getEmail ( ) : string The invoice recipient email address. Maximum length is 260 characters.
getFirstName ( ) : string The invoice recipient first name. Maximum length is 30 characters.
getLanguage ( ) : string The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
getLastName ( ) : string The invoice recipient last name. Maximum length is 30 characters.
getNotificationChannel ( ) : string Preferred notification channel of the payer. Email by default.
getPhone ( ) : Phone Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
setAdditionalInfo ( string $additional_info ) Additional information, such as business hours. Maximum length is 40 characters.
setAddress ( InvoiceAddress $address ) The invoice recipient address.
setBusinessName ( string $business_name ) The invoice recipient company business name. Maximum length is 100 characters.
setEmail ( string $email ) The invoice recipient email address. Maximum length is 260 characters.
setFirstName ( string $first_name ) The invoice recipient first name. Maximum length is 30 characters.
setLanguage ( string $language ) The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
setLastName ( string $last_name ) The invoice recipient last name. Maximum length is 30 characters.
setNotificationChannel ( string $notification_channel ) Preferred notification channel of the payer. Email by default.
setPhone ( Phone $phone ) Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.

Method Details

getAdditionalInfo() public method

Additional information, such as business hours. Maximum length is 40 characters.
public getAdditionalInfo ( ) : string
return string

getAddress() public method

The invoice recipient address.
public getAddress ( ) : InvoiceAddress
return InvoiceAddress

getBusinessName() public method

The invoice recipient company business name. Maximum length is 100 characters.
public getBusinessName ( ) : string
return string

getEmail() public method

The invoice recipient email address. Maximum length is 260 characters.
public getEmail ( ) : string
return string

getFirstName() public method

The invoice recipient first name. Maximum length is 30 characters.
public getFirstName ( ) : string
return string

getLanguage() public method

The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
public getLanguage ( ) : string
return string

getLastName() public method

The invoice recipient last name. Maximum length is 30 characters.
public getLastName ( ) : string
return string

getNotificationChannel() public method

Preferred notification channel of the payer. Email by default.
public getNotificationChannel ( ) : string
return string

getPhone() public method

Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
public getPhone ( ) : Phone
return Phone

setAdditionalInfo() public method

Additional information, such as business hours. Maximum length is 40 characters.
public setAdditionalInfo ( string $additional_info )
$additional_info string

setAddress() public method

The invoice recipient address.
public setAddress ( InvoiceAddress $address )
$address InvoiceAddress

setBusinessName() public method

The invoice recipient company business name. Maximum length is 100 characters.
public setBusinessName ( string $business_name )
$business_name string

setEmail() public method

The invoice recipient email address. Maximum length is 260 characters.
public setEmail ( string $email )
$email string

setFirstName() public method

The invoice recipient first name. Maximum length is 30 characters.
public setFirstName ( string $first_name )
$first_name string

setLanguage() public method

Valid Values: ["da_DK", "de_DE", "en_AU", "en_GB", "en_US", "es_ES", "es_XC", "fr_CA", "fr_FR", "fr_XC", "he_IL", "id_ID", "it_IT", "ja_JP", "nl_NL", "no_NO", "pl_PL", "pt_BR", "pt_PT", "ru_RU", "sv_SE", "th_TH", "tr_TR", "zh_CN", "zh_HK", "zh_TW", "zh_XC"]
public setLanguage ( string $language )
$language string

setLastName() public method

The invoice recipient last name. Maximum length is 30 characters.
public setLastName ( string $last_name )
$last_name string

setNotificationChannel() public method

Valid Values: ["SMS", "EMAIL"]
public setNotificationChannel ( string $notification_channel )
$notification_channel string

setPhone() public method

Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
public setPhone ( Phone $phone )
$phone Phone