Richemont.Booster2.PublicApi

<back to all web services

GetAggregatedStock

Requires Authentication
The following routes are available for this service:
GET/aggregatedStock/{brand}/{posCode}Get aggregated stock
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetAggregatedStock
    {
        /**
        * Brand
        */
        @ApiMember(Description="Brand", IsRequired=true)
        public String brand = null;

        /**
        * Authorized POS Code e.g. ES100:102048
        */
        @ApiMember(Description="Authorized POS Code e.g. ES100:102048", IsRequired=true)
        public String posCode = null;

        /**
        * Article Codes
        */
        @ApiMember(Description="Article Codes")
        public ArrayList<String> articleCodes = null;
        
        public String getBrand() { return brand; }
        public GetAggregatedStock setBrand(String value) { this.brand = value; return this; }
        public String getPosCode() { return posCode; }
        public GetAggregatedStock setPosCode(String value) { this.posCode = value; return this; }
        public ArrayList<String> getArticleCodes() { return articleCodes; }
        public GetAggregatedStock setArticleCodes(ArrayList<String> value) { this.articleCodes = value; return this; }
    }

    public static class AggregatedStockResponse extends ClusterStock
    {
        
    }

    public static class ClusterStock
    {
        /**
        * Cluster code
        */
        @ApiMember(Description="Cluster code", IsRequired=true)
        public String clusterCode = null;

        /**
        * Stock Items
        */
        @ApiMember(Description="Stock Items", IsRequired=true)
        public ArrayList<ClusterStockItem> stockItems = null;
        
        public String getClusterCode() { return clusterCode; }
        public ClusterStock setClusterCode(String value) { this.clusterCode = value; return this; }
        public ArrayList<ClusterStockItem> getStockItems() { return stockItems; }
        public ClusterStock setStockItems(ArrayList<ClusterStockItem> value) { this.stockItems = value; return this; }
    }

    public static class ClusterStockItem
    {
        /**
        * Article Code
        */
        @ApiMember(Description="Article Code", IsRequired=true)
        public String articleCode = null;

        /**
        * Asset Quantity
        */
        @ApiMember(Description="Asset Quantity", IsRequired=true)
        public Integer assetQuantity = null;

        /**
        * Consignment Quantity
        */
        @ApiMember(Description="Consignment Quantity", IsRequired=true)
        public Integer consignmentQuantity = null;
        
        public String getArticleCode() { return articleCode; }
        public ClusterStockItem setArticleCode(String value) { this.articleCode = value; return this; }
        public Integer getAssetQuantity() { return assetQuantity; }
        public ClusterStockItem setAssetQuantity(Integer value) { this.assetQuantity = value; return this; }
        public Integer getConsignmentQuantity() { return consignmentQuantity; }
        public ClusterStockItem setConsignmentQuantity(Integer value) { this.consignmentQuantity = value; return this; }
    }

}

Java GetAggregatedStock DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /aggregatedStock/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	clusterCode: String,
	stockItems: 
	[
		{
			articleCode: String,
			assetQuantity: 0,
			consignmentQuantity: 0
		}
	]
}