From 292fcfcaa2e4e4c53c8ce5266b8fd06d678efd88 Mon Sep 17 00:00:00 2001 From: svc-developer Date: Fri, 9 Aug 2024 19:52:13 +0000 Subject: [PATCH] 24.8.0 --- lib/avatax/client/ecmeventnotifications.rb | 53 ++++++++++++++++++++++ lib/avatax/client/items.rb | 20 ++++++++ lib/avatax/version.rb | 2 +- 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 lib/avatax/client/ecmeventnotifications.rb diff --git a/lib/avatax/client/ecmeventnotifications.rb b/lib/avatax/client/ecmeventnotifications.rb new file mode 100644 index 0000000..c3690b3 --- /dev/null +++ b/lib/avatax/client/ecmeventnotifications.rb @@ -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 \ No newline at end of file diff --git a/lib/avatax/client/items.rb b/lib/avatax/client/items.rb index a24e665..1489dcb 100644 --- a/lib/avatax/client/items.rb +++ b/lib/avatax/client/items.rb @@ -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/).
*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. diff --git a/lib/avatax/version.rb b/lib/avatax/version.rb index c901bcd..87f37f5 100644 --- a/lib/avatax/version.rb +++ b/lib/avatax/version.rb @@ -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