Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 24.2.0 #238

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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("23.11.0")]
[assembly: AssemblyFileVersion("23.11.0")]
[assembly: AssemblyVersion("24.2.0")]
[assembly: AssemblyFileVersion("24.2.0")]
614 changes: 435 additions & 179 deletions src/AvaTaxApi.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Avalara.AvaTax.RestClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Avalara.AvaTax</id>

<version>23.11.0</version>
<version>24.2.0</version>

<title>Avalara AvaTax SDK</title>
<description>Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services.</description>
Expand Down
472 changes: 307 additions & 165 deletions src/IAvaTaxClient.cs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/enums/DocumentStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public enum DocumentStatus
/// </summary>
PendingApproval = 7,

/// <summary>
/// This new status is added for Reporting API to download get reports with Saved(1) and Posted(2) state.
/// </summary>
Uncommitted = 12,

/// <summary>
/// DEPRECATED - Represents "a document in any status" when searching. Please search using the
/// [Filtering in REST](/avatax/filtering-in-rest/) documentation.
Expand Down
5 changes: 5 additions & 0 deletions src/enums/ErrorCodeId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1852,5 +1852,10 @@ public enum ErrorCodeId
/// </summary>
InvalidCostCenter = 2813,

/// <summary>
/// Occurs when a Header value is incorrect or invalid in some way
/// </summary>
InvalidHTTPHeader = 3000,

}
}
49 changes: 25 additions & 24 deletions src/enums/StackAggregationOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
/*
* AvaTax API Client Library
*
* (c) 2004-2019 Avalara, Inc.
* (c) 2004-2023 Avalara, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Genevieve Conty
* @author Greg Hester
* @author Jonathan Wenger <[email protected]>
* @author Sachin Baijal <[email protected]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
Expand All @@ -19,26 +20,26 @@ namespace Avalara.AvaTax.RestClient
/// </summary>
public enum StackAggregationOption
{
/// <summary>
/// No aggregation.
/// The component rate is used for the stack rate.
/// </summary>
NoStackAggregation = 0,

/// <summary>
/// Rates are aggregated across all jurisdiction types.
/// </summary>
FullStackAggregation = 1,

/// <summary>
/// State and county rates are aggregated.
/// </summary>
AggregateStateAndCounty = 2,

/// <summary>
/// City and county rates are aggregated.
/// </summary>
AggregateCityAndCounty = 3,

/// <summary>
/// No aggregation.
/// The component rate is used for the stack rate.
/// </summary>
NoStackAggregation = 0,
/// <summary>
/// Rates are aggregated across all jurisdiction types.
/// </summary>
FullStackAggregation = 1,
/// <summary>
/// State and county rates are aggregated.
/// </summary>
AggregateStateAndCounty = 2,
/// <summary>
/// City and county rates are aggregated.
/// </summary>
AggregateCityAndCounty = 3,
}
}
6 changes: 6 additions & 0 deletions src/models/AddressesModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ namespace Avalara.AvaTax.RestClient
///
/// In the United States, some jurisdictions recognize the address types `pointOfOrderOrigin` and `pointOfOrderAcceptance`.
/// These address types affect the sourcing models of some transactions.
///
/// VAT transactions support a `goodsPlaceOrServiceRendered` address, which indicates where goods are located or where services
/// are rendered. VAT transactions also support an `import` address, which specifies the address of the buyer importing a good
/// from another country.
///
/// India GST transactions support a `billTo` address, which specifies where invoices and other billing-related information are sent to the buyer.
///
/// If latitude and longitude information is provided for any of these addresses along with line, city, region, country and postal code information,
/// we will be using only latitude and longitude and will discard line, city, region, country and postal code information for the transaction.
Expand Down
125 changes: 125 additions & 0 deletions src/models/ComplianceRateOptionModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 Avalara, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Jonathan Wenger <[email protected]>
* @author Sachin Baijal <[email protected]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Model for RateOption.
/// </summary>
public class ComplianceRateOptionModel
{
/// <summary>
/// The name of the Jurisdiction
/// </summary>
public String jurisName { get; set; }

/// <summary>
/// The Group Code
/// </summary>
public String groupCode { get; set; }

/// <summary>
/// The id of the tax region.
/// </summary>
public Int32? taxRegionId { get; set; }

/// <summary>
/// The name of the tax region.
/// </summary>
public String taxRegionName { get; set; }

/// <summary>
/// The report level.
/// </summary>
public String reportLevel { get; set; }

/// <summary>
/// The Tax Type Code.
/// </summary>
public String taxTypeCode { get; set; }

/// <summary>
/// The name of the Tax Type Code.
/// </summary>
public String taxTypeCodeName { get; set; }

/// <summary>
/// The Sub Type Code.
/// </summary>
public String taxSubTypeCode { get; set; }

/// <summary>
/// The name of Sub Type.
/// </summary>
public String taxSubTypeCodeName { get; set; }

/// <summary>
/// The rate type of the rate.
/// </summary>
public String rateTypeCode { get; set; }

/// <summary>
/// The rate type description.
/// </summary>
public String rateTypeCodeName { get; set; }

/// <summary>
/// The Stack Rate
/// </summary>
public Decimal? stackRate { get; set; }

/// <summary>
/// The Component Rate
/// </summary>
public Decimal? componentRate { get; set; }

/// <summary>
/// The id of the tax authority.
/// </summary>
public Int32? taxAuthorityId { get; set; }

/// <summary>
/// City
/// </summary>
public String cityName { get; set; }

/// <summary>
/// County
/// </summary>
public String countyName { get; set; }

/// <summary>
/// Effective Date
/// </summary>
public DateTime? effDate { get; set; }

/// <summary>
/// End date
/// </summary>
public DateTime? endDate { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
135 changes: 135 additions & 0 deletions src/models/ComplianceStateConfigModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 Avalara, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Jonathan Wenger <[email protected]>
* @author Sachin Baijal <[email protected]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// A flattened model for State Config.
/// </summary>
public class ComplianceStateConfigModel
{
/// <summary>
/// The Id of the StateConfig.
/// </summary>
public Int64? stateConfigId { get; set; }

/// <summary>
/// The Effective Date
/// </summary>
public DateTime? effDate { get; set; }

/// <summary>
/// The End Date
/// </summary>
public DateTime? endDate { get; set; }

/// <summary>
/// Has Boundary
/// </summary>
public Boolean? hasBoundary { get; set; }

/// <summary>
/// Has Rates
/// </summary>
public Boolean? hasRates { get; set; }

/// <summary>
/// Is Local Admin
/// </summary>
public Boolean? isLocalAdmin { get; set; }

/// <summary>
/// Is Local Nexus
/// </summary>
public Boolean? isLocalNexus { get; set; }

/// <summary>
/// IsSerState
/// </summary>
public Boolean? isSerState { get; set; }

/// <summary>
/// Min Boundary LevelId
/// </summary>
public Int32? minBoundaryLevelId { get; set; }

/// <summary>
/// Sst Status Id
/// </summary>
public Int32? sstStatusId { get; set; }

/// <summary>
/// Short name of State.
/// </summary>
public String state { get; set; }

/// <summary>
/// StateFips
/// </summary>
public String stateFips { get; set; }

/// <summary>
/// The name of the State.
/// </summary>
public String stateName { get; set; }

/// <summary>
/// Boundary Table BaseName
/// </summary>
public String boundaryTableBaseName { get; set; }

/// <summary>
/// STJCount
/// </summary>
public Int32? stjCount { get; set; }

/// <summary>
/// TsState Id
/// </summary>
public String tsStateId { get; set; }

/// <summary>
/// The name of the country.
/// </summary>
public String country { get; set; }

/// <summary>
/// IsJaasEnabled
/// </summary>
public Int32? isJaasEnabled { get; set; }

/// <summary>
/// The name of the country.
/// </summary>
public Boolean? hasSSTBoundary { get; set; }

/// <summary>
/// The name of the country.
/// </summary>
public DateTime? modifiedDate { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
Loading
Loading