public function withAddress(Address $address, $type = AddressType::BILLING)
    {
        $address->type = $type;
        if ($type === AddressType::BILLING) {
            $this->billingAddress = $address;
        } else {
            $this->shippingAddress = $address;
        }
        return $this;
    }
public function withAddress(Address $address, $type = AddressType::BILLING)
    {
        $address->type = $type;
        if ($type === AddressType::BILLING) {
            $this->billingAddress = $address;
        } else {
            $this->shippingAddress = $address;
        }
        return $this;
    }
public function withAddress ( Address $ address , $ type = AddressType :: BILLING ) { $ address -> type = $ type ; if ( $ type === AddressType :: BILLING ) { $ this -> billingAddress = $ address ; } else { $ this -> shippingAddress = $ address ; } return $ this ; }
Set an address value; where applicable.

Currently supports billing and shipping addresses.

@param Address $address The desired address information
@param AddressType|string $type The desired address type

@return AuthorizationBuilder
Set an address value ; where applicable .