-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from avadev/24.8.0
Update for 24.8.0
- Loading branch information
Showing
19 changed files
with
699 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
*/ | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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> | ||
|
@@ -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> | ||
|
@@ -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.; | ||
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.