src/AvaTaxClient.php
/**
     * Add an address to this line
     *
     * @param   string              type        Address Type (See AddressType::* for a list of allowable values)
     * @param   string              line1       The street address, attention line, or business name of the location.
     * @param   string              line2       The street address, business name, or apartment/unit number of the location.
     * @param   string              line3       The street address or apartment/unit number of the location.
     * @param   string              city        City of the location.
     * @param   string              region      State or Region of the location.
     * @param   string              postalCode  Postal/zip code of the location.
     * @param   string              country     The two-letter country code of the location.
     * @return  TransactionBuilder
     */
Add an address to this line
@param   string              type        Address Type (See AddressType::* for a list of allowable values)
@param   string              line1       The street address, attention line, or business name of the location.
@param   string              line2       The street address, business name, or apartment/unit number of the location.
@param   string              line3       The street address or apartment/unit number of the location.
@param   string              city        City of the location.
@param   string              region      State or Region of the location.
@param   string              postalCode  Postal/zip code of the location.
@param   string              country     The two-letter country code of the location.
Add an address to this line @param string type Address Type ( See AddressType :: * for a list of allowable values ) @param string line1 The street address attention line or business name of the location . @param string line2 The street address business name or apartment / unit number of the location . @param string line3 The street address or apartment / unit number of the location . @param string city City of the location . @param string region State or Region of the location . @param string postalCode Postal / zip code of the location . @param string country The two - letter country code of the location .
public function withLineAddress($type, $line1, $line2, $line3, $city, $region, $postalCode, $country)
    {
        $line = $this->getMostRecentLine("WithLineAddress");
        $line['addresses'][$type] = [
            'line1' => $line1,
            'line2' => $line2,
            'line3' => $line3,
            'city' => $city,
            'region' => $region,
            'postalCode' => $postalCode,
            'country' => $country
        ];
        return $this;
    }
public function withLineAddress ( $ type , $ line1 , $ line2 , $ line3 , $ city , $ region , $ postalCode , $ country ) { $ line = $ this -> getMostRecentLine ( " WithLineAddress " ) ; $ line [ 'addresses' ] [ $ type ] = [ 'line1' => $ line1 , 'line2' => $ line2 , 'line3' => $ line3 , 'city' => $ city , 'region' => $ region , 'postalCode' => $ postalCode , 'country' => $ country ] ; return $ this ; }
Add an address to this line
 @param   string              type        Address Type (See AddressType::* for a list of allowable values)
 @param   string              line1       The street address, attention line, or business name of the location.
Add an address to this line @param string type Address Type ( See AddressType :: * for a list of allowable values ) @param string line1 The street address attention line or business name of the location .