Richemont.Booster2.PublicApi

<back to all web services

CreateStockValidateRequest

Requires Authentication
The following routes are available for this service:
POST/stock/validateCreate Validate Stock Request
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CreateStockValidateRequest
    {
        /**
        * Brand Trigram, e.g. CAR, IWC
        */
        @ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true)
        public String brand = null;

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

        /**
        * Validation Date
        */
        @ApiMember(Description="Validation Date", IsRequired=true)
        public Date date = null;

        /**
        * Items
        */
        @ApiMember(Description="Items", IsRequired=true)
        public ArrayList<CreateStockValidateRequestItem> items = null;
        
        public String getBrand() { return brand; }
        public CreateStockValidateRequest setBrand(String value) { this.brand = value; return this; }
        public String getPosCode() { return posCode; }
        public CreateStockValidateRequest setPosCode(String value) { this.posCode = value; return this; }
        public Date getDate() { return date; }
        public CreateStockValidateRequest setDate(Date value) { this.date = value; return this; }
        public ArrayList<CreateStockValidateRequestItem> getItems() { return items; }
        public CreateStockValidateRequest setItems(ArrayList<CreateStockValidateRequestItem> value) { this.items = value; return this; }
    }

    public static class CreateStockValidateRequestItem
    {
        /**
        * Legacy Article Code of the item
        */
        @ApiMember(Description="Legacy Article Code of the item", IsRequired=true)
        public String articleCode = null;

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

        /**
        * Serial Numbers
        */
        @ApiMember(Description="Serial Numbers")
        public ArrayList<String> serialNumbers = null;
        
        public String getArticleCode() { return articleCode; }
        public CreateStockValidateRequestItem setArticleCode(String value) { this.articleCode = value; return this; }
        public Integer getQuantity() { return quantity; }
        public CreateStockValidateRequestItem setQuantity(Integer value) { this.quantity = value; return this; }
        public ArrayList<String> getSerialNumbers() { return serialNumbers; }
        public CreateStockValidateRequestItem setSerialNumbers(ArrayList<String> value) { this.serialNumbers = value; return this; }
    }

    public static class CreateStockValidateResponse
    {
        /**
        * Validation Id
        */
        @ApiMember(Description="Validation Id", IsRequired=true)
        public Integer validationId = null;
        
        public Integer getValidationId() { return validationId; }
        public CreateStockValidateResponse setValidationId(Integer value) { this.validationId = value; return this; }
    }

}

Java CreateStockValidateRequest 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.

POST /stock/validate HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	brand: String,
	posCode: String,
	date: 0001-01-01,
	items: 
	[
		{
			articleCode: String,
			quantity: 0,
			serialNumbers: 
			[
				String
			]
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	validationId: 0
}