DearInventoryRuby::SaleOrderLine
Name
Type
Description
Notes
product_id
String
Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false
[optional]
sku
String
Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false
[optional]
name
String
Product Name referenced by this Line
quantity
Float
Product or service quantity. Minimal value is 1.
price
Float
Price per unit in Customer currency
discount
Float
Discount. Value between 0 and 100. For free items discount is 100. Default value is 0
[optional]
tax
Float
Tax
[optional]
average_cost
Float
Average product cost
[optional]
tax_rule
String
Line Tax Rule name.
[optional]
comment
String
Comment for this line
[optional]
drop_ship
Boolean
Required if product is not a service with “Optional Drop Ship” mode. Otherwise it ignored.
[optional]
backorder_quantity
Float
Quantity of the ordered product on backorder. Read Only for POST
[optional]
total
Float
Line Total. For validation
[optional]
require 'DearInventoryRuby'
instance = DearInventoryRuby ::SaleOrderLine . new ( product_id : nil ,
sku : nil ,
name : nil ,
quantity : nil ,
price : nil ,
discount : nil ,
tax : nil ,
average_cost : nil ,
tax_rule : nil ,
comment : nil ,
drop_ship : nil ,
backorder_quantity : nil ,
total : nil )