From f3a65c44f35b06fa309109afbdf9b06417f54403 Mon Sep 17 00:00:00 2001 From: SVC Developer Date: Thu, 26 Aug 2021 23:55:08 +0000 Subject: [PATCH] 21.9.0 update --- GlobalAssemblyInfo.cs | 4 +-- src/AvaTaxApi.cs | 40 ++++++++++++++---------- src/Avalara.AvaTax.nuspec | 2 +- src/enums/ErrorCodeId.cs | 10 ++++++ src/models/ItemTagDetailModel.cs | 5 +++ src/models/NexusModel.cs | 9 ++++++ src/models/RemoveTransactionLineModel.cs | 2 +- src/models/TransactionBatchItemModel.cs | 10 ++++++ 8 files changed, 62 insertions(+), 20 deletions(-) diff --git a/GlobalAssemblyInfo.cs b/GlobalAssemblyInfo.cs index 614a2cc2..d461df46 100644 --- a/GlobalAssemblyInfo.cs +++ b/GlobalAssemblyInfo.cs @@ -30,5 +30,5 @@ // Revision // -[assembly: AssemblyVersion("21.7.1")] -[assembly: AssemblyFileVersion("21.7.1")] +[assembly: AssemblyVersion("21.8.0")] +[assembly: AssemblyFileVersion("21.8.0")] diff --git a/src/AvaTaxApi.cs b/src/AvaTaxApi.cs index 10a3950e..c3f1cba9 100644 --- a/src/AvaTaxApi.cs +++ b/src/AvaTaxApi.cs @@ -17,7 +17,7 @@ * @author Greg Hester * @copyright 2004-2019 Avalara, Inc. * @license https://www.apache.org/licenses/LICENSE-2.0 - * @version 21.7.1 + * @version 21.8.0 * @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK */ @@ -28,7 +28,7 @@ public partial class AvaTaxClient /// /// Returns the version number of the API used to generate this class /// - public static string API_VERSION { get { return "21.7.1"; } } + public static string API_VERSION { get { return "21.8.0"; } } #region Methods @@ -3602,7 +3602,7 @@ public FetchResult ListMarketplaceLocations(String mar /// /// This API is intended to be useful if your user interface needs to display a selectable list of nexus. /// - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -3649,7 +3649,7 @@ public FetchResult ListNexus(String filter, Int32? top, Int32? skip, /// * Common alternative spellings for many countries /// /// For a full list of all supported codes and names, please see the Definitions API `ListCountries`. - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -3680,7 +3680,7 @@ public FetchResult ListNexusByAddress(String line1, String line2, St /// This API is intended to be useful if your user interface needs to display a selectable list of nexus filtered by country. /// /// The country in which you want to fetch the system nexus - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -3706,7 +3706,7 @@ public FetchResult ListNexusByCountry(String country, String filter, /// /// The two-character ISO-3166 code for the country. /// The two or three character region code for the region. - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -5683,6 +5683,8 @@ public FetchResult ListItemParameters(Int32 companyId, Int64 /// /// Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. /// + /// You may specify Tag Name in the `tagName` query parameter if you want to filter items on the basis of tagName + /// /// You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values: /// /// * Parameters @@ -5699,7 +5701,8 @@ public FetchResult ListItemParameters(Int32 companyId, Int64 /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. - public FetchResult ListItemsByCompany(Int32 companyId, String filter, String include, Int32? top, Int32? skip, String orderBy) + /// Tag Name on the basis of which you want to filter Items + public FetchResult ListItemsByCompany(Int32 companyId, String filter, String include, Int32? top, Int32? skip, String orderBy, String tagName) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items"); path.ApplyField("companyId", companyId); @@ -5708,6 +5711,7 @@ public FetchResult ListItemsByCompany(Int32 companyId, String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); + path.AddQuery("tagName", tagName); return RestCall>("GET", path, null); } @@ -7202,7 +7206,7 @@ public NexusParameterDetailModel GetNexusParameter(Int32 companyId, Int32 nexusI /// * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// The ID of the company that owns these nexus objects - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// A comma separated list of additional data to retrieve. /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -7277,7 +7281,7 @@ public FetchResult ListNexusParameters(Int32 companyI /// /// * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// A comma separated list of additional data to retrieve. /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -14007,7 +14011,7 @@ public async Task> ListMarketplaceLocation /// /// This API is intended to be useful if your user interface needs to display a selectable list of nexus.; /// - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -14054,7 +14058,7 @@ public async Task> ListNexusAsync(String filter, Int32? /// * Common alternative spellings for many countries /// /// For a full list of all supported codes and names, please see the Definitions API `ListCountries`. - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -14085,7 +14089,7 @@ public async Task> ListNexusByAddressAsync(String line1, /// This API is intended to be useful if your user interface needs to display a selectable list of nexus filtered by country.; /// /// The country in which you want to fetch the system nexus - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -14111,7 +14115,7 @@ public async Task> ListNexusByCountryAsync(String countr /// /// The two-character ISO-3166 code for the country. /// The two or three character region code for the region. - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -16088,6 +16092,8 @@ public async Task> ListItemParametersAsync(Int32 /// /// Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. /// + /// You may specify Tag Name in the `tagName` query parameter if you want to filter items on the basis of tagName + /// /// You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values: /// /// * Parameters @@ -16104,7 +16110,8 @@ public async Task> ListItemParametersAsync(Int32 /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. - public async Task> ListItemsByCompanyAsync(Int32 companyId, String filter, String include, Int32? top, Int32? skip, String orderBy) + /// Tag Name on the basis of which you want to filter Items + public async Task> ListItemsByCompanyAsync(Int32 companyId, String filter, String include, Int32? top, Int32? skip, String orderBy, String tagName) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items"); path.ApplyField("companyId", companyId); @@ -16113,6 +16120,7 @@ public async Task> ListItemsByCompanyAsync(Int32 companyI path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); + path.AddQuery("tagName", tagName); return await RestCallAsync>("GET", path, null).ConfigureAwait(false); } @@ -17607,7 +17615,7 @@ public async Task GetNexusParameterAsync(Int32 compan /// * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; /// /// The ID of the company that owns these nexus objects - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// A comma separated list of additional data to retrieve. /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -17682,7 +17690,7 @@ public async Task> ListNexusParametersAsy /// /// * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; /// - /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxAuthorityId, taxName, parameters, taxableNexus + /// A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus /// A comma separated list of additional data to retrieve. /// If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. diff --git a/src/Avalara.AvaTax.nuspec b/src/Avalara.AvaTax.nuspec index 729d8af1..b2d86e22 100644 --- a/src/Avalara.AvaTax.nuspec +++ b/src/Avalara.AvaTax.nuspec @@ -3,7 +3,7 @@ Avalara.AvaTax - 21.7.1 + 21.8.0 Avalara AvaTax SDK Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services. diff --git a/src/enums/ErrorCodeId.cs b/src/enums/ErrorCodeId.cs index 03ee8100..f6649ae4 100644 --- a/src/enums/ErrorCodeId.cs +++ b/src/enums/ErrorCodeId.cs @@ -959,6 +959,16 @@ public enum ErrorCodeId /// LicenseKeyNameAlreadyExistsForAccount = 612, + /// + /// + /// + UserAlreadyExist = 613, + + /// + /// + /// + UserNotFound = 614, + /// /// /// diff --git a/src/models/ItemTagDetailModel.cs b/src/models/ItemTagDetailModel.cs index a603aef4..71b011c1 100644 --- a/src/models/ItemTagDetailModel.cs +++ b/src/models/ItemTagDetailModel.cs @@ -46,6 +46,11 @@ public class ItemTagDetailModel /// public Int32? companyId { get; set; } + /// + /// The date when this record was created. + /// + public DateTime? createdDate { get; set; } + /// /// Convert this object to a JSON string of itself diff --git a/src/models/NexusModel.cs b/src/models/NexusModel.cs index 6b5c86f1..6224c6d4 100644 --- a/src/models/NexusModel.cs +++ b/src/models/NexusModel.cs @@ -223,6 +223,15 @@ public class NexusModel /// public Int32? modifiedUserId { get; set; } + /// + /// The type group of nexus that this company is declaring + /// Use [ListTaxTypeGroups](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Definitions/ListTaxTypeGroups/) API for a list of nexus tax type groups. + /// + /// This field is defined by Avalara. All Avalara-defined fields must match an Avalara-defined nexus object found by calling `ListNexus`. + /// NOTE: This optional field will trigger nexus subtype lookup when populated. When using make sure TaxTypeGroup matches corresponding NexusTaxTypeGroup + /// + public String taxTypeGroup { get; set; } + /// /// The type of nexus that this company is declaring.Replaces NexusTypeId. /// Use [ListNexusTaxTypeGroups](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Definitions/ListNexusTaxTypeGroups/) API for a list of nexus tax type groups. diff --git a/src/models/RemoveTransactionLineModel.cs b/src/models/RemoveTransactionLineModel.cs index 562a51f1..efa367b5 100644 --- a/src/models/RemoveTransactionLineModel.cs +++ b/src/models/RemoveTransactionLineModel.cs @@ -37,7 +37,7 @@ public class RemoveTransactionLineModel public DocumentType? documentType { get; set; } /// - /// List of lines to be added + /// List of line numbers to be removed /// public List lines { get; set; } diff --git a/src/models/TransactionBatchItemModel.cs b/src/models/TransactionBatchItemModel.cs index a9e91991..1b7b6045 100644 --- a/src/models/TransactionBatchItemModel.cs +++ b/src/models/TransactionBatchItemModel.cs @@ -22,6 +22,11 @@ namespace Avalara.AvaTax.RestClient /// public class TransactionBatchItemModel { + /// + /// Represents a transaction memo. + /// + public String memo { get; set; } + /// /// Represents a transaction to be created. /// @@ -32,6 +37,11 @@ public class TransactionBatchItemModel /// public BatchAdjustTransactionModel adjustTransactionModel { get; set; } + /// + /// Represents a transaction to be created or to be adjusted if exists. + /// + public CreateOrAdjustTransactionModel createOrAdjustTransactionModel { get; set; } + /// /// Represents an existing transaction to be voided. ///