module Ruconomic::API::OrderLine

Public Class Methods

create() click to toggle source

Creates a new order line. Parameters: orderHandle: Handle for a order.

@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=OrderLine_Create @return [Hash] The body content of the SOAP response.

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

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

@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=OrderLine_CreateFromData @return [Hash] The body content of the SOAP response.

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

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

@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=OrderLine_CreateFromDataArray @return [Hash] The body content of the SOAP response.

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

Deletes an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_Delete @return [Hash] The body content of the SOAP response.

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

Returns handles for order lines that uses a given product. Parameters: product: The product to search for.

@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=OrderLine_FindByProduct @return [Hash] The body content of the SOAP response.

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

Returns handles for order lines that uses a given set of products. Parameters: products: The products to search for.

@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=OrderLine_FindByProductList @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/order_line.rb, line 407
def self.find_by_product_list
  response = invoke('OrderLine_FindByProductList') 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 order lines.

@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=OrderLine_GetAll @return [Hash] The body content of the SOAP response.

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

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

@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=OrderLine_GetData @return [Hash] The body content of the SOAP response.

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

Returns order line data objects for a given set of order line handles. Parameters: entityHandles: An array of the order line 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=OrderLine_GetDataArray @return [Hash] The body content of the SOAP response.

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

Gets the delivery date of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetDeliveryDate @return [Hash] The body content of the SOAP response.

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

Gets a handle for the department of an order line. The department is only accessible when there is access to the Dimension add-on module. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetDepartment @return [Hash] The body content of the SOAP response.

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

Gets the description of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetDescription @return [Hash] The body content of the SOAP response.

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

Gets discount of an order line as percent. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetDiscountAsPercent @return [Hash] The body content of the SOAP response.

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

Gets a handle for the distribution key of an order line. The distribution key is only accessible when there is access to the Dimension add-on module. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetDistributionKey @return [Hash] The body content of the SOAP response.

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

Gets a handle for the inventory location of an order line. The inventory location is only accessible when there is access to the Stock add-on module. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetInventoryLocation @return [Hash] The body content of the SOAP response.

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

Gets the margin as percent of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetMarginAsPercent @return [Hash] The body content of the SOAP response.

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

Gets the number of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetNumber @return [Hash] The body content of the SOAP response.

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

Gets a handle for the order of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetOrder @return [Hash] The body content of the SOAP response.

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

Gets handle for product of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetProduct @return [Hash] The body content of the SOAP response.

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

Gets primary quantity of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetQuantity @return [Hash] The body content of the SOAP response.

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

Gets the margin of an order line (in the currency of the order). Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetTotalMargin @return [Hash] The body content of the SOAP response.

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

Gets the total amount without VAT of an order line (in the currency of the order). Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetTotalNetAmount @return [Hash] The body content of the SOAP response.

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

Gets handle for primary unit of an order line. Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetUnit @return [Hash] The body content of the SOAP response.

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

Gets the cost price per unit witout VAT of an order line (in the default currency). Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetUnitCostPrice @return [Hash] The body content of the SOAP response.

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

Gets price per unit without VAT of an order line (in the currency of the order). Parameters: orderLineHandle: Handle for the order line.

@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=OrderLine_GetUnitNetPrice @return [Hash] The body content of the SOAP response.

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

Sets the delivery date of an order line. Parameters: orderLineHandle: Handle for the order line. value: The new delivery date of the order line.

@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=OrderLine_SetDeliveryDate @return [Hash] The body content of the SOAP response.

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

Sets the department of an order line. The department is only accessible when there is access to the Dimension add-on module. The department cannot be set when the distribution key is set. Parameters: orderLineHandle: Handle for the order line. value: Handle for the new department of the order line.

@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=OrderLine_SetDepartment @return [Hash] The body content of the SOAP response.

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

Sets the description of an order line. Parameters: orderLineHandle: Handle for the order line. value: The new description of the order line.

@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=OrderLine_SetDescription @return [Hash] The body content of the SOAP response.

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

Sets discount of an order line as percent. Parameters: orderLineHandle: Handle for the order line. value: The new discount as percent of the order line.

@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=OrderLine_SetDiscountAsPercent @return [Hash] The body content of the SOAP response.

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

Sets the distribution key of an order line. The distribution key is only accessible when there is access to the Dimension add-on module. The distribution key cannot be set when the department is set. Parameters: orderLineHandle: Handle for the order line. value: Handle for the new distribution key of the order line.

@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=OrderLine_SetDistributionKey @return [Hash] The body content of the SOAP response.

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

Sets the inventory location of a order line. The inventory location is only accessible when there is access to the Stock add-on module. Parameters: orderLineHandle: Handle for the order line. value: Handle for the new inventory location of the order line.

@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=OrderLine_SetInventoryLocation @return [Hash] The body content of the SOAP response.

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

Sets product of an order line. Setting the product also sets the unit cost price to the cost price of the product. The product must be set before setting the quantity and the unit net price. Parameters: orderLineHandle: Handle for the order line. valueHandle: Handle for new product of the order line.

@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=OrderLine_SetProduct @return [Hash] The body content of the SOAP response.

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

Sets primary quantity of an order line. The product of the order line must be set before setting this property. Parameters: orderLineHandle: Handle for the order line. valueHandle: Handle for primary quantity of the order line.

@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=OrderLine_SetQuantity @return [Hash] The body content of the SOAP response.

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

Sets primary unit of an order line. Parameters: orderLineHandle: Handle for the order line. valueHandle: Handle for new primary unit of the order line.

@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=OrderLine_SetUnit @return [Hash] The body content of the SOAP response.

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

Sets price per unit without VAT of an order line (in the currency of the order). The product of the order line must be set before setting this property. Parameters: orderLineHandle: Handle for the order line. value: The new price per unit without VAT of the order line.

@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=OrderLine_SetUnitNetPrice @return [Hash] The body content of the SOAP response.

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

Updates an order line from a data object. Parameters: data: The data object.

@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=OrderLine_UpdateFromData @return [Hash] The body content of the SOAP response.

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

Update order lines from data objects. Parameters: dataArray: The array of data objects.

@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=OrderLine_UpdateFromDataArray @return [Hash] The body content of the SOAP response.

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