public class Content extends Object
| Constructor and Description |
|---|
Content()
Default Constructor.
|
Content(String id,
Long quantity,
Float price,
String title,
Float tax,
String externalContentId) |
| Modifier and Type | Method and Description |
|---|---|
Content |
externalContentID(String externalContentId)
Sets the external id for this order item
|
String |
getExternalContentId()
Gets the external id for this order item The external id for the products
that are being involved in the customer interaction.
|
String |
getId()
Gets the Product Id of the Item.
|
Float |
getPrice()
Gets the total price of the Item.
|
Long |
getQuantity()
Gets the quantity of the Item.
|
Float |
getTax()
Gets the total tax of the Item.
|
String |
getTitle()
Gets the Title of the listed Item.
|
Content |
id(String id)
Sets the Product Id of the Item.
|
Content |
price(Float price)
Sets the total price of the Item.
|
Content |
quantity(Long quantity)
Sets the quantity of the Content/Item.
|
void |
setExternalContentId(String externalContentId)
Sets the external id for this order item
|
void |
setId(String id)
Sets the Product Id of the Item.
|
void |
setPrice(Float price)
Sets the total price of the Item.
|
void |
setQuantity(Long quantity)
Sets the quantity of the Item.
|
void |
setTax(Float tax)
Sets the total tax of the Item.
|
void |
setTitle(String title)
Sets the Title of the listed Item.
|
Content |
tax(Float tax)
Sets the total tax of the Item.
|
Content |
title(String title)
Sets the Title of the Item.
|
public Content()
public Content(String id, Long quantity, Float price, String title, Float tax, String externalContentId)
id - Product Id of the Item.quantity - Quantity of the Item.price - Subtotal for the content/product.title - Title of the listed Item.tax - Subtotal tax for the content/product.externalContentId - Unique ID for the contents/products that are being
involved in the customer interaction.public String getId()
public void setId(String id)
id - A string representing the unique Id for the product. Example: XYZ.public Content id(String id)
id - is a string representing the unique id for the product. Example:
XYZ.public Long getQuantity()
public void setQuantity(Long quantity)
quantity - The number/quantity of the product that is being involved in
the customer interaction. Example: 5public Content quantity(Long quantity)
quantity - The number/quantity of the product that is being involved in
the customer interaction. Example: 5public Float getPrice()
public void setPrice(Float price)
price - The total price for the products that are being involved in the
customer interaction. Example: '123.45'public Content price(Float price)
price - The total price for the products that are being involved in the
customer interaction. Example: '123.45'public String getTitle()
public void setTitle(String title)
title - A string representing the Title for the product.public Content title(String title)
title - is a string representing listed title for the product.public Float getTax()
public void setTax(Float tax)
tax - The total tax for the products that are being involved in the
customer interaction. Example: 45.5public Content tax(Float tax)
tax - The total tax for the products that are being involved in the
customer interaction. Example: 45.5public String getExternalContentId()
public void setExternalContentId(String externalContentId)
externalContentId - The external id for the products that are being
involved in the customer interaction.Copyright © 2024. All rights reserved.