PHP Class PayPal\Api\ShippingInfo

Shipping 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
getAddress ( ) : InvoiceAddress The invoice recipient address.
getBusinessName ( ) : string The invoice recipient company business name. Maximum length is 100 characters.
getEmail ( ) : string
getFirstName ( ) : string The invoice recipient first name. Maximum length is 30 characters.
getLastName ( ) : string The invoice recipient last name. Maximum length is 30 characters.
getPhone ( ) : Phone
setAddress ( InvoiceAddress $address ) Address of the invoice recipient.
setBusinessName ( string $business_name ) The invoice recipient company business name. Maximum length is 100 characters.
setEmail ( string $email )
setFirstName ( string $first_name ) The invoice recipient first name. Maximum length is 30 characters.
setLastName ( string $last_name ) The invoice recipient last name. Maximum length is 30 characters.
setPhone ( Phone $phone )

Method Details

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

Deprecation: Not used anymore
public getEmail ( ) : string
return string

getFirstName() public method

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

getLastName() public method

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

getPhone() public method

public getPhone ( ) : Phone
return Phone

setAddress() public method

Address of the invoice recipient.
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

Deprecation: Not used anymore
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

setLastName() public method

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

setPhone() public method

public setPhone ( Phone $phone )
$phone Phone