Skip to content

Commit

Permalink
Update for 21.12.0 (#177)
Browse files Browse the repository at this point in the history
* 21.12.0

* Fixes for AVS and DEVPORT-764 (#178)

* DEVPORT-751: Remove occurrences of printing credentials in Restv2 SDKs (#179)

* Update BatchTests.cs

* Update BatchTests.cs

Co-authored-by: svc-developer <[email protected]>
Co-authored-by: avasachinbaijal <[email protected]>
  • Loading branch information
3 people authored Dec 15, 2021
1 parent 072db6a commit 7c2fde3
Show file tree
Hide file tree
Showing 380 changed files with 3,645 additions and 584 deletions.
4 changes: 2 additions & 2 deletions GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// Revision
//

[assembly: AssemblyVersion("21.10.0")]
[assembly: AssemblyFileVersion("21.10.0")]
[assembly: AssemblyVersion("21.12.0")]
[assembly: AssemblyFileVersion("21.12.0")]
2,221 changes: 2,217 additions & 4 deletions src/AvaTaxApi.cs

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion src/AvaTaxClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public partial class AvaTaxClient
/// Tracks the amount of time spent on the most recent API call
/// </summary>
public CallDuration LastCallTime { get; set; }
/// <summary>
/// Client Id - passed in request header
/// </summary>
public readonly string ClientID;

/// <summary>
/// Returns the version of the SDK that was compiled
Expand Down Expand Up @@ -62,6 +66,7 @@ public partial class AvaTaxClient
/// <param name="userConfiguration">User configuration</param>
public AvaTaxClient(string appName, string appVersion, string machineName, AvaTaxEnvironment environment, UserConfiguration userConfiguration = null)
{
ClientID= String.Format("{0}; {1}; {2}; {{0}}; {3}", appName, appVersion, "CSharpRestClient", machineName);
// Redo the client identifier
WithClientIdentifier(appName, appVersion, machineName);
if (userConfiguration != null)
Expand All @@ -87,6 +92,7 @@ public AvaTaxClient(string appName, string appVersion, string machineName, AvaTa
/// <param name="userConfiguration">User configuration</param>
public AvaTaxClient(string appName, string appVersion, string machineName, Uri customEnvironment, UserConfiguration userConfiguration = null)
{
ClientID = String.Format("{0}; {1}; {2}; {{0}}; {3}", appName, appVersion, "CSharpRestClient", machineName);
// Redo the client identifier
WithClientIdentifier(appName, appVersion, machineName);
if (userConfiguration != null)
Expand Down Expand Up @@ -176,7 +182,14 @@ public AvaTaxClient WithCustomHeader(string name, string value)
/// <returns></returns>
public AvaTaxClient WithClientIdentifier(string appName, string appVersion, string machineName)
{
_clientHeaders.Add(Constants.AVALARA_CLIENT_HEADER, String.Format("{0}; {1}; {2}; {3}; {4}", appName, appVersion, "CSharpRestClient", API_VERSION, machineName));
if (!_clientHeaders.ContainsKey(Constants.AVALARA_CLIENT_HEADER))
{
_clientHeaders.Add(Constants.AVALARA_CLIENT_HEADER, ClientID);
}
else
{
_clientHeaders[Constants.AVALARA_CLIENT_HEADER] = ClientID;
}
return this;
}
#endregion
Expand Down
8 changes: 8 additions & 0 deletions src/Avalara.AvaTax.net20.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<Compile Include="enums\AdjustmentTypeId.cs" />
<Compile Include="enums\AdvancedRuleCrashBehavior.cs" />
<Compile Include="enums\AdvancedRuleScriptType.cs" />
<Compile Include="enums\AgeVerifyFailureCode.cs" />
<Compile Include="enums\ApiCallStatus.cs" />
<Compile Include="enums\AuthenticationTypeId.cs" />
<Compile Include="enums\AvataxDeleteErrorTransactionStatus.cs" />
Expand Down Expand Up @@ -146,6 +147,8 @@
<Compile Include="enums\TaxType.cs" />
<Compile Include="enums\TextCase.cs" />
<Compile Include="enums\TssAccountMigrationId.cs" />
<Compile Include="enums\UserDefinedFieldDataType.cs" />
<Compile Include="enums\UserDefinedFieldType.cs" />
<Compile Include="enums\Visibility.cs" />
<Compile Include="enums\VoidReasonCode.cs" />
<Compile Include="enums\WelcomeEmail.cs" />
Expand Down Expand Up @@ -174,6 +177,8 @@
<Compile Include="models\AdvancedRuleScriptModel.cs" />
<Compile Include="models\AdvancedRuleTableModel.cs" />
<Compile Include="models\AdvancedRuleVisibilityModel.cs" />
<Compile Include="models\AgeVerifyRequest.cs" />
<Compile Include="models\AgeVerifyResult.cs" />
<Compile Include="models\ApproveAdvancedRuleModel.cs" />
<Compile Include="models\ApproveFilingsModel.cs" />
<Compile Include="models\AuditEvent.cs" />
Expand Down Expand Up @@ -209,6 +214,7 @@
<Compile Include="models\CompanyModel.cs" />
<Compile Include="models\CompanyParameterDetailModel.cs" />
<Compile Include="models\CompanyReturnSettingModel.cs" />
<Compile Include="models\CompanyUserDefinedFieldModel.cs" />
<Compile Include="models\ComplianceAggregatedTaxRateModel.cs" />
<Compile Include="models\ComplianceJurisdictionModel.cs" />
<Compile Include="models\ComplianceJurisdictionRateModel.cs" />
Expand Down Expand Up @@ -254,6 +260,7 @@
<Compile Include="models\EntityUseCodeModel.cs" />
<Compile Include="models\ErrorCodeOutputModel.cs" />
<Compile Include="models\ErrorDetail.cs" />
<Compile Include="models\ErrorDetails.cs" />
<Compile Include="models\ErrorInfo.cs" />
<Compile Include="models\ErrorResult.cs" />
<Compile Include="models\ErrorTransactionModelBase.cs" />
Expand Down Expand Up @@ -398,6 +405,7 @@
<Compile Include="models\SetPasswordModel.cs" />
<Compile Include="models\SettingModel.cs" />
<Compile Include="models\SettleTransactionModel.cs" />
<Compile Include="models\ShippingVerifyResult.cs" />
<Compile Include="models\SkyscraperStatusModel.cs" />
<Compile Include="models\SubscriptionModel.cs" />
<Compile Include="models\SubscriptionTypeModel.cs" />
Expand Down
10 changes: 9 additions & 1 deletion src/Avalara.AvaTax.net45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<Compile Include="enums\AdjustmentTypeId.cs" />
<Compile Include="enums\AdvancedRuleCrashBehavior.cs" />
<Compile Include="enums\AdvancedRuleScriptType.cs" />
<Compile Include="enums\AgeVerifyFailureCode.cs" />
<Compile Include="enums\ApiCallStatus.cs" />
<Compile Include="enums\AuthenticationTypeId.cs" />
<Compile Include="enums\AvataxDeleteErrorTransactionStatus.cs" />
Expand Down Expand Up @@ -151,6 +152,8 @@
<Compile Include="enums\TaxType.cs" />
<Compile Include="enums\TextCase.cs" />
<Compile Include="enums\TssAccountMigrationId.cs" />
<Compile Include="enums\UserDefinedFieldDataType.cs" />
<Compile Include="enums\UserDefinedFieldType.cs" />
<Compile Include="enums\Visibility.cs" />
<Compile Include="enums\VoidReasonCode.cs" />
<Compile Include="enums\WelcomeEmail.cs" />
Expand Down Expand Up @@ -179,6 +182,8 @@
<Compile Include="models\AdvancedRuleScriptModel.cs" />
<Compile Include="models\AdvancedRuleTableModel.cs" />
<Compile Include="models\AdvancedRuleVisibilityModel.cs" />
<Compile Include="models\AgeVerifyRequest.cs" />
<Compile Include="models\AgeVerifyResult.cs" />
<Compile Include="models\ApproveAdvancedRuleModel.cs" />
<Compile Include="models\ApproveFilingsModel.cs" />
<Compile Include="models\AuditEvent.cs" />
Expand Down Expand Up @@ -214,6 +219,7 @@
<Compile Include="models\CompanyModel.cs" />
<Compile Include="models\CompanyParameterDetailModel.cs" />
<Compile Include="models\CompanyReturnSettingModel.cs" />
<Compile Include="models\CompanyUserDefinedFieldModel.cs" />
<Compile Include="models\ComplianceAggregatedTaxRateModel.cs" />
<Compile Include="models\ComplianceJurisdictionModel.cs" />
<Compile Include="models\ComplianceJurisdictionRateModel.cs" />
Expand Down Expand Up @@ -259,6 +265,7 @@
<Compile Include="models\EntityUseCodeModel.cs" />
<Compile Include="models\ErrorCodeOutputModel.cs" />
<Compile Include="models\ErrorDetail.cs" />
<Compile Include="models\ErrorDetails.cs" />
<Compile Include="models\ErrorInfo.cs" />
<Compile Include="models\ErrorResult.cs" />
<Compile Include="models\ErrorTransactionModelBase.cs" />
Expand Down Expand Up @@ -367,8 +374,8 @@
<Compile Include="models\NotificationModel.cs" />
<Compile Include="models\OfferModel.cs" />
<Compile Include="models\OriginalApiRequestResponseModel.cs" />
<Compile Include="models\ParameterUsageModel.cs" />
<Compile Include="models\ParameterModel.cs" />
<Compile Include="models\ParameterUsageModel.cs" />
<Compile Include="models\PasswordChangeModel.cs" />
<Compile Include="models\PingResultModel.cs" />
<Compile Include="models\PointOfSaleDataRequestModel.cs" />
Expand Down Expand Up @@ -403,6 +410,7 @@
<Compile Include="models\SetPasswordModel.cs" />
<Compile Include="models\SettingModel.cs" />
<Compile Include="models\SettleTransactionModel.cs" />
<Compile Include="models\ShippingVerifyResult.cs" />
<Compile Include="models\SkyscraperStatusModel.cs" />
<Compile Include="models\SubscriptionModel.cs" />
<Compile Include="models\SubscriptionTypeModel.cs" />
Expand Down
Loading

0 comments on commit 7c2fde3

Please sign in to comment.