| GET | /posGroups | Get the list of pos groups where user is authorized |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetPosGroup
{
/**
* Brand Trigram
*/
@ApiMember(Description="Brand Trigram", IsRequired=true)
public String brand = null;
/**
* Business Unit Code
*/
@ApiMember(Description="Business Unit Code", IsRequired=true)
public String buCode = null;
public String getBrand() { return brand; }
public GetPosGroup setBrand(String value) { this.brand = value; return this; }
public String getBuCode() { return buCode; }
public GetPosGroup setBuCode(String value) { this.buCode = value; return this; }
}
public static class GetPosGroupResponse extends ArrayList<PosGroup>
{
}
public static class PosGroup extends Scope
{
/**
* Pos Group code
*/
@ApiMember(Description="Pos Group code", IsRequired=true)
public Integer posGroupCode = null;
/**
* Pos Group Description
*/
@ApiMember(Description="Pos Group Description", IsRequired=true)
public String posGroupDs = null;
/**
* Define if user is authorized to this pos group
*/
@ApiMember(Description="Define if user is authorized to this pos group", IsRequired=true)
public Boolean isAuthorized = null;
public Integer getPosGroupCode() { return posGroupCode; }
public PosGroup setPosGroupCode(Integer value) { this.posGroupCode = value; return this; }
public String getPosGroupDs() { return posGroupDs; }
public PosGroup setPosGroupDs(String value) { this.posGroupDs = value; return this; }
public Boolean getIsAuthorized() { return isAuthorized; }
public PosGroup setIsAuthorized(Boolean value) { this.isAuthorized = value; return this; }
}
public static class Scope
{
/**
* Scope Code - combination of BU / Brand
*/
@ApiMember(Description="Scope Code - combination of BU / Brand", IsRequired=true)
public String scopeCode = null;
/**
* Business Unit Code
*/
@ApiMember(Description="Business Unit Code", IsRequired=true)
public String buCode = null;
/**
* Brand Trigram
*/
@ApiMember(Description="Brand Trigram", IsRequired=true)
public String brand = null;
/**
* Description of the combination
*/
@ApiMember(Description="Description of the combination", IsRequired=true)
public String description = null;
public String getScopeCode() { return scopeCode; }
public Scope setScopeCode(String value) { this.scopeCode = value; return this; }
public String getBuCode() { return buCode; }
public Scope setBuCode(String value) { this.buCode = value; return this; }
public String getBrand() { return brand; }
public Scope setBrand(String value) { this.brand = value; return this; }
public String getDescription() { return description; }
public Scope setDescription(String value) { this.description = 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 /posGroups HTTP/1.1 Host: dev-api-booster.richemont.com Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ ]