src/AvaTaxClient.php
/**
     * Add a line to this transaction
     *
     * @param   float               $amount      Value of the 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 a line to this transaction
@param   float               $amount      Value of the 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 a line to this transaction @param float $amount Value of the 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 withSeparateAddressLine($amount, $type, $line1, $line2, $line3, $city, $region, $postalCode, $country)
    {
        $l = [
            'number' => $this->_line_number,
            'quantity' => 1,
            'amount' => $amount,
            'addresses' => [
                $type => [
                    'line1' => $line1,
                    'line2' => $line2,
                    'line3' => $line3,
                    'city' => $city,
                    'region' => $region,
                    'postalCode' => $postalCode,
                    'country' => $country
                ]
            ]
        ];
        array_push($this->_model['lines'], $l);
        $this->_line_number++;
        return $this;
    }
public function withSeparateAddressLine ( $ amount , $ type , $ line1 , $ line2 , $ line3 , $ city , $ region , $ postalCode , $ country ) { $ l = [ 'number' => $ this -> _line_number , 'quantity' => 1 , 'amount' => $ amount , 'addresses' => [ $ type => [ 'line1' => $ line1 , 'line2' => $ line2 , 'line3' => $ line3 , 'city' => $ city , 'region' => $ region , 'postalCode' => $ postalCode , 'country' => $ country ] ] ] ; array_push ( $ this -> _model [ 'lines' ] , $ l ) ; $ this -> _line_number ++ ; return $ this ; }
Add a line to this transaction
 @param   float               $amount      Value of the 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 a line to this transaction @param float $amount Value of the 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 .
// Put this line in the model // Continue building