Skip to content

Commit 7bed1c1

Browse files
Merge pull request #259 from avadev/25.3.0
Update for 25.3.0
2 parents 31e230b + 3bfdce5 commit 7bed1c1

6 files changed

+139
-9
lines changed

GlobalAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
// Revision
3131
//
3232

33-
[assembly: AssemblyVersion("25.2.2")]
34-
[assembly: AssemblyFileVersion("25.2.2")]
33+
[assembly: AssemblyVersion("25.3.0")]
34+
[assembly: AssemblyFileVersion("25.3.0")]

src/AvaTaxApi.cs

+51-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @author Sachin Baijal <sachin.baijal@avalara.com>
1818
* @copyright 2004-2023 Avalara, Inc.
1919
* @license https://www.apache.org/licenses/LICENSE-2.0
20-
* @version 25.2.2
20+
* @version 25.3.0
2121
* @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK
2222
*/
2323

@@ -28,7 +28,7 @@ public partial class AvaTaxClient : IAvaTaxClient
2828
/// <summary>
2929
/// Returns the version number of the API used to generate this class
3030
/// </summary>
31-
public static string API_VERSION { get { return "25.2.2"; } }
31+
public static string API_VERSION { get { return "25.3.0"; } }
3232

3333
#region Methods
3434

@@ -6991,6 +6991,29 @@ public ItemHSCodeClassificationStatusModel DismissHSCodeClassificationStatus(Int
69916991
}
69926992

69936993

6994+
/// <summary>
6995+
/// Retrieve the HS code classification SLA details for a company.
6996+
/// </summary>
6997+
/// <remarks>
6998+
/// This endpoint returns the SLA details for HS code classification for the
6999+
/// specified company. The response includes information about processing times,
7000+
/// service commitments, and other relevant SLA terms.
7001+
///
7002+
/// ### Security Policies
7003+
///
7004+
/// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
7005+
/// </remarks>
7006+
/// Swagger Name: AvaTaxClient
7007+
/// <param name="companyId">The ID of the company for which to retrieve the SLA details.</param>
7008+
public ItemHSCodeClassificationSlaOutputModel GetHSCodeClassificationSLA(Int32 companyId)
7009+
{
7010+
var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/hscode-classification/$get-sla");
7011+
path.ApplyField("companyId", companyId);
7012+
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
7013+
return RestCall<ItemHSCodeClassificationSlaOutputModel>("GET", path, null);
7014+
}
7015+
7016+
69947017
/// <summary>
69957018
/// Retrieve a single item
69967019
/// </summary>
@@ -11849,7 +11872,7 @@ public VarianceResponseModel GetVarianceReportByCompanyCodeByTransactionId(Strin
1184911872
/// <param name="companyCode">The company code of the company that recorded this transaction</param>
1185011873
/// <param name="dataSourceId">Optionally filter transactions to those from a specific data source.</param>
1185111874
/// <param name="include">Specifies objects to include in this fetch call</param>
11852-
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus</param>
11875+
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus, vendorName, varianceAmount</param>
1185311876
/// <param name="top">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.</param>
1185411877
/// <param name="skip">If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.</param>
1185511878
/// <param name="orderBy">A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.</param>
@@ -20371,6 +20394,30 @@ public async Task<ItemHSCodeClassificationStatusModel> DismissHSCodeClassificati
2037120394
}
2037220395

2037320396

20397+
/// Swagger Name: AvaTaxClient
20398+
/// <summary>
20399+
/// Retrieve the HS code classification SLA details for a company.;
20400+
/// </summary>
20401+
/// <remarks>
20402+
/// This endpoint returns the SLA details for HS code classification for the
20403+
/// specified company. The response includes information about processing times,
20404+
/// service commitments, and other relevant SLA terms.
20405+
///
20406+
/// ### Security Policies
20407+
///
20408+
/// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.;
20409+
/// </remarks>
20410+
20411+
/// <param name="companyId">The ID of the company for which to retrieve the SLA details.</param>
20412+
public async Task<ItemHSCodeClassificationSlaOutputModel> GetHSCodeClassificationSLAAsync(Int32 companyId)
20413+
{
20414+
var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/hscode-classification/$get-sla");
20415+
path.ApplyField("companyId", companyId);
20416+
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
20417+
return await RestCallAsync<ItemHSCodeClassificationSlaOutputModel>("GET", path, null).ConfigureAwait(false);
20418+
}
20419+
20420+
2037420421
/// Swagger Name: AvaTaxClient
2037520422
/// <summary>
2037620423
/// Retrieve a single item;
@@ -25363,7 +25410,7 @@ public async Task<VarianceResponseModel> GetVarianceReportByCompanyCodeByTransac
2536325410
/// <param name="companyCode">The company code of the company that recorded this transaction</param>
2536425411
/// <param name="dataSourceId">Optionally filter transactions to those from a specific data source.</param>
2536525412
/// <param name="include">Specifies objects to include in this fetch call</param>
25366-
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus</param>
25413+
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus, vendorName, varianceAmount</param>
2536725414
/// <param name="top">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.</param>
2536825415
/// <param name="skip">If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.</param>
2536925416
/// <param name="orderBy">A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.</param>

src/Avalara.AvaTax.RestClient.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>Avalara.AvaTax</id>
55

6-
<version>25.2.2</version>
6+
<version>25.3.0</version>
77

88
<title>Avalara AvaTax SDK</title>
99
<description>Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services.</description>

src/IAvaTaxClient.cs

+35-2
Original file line numberDiff line numberDiff line change
@@ -4894,6 +4894,22 @@ public interface IAvaTaxClient
48944894
/// <param name="country">The country of the HS code classification request status record that is to be updated.</param>
48954895
ItemHSCodeClassificationStatusModel DismissHSCodeClassificationStatus(Int32 companyId, Int64 itemId, String country);
48964896

4897+
/// <summary>
4898+
/// Retrieve the HS code classification SLA details for a company.
4899+
/// </summary>
4900+
/// <remarks>
4901+
/// This endpoint returns the SLA details for HS code classification for the
4902+
/// specified company. The response includes information about processing times,
4903+
/// service commitments, and other relevant SLA terms.
4904+
///
4905+
/// ### Security Policies
4906+
///
4907+
/// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
4908+
/// </remarks>
4909+
/// Swagger Name: AvaTaxClient
4910+
/// <param name="companyId">The ID of the company for which to retrieve the SLA details.</param>
4911+
ItemHSCodeClassificationSlaOutputModel GetHSCodeClassificationSLA(Int32 companyId);
4912+
48974913
/// <summary>
48984914
/// Retrieve a single item
48994915
/// </summary>
@@ -8577,7 +8593,7 @@ public interface IAvaTaxClient
85778593
/// <param name="companyCode">The company code of the company that recorded this transaction</param>
85788594
/// <param name="dataSourceId">Optionally filter transactions to those from a specific data source.</param>
85798595
/// <param name="include">Specifies objects to include in this fetch call</param>
8580-
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus</param>
8596+
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus, vendorName, varianceAmount</param>
85818597
/// <param name="top">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.</param>
85828598
/// <param name="skip">If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.</param>
85838599
/// <param name="orderBy">A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.</param>
@@ -14580,6 +14596,23 @@ public interface IAvaTaxClient
1458014596
/// <param name="country">The country of the HS code classification request status record that is to be updated.</param>
1458114597
Task<ItemHSCodeClassificationStatusModel> DismissHSCodeClassificationStatusAsync(Int32 companyId, Int64 itemId, String country);
1458214598

14599+
/// Swagger Name: AvaTaxClient
14600+
/// <summary>
14601+
/// Retrieve the HS code classification SLA details for a company.;
14602+
/// </summary>
14603+
/// <remarks>
14604+
/// This endpoint returns the SLA details for HS code classification for the
14605+
/// specified company. The response includes information about processing times,
14606+
/// service commitments, and other relevant SLA terms.
14607+
///
14608+
/// ### Security Policies
14609+
///
14610+
/// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.;
14611+
/// </remarks>
14612+
14613+
/// <param name="companyId">The ID of the company for which to retrieve the SLA details.</param>
14614+
Task<ItemHSCodeClassificationSlaOutputModel> GetHSCodeClassificationSLAAsync(Int32 companyId);
14615+
1458314616
/// Swagger Name: AvaTaxClient
1458414617
/// <summary>
1458514618
/// Retrieve a single item;
@@ -18397,7 +18430,7 @@ public interface IAvaTaxClient
1839718430
/// <param name="companyCode">The company code of the company that recorded this transaction</param>
1839818431
/// <param name="dataSourceId">Optionally filter transactions to those from a specific data source.</param>
1839918432
/// <param name="include">Specifies objects to include in this fetch call</param>
18400-
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus</param>
18433+
/// <param name="filter">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/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus, vendorName, varianceAmount</param>
1840118434
/// <param name="top">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.</param>
1840218435
/// <param name="skip">If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.</param>
1840318436
/// <param name="orderBy">A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.</param>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Newtonsoft.Json;
4+
5+
/*
6+
* AvaTax API Client Library
7+
*
8+
* (c) 2004-2023 Avalara, Inc.
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*
13+
* @author Jonathan Wenger <jonathan.wenger@avalara.com>
14+
* @author Sachin Baijal <sachin.baijal@avalara.com>
15+
* Swagger name: AvaTaxClient
16+
*/
17+
18+
namespace Avalara.AvaTax.RestClient
19+
{
20+
/// <summary>
21+
/// Represents a HsCodeClassification SLA Response for a given company.
22+
/// </summary>
23+
public class ItemHSCodeClassificationSlaOutputModel
24+
{
25+
/// <summary>
26+
/// The SLA time in hours
27+
/// </summary>
28+
public Int32? slaInHours { get; set; }
29+
30+
31+
/// <summary>
32+
/// Convert this object to a JSON string of itself
33+
/// </summary>
34+
/// <returns>A JSON string of this object</returns>
35+
public override string ToString()
36+
{
37+
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
38+
}
39+
}
40+
}

src/models/TransactionModel.cs

+10
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,16 @@ public class TransactionModel
456456
/// </summary>
457457
public String apStatus { get; set; }
458458

459+
/// <summary>
460+
/// The name of the vendor
461+
/// </summary>
462+
public String vendorName { get; set; }
463+
464+
/// <summary>
465+
/// The transaction-level variance (the difference between Vendor Charged Tax and AvaTax Calculated Tax) that has been calculated for this AP transaction.
466+
/// </summary>
467+
public Decimal? varianceAmount { get; set; }
468+
459469

460470
/// <summary>
461471
/// Convert this object to a JSON string of itself

0 commit comments

Comments
 (0)