CartLineItem Class
- java.
lang. Object - com.
microsoft. store. partnercenter. models. carts. CartLineItem
- com.
public class CartLineItem
Represents a line item on a cart.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| CartLineItem() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
java.util.List<Cart |
getAddOnItems()
Gets a list of items that depend on this one, so they have to be purchased subsequently. |
|
Billing |
getBillingCycle()
Gets the type of billing cycle for the selected catalog item. |
| java.lang.String |
getCatalogItemId()
Gets the catalog item identifier. |
| java.lang.String |
getCurrencyCode()
Gets the currency code. |
|
Cart |
getError()
Gets the error associated to this cart line item. |
| java.lang.String |
getFriendlyName()
Gets the friendly name for the result contract (subscription). |
| int |
getId()
Gets the unique identifier of a cart line item. |
| java.lang.String |
getOrderGroup()
Gets the order group which indicates which items can be place in a single order. |
|
java.util.Collection<Key |
getParticipants()
Gets the collection of participants on this purchase. |
| java.util.Map<java.lang.String,java.lang.String> |
getProvisioningContext()
Gets the context that will be used for provisioning of the catalog item. |
| int |
getQuantity()
Gets the product quantity. |
|
Renews |
getRenewsTo()
Gets the renews to value. |
| java.lang.String |
getTermDuration()
Gets the term duration if applicable. |
| void |
setAddOnItems(List<CartLineItem> value)
Sets a list of items that depend on this one, so they have to be purchased subsequently. |
| void |
setBillingCycle(BillingCycleType value)
Sets the type of billing cycle for the selected catalog item. |
| void |
setCatalogItemId(String value)
Sets the catalog item identifier. |
| void |
setCurrencyCode(String value)
Sets the currency code. |
| void |
setError(CartError value)
Sets the error associated to this cart line item. |
| void |
setFriendlyName(String value)
Sets the friendly name for the result contract (subscription). |
| void |
setId(int value)
Sets the unique identifier of a cart line item. |
| void |
setOrderGroup(String value)
Sets the order group which indicates which items can be place in a single order. |
| void |
setParticipants(Collection<KeyValuePair<ParticipantType,String>> value)
Sets the collection of participants on this purchase. |
| void |
setProvisioningContext(Map<String,String> value)
Sets the context that will be used for provisioning of the catalog item. |
| void |
setQuantity(int value)
Sets the product quantity. |
| void |
setRenewsTo(RenewsTo value)
Sets the renews to value. |
| void |
setTermDuration(String value)
Sets the term duration if applicable. |
Inherited Members
Constructor Details
CartLineItem
public CartLineItem()
Method Details
getAddOnItems
public List
Gets a list of items that depend on this one, so they have to be purchased subsequently.
Returns:
getBillingCycle
public BillingCycleType getBillingCycle()
Gets the type of billing cycle for the selected catalog item.
Returns:
getCatalogItemId
public String getCatalogItemId()
Gets the catalog item identifier.
Returns:
getCurrencyCode
public String getCurrencyCode()
Gets the currency code.
Returns:
getError
public CartError getError()
Gets the error associated to this cart line item.
Returns:
getFriendlyName
public String getFriendlyName()
Gets the friendly name for the result contract (subscription).
Returns:
getId
public int getId()
Gets the unique identifier of a cart line item.
Returns:
getOrderGroup
public String getOrderGroup()
Gets the order group which indicates which items can be place in a single order.
Returns:
getParticipants
public Collection
Gets the collection of participants on this purchase.
Returns:
getProvisioningContext
public Map
Gets the context that will be used for provisioning of the catalog item.
Returns:
getQuantity
public int getQuantity()
Gets the product quantity.
Returns:
getRenewsTo
public RenewsTo getRenewsTo()
Gets the renews to value.
Returns:
getTermDuration
public String getTermDuration()
Gets the term duration if applicable.
Returns:
setAddOnItems
public void setAddOnItems(List
Sets a list of items that depend on this one, so they have to be purchased subsequently.
Parameters:
setBillingCycle
public void setBillingCycle(BillingCycleType value)
Sets the type of billing cycle for the selected catalog item.
Parameters:
setCatalogItemId
public void setCatalogItemId(String value)
Sets the catalog item identifier.
Parameters:
setCurrencyCode
public void setCurrencyCode(String value)
Sets the currency code.
Parameters:
setError
public void setError(CartError value)
Sets the error associated to this cart line item.
Parameters:
setFriendlyName
public void setFriendlyName(String value)
Sets the friendly name for the result contract (subscription).
Parameters:
setId
public void setId(int value)
Sets the unique identifier of a cart line item.
Parameters:
setOrderGroup
public void setOrderGroup(String value)
Sets the order group which indicates which items can be place in a single order.
Parameters:
setParticipants
public void setParticipants(Collection
Sets the collection of participants on this purchase.
Parameters:
setProvisioningContext
public void setProvisioningContext(Map
Sets the context that will be used for provisioning of the catalog item.
Parameters:
setQuantity
public void setQuantity(int value)
Sets the product quantity.
Parameters:
setRenewsTo
public void setRenewsTo(RenewsTo value)
Sets the renews to value.
Parameters:
setTermDuration
public void setTermDuration(String value)
Sets the term duration if applicable.
Parameters: