public class QuoteStructure extends Object
parentId
of the structure objectModifier and Type | Class and Description |
---|---|
class |
QuoteStructure.Item
A DTO that holds information about the new item (part or folder) to be created.
|
Modifier and Type | Field and Description |
---|---|
List<QuoteStructure.Item> |
items
The list of items to add in this level of the quote
|
String |
parentId
The level of the quote.
|
Constructor and Description |
---|
QuoteStructure() |
Modifier and Type | Method and Description |
---|---|
QuoteStructure.Item |
addFolder(String label)
Creates and adds a new folder
|
QuoteStructure.Item |
addFolder(String label,
List<Map<String,Object>> inputs)
Creates and adds a new folder
|
QuoteStructure.Item |
addPart(String sku)
Creates and adds a new part
|
QuoteStructure.Item |
addPart(String sku,
List<Map<String,Object>> inputs)
Creates and adds a new part
|
QuoteStructure.Item |
createFolder(String label)
Creates a new folder item, but does not add it to the list
|
QuoteStructure.Item |
createPart(String sku)
Creates a new "part" item but does not add it
|
public List<QuoteStructure.Item> items
public String parentId
public QuoteStructure.Item createFolder(String label)
label
- The folder labelpublic QuoteStructure.Item addFolder(String label)
label
- The folder labelinputs
- New inputs of the folderpublic QuoteStructure.Item addFolder(String label, List<Map<String,Object>> inputs)
label
- The folder labelpublic QuoteStructure.Item createPart(String sku)
sku
- The SKU of the new partpublic QuoteStructure.Item addPart(String sku)
label
- The SKU of the new partCopyright © 2019. All rights reserved.