From 5c8fa23332618b57f5cb6046897b1259c87c05cd Mon Sep 17 00:00:00 2001 From: svc-developer Date: Thu, 18 May 2023 20:29:30 +0000 Subject: [PATCH] 23.5.0 --- GlobalAssemblyInfo.cs | 4 +- src/AvaTaxApi.cs | 64 ++++++++++++++++-------- src/Avalara.AvaTax.RestClient.nuspec | 2 +- src/IAvaTaxClient.cs | 58 +++++++++++++-------- src/models/NoticeResponsibilityDetail.cs | 50 ++++++++++++++++++ src/models/NoticeRootCauseDetail.cs | 50 ++++++++++++++++++ src/models/NoticeStatusModel.cs | 5 ++ 7 files changed, 188 insertions(+), 45 deletions(-) create mode 100644 src/models/NoticeResponsibilityDetail.cs create mode 100644 src/models/NoticeRootCauseDetail.cs diff --git a/GlobalAssemblyInfo.cs b/GlobalAssemblyInfo.cs index 25c2a42..0aa50ca 100644 --- a/GlobalAssemblyInfo.cs +++ b/GlobalAssemblyInfo.cs @@ -30,5 +30,5 @@ // Revision // -[assembly: AssemblyVersion("23.4.1")] -[assembly: AssemblyFileVersion("23.4.1")] +[assembly: AssemblyVersion("23.5.0")] +[assembly: AssemblyFileVersion("23.5.0")] diff --git a/src/AvaTaxApi.cs b/src/AvaTaxApi.cs index 4145c31..4048d43 100644 --- a/src/AvaTaxApi.cs +++ b/src/AvaTaxApi.cs @@ -17,7 +17,7 @@ * @author Sachin Baijal * @copyright 2004-2023 Avalara, Inc. * @license https://www.apache.org/licenses/LICENSE-2.0 - * @version 23.4.1 + * @version 23.5.0 * @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK */ @@ -28,7 +28,7 @@ public partial class AvaTaxClient : IAvaTaxClient /// /// Returns the version number of the API used to generate this class /// - public static string API_VERSION { get { return "23.4.1"; } } + public static string API_VERSION { get { return "23.5.0"; } } #region Methods @@ -4321,7 +4321,7 @@ public FetchResult ListNoticeRootCauses(String filter, Int /// This API is intended to be useful to identify all the different tax notice statuses. /// /// Swagger Name: AvaTaxClient - /// 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:* isOpen, sortOrder + /// 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:* isOpen, sortOrder, activeFlag /// 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`. @@ -4511,13 +4511,15 @@ public FetchResult ListPermissions(Int32? top, Int32? skip) /// 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 ListPostalCodes(String filter, Int32? top, Int32? skip, String orderBy) + /// If set to true, returns expired postal codes. Defaults to false + public FetchResult ListPostalCodes(String filter, Int32? top, Int32? skip, String orderBy, Boolean? includeExpiredPostalCodes) { var path = new AvaTaxPath("/api/v2/definitions/postalcodes"); path.AddQuery("$filter", filter); path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); + path.AddQuery("includeExpiredPostalCodes", includeExpiredPostalCodes); _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); return RestCall>("GET", path, null); } @@ -4974,7 +4976,7 @@ public FetchResult ListTaxAuthorityTypes(String filter, I /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// 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/). @@ -9530,7 +9532,7 @@ public List DeleteTaxCode(Int32 companyId, Int32 id) /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// The ID of the company that owns this tax code @@ -9560,7 +9562,7 @@ public TaxCodeModel GetTaxCode(Int32 companyId, Int32 id) /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// The ID of the company that owns these tax codes @@ -9598,7 +9600,7 @@ public FetchResult ListTaxCodesByCompany(Int32 companyId, String f /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// 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/). @@ -9818,8 +9820,10 @@ public FileResult DownloadTaxRatesByZipCode(DateTime date, String region) /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -9883,8 +9887,10 @@ public TaxRateModel TaxRatesByAddress(String line1, String line2, String line3, /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -10498,6 +10504,8 @@ public TransactionModel CommitTransaction(String companyCode, String transaction /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// If you don't specify the field `type` in your request, you will get an estimate of type `SalesOrder`, which will not be recorded in the database. /// /// A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like @@ -10555,6 +10563,8 @@ public TransactionModel CreateOrAdjustTransaction(String include, CreateOrAdjust /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// The field `type` identifies the kind of transaction - for example, a sale, purchase, or refund. If you do not specify /// a `type` value, you will receive an estimate of type `SalesOrder`, which will not be recorded. /// @@ -16523,7 +16533,7 @@ public async Task> ListNoticeRootCausesAsync(S /// This API is intended to be useful to identify all the different tax notice statuses.; /// - /// 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:* isOpen, sortOrder + /// 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:* isOpen, sortOrder, activeFlag /// 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`. @@ -16720,13 +16730,15 @@ public async Task> ListPermissionsAsync(Int32? top, Int32? s /// 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> ListPostalCodesAsync(String filter, Int32? top, Int32? skip, String orderBy) + /// If set to true, returns expired postal codes. Defaults to false + public async Task> ListPostalCodesAsync(String filter, Int32? top, Int32? skip, String orderBy, Boolean? includeExpiredPostalCodes) { var path = new AvaTaxPath("/api/v2/definitions/postalcodes"); path.AddQuery("$filter", filter); path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); + path.AddQuery("includeExpiredPostalCodes", includeExpiredPostalCodes); _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); return await RestCallAsync>("GET", path, null).ConfigureAwait(false); } @@ -17200,7 +17212,7 @@ public async Task> ListTaxAuthorityTypesAsync /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, 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/). @@ -21899,7 +21911,7 @@ public async Task> DeleteTaxCodeAsync(Int32 companyId, Int32 i /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; /// /// The ID of the company that owns this tax code @@ -21930,7 +21942,7 @@ public async Task GetTaxCodeAsync(Int32 companyId, Int32 id) /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; /// /// The ID of the company that owns these tax codes @@ -21969,7 +21981,7 @@ public async Task> ListTaxCodesByCompanyAsync(Int32 co /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, 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/). @@ -22194,8 +22206,10 @@ public async Task DownloadTaxRatesByZipCodeAsync(DateTime date, Stri /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -22260,8 +22274,10 @@ public async Task TaxRatesByAddressAsync(String line1, String line /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -22889,6 +22905,8 @@ public async Task CommitTransactionAsync(String companyCode, S /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// If you don't specify the field `type` in your request, you will get an estimate of type `SalesOrder`, which will not be recorded in the database. /// /// A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like @@ -22947,6 +22965,8 @@ public async Task CreateOrAdjustTransactionAsync(String includ /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// The field `type` identifies the kind of transaction - for example, a sale, purchase, or refund. If you do not specify /// a `type` value, you will receive an estimate of type `SalesOrder`, which will not be recorded. /// diff --git a/src/Avalara.AvaTax.RestClient.nuspec b/src/Avalara.AvaTax.RestClient.nuspec index 5c5f9e3..6ebf9d3 100644 --- a/src/Avalara.AvaTax.RestClient.nuspec +++ b/src/Avalara.AvaTax.RestClient.nuspec @@ -3,7 +3,7 @@ Avalara.AvaTax - 23.4.1 + 23.5.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/IAvaTaxClient.cs b/src/IAvaTaxClient.cs index e384e28..c8ed3ff 100644 --- a/src/IAvaTaxClient.cs +++ b/src/IAvaTaxClient.cs @@ -3147,7 +3147,7 @@ public interface IAvaTaxClient /// This API is intended to be useful to identify all the different tax notice statuses. /// /// Swagger Name: AvaTaxClient - /// 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:* isOpen, sortOrder + /// 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:* isOpen, sortOrder, activeFlag /// 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`. @@ -3266,7 +3266,8 @@ public interface IAvaTaxClient /// 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`. - FetchResult ListPostalCodes(String filter, Int32? top, Int32? skip, String orderBy); + /// If set to true, returns expired postal codes. Defaults to false + FetchResult ListPostalCodes(String filter, Int32? top, Int32? skip, String orderBy, Boolean? includeExpiredPostalCodes); /// /// List all customs duty programs recognized by AvaTax @@ -3546,7 +3547,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// 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/). @@ -6867,7 +6868,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// The ID of the company that owns this tax code @@ -6889,7 +6890,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// The ID of the company that owns these tax codes @@ -6915,7 +6916,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. /// /// Swagger Name: AvaTaxClient /// 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/). @@ -7090,8 +7091,10 @@ public interface IAvaTaxClient /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -7142,8 +7145,10 @@ public interface IAvaTaxClient /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -7635,6 +7640,8 @@ public interface IAvaTaxClient /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// If you don't specify the field `type` in your request, you will get an estimate of type `SalesOrder`, which will not be recorded in the database. /// /// A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like @@ -7685,6 +7692,8 @@ public interface IAvaTaxClient /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// The field `type` identifies the kind of transaction - for example, a sale, purchase, or refund. If you do not specify /// a `type` value, you will receive an estimate of type `SalesOrder`, which will not be recorded. /// @@ -12035,7 +12044,7 @@ public interface IAvaTaxClient /// This API is intended to be useful to identify all the different tax notice statuses.; /// - /// 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:* isOpen, sortOrder + /// 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:* isOpen, sortOrder, activeFlag /// 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`. @@ -12161,7 +12170,8 @@ public interface IAvaTaxClient /// 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`. - Task> ListPostalCodesAsync(String filter, Int32? top, Int32? skip, String orderBy); + /// If set to true, returns expired postal codes. Defaults to false + Task> ListPostalCodesAsync(String filter, Int32? top, Int32? skip, String orderBy, Boolean? includeExpiredPostalCodes); /// Swagger Name: AvaTaxClient /// @@ -12458,7 +12468,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, 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/). @@ -15922,7 +15932,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; /// /// The ID of the company that owns this tax code @@ -15945,7 +15955,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; /// /// The ID of the company that owns these tax codes @@ -15972,7 +15982,7 @@ public interface IAvaTaxClient /// /// ### Security Policies /// - /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.; + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, 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/). @@ -16152,8 +16162,10 @@ public interface IAvaTaxClient /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -16205,8 +16217,10 @@ public interface IAvaTaxClient /// This API assumes that you are selling general tangible personal property at a retail point-of-sale /// location in the United States only. /// - /// For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, - /// which supports features including, but not limited to: + /// Please be advised that this endpoint is designed for approximate tax rate estimation only and + /// may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the + /// `CreateTransaction` API, which offers a variety of advanced features including, but not limited + /// to: /// /// * Nexus declarations /// * Taxability based on product/service type @@ -16712,6 +16726,8 @@ public interface IAvaTaxClient /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// If you don't specify the field `type` in your request, you will get an estimate of type `SalesOrder`, which will not be recorded in the database. /// /// A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like @@ -16763,6 +16779,8 @@ public interface IAvaTaxClient /// /// To generate a refund for a transaction, use the `RefundTransaction` API. /// + /// An address is required for calculation. If no address is provided at the line level, the document level address will be used. + /// /// The field `type` identifies the kind of transaction - for example, a sale, purchase, or refund. If you do not specify /// a `type` value, you will receive an estimate of type `SalesOrder`, which will not be recorded. /// diff --git a/src/models/NoticeResponsibilityDetail.cs b/src/models/NoticeResponsibilityDetail.cs new file mode 100644 index 0000000..57346f1 --- /dev/null +++ b/src/models/NoticeResponsibilityDetail.cs @@ -0,0 +1,50 @@ +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 + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// NoticeResponsibility Model + /// + public class NoticeResponsibilityDetail + { + /// + /// The unique ID number of this filing frequency. + /// + public Int32? id { get; set; } + + /// + /// TaxNoticeId + /// + public Int32 noticeId { get; set; } + + /// + /// TaxNoticeResponsibilityId + /// + public Int32 taxNoticeResponsibilityId { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/NoticeRootCauseDetail.cs b/src/models/NoticeRootCauseDetail.cs new file mode 100644 index 0000000..1efcf90 --- /dev/null +++ b/src/models/NoticeRootCauseDetail.cs @@ -0,0 +1,50 @@ +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 + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// NoticeRootCause Model + /// + public class NoticeRootCauseDetail + { + /// + /// The unique ID number of this filing frequency. + /// + public Int32? id { get; set; } + + /// + /// TaxNoticeId + /// + public Int32 noticeId { get; set; } + + /// + /// TaxNoticeRootCauseId + /// + public Int32 taxNoticeRootCauseId { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/NoticeStatusModel.cs b/src/models/NoticeStatusModel.cs index d8e71a9..ea7d297 100644 --- a/src/models/NoticeStatusModel.cs +++ b/src/models/NoticeStatusModel.cs @@ -42,6 +42,11 @@ public class NoticeStatusModel /// public Int32? sortOrder { get; set; } + /// + /// The active Flag of this tax authority type. + /// + public Boolean? activeFlag { get; set; } + /// /// Convert this object to a JSON string of itself