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 Details

  • Method Details

    • getAddOnItems

      public List<CartLineItem> 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

      public void setAddOnItems​(List<CartLineItem> value)
      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

      public BillingCycleType getBillingCycle()
      Gets the type of billing cycle for the selected catalog item.
      Returns:
      The type of billing cycle for the selected catalog item.
    • setBillingCycle

      public void setBillingCycle​(BillingCycleType value)
      Sets the type of billing cycle for the selected catalog item.
      Parameters:
      value - The type of billing cycle for the selected catalog item.
    • getCatalogItemId

      public String getCatalogItemId()
      Gets the catalog item identifier.
      Returns:
      The catalog item identifier.
    • setCatalogItemId

      public void setCatalogItemId​(String value)
      Sets the catalog item identifier.
      Parameters:
      value - The catalog item identifier.
    • getCurrencyCode

      public String getCurrencyCode()
      Gets the currency code.
      Returns:
      The currency code.
    • setCurrencyCode

      public void setCurrencyCode​(String value)
      Sets the currency code.
      Parameters:
      value - The currency code.
    • getError

      public CartError getError()
      Gets the error associated to this cart line item.
      Returns:
      The error associated to this cart line item.
    • setError

      public void setError​(CartError value)
      Sets the error associated to this cart line item.
      Parameters:
      value - The error associated to this cart line item.
    • getFriendlyName

      public String getFriendlyName()
      Gets the friendly name for the result contract (subscription).
      Returns:
      The friendly name for the result contract (subscription).
    • setFriendlyName

      public void setFriendlyName​(String value)
      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

      public String 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

      public void setOrderGroup​(String value)
      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

      public Collection<KeyValuePair<ParticipantType,​String>> getParticipants()
      Gets the collection of participants on this purchase.
      Returns:
      The collection of participants on this purchase.
    • setParticipants

      public void setParticipants​(Collection<KeyValuePair<ParticipantType,​String>> value)
      Sets the collection of participants on this purchase.
      Parameters:
      value - The collection of participants on this purchase.
    • getProvisioningContext

      public Map<String,​String> 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

      public void setProvisioningContext​(Map<String,​String> value)
      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

      public RenewsTo getRenewsTo()
      Gets the renews to value.
      Returns:
      The renews to value.
    • setRenewsTo

      public void setRenewsTo​(RenewsTo value)
      Sets the renews to value.
      Parameters:
      value - The renews to value.
    • getTermDuration

      public String getTermDuration()
      Gets the term duration if applicable.
      Returns:
      The term duration if applicable.
    • setTermDuration

      public void setTermDuration​(String value)
      Sets the term duration if applicable.
      Parameters:
      value - The term duration if applicable.