Closed gm-lunatix closed 1 year ago
I am trying to create a transaction with the main address to be:
"addresses": { "singleLocation": { "locationCode": "DEFAULT" } },
In version 22.9.0 the transactionbuilder has a withAddress() method but it does not accept locationCode (https://developer.avalara.com/api-reference/avatax/rest/v2/models/AddressLocationInfo/) only the explicit address parameters (@TransactionBuilder.php line 294):
public function withAddress($type, $line1, $line2, $line3, $city, $region, $postalCode, $country) { if (empty($this->_model['addresses'])) $this->_model['addresses'] = []; $ai = [ 'line1' => $line1, 'line2' => $line2, 'line3' => $line3, 'city' => $city, 'region' => $region, 'postalCode' => $postalCode, 'country' => $country ]; $this->_model['addresses'][$type] = $ai; return $this; }
Am I missing something here (maybe another withXXXX() method for address location code) or this feature does not exist yet?
Should be fixed with release for 23.4.1
I am trying to create a transaction with the main address to be:
In version 22.9.0 the transactionbuilder has a withAddress() method but it does not accept locationCode (https://developer.avalara.com/api-reference/avatax/rest/v2/models/AddressLocationInfo/) only the explicit address parameters (@TransactionBuilder.php line 294):
Am I missing something here (maybe another withXXXX() method for address location code) or this feature does not exist yet?