package org.multibit.mbm.api.request.cart; import org.codehaus.jackson.annotate.JsonProperty; /** *  <p>Value object to provide the following to {@link PublicUpdateCartRequest}:</p> *  <ul> *  <li>Defines the updates to the CartItem</li> *  </ul> * * @since 0.0.1 *   */ public class PublicCartItem { @JsonProperty private String sku; @JsonProperty private int quantity; /** * Default constructor to allow request building */ public PublicCartItem() { } /** * Utility constructor for mandatory fields * * @param sku The Stock Keeping Unit that is the public key * @param quantity The quantity required */ public PublicCartItem(String sku, int quantity) { this.sku = sku; this.quantity = quantity; } /** * @return The SKU */ public String getSKU() { return sku; } /** * @return The unit quantity */ public int getQuantity() { return quantity; } }