Skip to content

Commit

Permalink
Merge pull request #247 from avadev/24.8.0
Browse files Browse the repository at this point in the history
Update for 24.8.0
  • Loading branch information
svc-developer authored Aug 10, 2024
2 parents dc2704c + 6f5f977 commit 7c1e07e
Show file tree
Hide file tree
Showing 19 changed files with 699 additions and 14 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("24.6.3")]
[assembly: AssemblyFileVersion("24.6.3")]
[assembly: AssemblyVersion("24.8.0")]
[assembly: AssemblyFileVersion("24.8.0")]
231 changes: 229 additions & 2 deletions src/AvaTaxApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author Sachin Baijal <[email protected]>
* @copyright 2004-2023 Avalara, Inc.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @version 24.6.3
* @version 24.8.0
* @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK
*/

Expand All @@ -28,7 +28,7 @@ public partial class AvaTaxClient : IAvaTaxClient
/// <summary>
/// Returns the version number of the API used to generate this class
/// </summary>
public static string API_VERSION { get { return "24.6.3"; } }
public static string API_VERSION { get { return "24.8.0"; } }

#region Methods

Expand Down Expand Up @@ -5813,6 +5813,84 @@ public DcvViewModel GetDcvById(String domainControlVerificationId)
}


/// <summary>
/// Delete AFC event notifications.
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
/// </remarks>
/// Swagger Name: AvaTaxClient
/// <param name="isDlq">Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`.</param>
/// <param name="model">Details of the event you want to delete.</param>
public FetchResult<EventMessageResponse> DeleteAfcEventNotifications(Boolean? isDlq, EventDeleteMessageModel model)
{
var path = new AvaTaxPath("/api/v2/event-notifications/afc");
path.AddQuery("isDlq", isDlq);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
return RestCall<FetchResult<EventMessageResponse>>("DELETE", path, model);
}


/// <summary>
/// Delete company event notifications
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
/// </remarks>
/// Swagger Name: AvaTaxClient
/// <param name="companyId">The unique ID number of the company that recorded these event notifications.</param>
/// <param name="model">Details of the event you want to delete.</param>
public FetchResult<EventMessageResponse> DeleteEventNotifications(Int32 companyId, EventDeleteMessageModel model)
{
var path = new AvaTaxPath("/api/v2/event-notifications/companies/{companyId}");
path.ApplyField("companyId", companyId);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
return RestCall<FetchResult<EventMessageResponse>>("DELETE", path, model);
}


/// <summary>
/// Retrieve company event notifications.
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
/// </remarks>
/// Swagger Name: AvaTaxClient
/// <param name="companyId">The unique ID number of the company that recorded these event notifications.</param>
public FetchResult<EventMessageResponse> GetEventNotifications(Int32 companyId)
{
var path = new AvaTaxPath("/api/v2/event-notifications/companies/{companyId}");
path.ApplyField("companyId", companyId);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
return RestCall<FetchResult<EventMessageResponse>>("GET", path, null);
}


/// <summary>
/// Retrieve AFC event notifications
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
/// </remarks>
/// Swagger Name: AvaTaxClient
/// <param name="isDlq">Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`.</param>
public FetchResult<EventMessageResponse> ListAfcEventNotifications(Boolean? isDlq)
{
var path = new AvaTaxPath("/api/v2/event-notifications/afc");
path.AddQuery("isDlq", isDlq);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
return RestCall<FetchResult<EventMessageResponse>>("GET", path, null);
}


/// <summary>
/// Create a new eCommerce token.
/// </summary>
Expand Down Expand Up @@ -7024,6 +7102,39 @@ public FetchResult<ItemModel> ListItemsByCompany(Int32 companyId, String filter,
}


/// <summary>
/// Retrieve the parameters by companyId and itemId.
/// </summary>
/// <remarks>
/// Returns the list of parameters based on the company's service types and the item code.
/// Ignores nexus if a service type is configured in the 'IgnoreNexusForServiceTypes' configuration section.
/// Ignores nexus for the AvaAlcohol service type.
///
/// ### Security Policies
///
/// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
/// </remarks>
/// Swagger Name: AvaTaxClient
/// <param name="companyId">Company Identifier.</param>
/// <param name="itemId">Item Identifier.</param>
/// <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:* serviceTypes, regularExpression, attributeSubType, values</param>
/// <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>
/// <param name="skip">If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.</param>
/// <param name="orderBy">A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.</param>
public FetchResult<ParameterModel> ListRecommendedParameterByCompanyIdAndItemId(Int32 companyId, Int32 itemId, String filter, Int32? top, Int32? skip, String orderBy)
{
var path = new AvaTaxPath("/api/v2/definitions/companies/{companyId}/items/{itemId}/parameters");
path.ApplyField("companyId", companyId);
path.ApplyField("itemId", itemId);
path.AddQuery("$filter", filter);
path.AddQuery("$top", top);
path.AddQuery("$skip", skip);
path.AddQuery("$orderBy", orderBy);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
return RestCall<FetchResult<ParameterModel>>("GET", path, null);
}


/// <summary>
/// Retrieve all items
/// </summary>
Expand Down Expand Up @@ -18650,6 +18761,88 @@ public async Task<DcvViewModel> GetDcvByIdAsync(String domainControlVerification
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Delete AFC event notifications.;
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.;
/// </remarks>

/// <param name="isDlq">Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`.</param>
/// <param name="model">Details of the event you want to delete.</param>
public async Task<FetchResult<EventMessageResponse>> DeleteAfcEventNotificationsAsync(Boolean? isDlq, EventDeleteMessageModel model)
{
var path = new AvaTaxPath("/api/v2/event-notifications/afc");
path.AddQuery("isDlq", isDlq);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
return await RestCallAsync<FetchResult<EventMessageResponse>>("DELETE", path, model).ConfigureAwait(false);
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Delete company event notifications;
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.;
/// </remarks>

/// <param name="companyId">The unique ID number of the company that recorded these event notifications.</param>
/// <param name="model">Details of the event you want to delete.</param>
public async Task<FetchResult<EventMessageResponse>> DeleteEventNotificationsAsync(Int32 companyId, EventDeleteMessageModel model)
{
var path = new AvaTaxPath("/api/v2/event-notifications/companies/{companyId}");
path.ApplyField("companyId", companyId);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
return await RestCallAsync<FetchResult<EventMessageResponse>>("DELETE", path, model).ConfigureAwait(false);
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Retrieve company event notifications.;
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.;
/// </remarks>

/// <param name="companyId">The unique ID number of the company that recorded these event notifications.</param>
public async Task<FetchResult<EventMessageResponse>> GetEventNotificationsAsync(Int32 companyId)
{
var path = new AvaTaxPath("/api/v2/event-notifications/companies/{companyId}");
path.ApplyField("companyId", companyId);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
return await RestCallAsync<FetchResult<EventMessageResponse>>("GET", path, null).ConfigureAwait(false);
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Retrieve AFC event notifications;
/// </summary>
/// <remarks>
/// ### Security Policies
///
/// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.;
/// </remarks>

/// <param name="isDlq">Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`.</param>
public async Task<FetchResult<EventMessageResponse>> ListAfcEventNotificationsAsync(Boolean? isDlq)
{
var path = new AvaTaxPath("/api/v2/event-notifications/afc");
path.AddQuery("isDlq", isDlq);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
return await RestCallAsync<FetchResult<EventMessageResponse>>("GET", path, null).ConfigureAwait(false);
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Create a new eCommerce token.;
Expand Down Expand Up @@ -19904,6 +20097,40 @@ public async Task<FetchResult<ItemModel>> ListItemsByCompanyAsync(Int32 companyI
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Retrieve the parameters by companyId and itemId.;
/// </summary>
/// <remarks>
/// Returns the list of parameters based on the company's service types and the item code.
/// Ignores nexus if a service type is configured in the 'IgnoreNexusForServiceTypes' configuration section.
/// Ignores nexus for the AvaAlcohol service type.
///
/// ### Security Policies
///
/// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.;
/// </remarks>

/// <param name="companyId">Company Identifier.</param>
/// <param name="itemId">Item Identifier.</param>
/// <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:* serviceTypes, regularExpression, attributeSubType, values</param>
/// <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>
/// <param name="skip">If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.</param>
/// <param name="orderBy">A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.</param>
public async Task<FetchResult<ParameterModel>> ListRecommendedParameterByCompanyIdAndItemIdAsync(Int32 companyId, Int32 itemId, String filter, Int32? top, Int32? skip, String orderBy)
{
var path = new AvaTaxPath("/api/v2/definitions/companies/{companyId}/items/{itemId}/parameters");
path.ApplyField("companyId", companyId);
path.ApplyField("itemId", itemId);
path.AddQuery("$filter", filter);
path.AddQuery("$top", top);
path.AddQuery("$skip", skip);
path.AddQuery("$orderBy", orderBy);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
return await RestCallAsync<FetchResult<ParameterModel>>("GET", path, null).ConfigureAwait(false);
}


/// Swagger Name: AvaTaxClient
/// <summary>
/// Retrieve all items;
Expand Down
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>24.6.4</version>
<version>24.8.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
Loading

0 comments on commit 7c1e07e

Please sign in to comment.