Skip to content

Commit

Permalink
Merge pull request #165 from avadev/24.6.3
Browse files Browse the repository at this point in the history
Update for 24.6.3
  • Loading branch information
svc-developer authored Jun 27, 2024
2 parents 566079f + 62daccc commit 10b9395
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/avatax/client/certificates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def list_customers_for_certificate(companyId, id, options={}) path = "/ap
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID number of the company to search
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
# @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:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
# @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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages
# @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`.
Expand Down
4 changes: 2 additions & 2 deletions lib/avatax/client/customers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def list_attributes_for_customer(companyId, customerCode) path = "/api/v2
# @param companyId [Integer] The unique ID number of the company that recorded this customer
# @param customerCode [String] The unique code representing this customer
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
# @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:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
# @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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages
# @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`.
Expand Down Expand Up @@ -294,7 +294,7 @@ def list_valid_certificates_for_customer(companyId, customerCode, country, regio
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The unique ID number of the company that recorded this customer
# @param include [String] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer.
# @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:* shipTos
# @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/).
# @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`.
Expand Down
30 changes: 16 additions & 14 deletions lib/avatax/client/items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Items
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that owns this item.
# @param itemId [Integer] The ID of the item you wish to delete the classifications.
# @return [ErrorDetail[]]
# @return [AssociatedObjectDeletedErrorDetailsModel[]]
def batch_delete_item_classifications(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
delete(path, {}, AvaTax::VERSION) end

Expand All @@ -37,7 +37,7 @@ def batch_delete_item_classifications(companyId, itemId) path = "/api/v2/
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that owns this item.
# @param itemId [Integer] The ID of the item you wish to delete the parameters.
# @return [ErrorDetail[]]
# @return [AssociatedObjectDeletedErrorDetailsModel[]]
def batch_delete_item_parameters(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
delete(path, {}, AvaTax::VERSION) end

Expand Down Expand Up @@ -191,7 +191,7 @@ def create_tax_code_classification_request(companyId, model) path = "/api
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that owns this item.
# @param itemCode [String] The code of the item you want to delete.
# @return [ErrorDetail[]]
# @return [ObjectDeletedErrorModel[]]
def delete_catalogue_item(companyId, itemCode) path = "/api/v2/companies/#{companyId}/itemcatalogue/#{itemCode}"
delete(path, {}, AvaTax::VERSION) end

Expand All @@ -213,7 +213,7 @@ def delete_catalogue_item(companyId, itemCode) path = "/api/v2/companies/
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that owns this item.
# @param id [Integer] The ID of the item you wish to delete.
# @return [ErrorDetail[]]
# @return [ObjectDeletedErrorModel[]]
def delete_item(companyId, id) path = "/api/v2/companies/#{companyId}/items/#{id}"
delete(path, {}, AvaTax::VERSION) end

Expand All @@ -232,7 +232,7 @@ def delete_item(companyId, id) path = "/api/v2/companies/#{companyId}/ite
# @param companyId [Integer] The company id.
# @param itemId [Integer] The item id.
# @param id [Integer] The item classification id.
# @return [ErrorDetail[]]
# @return [ObjectDeletedErrorModel[]]
def delete_item_classification(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
delete(path, {}, AvaTax::VERSION) end

Expand All @@ -253,7 +253,7 @@ def delete_item_classification(companyId, itemId, id) path = "/api/v2/com
# @param companyId [Integer] The company id
# @param itemId [Integer] The item id
# @param id [Integer] The parameter id
# @return [ErrorDetail[]]
# @return [ObjectDeletedErrorModel[]]
def delete_item_parameter(companyId, itemId, id) path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
delete(path, {}, AvaTax::VERSION) end

Expand All @@ -270,7 +270,7 @@ def delete_item_parameter(companyId, itemId, id) path = "/api/v2/companie
# @param companyId [Integer] The ID of the company that defined these items
# @param itemId [Integer] The ID of the item as defined by the company that owns this tag.
# @param itemTagDetailId [Integer] The ID of the item tag detail you wish to delete.
# @return [ErrorDetail[]]
# @return [ObjectDeletedErrorModel[]]
def delete_item_tag(companyId, itemId, itemTagDetailId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags/#{itemTagDetailId}"
delete(path, {}, AvaTax::VERSION) end

Expand All @@ -286,7 +286,7 @@ def delete_item_tag(companyId, itemId, itemTagDetailId) path = "/api/v2/c
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that defined these items.
# @param itemId [Integer] The ID of the item as defined by the company that owns this tag.
# @return [ErrorDetail[]]
# @return [AssociatedObjectDeletedErrorDetailsModel[]]
def delete_item_tags(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags"
delete(path, {}, AvaTax::VERSION) end

Expand Down Expand Up @@ -380,7 +380,7 @@ def get_item_tags(companyId, itemId, options={}) path = "/api/v2/companie
# Swagger Name: AvaTaxClient
# @param companyId [Integer]
# @param itemId [Integer]
# @return [Object]
# @return [TaxCodeRecommendationOutputModel[]]
def get_item_tax_code_recommendations(companyId, itemId) path = "/api/v2/companies/#{companyId}/items/#{itemId}/taxcoderecommendations"
get(path, {}, AvaTax::VERSION) end

Expand Down Expand Up @@ -513,13 +513,14 @@ def list_item_parameters(companyId, itemId, options={}) path = "/api/v2/c
# * Classifications
# * Tags
# * Properties
# * TaxCodeRecommendationStatus
#
# ### 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] The ID of the company that defined these items
# @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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus
# @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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations
# @param include [String] A comma separated list of additional data to retrieve.
# @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.
Expand Down Expand Up @@ -549,7 +550,7 @@ def list_items_by_company(companyId, options={}) path = "/api/v2/companie
#
# * 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 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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus
# @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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations
# @param include [String] A comma separated list of additional data to retrieve.
# @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.
Expand Down Expand Up @@ -606,7 +607,7 @@ def query_items_by_system_code(companyId, systemCode, model, options={})
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that defined these items.
# @param tag [String] The master tag to be associated with item.
# @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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus
# @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:* taxCode, source, sourceEntityId, itemType, upc, summary, classifications, parameters, tags, properties, itemStatus, taxCodeRecommendationStatus, taxCodeRecommendations
# @param include [String] A comma separated list of additional data to retrieve.
# @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.
Expand Down Expand Up @@ -681,10 +682,11 @@ def sync_items(companyId, model) path = "/api/v2/companies/#{companyId}/i
# Swagger Name: AvaTaxClient
# @param companyId [Integer] The ID of the company that this item belongs to.
# @param id [Integer] The ID of the item you wish to update
# @param isRecommendationSelected [Boolean] If true then Set recommendation status to RecommendationSelected
# @param model [Object] The item object you wish to update.
# @return [Object]
def update_item(companyId, id, model) path = "/api/v2/companies/#{companyId}/items/#{id}"
put(path, model, {}, AvaTax::VERSION) end
def update_item(companyId, id, model, options={}) path = "/api/v2/companies/#{companyId}/items/#{id}"
put(path, model, options, AvaTax::VERSION) end

# Update an item classification.
#
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.1'.freeze unless defined?(::AvaTax::VERSION)
VERSION = '24.6.3'.freeze unless defined?(::AvaTax::VERSION)
end

0 comments on commit 10b9395

Please sign in to comment.