| GET | /price/{brand} | Get the list of prices of the requested items |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetPrice
{
/**
* Brand
*/
@ApiMember(Description="Brand", IsRequired=true)
public String brand = null;
/**
* POS Legacy
*/
@ApiMember(Description="POS Legacy", IsRequired=true)
public String posCode = null;
/**
* List of Article Codes
*/
@ApiMember(Description="List of Article Codes", IsRequired=true)
public ArrayList<String> articleCodes = null;
/**
* Include Dealer Cost Price in the response
*/
@ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true)
public Boolean includeDealerCostPrice = null;
public String getBrand() { return brand; }
public GetPrice setBrand(String value) { this.brand = value; return this; }
public String getPosCode() { return posCode; }
public GetPrice setPosCode(String value) { this.posCode = value; return this; }
public ArrayList<String> getArticleCodes() { return articleCodes; }
public GetPrice setArticleCodes(ArrayList<String> value) { this.articleCodes = value; return this; }
public Boolean isIncludeDealerCostPrice() { return includeDealerCostPrice; }
public GetPrice setIncludeDealerCostPrice(Boolean value) { this.includeDealerCostPrice = value; return this; }
}
public static class GetPriceResponse extends ArrayList<Price>
{
}
public static class Price
{
/**
* Reference Code of the item
*/
@ApiMember(Description="Reference Code of the item", IsRequired=true)
public String articleCode = null;
/**
* Currency of the price
*/
@ApiMember(Description="Currency of the price", IsRequired=true)
public String currency = null;
/**
* Retail price of the item
*/
@ApiMember(Description="Retail price of the item")
public BigDecimal retailSalePrice = null;
/**
* Code of currency applied
*/
@ApiMember(Description="Code of currency applied", IsRequired=true)
public String priceListCode = null;
/**
* Dealer Cost Price
*/
@ApiMember(Description="Dealer Cost Price")
public DealerCostPrice dealerCostPrice = null;
public String getArticleCode() { return articleCode; }
public Price setArticleCode(String value) { this.articleCode = value; return this; }
public String getCurrency() { return currency; }
public Price setCurrency(String value) { this.currency = value; return this; }
public BigDecimal getRetailSalePrice() { return retailSalePrice; }
public Price setRetailSalePrice(BigDecimal value) { this.retailSalePrice = value; return this; }
public String getPriceListCode() { return priceListCode; }
public Price setPriceListCode(String value) { this.priceListCode = value; return this; }
public DealerCostPrice getDealerCostPrice() { return dealerCostPrice; }
public Price setDealerCostPrice(DealerCostPrice value) { this.dealerCostPrice = value; return this; }
}
public static class DealerCostPrice
{
/**
* Currency of the Dealer Cost Price
*/
@ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true)
public String currency = null;
/**
* Dealer Cost Price of the item
*/
@ApiMember(Description="Dealer Cost Price of the item", IsRequired=true)
public BigDecimal price = null;
public String getCurrency() { return currency; }
public DealerCostPrice setCurrency(String value) { this.currency = value; return this; }
public BigDecimal getPrice() { return price; }
public DealerCostPrice setPrice(BigDecimal value) { this.price = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /price/{brand} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ ]