public class ReceiptTemplateElementBuilder extends Object
ReceiptTemplateElement.| Modifier and Type | Method and Description |
|---|---|
ReceiptTemplateBuilder |
endElement()
Builds the current object, adds it to the parent builder and returns the
parent builder.
|
ReceiptTemplateElementBuilder |
setCurrency(String currency)
Sets the currency of price.
|
ReceiptTemplateElementBuilder |
setImageUrl(String imageUrl)
Sets the image URL of item.
|
ReceiptTemplateElementBuilder |
setPrice(BigDecimal price)
Sets the item price.
|
ReceiptTemplateElementBuilder |
setQuantity(int quantity)
Sets a quantity of item.
|
ReceiptTemplateElementBuilder |
setSubtitle(String subtitle)
Sets a subtitle for the item.
|
String |
toString() |
public ReceiptTemplateElementBuilder setSubtitle(String subtitle)
subtitle - the subtitle to set.public ReceiptTemplateElementBuilder setQuantity(int quantity)
quantity - the quantity to set.public ReceiptTemplateElementBuilder setPrice(BigDecimal price)
price - the item price to set.public ReceiptTemplateElementBuilder setCurrency(String currency)
currency - the currency of price to set.public ReceiptTemplateElementBuilder setImageUrl(String imageUrl)
imageUrl - the image URL of item to set.public ReceiptTemplateBuilder endElement()
Copyright © 2017 BotMill. All rights reserved.