Class CartLineItem
java.lang.Object
com.microsoft.store.partnercenter.models.carts.CartLineItem
public class CartLineItem extends Object
Represents a line item on a cart.
-
Constructor Summary
Constructors Constructor Description CartLineItem() -
Method Summary
Modifier and Type Method Description List<CartLineItem>getAddOnItems()Gets a list of items that depend on this one, so they have to be purchased subsequently.BillingCycleTypegetBillingCycle()Gets the type of billing cycle for the selected catalog item.StringgetCatalogItemId()Gets the catalog item identifier.StringgetCurrencyCode()Gets the currency code.CartErrorgetError()Gets the error associated to this cart line item.StringgetFriendlyName()Gets the friendly name for the result contract (subscription).intgetId()Gets the unique identifier of a cart line item.StringgetOrderGroup()Gets the order group which indicates which items can be place in a single order.Collection<KeyValuePair<ParticipantType,String>>getParticipants()Gets the collection of participants on this purchase.Map<String,String>getProvisioningContext()Gets the context that will be used for provisioning of the catalog item.intgetQuantity()Gets the product quantity.RenewsTogetRenewsTo()Gets the renews to value.StringgetTermDuration()Gets the term duration if applicable.voidsetAddOnItems(List<CartLineItem> value)Sets a list of items that depend on this one, so they have to be purchased subsequently.voidsetBillingCycle(BillingCycleType value)Sets the type of billing cycle for the selected catalog item.voidsetCatalogItemId(String value)Sets the catalog item identifier.voidsetCurrencyCode(String value)Sets the currency code.voidsetError(CartError value)Sets the error associated to this cart line item.voidsetFriendlyName(String value)Sets the friendly name for the result contract (subscription).voidsetId(int value)Sets the unique identifier of a cart line item.voidsetOrderGroup(String value)Sets the order group which indicates which items can be place in a single order.voidsetParticipants(Collection<KeyValuePair<ParticipantType,String>> value)Sets the collection of participants on this purchase.voidsetProvisioningContext(Map<String,String> value)Sets the context that will be used for provisioning of the catalog item.voidsetQuantity(int value)Sets the product quantity.voidsetRenewsTo(RenewsTo value)Sets the renews to value.voidsetTermDuration(String value)Sets the term duration if applicable.
-
Constructor Details
-
CartLineItem
public CartLineItem()
-
-
Method Details
-
getAddOnItems
Gets a list of items that depend on this one, so they have to be purchased subsequently.- Returns:
- A list of items that depend on this one, so they have to be purchased subsequently.
-
setAddOnItems
Sets a list of items that depend on this one, so they have to be purchased subsequently.- Parameters:
value- A list of items that depend on this one, so they have to be purchased subsequently.
-
getBillingCycle
Gets the type of billing cycle for the selected catalog item.- Returns:
- The type of billing cycle for the selected catalog item.
-
setBillingCycle
Sets the type of billing cycle for the selected catalog item.- Parameters:
value- The type of billing cycle for the selected catalog item.
-
getCatalogItemId
Gets the catalog item identifier.- Returns:
- The catalog item identifier.
-
setCatalogItemId
Sets the catalog item identifier.- Parameters:
value- The catalog item identifier.
-
getCurrencyCode
Gets the currency code.- Returns:
- The currency code.
-
setCurrencyCode
Sets the currency code.- Parameters:
value- The currency code.
-
getError
Gets the error associated to this cart line item.- Returns:
- The error associated to this cart line item.
-
setError
Sets the error associated to this cart line item.- Parameters:
value- The error associated to this cart line item.
-
getFriendlyName
Gets the friendly name for the result contract (subscription).- Returns:
- The friendly name for the result contract (subscription).
-
setFriendlyName
Sets the friendly name for the result contract (subscription).- Parameters:
value- The friendly name for the result contract (subscription).
-
getId
public int getId()Gets the unique identifier of a cart line item.- Returns:
- The unique identifier of a cart line item.
-
setId
public void setId(int value)Sets the unique identifier of a cart line item.- Parameters:
value- The unique identifier of a cart line item.
-
getOrderGroup
Gets the order group which indicates which items can be place in a single order.- Returns:
- The order group which indicates which items can be place in a single order.
-
setOrderGroup
Sets the order group which indicates which items can be place in a single order.- Parameters:
value- The order group which indicates which items can be place in a single order.
-
getParticipants
Gets the collection of participants on this purchase.- Returns:
- The collection of participants on this purchase.
-
setParticipants
Sets the collection of participants on this purchase.- Parameters:
value- The collection of participants on this purchase.
-
getProvisioningContext
Gets the context that will be used for provisioning of the catalog item.- Returns:
- The context that will be used for provisioning of the catalog item.
-
setProvisioningContext
Sets the context that will be used for provisioning of the catalog item.- Parameters:
value- The context that will be used for provisioning of the catalog item.
-
getQuantity
public int getQuantity()Gets the product quantity.- Returns:
- The product quantity.
-
setQuantity
public void setQuantity(int value)Sets the product quantity.- Parameters:
value- The product quantity.
-
getRenewsTo
Gets the renews to value.- Returns:
- The renews to value.
-
setRenewsTo
Sets the renews to value.- Parameters:
value- The renews to value.
-
getTermDuration
Gets the term duration if applicable.- Returns:
- The term duration if applicable.
-
setTermDuration
Sets the term duration if applicable.- Parameters:
value- The term duration if applicable.
-