Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 24.8.0 #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions lib/avatax/client/ecmeventnotifications.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module AvaTax
class Client
module EcmEventNotifications


# Delete AFC event notifications.
#
# ### Security Policies
#
# * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
# Swagger Name: AvaTaxClient
# @param isDlq [Boolean] Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`.
# @param model [Object] Details of the event you want to delete.
# @return [FetchResult]
def delete_afc_event_notifications(model, options={}) path = "/api/v2/event-notifications/afc"
delete(path, model, options, AvaTax::VERSION) end

# Delete company event notifications
#
# ### Security Policies
#
# * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The unique ID number of the company that recorded these event notifications.
# @param model [Object] Details of the event you want to delete.
# @return [FetchResult]
def delete_event_notifications(companyId, model) path = "/api/v2/event-notifications/companies/#{companyId}"
delete(path, model, {}, AvaTax::VERSION) end

# Retrieve company event notifications.
#
# ### Security Policies
#
# * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The unique ID number of the company that recorded these event notifications.
# @return [FetchResult]
def get_event_notifications(companyId) path = "/api/v2/event-notifications/companies/#{companyId}"
get(path, {}, AvaTax::VERSION) end

# Retrieve AFC event notifications
#
# ### Security Policies
#
# * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
# Swagger Name: AvaTaxClient
# @param isDlq [Boolean] Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`.
# @return [FetchResult]
def list_afc_event_notifications(options={}) path = "/api/v2/event-notifications/afc"
get(path, options, AvaTax::VERSION) end
end
end
end
20 changes: 20 additions & 0 deletions lib/avatax/client/items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,26 @@ def list_item_parameters(companyId, itemId, options={}) path = "/api/v2/c
def list_items_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/items"
get(path, options, AvaTax::VERSION) end

# Retrieve the parameters by companyId and itemId.
#
# 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.
# Swagger Name: AvaTaxClient
# @param companyId [Integer] Company Identifier.
# @param itemId [Integer] Item Identifier.
# @param filter [String] 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 top [Integer] 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 skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
# @return [FetchResult]
def list_recommended_parameter_by_company_id_and_item_id(companyId, itemId, options={}) path = "/api/v2/definitions/companies/#{companyId}/items/#{itemId}/parameters"
get(path, options, AvaTax::VERSION) end

# Retrieve all items
#
# Get multiple item objects across all companies.
Expand Down
2 changes: 1 addition & 1 deletion lib/avatax/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AvaTax
VERSION = '24.6.3'.freeze unless defined?(::AvaTax::VERSION)
VERSION = '24.8.0'.freeze unless defined?(::AvaTax::VERSION)
end