PHP Class PayPal\Api\ShippingAddress

Extended Address object used as shipping address in a payment.
Inheritance: extends Address
Mostrar archivo Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getDefaultAddress ( ) : boolean Default shipping address of the Payer.
getId ( ) : string Address ID assigned in PayPal system.
getPreferredAddress ( ) : boolean Shipping Address marked as preferred by Payer.
getRecipientName ( ) : string Name of the recipient at this address.
setDefaultAddress ( boolean $default_address ) Default shipping address of the Payer.
setId ( string $id ) Address ID assigned in PayPal system.
setPreferredAddress ( boolean $preferred_address ) Shipping Address marked as preferred by Payer.
setRecipientName ( string $recipient_name ) Name of the recipient at this address.

Method Details

getDefaultAddress() public method

Default shipping address of the Payer.
Deprecation: Not publicly available
public getDefaultAddress ( ) : boolean
return boolean

getId() public method

Address ID assigned in PayPal system.
Deprecation: Not publicly available
public getId ( ) : string
return string

getPreferredAddress() public method

Shipping Address marked as preferred by Payer.
Deprecation: Not publicly available
public getPreferredAddress ( ) : boolean
return boolean

getRecipientName() public method

Name of the recipient at this address.
public getRecipientName ( ) : string
return string

setDefaultAddress() public method

Default shipping address of the Payer.
Deprecation: Not publicly available
public setDefaultAddress ( boolean $default_address )
$default_address boolean

setId() public method

Address ID assigned in PayPal system.
Deprecation: Not publicly available
public setId ( string $id )
$id string

setPreferredAddress() public method

Shipping Address marked as preferred by Payer.
Deprecation: Not publicly available
public setPreferredAddress ( boolean $preferred_address )
$preferred_address boolean

setRecipientName() public method

Name of the recipient at this address.
public setRecipientName ( string $recipient_name )
$recipient_name string