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 |
---|---|
void |
addFolder(String label)
Creates and adds a new folder
|
void |
addPart(String sku)
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 void addFolder(String label)
label
- The folder labelpublic QuoteStructure.Item createPart(String sku)
sku
- The SKU of the new partpublic void addPart(String sku)
label
- The SKU of the new partCopyright © 2016. All rights reserved.