src/Resource/Account.php
public function setCompanyAddress($street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)
    {
        $address = new stdClass();
        $address->street = $street;
        $address->streetNumber = $number;
        $address->complement = $complement;
        $address->district = $district;
        $address->city = $city;
        $address->state = $state;
        $address->country = $country;
        $address->zipCode = $zip;

        $this->initializeCompany();
        $this->data->company->address = $address;

        return $this;
    }
public function setCompanyAddress($street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)
    {
        $address = new stdClass();
        $address->street = $street;
        $address->streetNumber = $number;
        $address->complement = $complement;
        $address->district = $district;
        $address->city = $city;
        $address->state = $state;
        $address->country = $country;
        $address->zipCode = $zip;

        $this->initializeCompany();
        $this->data->company->address = $address;

        return $this;
    }
public function setCompanyAddress ( $ street , $ number , $ district , $ city , $ state , $ zip , $ complement = null , $ country = self :: ADDRESS_COUNTRY ) { $ address = new stdClass ( ) ; $ address -> street = $ street ; $ address -> streetNumber = $ number ; $ address -> complement = $ complement ; $ address -> district = $ district ; $ address -> city = $ city ; $ address -> state = $ state ; $ address -> country = $ country ; $ address -> zipCode = $ zip ; $ this -> initializeCompany ( ) ; $ this -> data -> company -> address = $ address ; return $ this ; }
Set address to company.

@param string $street     Street address.
@param string $number     Number address.
@param string $district   Neighborhood address.
@param string $city       City address.
@param string $state      State address.
@param string $zip        The zip code billing address.
@param string $complement Address complement.
@param string $country    Country ISO-alpha3 format, BRA example.

@return $this
Set address to company .