Richemont.Booster2.PublicApi

<back to all web services

GetStockSlim

Requires Authentication
The following routes are available for this service:
GET/stock/{brand}/slimGet slim Stock
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

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

        /**
        * POS Legacy
        */
        @ApiMember(Description="POS Legacy")
        public ArrayList<String> posCodes = null;

        /**
        * Article Codes
        */
        @ApiMember(Description="Article Codes")
        public ArrayList<String> articleCodes = null;

        /**
        * Cluster Id
        */
        @ApiMember(Description="Cluster Id")
        public ArrayList<String> clusterIds = null;

        /**
        * Include Extra Info
        */
        @ApiMember(Description="Include Extra Info")
        public Boolean includeExtraInfo = null;

        /**
        * Include Consignment NotAuthorized POS
        */
        @ApiMember(Description="Include Consignment NotAuthorized POS")
        public Boolean includeConsignmentNotAuthorizedPOS = null;

        /**
        * Item type, 'standard' OR 'consigned'. By default, all are coming
        */
        @ApiMember(Description="Item type, 'standard' OR 'consigned'. By default, all are coming")
        public String type = null;
        
        public String getBrand() { return brand; }
        public GetStockSlim setBrand(String value) { this.brand = value; return this; }
        public ArrayList<String> getPosCodes() { return posCodes; }
        public GetStockSlim setPosCodes(ArrayList<String> value) { this.posCodes = value; return this; }
        public ArrayList<String> getArticleCodes() { return articleCodes; }
        public GetStockSlim setArticleCodes(ArrayList<String> value) { this.articleCodes = value; return this; }
        public ArrayList<String> getClusterIds() { return clusterIds; }
        public GetStockSlim setClusterIds(ArrayList<String> value) { this.clusterIds = value; return this; }
        public Boolean isIncludeExtraInfo() { return includeExtraInfo; }
        public GetStockSlim setIncludeExtraInfo(Boolean value) { this.includeExtraInfo = value; return this; }
        public Boolean isIncludeConsignmentNotAuthorizedPOS() { return includeConsignmentNotAuthorizedPOS; }
        public GetStockSlim setIncludeConsignmentNotAuthorizedPOS(Boolean value) { this.includeConsignmentNotAuthorizedPOS = value; return this; }
        public String getType() { return type; }
        public GetStockSlim setType(String value) { this.type = value; return this; }
    }

    public static class GetStockSlimResponse
    {
        /**
        * Total Product Count
        */
        @ApiMember(Description="Total Product Count", IsRequired=true)
        public Integer totalProductCount = null;

        /**
        * Total Consignment Count
        */
        @ApiMember(Description="Total Consignment Count", IsRequired=true)
        public Integer totalConsignmentCount = null;

        /**
        * Articles
        */
        @ApiMember(Description="Articles", IsRequired=true)
        public ArrayList<String> elements = null;
        
        public Integer getTotalProductCount() { return totalProductCount; }
        public GetStockSlimResponse setTotalProductCount(Integer value) { this.totalProductCount = value; return this; }
        public Integer getTotalConsignmentCount() { return totalConsignmentCount; }
        public GetStockSlimResponse setTotalConsignmentCount(Integer value) { this.totalConsignmentCount = value; return this; }
        public ArrayList<String> getElements() { return elements; }
        public GetStockSlimResponse setElements(ArrayList<String> value) { this.elements = value; return this; }
    }

}

Java GetStockSlim 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 /stock/{brand}/slim HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	totalProductCount: 0,
	totalConsignmentCount: 0,
	elements: 
	[
		String
	]
}