package org.multibit.mbm.api.request.delivery;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* <p>Value object to provide the following to {@link org.multibit.mbm.api.request.delivery.SupplierUpdateDeliveryRequest}:</p>
* <ul>
* <li>Defines the updates to the DeliveryItem</li>
* </ul>
*
* @since 0.0.1
*
*/
public class SupplierDeliveryItem {
@JsonProperty
private String sku;
@JsonProperty
private int quantity;
/**
* Default constructor to allow request building
*/
public SupplierDeliveryItem() {
}
/**
* Utility constructor for mandatory fields
*
* @param sku The Stock Keeping Unit that is the public key
* @param quantity The quantity required
*/
public SupplierDeliveryItem(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;
}
}