Skip to content

Commit

Permalink
Update AvalaraVersion to remove code that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Wenger committed Jan 6, 2025
1 parent c342887 commit cf9a44a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 54 deletions.
6 changes: 2 additions & 4 deletions lib/API/EInvoicing/V1/DataInputFieldsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(ApiClient $client )
private function setConfiguration($client): void
{
$this->verifyAPIClient($client);
$client->setSdkVersion("24.12.0");
$client->setSdkVersion("24.12.11");
$this->headerSelector = new HeaderSelector();
$this->client = $client;
}
Expand Down Expand Up @@ -457,12 +457,10 @@ public function getDataInputFieldsRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -479,7 +477,7 @@ public function getDataInputFieldsRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down
23 changes: 6 additions & 17 deletions lib/API/EInvoicing/V1/DocumentsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(ApiClient $client )
private function setConfiguration($client): void
{
$this->verifyAPIClient($client);
$client->setSdkVersion("24.12.0");
$client->setSdkVersion("24.12.11");
$this->headerSelector = new HeaderSelector();
$this->client = $client;
}
Expand Down Expand Up @@ -432,17 +432,14 @@ public function downloadDocumentRequest($request_parameters)


// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($accept !== null) {
$headerParams['Accept'] = ObjectSerializer::toHeaderValue($accept);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -467,7 +464,7 @@ public function downloadDocumentRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -804,12 +801,10 @@ public function fetchDocumentsRequest($request_parameters)


// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -826,7 +821,7 @@ public function fetchDocumentsRequest($request_parameters)
['application/json']
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -1258,12 +1253,10 @@ public function getDocumentListRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -1280,7 +1273,7 @@ public function getDocumentListRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -1617,12 +1610,10 @@ public function getDocumentStatusRequest($request_parameters)


// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -1647,7 +1638,7 @@ public function getDocumentStatusRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -1991,12 +1982,10 @@ public function submitDocumentRequest($request_parameters)


// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -2021,7 +2010,7 @@ public function submitDocumentRequest($request_parameters)
['multipart/form-data']
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down
7 changes: 2 additions & 5 deletions lib/API/EInvoicing/V1/InteropApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(ApiClient $client )
private function setConfiguration($client): void
{
$this->verifyAPIClient($client);
$client->setSdkVersion("24.12.0");
$client->setSdkVersion("24.12.11");
$this->headerSelector = new HeaderSelector();
$this->client = $client;
}
Expand Down Expand Up @@ -477,17 +477,14 @@ public function submitInteropDocumentRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_correlation_id !== null) {
$headerParams['X-Correlation-ID'] = ObjectSerializer::toHeaderValue($x_correlation_id);
}
Expand Down Expand Up @@ -516,7 +513,7 @@ public function submitInteropDocumentRequest($request_parameters)
['multipart/form-data']
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down
10 changes: 3 additions & 7 deletions lib/API/EInvoicing/V1/MandatesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(ApiClient $client )
private function setConfiguration($client): void
{
$this->verifyAPIClient($client);
$client->setSdkVersion("24.12.0");
$client->setSdkVersion("24.12.11");
$this->headerSelector = new HeaderSelector();
$this->client = $client;
}
Expand Down Expand Up @@ -482,12 +482,10 @@ public function getMandateDataInputFieldsRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -512,7 +510,7 @@ public function getMandateDataInputFieldsRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -923,12 +921,10 @@ public function getMandatesRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
Expand All @@ -945,7 +941,7 @@ public function getMandatesRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down
27 changes: 6 additions & 21 deletions lib/API/EInvoicing/V1/TradingPartnersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(ApiClient $client )
private function setConfiguration($client): void
{
$this->verifyAPIClient($client);
$client->setSdkVersion("24.12.0");
$client->setSdkVersion("24.12.11");
$this->headerSelector = new HeaderSelector();
$this->client = $client;
}
Expand Down Expand Up @@ -383,17 +383,14 @@ public function batchSearchParticipantsRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_correlation_id !== null) {
$headerParams['X-Correlation-ID'] = ObjectSerializer::toHeaderValue($x_correlation_id);
}
Expand Down Expand Up @@ -422,7 +419,7 @@ public function batchSearchParticipantsRequest($request_parameters)
['multipart/form-data']
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -802,17 +799,14 @@ public function downloadBatchSearchReportRequest($request_parameters)


// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_correlation_id !== null) {
$headerParams['X-Correlation-ID'] = ObjectSerializer::toHeaderValue($x_correlation_id);
}
Expand All @@ -837,7 +831,7 @@ public function downloadBatchSearchReportRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -1196,17 +1190,14 @@ public function getBatchSearchDetailRequest($request_parameters)


// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_correlation_id !== null) {
$headerParams['X-Correlation-ID'] = ObjectSerializer::toHeaderValue($x_correlation_id);
}
Expand All @@ -1231,7 +1222,7 @@ public function getBatchSearchDetailRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -1643,17 +1634,14 @@ public function listBatchSearchesRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_correlation_id !== null) {
$headerParams['X-Correlation-ID'] = ObjectSerializer::toHeaderValue($x_correlation_id);
}
Expand All @@ -1670,7 +1658,7 @@ public function listBatchSearchesRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down Expand Up @@ -2121,17 +2109,14 @@ public function searchParticipantsRequest($request_parameters)
}

// header params
$headerParams['avalara-version'] = '1.2';
if ($avalara_version !== null) {
$headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_avalara_client !== null) {
$headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client);
}
// header params
$headerParams['avalara-version'] = '1.2';
if ($x_correlation_id !== null) {
$headerParams['X-Correlation-ID'] = ObjectSerializer::toHeaderValue($x_correlation_id);
}
Expand All @@ -2148,7 +2133,7 @@ public function searchParticipantsRequest($request_parameters)
[]
);
}
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.0; {$this->client->config->getMachineName()}";
$clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 24.12.11; {$this->client->config->getMachineName()}";

$headers['X-Avalara-Client']=$clientId;

Expand Down

0 comments on commit cf9a44a

Please sign in to comment.