module Ruconomic::API::TemplateCollection

Public Class Methods

find_by_name() click to toggle source

Returns handles for the template collections with the given name.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_FindByName @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/template_collection.rb, line 54
def self.find_by_name
  response = invoke('TemplateCollection_FindByName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_all() click to toggle source

Returns handles for all template collections.

@see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_GetAll @return array The body content of the SOAP response.

# File lib/ruconomic/api/template_collection.rb, line 39
def self.get_all
  response = invoke('TemplateCollection_GetAll')

  response.to_hash.dig(
    :template_collection_get_all_response,
    :template_collection_get_all_result,
    :template_collection_handle
  ).map { |result| result[:id] }
end
get_data(id) click to toggle source

Returns an template collection data object for a given template collection. Parameters: entityHandle: A handle for the template collection.

@return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/template_collection.rb, line 10
def self.get_data(id)
  response = invoke('TemplateCollection_GetData') do |message|
    message.add 'entityHandle' do |handle|
      handle.add 'Id', id
    end
  end

  response.to_hash.dig(
    :template_collection_get_data_response,
    :template_collection_get_data_result
  )
end
get_data_array() click to toggle source

Returns template collection data objects for a given set of template collection handles. Parameters: entityHandles: An array of the template collection handles.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_GetDataArray @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/template_collection.rb, line 29
def self.get_data_array
  response = invoke('TemplateCollection_GetDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_name() click to toggle source

Gets name of the template collection. Parameters: templateCollectionHandle: Handle for the template collection.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_GetName @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/template_collection.rb, line 66
def self.get_name
  response = invoke('TemplateCollection_GetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
set_name() click to toggle source

Sets name of the template collection. Parameters: templateCollectionHandle: Handle for the template collection. name: New name of the template collection.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=TemplateCollection_SetName @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/template_collection.rb, line 78
def self.set_name
  response = invoke('TemplateCollection_SetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end