public class LineItem extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LineItem.Builder
Class to build instances of
LineItem. |
| Constructor and Description |
|---|
LineItem()
Default constructor.
|
LineItem(String name,
String quantity,
String description,
String sku,
String url,
String imageUrl,
UniversalProductCode upc,
OrderBillingPlan billingPlan,
Money unitAmount,
Money tax,
String commodityCode,
Money discountAmount,
Money totalAmount,
String unitOfMeasure)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OrderBillingPlan |
getBillingPlan()
Getter for BillingPlan.
|
String |
getCommodityCode()
Getter for CommodityCode.
|
String |
getDescription()
Getter for Description.
|
Money |
getDiscountAmount()
Getter for DiscountAmount.
|
String |
getImageUrl()
Getter for ImageUrl.
|
String |
getName()
Getter for Name.
|
String |
getQuantity()
Getter for Quantity.
|
String |
getSku()
Getter for Sku.
|
Money |
getTax()
Getter for Tax.
|
Money |
getTotalAmount()
Getter for TotalAmount.
|
Money |
getUnitAmount()
Getter for UnitAmount.
|
String |
getUnitOfMeasure()
Getter for UnitOfMeasure.
|
UniversalProductCode |
getUpc()
Getter for Upc.
|
String |
getUrl()
Getter for Url.
|
void |
setBillingPlan(OrderBillingPlan billingPlan)
Setter for BillingPlan.
|
void |
setCommodityCode(String commodityCode)
Setter for CommodityCode.
|
void |
setDescription(String description)
Setter for Description.
|
void |
setDiscountAmount(Money discountAmount)
Setter for DiscountAmount.
|
void |
setImageUrl(String imageUrl)
Setter for ImageUrl.
|
void |
setName(String name)
Setter for Name.
|
void |
setQuantity(String quantity)
Setter for Quantity.
|
void |
setSku(String sku)
Setter for Sku.
|
void |
setTax(Money tax)
Setter for Tax.
|
void |
setTotalAmount(Money totalAmount)
Setter for TotalAmount.
|
void |
setUnitAmount(Money unitAmount)
Setter for UnitAmount.
|
void |
setUnitOfMeasure(String unitOfMeasure)
Setter for UnitOfMeasure.
|
void |
setUpc(UniversalProductCode upc)
Setter for Upc.
|
void |
setUrl(String url)
Setter for Url.
|
LineItem.Builder |
toBuilder()
Builds a new
LineItem.Builder object. |
String |
toString()
Converts this LineItem into string format.
|
public LineItem()
public LineItem(String name, String quantity, String description, String sku, String url, String imageUrl, UniversalProductCode upc, OrderBillingPlan billingPlan, Money unitAmount, Money tax, String commodityCode, Money discountAmount, Money totalAmount, String unitOfMeasure)
name - String value for name.quantity - String value for quantity.description - String value for description.sku - String value for sku.url - String value for url.imageUrl - String value for imageUrl.upc - UniversalProductCode value for upc.billingPlan - OrderBillingPlan value for billingPlan.unitAmount - Money value for unitAmount.tax - Money value for tax.commodityCode - String value for commodityCode.discountAmount - Money value for discountAmount.totalAmount - Money value for totalAmount.unitOfMeasure - String value for unitOfMeasure.public String getName()
public void setName(String name)
name - Value for Stringpublic String getQuantity()
public void setQuantity(String quantity)
quantity - Value for Stringpublic String getDescription()
public void setDescription(String description)
description - Value for Stringpublic String getSku()
public void setSku(String sku)
sku - Value for Stringpublic String getUrl()
public void setUrl(String url)
url - Value for Stringpublic String getImageUrl()
public void setImageUrl(String imageUrl)
imageUrl - Value for Stringpublic UniversalProductCode getUpc()
public void setUpc(UniversalProductCode upc)
upc - Value for UniversalProductCodepublic OrderBillingPlan getBillingPlan()
public void setBillingPlan(OrderBillingPlan billingPlan)
billingPlan - Value for OrderBillingPlanpublic Money getUnitAmount()
public void setUnitAmount(Money unitAmount)
unitAmount - Value for Moneypublic Money getTax()
public void setTax(Money tax)
tax - Value for Moneypublic String getCommodityCode()
public void setCommodityCode(String commodityCode)
commodityCode - Value for Stringpublic Money getDiscountAmount()
public void setDiscountAmount(Money discountAmount)
discountAmount - Value for Moneypublic Money getTotalAmount()
public void setTotalAmount(Money totalAmount)
totalAmount - Value for Moneypublic String getUnitOfMeasure()
public void setUnitOfMeasure(String unitOfMeasure)
unitOfMeasure - Value for Stringpublic String toString()
public LineItem.Builder toBuilder()
LineItem.Builder object.
Creates the instance with the state of the current model.LineItem.Builder objectCopyright © 2026. All rights reserved.