Module: Ruconomic::API::PriceGroup

Extended by:
WebService
Defined in:
lib/ruconomic/api/price_group.rb

Class Method Summary collapse

Class Method Details

.createHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Creates a new PriceGroup. Parameters: name: The name of the new PriceGroup.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


84
85
86
87
88
# File 'lib/ruconomic/api/price_group.rb', line 84

def self.create
  response = invoke('PriceGroup_Create') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.create_from_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Creates a new PriceGroup from a data object. Parameters: data: The data object that specifies the properties of the new PriceGroup.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


12
13
14
15
16
# File 'lib/ruconomic/api/price_group.rb', line 12

def self.create_from_data
  response = invoke('PriceGroup_CreateFromData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.create_from_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Creates new PriceGroups from data objects. Parameters: dataArray: The array of data objects that specifies the properties of the new PriceGroups.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


24
25
26
27
28
# File 'lib/ruconomic/api/price_group.rb', line 24

def self.create_from_data_array
  response = invoke('PriceGroup_CreateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.deleteHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Deletes a PriceGroup. Parameters: priceGroupHandle: Handle for the PriceGroup.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


179
180
181
182
183
# File 'lib/ruconomic/api/price_group.rb', line 179

def self.delete
  response = invoke('PriceGroup_Delete') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.find_by_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns handles for the price groups with the given name. Parameters: name: The name to search for.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


167
168
169
170
171
# File 'lib/ruconomic/api/price_group.rb', line 167

def self.find_by_name
  response = invoke('PriceGroup_FindByName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.find_by_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns a handle for the price group with the given number. Parameters: number: The number to search for.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


143
144
145
146
147
# File 'lib/ruconomic/api/price_group.rb', line 143

def self.find_by_number
  response = invoke('PriceGroup_FindByNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.find_by_number_listHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns an array with handles for price groups corresponding to the given price group numbers. If a price group with a given number does not exist or if no number is given then the array contains nothing at that index. Parameters: numbers: The numbers to search for.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


155
156
157
158
159
# File 'lib/ruconomic/api/price_group.rb', line 155

def self.find_by_number_list
  response = invoke('PriceGroup_FindByNumberList') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_allHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Return handles for all price groups.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


131
132
133
134
135
# File 'lib/ruconomic/api/price_group.rb', line 131

def self.get_all
  response = invoke('PriceGroup_GetAll') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


60
61
62
63
64
# File 'lib/ruconomic/api/price_group.rb', line 60

def self.get_data
  response = invoke('PriceGroup_GetData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


72
73
74
75
76
# File 'lib/ruconomic/api/price_group.rb', line 72

def self.get_data_array
  response = invoke('PriceGroup_GetDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the name of a price group. Parameters: priceGroupHandle: Handle for the price group.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


108
109
110
111
112
# File 'lib/ruconomic/api/price_group.rb', line 108

def self.get_name
  response = invoke('PriceGroup_GetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Gets the number of a price group. Parameters: PriceGroupHandle: Handle for the price group.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


96
97
98
99
100
# File 'lib/ruconomic/api/price_group.rb', line 96

def self.get_number
  response = invoke('PriceGroup_GetNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_priceHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns the price for the product in the PriceGroup. If no special price is found then the sales price is returned instead. Parameters: productHandle: The product to return the price for.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


192
193
194
195
196
# File 'lib/ruconomic/api/price_group.rb', line 192

def self.get_price
  response = invoke('PriceGroup_GetPrice') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.set_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Sets the name of a price group. Parameters: priceGroupHandle: Handle for the price group. value: The new name of the price group.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


120
121
122
123
124
# File 'lib/ruconomic/api/price_group.rb', line 120

def self.set_name
  response = invoke('PriceGroup_SetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.update_from_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Updates a PriceGroup from a data object. Parameters: data: The data object.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


48
49
50
51
52
# File 'lib/ruconomic/api/price_group.rb', line 48

def self.update_from_data
  response = invoke('PriceGroup_UpdateFromData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.update_from_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Update PriceGroups from data objects. Parameters: dataArray: The array of data objects.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


36
37
38
39
40
# File 'lib/ruconomic/api/price_group.rb', line 36

def self.update_from_data_array
  response = invoke('PriceGroup_UpdateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end