Package com.wallee.android.till.sdk.data
Class LineItem.Builder
- java.lang.Object
-
- com.wallee.android.till.sdk.data.LineItem.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(LineItem lineItem)
Builder(String id, BigDecimal totalAmountIncludingTax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineItem.Builder
addTax(String name, BigDecimal rate)
LineItem
build()
LineItem.ListBuilder
getListBuilder()
void
setDiscountIncludingTax(BigDecimal discountIncludingTax)
LineItem.Builder
setName(String name)
LineItem.Builder
setQuantity(BigDecimal quantity)
LineItem.Builder
setSku(String sku)
LineItem.Builder
setType(LineItemType type)
-
-
-
Constructor Detail
-
Builder
public Builder(@NonNull String id, @NonNull BigDecimal totalAmountIncludingTax)
-
Builder
public Builder(@NonNull LineItem lineItem)
-
-
Method Detail
-
getListBuilder
public LineItem.ListBuilder getListBuilder()
-
setSku
public LineItem.Builder setSku(String sku)
-
setName
public LineItem.Builder setName(String name)
-
setQuantity
public LineItem.Builder setQuantity(@NonNull BigDecimal quantity)
-
setType
public LineItem.Builder setType(@NonNull LineItemType type)
-
setDiscountIncludingTax
public void setDiscountIncludingTax(@NonNull BigDecimal discountIncludingTax)
-
addTax
public LineItem.Builder addTax(String name, @NonNull BigDecimal rate)
-
build
public LineItem build()
-
-