| GET | /stock/{brand}/productQuantityFigures | Get product quantity figures |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetProductQuantityFigures
{
/**
* Brand
*/
@ApiMember(Description="Brand", IsRequired=true)
public String brand = null;
/**
* POS Legacy codes
*/
@ApiMember(Description="POS Legacy codes", IsRequired=true)
public ArrayList<String> posCodes = null;
/**
* Article codes
*/
@ApiMember(Description="Article codes", IsRequired=true)
public ArrayList<String> articleCodes = null;
public String getBrand() { return brand; }
public GetProductQuantityFigures setBrand(String value) { this.brand = value; return this; }
public ArrayList<String> getPosCodes() { return posCodes; }
public GetProductQuantityFigures setPosCodes(ArrayList<String> value) { this.posCodes = value; return this; }
public ArrayList<String> getArticleCodes() { return articleCodes; }
public GetProductQuantityFigures setArticleCodes(ArrayList<String> value) { this.articleCodes = value; return this; }
}
public static class GetProductQuantityFiguresResponse extends ArrayList<ProductQuantityFigure>
{
}
public static class ProductQuantityFigure
{
/**
* Stock POS Legacy code
*/
@ApiMember(Description="Stock POS Legacy code", IsRequired=true)
public String stockPosCode = null;
/**
* Article Code
*/
@ApiMember(Description="Article Code", IsRequired=true)
public String articleCode = null;
/**
* Stock quantity
*/
@ApiMember(Description="Stock quantity", IsRequired=true)
public Integer stockQuantity = null;
/**
* Stock quantity for standard orders
*/
@ApiMember(Description="Stock quantity for standard orders", IsRequired=true)
public Integer standardStockQuantity = null;
/**
* Stock quantity for consignment orders
*/
@ApiMember(Description="Stock quantity for consignment orders", IsRequired=true)
public Integer consignmentStockQuantity = null;
/**
* Ordered pending quantity
*/
@ApiMember(Description="Ordered pending quantity", IsRequired=true)
public Integer orderedPendingQuantity = null;
/**
* Ordered confirmed quantity
*/
@ApiMember(Description="Ordered confirmed quantity", IsRequired=true)
public Integer orderedConfirmedQuantity = null;
/**
* Ordered confirmed quantities splitted by reason codes
*/
@ApiMember(Description="Ordered confirmed quantities splitted by reason codes")
public ArrayList<ReasonCodeQuantity> orderedConfirmedQuantityByReason = null;
/**
* In transit quantity
*/
@ApiMember(Description="In transit quantity", IsRequired=true)
public Integer inTransitQuantity = null;
/**
* In transit quantities splitted by reason codes
*/
@ApiMember(Description="In transit quantities splitted by reason codes")
public ArrayList<ReasonCodeQuantity> inTransitQuantityByReason = null;
/**
* Standard assortment no autoRep quantity
*/
@ApiMember(Description="Standard assortment no autoRep quantity", IsRequired=true)
public Integer standardAssortmentNoAutoRepQuantity = null;
/**
* Standard assortment autoRep quantity
*/
@ApiMember(Description="Standard assortment autoRep quantity", IsRequired=true)
public Integer standardAssortmentAutoRepQuantity = null;
/**
* Consignment assortment no autoRep quantity
*/
@ApiMember(Description="Consignment assortment no autoRep quantity", IsRequired=true)
public Integer consignmentAssortmentNoAutoRepQuantity = null;
/**
* Consignment assortment autoRep quantity
*/
@ApiMember(Description="Consignment assortment autoRep quantity", IsRequired=true)
public Integer consignmentAssortmentAutoRepQuantity = null;
/**
* Total ordered
*/
@ApiMember(Description="Total ordered", IsRequired=true)
public Integer totalOrdered = null;
public String getStockPosCode() { return stockPosCode; }
public ProductQuantityFigure setStockPosCode(String value) { this.stockPosCode = value; return this; }
public String getArticleCode() { return articleCode; }
public ProductQuantityFigure setArticleCode(String value) { this.articleCode = value; return this; }
public Integer getStockQuantity() { return stockQuantity; }
public ProductQuantityFigure setStockQuantity(Integer value) { this.stockQuantity = value; return this; }
public Integer getStandardStockQuantity() { return standardStockQuantity; }
public ProductQuantityFigure setStandardStockQuantity(Integer value) { this.standardStockQuantity = value; return this; }
public Integer getConsignmentStockQuantity() { return consignmentStockQuantity; }
public ProductQuantityFigure setConsignmentStockQuantity(Integer value) { this.consignmentStockQuantity = value; return this; }
public Integer getOrderedPendingQuantity() { return orderedPendingQuantity; }
public ProductQuantityFigure setOrderedPendingQuantity(Integer value) { this.orderedPendingQuantity = value; return this; }
public Integer getOrderedConfirmedQuantity() { return orderedConfirmedQuantity; }
public ProductQuantityFigure setOrderedConfirmedQuantity(Integer value) { this.orderedConfirmedQuantity = value; return this; }
public ArrayList<ReasonCodeQuantity> getOrderedConfirmedQuantityByReason() { return orderedConfirmedQuantityByReason; }
public ProductQuantityFigure setOrderedConfirmedQuantityByReason(ArrayList<ReasonCodeQuantity> value) { this.orderedConfirmedQuantityByReason = value; return this; }
public Integer getInTransitQuantity() { return inTransitQuantity; }
public ProductQuantityFigure setInTransitQuantity(Integer value) { this.inTransitQuantity = value; return this; }
public ArrayList<ReasonCodeQuantity> getInTransitQuantityByReason() { return inTransitQuantityByReason; }
public ProductQuantityFigure setInTransitQuantityByReason(ArrayList<ReasonCodeQuantity> value) { this.inTransitQuantityByReason = value; return this; }
public Integer getStandardAssortmentNoAutoRepQuantity() { return standardAssortmentNoAutoRepQuantity; }
public ProductQuantityFigure setStandardAssortmentNoAutoRepQuantity(Integer value) { this.standardAssortmentNoAutoRepQuantity = value; return this; }
public Integer getStandardAssortmentAutoRepQuantity() { return standardAssortmentAutoRepQuantity; }
public ProductQuantityFigure setStandardAssortmentAutoRepQuantity(Integer value) { this.standardAssortmentAutoRepQuantity = value; return this; }
public Integer getConsignmentAssortmentNoAutoRepQuantity() { return consignmentAssortmentNoAutoRepQuantity; }
public ProductQuantityFigure setConsignmentAssortmentNoAutoRepQuantity(Integer value) { this.consignmentAssortmentNoAutoRepQuantity = value; return this; }
public Integer getConsignmentAssortmentAutoRepQuantity() { return consignmentAssortmentAutoRepQuantity; }
public ProductQuantityFigure setConsignmentAssortmentAutoRepQuantity(Integer value) { this.consignmentAssortmentAutoRepQuantity = value; return this; }
public Integer getTotalOrdered() { return totalOrdered; }
public ProductQuantityFigure setTotalOrdered(Integer value) { this.totalOrdered = value; return this; }
}
public static class ReasonCodeQuantity
{
/**
* Order Reason Code
*/
@ApiMember(Description="Order Reason Code", IsRequired=true)
public String reasonCode = null;
/**
* Ordered quantity per Reason Code
*/
@ApiMember(Description="Ordered quantity per Reason Code", IsRequired=true)
public Integer quantity = null;
public String getReasonCode() { return reasonCode; }
public ReasonCodeQuantity setReasonCode(String value) { this.reasonCode = value; return this; }
public Integer getQuantity() { return quantity; }
public ReasonCodeQuantity setQuantity(Integer value) { this.quantity = value; return this; }
}
}
Java GetProductQuantityFigures DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /stock/{brand}/productQuantityFigures HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfProductQuantityFigure xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Stock.ServiceModel" />