public class InvoiceItem extends PayPalModel
| Constructor and Description |
|---|
InvoiceItem()
Default Constructor
|
InvoiceItem(java.lang.String name,
float quantity,
Currency unitPrice)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDate()
The date when the item or service was provided.
|
java.lang.String |
getDescription()
Description of the item.
|
Cost |
getDiscount()
The item discount, as a percent or an amount value.
|
java.lang.String |
getImageUrl()
The image URL.
|
java.lang.String |
getName()
Name of the item.
|
float |
getQuantity()
Quantity of the item.
|
Tax |
getTax()
Tax associated with the item.
|
java.lang.String |
getUnitOfMeasure()
The unit of measure of the item being invoiced.
|
Currency |
getUnitPrice()
Unit price of the item.
|
int |
hashCode() |
InvoiceItem |
setDate(java.lang.String date)
The date when the item or service was provided.
|
InvoiceItem |
setDescription(java.lang.String description)
Description of the item.
|
InvoiceItem |
setDiscount(Cost discount)
The item discount, as a percent or an amount value.
|
InvoiceItem |
setImageUrl(java.lang.String imageUrl)
The image URL.
|
InvoiceItem |
setName(java.lang.String name)
Name of the item.
|
InvoiceItem |
setQuantity(float quantity)
Quantity of the item.
|
InvoiceItem |
setTax(Tax tax)
Tax associated with the item.
|
InvoiceItem |
setUnitOfMeasure(java.lang.String unitOfMeasure)
The unit of measure of the item being invoiced.
|
InvoiceItem |
setUnitPrice(Currency unitPrice)
Unit price of the item.
|
toJSON, toStringpublic InvoiceItem()
public InvoiceItem(java.lang.String name,
float quantity,
Currency unitPrice)
public java.lang.String getName()
public java.lang.String getDescription()
public float getQuantity()
public Currency getUnitPrice()
public Tax getTax()
public java.lang.String getDate()
public Cost getDiscount()
public java.lang.String getImageUrl()
public java.lang.String getUnitOfMeasure()
public InvoiceItem setName(java.lang.String name)
public InvoiceItem setDescription(java.lang.String description)
public InvoiceItem setQuantity(float quantity)
public InvoiceItem setUnitPrice(Currency unitPrice)
public InvoiceItem setTax(Tax tax)
public InvoiceItem setDate(java.lang.String date)
public InvoiceItem setDiscount(Cost discount)
public InvoiceItem setImageUrl(java.lang.String imageUrl)
public InvoiceItem setUnitOfMeasure(java.lang.String unitOfMeasure)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel