public class BasketItem
extends java.lang.Object
Constructor and Description |
---|
BasketItem(java.lang.String articleId,
java.lang.String name,
int grossPrice,
int quantity)
Creates a basket item to be used with SwissBilling.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addArgsToArguments(java.util.Map<java.lang.String,java.lang.String> arguments,
int itemNo) |
void |
setDescription(java.lang.String description)
Sets an optional item description.
|
void |
setTax(double tax)
Sets the optional tax rate
|
void |
setTaxAmount(int taxAmount)
Sets the optional tax amount
|
void |
setType(java.lang.String type)
Sets the type of this item, "goods" if not set
|
public BasketItem(java.lang.String articleId, java.lang.String name, int grossPrice, int quantity)
articleId
- Article IDname
- Name of the itemgrossPrice
- Price of the articlequantity
- Quantity orderedpublic void setDescription(java.lang.String description)
description
- Item descriptionpublic void setTax(double tax)
tax
- Tax ratepublic void setTaxAmount(int taxAmount)
taxAmount
- Tax amountpublic void setType(java.lang.String type)
type
- Type of this itemprotected void addArgsToArguments(java.util.Map<java.lang.String,java.lang.String> arguments, int itemNo)