Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.68 KB

SaleQuoteLine.md

File metadata and controls

37 lines (30 loc) · 1.68 KB

DearInventoryRuby::SaleQuoteLine

Properties

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]
total Float Line Total. For validation [optional]

Code Sample

require 'DearInventoryRuby'

instance = DearInventoryRuby::SaleQuoteLine.new(product_id: nil,
                                 sku: nil,
                                 name: nil,
                                 quantity: nil,
                                 price: nil,
                                 discount: nil,
                                 tax: nil,
                                 average_cost: nil,
                                 tax_rule: nil,
                                 comment: nil,
                                 total: nil)