module AvaTax
  class Client
    module AvaFileForms 


      # Create a new AvaFileForm
      #
      # Create one or more AvaFileForms
      # A 'AvaFileForm' represents a form supported by our returns team
      # @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
      # @return [AvaFileFormModel[]]
      def create_ava_file_forms(model)
        path = "/api/v2/avafileforms"
        post(path, model)
      end


      # Delete a single AvaFileForm
      #
      # Marks the existing AvaFileForm object at this URL as deleted.
      # @param id [Integer] The ID of the AvaFileForm you wish to delete.
      # @return [ErrorDetail[]]
      def delete_ava_file_form(id)
        path = "/api/v2/avafileforms/#{id}"
        delete(path)
      end


      # Retrieve a single AvaFileForm
      #
      # Get the AvaFileForm object identified by this URL.
      # @param id [String] The primary key of this AvaFileForm
      # @return [Object]
      def get_ava_file_form(id)
        path = "/api/v2/avafileforms/#{id}"
        get(path)
      end


      # Retrieve all AvaFileForms
      #
      # Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
      # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
      # @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 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.
      # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
      # @return [FetchResult]
      def query_ava_file_forms(options={})
        path = "/api/v2/avafileforms"
        get(path, options)
      end


      # Update a AvaFileForm
      #
      # All data from the existing object will be replaced with data in the object you PUT.
      # To set a field's value to null, you may either set its value to null or omit that field from the object you post.
      # @param id [Integer] The ID of the AvaFileForm you wish to update
      # @param model [Object] The AvaFileForm model you wish to update.
      # @return [Object]
      def update_ava_file_form(id, model)
        path = "/api/v2/avafileforms/#{id}"
        put(path, model)
      end

    end
  end
end