avatax 24.6.1 → 24.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/avatax/client/certificates.rb +1 -1
- data/lib/avatax/client/customers.rb +2 -2
- data/lib/avatax/client/items.rb +16 -14
- data/lib/avatax/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 21716b9e05b88f595006b01020571986eb1dbcc40b5fc9cc15a95b7e01d46f78
         | 
| 4 | 
            +
              data.tar.gz: 45ff66124db89843e7da211c9dc016647e9d05926db499dbdf7ead56039d664d
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8f939dcbbd650e6e91152478f65e7165bd074bc358db68efadf3fcbcb064b8edffb8d7164bf95a06447de128d594e5a01e87a8d06f758d0c9a8468126d65830d
         | 
| 7 | 
            +
              data.tar.gz: 875e1c67817e98f2da5943b1c8352b648a03eadef6d8636b2095e7b4d7287675fc5bbf2292fcec1052bc7c1845e6f53daced8fe2340d5200da9080a3828f703e
         | 
| @@ -291,7 +291,7 @@ module AvaTax | |
| 291 291 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 292 292 | 
             
                  # @param companyId [Integer] The ID number of the company to search
         | 
| 293 293 | 
             
                  # @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.
         | 
| 294 | 
            -
                  # @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
         | 
| 294 | 
            +
                  # @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
         | 
| 295 295 | 
             
                  # @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.
         | 
| 296 296 | 
             
                  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
         | 
| 297 297 | 
             
                  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
         | 
| @@ -228,7 +228,7 @@ module AvaTax | |
| 228 228 | 
             
                  # @param companyId [Integer] The unique ID number of the company that recorded this customer
         | 
| 229 229 | 
             
                  # @param customerCode [String] The unique code representing this customer
         | 
| 230 230 | 
             
                  # @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.
         | 
| 231 | 
            -
                  # @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
         | 
| 231 | 
            +
                  # @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
         | 
| 232 232 | 
             
                  # @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.
         | 
| 233 233 | 
             
                  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
         | 
| 234 234 | 
             
                  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
         | 
| @@ -294,7 +294,7 @@ module AvaTax | |
| 294 294 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 295 295 | 
             
                  # @param companyId [Integer] The unique ID number of the company that recorded this customer
         | 
| 296 296 | 
             
                  # @param include [String] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer.
         | 
| 297 | 
            -
                  # @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/) | 
| 297 | 
            +
                  # @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/).
         | 
| 298 298 | 
             
                  # @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.
         | 
| 299 299 | 
             
                  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
         | 
| 300 300 | 
             
                  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
         | 
    
        data/lib/avatax/client/items.rb
    CHANGED
    
    | @@ -17,7 +17,7 @@ module AvaTax | |
| 17 17 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 18 18 | 
             
                  # @param companyId [Integer] The ID of the company that owns this item.
         | 
| 19 19 | 
             
                  # @param itemId [Integer] The ID of the item you wish to delete the classifications.
         | 
| 20 | 
            -
                  # @return [ | 
| 20 | 
            +
                  # @return [AssociatedObjectDeletedErrorDetailsModel[]]
         | 
| 21 21 | 
             
                  def batch_delete_item_classifications(companyId, itemId)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications"
         | 
| 22 22 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 23 23 |  | 
| @@ -37,7 +37,7 @@ module AvaTax | |
| 37 37 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 38 38 | 
             
                  # @param companyId [Integer] The ID of the company that owns this item.
         | 
| 39 39 | 
             
                  # @param itemId [Integer] The ID of the item you wish to delete the parameters.
         | 
| 40 | 
            -
                  # @return [ | 
| 40 | 
            +
                  # @return [AssociatedObjectDeletedErrorDetailsModel[]]
         | 
| 41 41 | 
             
                  def batch_delete_item_parameters(companyId, itemId)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters"
         | 
| 42 42 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 43 43 |  | 
| @@ -191,7 +191,7 @@ module AvaTax | |
| 191 191 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 192 192 | 
             
                  # @param companyId [Integer] The ID of the company that owns this item.
         | 
| 193 193 | 
             
                  # @param itemCode [String] The code of the item you want to delete.
         | 
| 194 | 
            -
                  # @return [ | 
| 194 | 
            +
                  # @return [ObjectDeletedErrorModel[]]
         | 
| 195 195 | 
             
                  def delete_catalogue_item(companyId, itemCode)        path = "/api/v2/companies/#{companyId}/itemcatalogue/#{itemCode}"
         | 
| 196 196 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 197 197 |  | 
| @@ -213,7 +213,7 @@ module AvaTax | |
| 213 213 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 214 214 | 
             
                  # @param companyId [Integer] The ID of the company that owns this item.
         | 
| 215 215 | 
             
                  # @param id [Integer] The ID of the item you wish to delete.
         | 
| 216 | 
            -
                  # @return [ | 
| 216 | 
            +
                  # @return [ObjectDeletedErrorModel[]]
         | 
| 217 217 | 
             
                  def delete_item(companyId, id)        path = "/api/v2/companies/#{companyId}/items/#{id}"
         | 
| 218 218 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 219 219 |  | 
| @@ -232,7 +232,7 @@ module AvaTax | |
| 232 232 | 
             
                  # @param companyId [Integer] The company id.
         | 
| 233 233 | 
             
                  # @param itemId [Integer] The item id.
         | 
| 234 234 | 
             
                  # @param id [Integer] The item classification id.
         | 
| 235 | 
            -
                  # @return [ | 
| 235 | 
            +
                  # @return [ObjectDeletedErrorModel[]]
         | 
| 236 236 | 
             
                  def delete_item_classification(companyId, itemId, id)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/classifications/#{id}"
         | 
| 237 237 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 238 238 |  | 
| @@ -253,7 +253,7 @@ module AvaTax | |
| 253 253 | 
             
                  # @param companyId [Integer] The company id
         | 
| 254 254 | 
             
                  # @param itemId [Integer] The item id
         | 
| 255 255 | 
             
                  # @param id [Integer] The parameter id
         | 
| 256 | 
            -
                  # @return [ | 
| 256 | 
            +
                  # @return [ObjectDeletedErrorModel[]]
         | 
| 257 257 | 
             
                  def delete_item_parameter(companyId, itemId, id)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/parameters/#{id}"
         | 
| 258 258 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 259 259 |  | 
| @@ -270,7 +270,7 @@ module AvaTax | |
| 270 270 | 
             
                  # @param companyId [Integer] The ID of the company that defined these items
         | 
| 271 271 | 
             
                  # @param itemId [Integer] The ID of the item as defined by the company that owns this tag.
         | 
| 272 272 | 
             
                  # @param itemTagDetailId [Integer] The ID of the item tag detail you wish to delete.
         | 
| 273 | 
            -
                  # @return [ | 
| 273 | 
            +
                  # @return [ObjectDeletedErrorModel[]]
         | 
| 274 274 | 
             
                  def delete_item_tag(companyId, itemId, itemTagDetailId)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags/#{itemTagDetailId}"
         | 
| 275 275 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 276 276 |  | 
| @@ -286,7 +286,7 @@ module AvaTax | |
| 286 286 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 287 287 | 
             
                  # @param companyId [Integer] The ID of the company that defined these items.
         | 
| 288 288 | 
             
                  # @param itemId [Integer] The ID of the item as defined by the company that owns this tag.
         | 
| 289 | 
            -
                  # @return [ | 
| 289 | 
            +
                  # @return [AssociatedObjectDeletedErrorDetailsModel[]]
         | 
| 290 290 | 
             
                  def delete_item_tags(companyId, itemId)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/tags"
         | 
| 291 291 | 
             
                    delete(path, {}, AvaTax::VERSION)      end
         | 
| 292 292 |  | 
| @@ -380,7 +380,7 @@ module AvaTax | |
| 380 380 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 381 381 | 
             
                  # @param companyId [Integer] 
         | 
| 382 382 | 
             
                  # @param itemId [Integer] 
         | 
| 383 | 
            -
                  # @return [ | 
| 383 | 
            +
                  # @return [TaxCodeRecommendationOutputModel[]]
         | 
| 384 384 | 
             
                  def get_item_tax_code_recommendations(companyId, itemId)        path = "/api/v2/companies/#{companyId}/items/#{itemId}/taxcoderecommendations"
         | 
| 385 385 | 
             
                    get(path, {}, AvaTax::VERSION)      end
         | 
| 386 386 |  | 
| @@ -513,13 +513,14 @@ module AvaTax | |
| 513 513 | 
             
                  # * Classifications
         | 
| 514 514 | 
             
                  # * Tags
         | 
| 515 515 | 
             
                  # * Properties
         | 
| 516 | 
            +
                  # * TaxCodeRecommendationStatus
         | 
| 516 517 | 
             
                  #
         | 
| 517 518 | 
             
                  # ### Security Policies
         | 
| 518 519 | 
             
                  #
         | 
| 519 520 | 
             
                  # * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
         | 
| 520 521 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 521 522 | 
             
                  # @param companyId [Integer] The ID of the company that defined these items
         | 
| 522 | 
            -
                  # @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
         | 
| 523 | 
            +
                  # @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
         | 
| 523 524 | 
             
                  # @param include [String] A comma separated list of additional data to retrieve.
         | 
| 524 525 | 
             
                  # @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.
         | 
| 525 526 | 
             
                  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
         | 
| @@ -549,7 +550,7 @@ module AvaTax | |
| 549 550 | 
             
                  #
         | 
| 550 551 | 
             
                  # * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
         | 
| 551 552 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 552 | 
            -
                  # @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
         | 
| 553 | 
            +
                  # @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
         | 
| 553 554 | 
             
                  # @param include [String] A comma separated list of additional data to retrieve.
         | 
| 554 555 | 
             
                  # @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.
         | 
| 555 556 | 
             
                  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
         | 
| @@ -606,7 +607,7 @@ module AvaTax | |
| 606 607 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 607 608 | 
             
                  # @param companyId [Integer] The ID of the company that defined these items.
         | 
| 608 609 | 
             
                  # @param tag [String] The master tag to be associated with item.
         | 
| 609 | 
            -
                  # @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
         | 
| 610 | 
            +
                  # @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
         | 
| 610 611 | 
             
                  # @param include [String] A comma separated list of additional data to retrieve.
         | 
| 611 612 | 
             
                  # @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.
         | 
| 612 613 | 
             
                  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
         | 
| @@ -681,10 +682,11 @@ module AvaTax | |
| 681 682 | 
             
                  # Swagger Name: AvaTaxClient	  
         | 
| 682 683 | 
             
                  # @param companyId [Integer] The ID of the company that this item belongs to.
         | 
| 683 684 | 
             
                  # @param id [Integer] The ID of the item you wish to update
         | 
| 685 | 
            +
                  # @param isRecommendationSelected [Boolean] If true then Set recommendation status to RecommendationSelected
         | 
| 684 686 | 
             
                  # @param model [Object] The item object you wish to update.
         | 
| 685 687 | 
             
                  # @return [Object]
         | 
| 686 | 
            -
                  def update_item(companyId, id, model)        path = "/api/v2/companies/#{companyId}/items/#{id}"
         | 
| 687 | 
            -
                    put(path, model,  | 
| 688 | 
            +
                  def update_item(companyId, id, model, options={})        path = "/api/v2/companies/#{companyId}/items/#{id}"
         | 
| 689 | 
            +
                    put(path, model, options, AvaTax::VERSION)      end
         | 
| 688 690 |  | 
| 689 691 | 
             
                  # Update an item classification.
         | 
| 690 692 | 
             
                  #
         | 
    
        data/lib/avatax/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: avatax
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 24.6. | 
| 4 | 
            +
              version: 24.6.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Marcus Vorwaller
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-06- | 
| 11 | 
            +
            date: 2024-06-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         |