LineItem

public final class LineItem implements Parcelable

The LineItem class contains information from a line item extraction.

Constructors

Link copied to clipboard
public LineItem LineItem(String id, String description, Integer quantity, String rawGrossPrice, Integer origQuantity, String origRawGrossPrice)

Functions

Link copied to clipboard
public abstract Integer describeContents()
Link copied to clipboard
public Boolean equals(Object other)
Link copied to clipboard
public final Currency getCurrency()

The parsed currency.

Link copied to clipboard
public final String getDescription()
Link copied to clipboard
public final BigDecimal getGrossPrice()

The unit price.

Link copied to clipboard
public final String getId()
Link copied to clipboard

The original total unit price.

Link copied to clipboard
public final Integer getQuantity()
Link copied to clipboard
public final String getRawCurrency()

The currency as a string in ISO 4217 format.

Link copied to clipboard
public final String getRawGrossPrice()
Link copied to clipboard

The total unit price. Total unit price = unit price x quantity.

Link copied to clipboard

The difference between original and current total unit price.

Link copied to clipboard
public Integer hashCode()
Link copied to clipboard
public String toString()
Link copied to clipboard
public abstract Unit writeToParcel(Parcel p0, Integer p1)

Properties

Link copied to clipboard
private final Currency currency

The parsed currency.

Link copied to clipboard
private final String description
Link copied to clipboard
private final BigDecimal grossPrice

The unit price.

Link copied to clipboard
private final String id
Link copied to clipboard

The original total unit price.

Link copied to clipboard
private final Integer quantity
Link copied to clipboard
private final String rawCurrency

The currency as a string in ISO 4217 format.

Link copied to clipboard
private final String rawGrossPrice
Link copied to clipboard

The total unit price. Total unit price = unit price x quantity.

Link copied to clipboard

The difference between original and current total unit price.