PayPal\Api\ShippingAddress::getDefaultAddress PHP Method

getDefaultAddress() public method

Default shipping address of the Payer.
Deprecation: Not publicly available
public getDefaultAddress ( ) : boolean
return boolean
    public function getDefaultAddress()
    {
        return $this->default_address;
    }

Usage Example

コード例 #1
0
 /**
  * @depends testSerializationDeserialization
  * @param ShippingAddress $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getRecipientName(), "TestSample");
     $this->assertEquals($obj->getDefaultAddress(), true);
 }