All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.store.partnercenter.models.carts.CartLineItem Maven / Gradle / Ivy

There is a newer version: 1.15.3
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.

package com.microsoft.store.partnercenter.models.carts;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.store.partnercenter.models.products.BillingCycleType;
import com.microsoft.store.partnercenter.models.utils.KeyValuePair;

/**
 * Represents a line item on a cart.
 */
public class CartLineItem  
{
    /**
     * A list of items that depend on this one, so they have to be purchased subsequently.
     */
    @JsonProperty("addOnItems")
    private List addOnItems;

    /**
     * The type of billing cycle for the selected catalog item.
     */
    @JsonProperty("billingCycle")
    private BillingCycleType billingCycle;

    /**
     * The catalog item identifier.
     */
    @JsonProperty("catalogItemId")
    private String catalogItemId;

    /**
     * The currency code.
     */
    @JsonProperty("currencyCode")
    private String currencyCode;

    /**
     * An error associated to this cart line item.
     */
    @JsonProperty("error")
    private CartError error;

    /**
     * The friendly name for the result contract (subscription).
     */
    @JsonProperty("friendlyName")
    private String friendlyName;

    /**
     * The unique identifier of a cart line item.
     */
    @JsonProperty("id")
    private int id; 

    /**
     * The order group which indicates which items can be place in a single order.
     */
    @JsonProperty("orderGroup")
    private String orderGroup;

    /**
     * A collection of participants on this purchase.
     */
    @JsonProperty("participants")
    private Collection> participants;

    /**
     * The context that will be used for provisioning of the catalog item.
     */
    @JsonProperty("provisioningContext")
    private Map provisioningContext;

    /**
     * The product quantity.
     */
    @JsonProperty("quantity")
    private int quantity;

    /** 
     * The term duration if applicable.
     */
    @JsonProperty("termDuration")
    private String termDuration;

    /**
     * Gets a list of items that depend on this one, so they have to be purchased subsequently.
     * 
     * @return A list of items that depend on this one, so they have to be purchased subsequently.
     */
    public List getAddOnItems()
    {
        return addOnItems;
    }

    /**
     * Sets a list of items that depend on this one, so they have to be purchased subsequently.
     * 
     * @param value  A list of items that depend on this one, so they have to be purchased subsequently.
     */
    public void setAddOnItems(List value)
    {
        addOnItems = value;
    }

    /**
     * Gets the type of billing cycle for the selected catalog item.
     * 
     * @return The type of billing cycle for the selected catalog item.
     */
    public BillingCycleType getBillingCycle()
    {
        return billingCycle;
    }

    /**
     * Sets the type of billing cycle for the selected catalog item.
     * 
     * @param value The type of billing cycle for the selected catalog item.
     */
    public void setBillingCycle(BillingCycleType value)
    {
        billingCycle = value;
    }

    /**
     * Gets the catalog item identifier.
     * 
     * @return The catalog item identifier.
     */
    public String getCatalogItemId()
    {
        return catalogItemId;
    }

    /**
     * Sets the catalog item identifier.
     * 
     * @param value The catalog item identifier.
     */
    public void setCatalogItemId(String value)
    {
        catalogItemId = value;
    }

    /**
     * Gets the currency code.
     * 
     * @return The currency code.
     */
    public String getCurrencyCode()
    {
        return currencyCode;
    }

    /**
     * Sets the currency code.
     * 
     * @param value The currency code.
     */
    public void setCurrencyCode(String value)
    {
        currencyCode = value;
    }

    /**
     * Gets the error associated to this cart line item.
     * 
     * @return The error associated to this cart line item.
     */
    public CartError getError()
    {
        return error;
    }

    /**
     * Sets the error associated to this cart line item.
     * 
     * @param value The error associated to this cart line item.
     */
    public void setError(CartError value)
    {
        error = value; 
    }

    /**
     * Gets the friendly name for the result contract (subscription).
     * 
     * @return The friendly name for the result contract (subscription).
     */
    public String getFriendlyName()
    {
        return friendlyName;
    }

    /**
     * Sets the friendly name for the result contract (subscription).
     * 
     * @param value The friendly name for the result contract (subscription).
     */
    public void setFriendlyName(String value)
    {
        friendlyName = value;
    }

    /**
     * Gets the unique identifier of a cart line item.
     * 
     * @return The unique identifier of a cart line item.
     */
    public int getId()
    {
        return id;
    }

    /**
     * Sets the unique identifier of a cart line item.
     * 
     * @param value The unique identifier of a cart line item.
     */
    public void setId(int value)
    {
        id = value;
    }

    /**
     * Gets the order group which indicates which items can be place in a single order.
     * 
     * @return The order group which indicates which items can be place in a single order.
     */
    public String getOrderGroup()
    {
        return orderGroup;
    }

    /**
     * Sets the order group which indicates which items can be place in a single order.
     * 
     * @param value The order group which indicates which items can be place in a single order.
     */
    public void setOrderGroup(String value)
    {
        orderGroup = value;
    }

    /**
     * Gets the collection of participants on this purchase.
     * 
     * @return The collection of participants on this purchase.
     */
    public Collection> getParticipants()
    {
        return participants;
    }

    /**
     * Sets the collection of participants on this purchase.
     * 
     * @param value The collection of participants on this purchase.
     */
    public void setParticipants(Collection> value)
    {
        participants = value;
    }

    /**
     * Gets the context that will be used for provisioning of the catalog item.
     * 
     * @return The context that will be used for provisioning of the catalog item.
     */
    public Map getProvisioningContext()
    {
        return provisioningContext;
    }

    /**
     * Sets the context that will be used for provisioning of the catalog item.
     * 
     * @param value The context that will be used for provisioning of the catalog item.
     */
    public void setProvisioningContext(Map value)
    {
        provisioningContext = value;
    }

    /**
     * Gets the product quantity.
     * 
     * @return The product quantity.
     */
    public int getQuantity()
    {
        return quantity;
    }

    /**
     * Sets the product quantity.
     * 
     * @param value The product quantity.
     */
    public void setQuantity(int value)
    {
        quantity = value;
    }

    /**
     * Gets the term duration if applicable.
     * 
     * @return The term duration if applicable.
     */
    public String getTermDuration()
    {
        return termDuration;
    }

    /**
     * Sets the term duration if applicable.
     * 
     * @param value The term duration if applicable.
     */
    public void setTermDuration(String value)
    {
        termDuration = value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy