| GET | /salesReps/{brand}/{posCode} | Get Sales Reps |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetSalesReps
{
/**
* Brand Triagram, e.g. CAR, IWC, VAC
*/
@ApiMember(Description="Brand Triagram, e.g. CAR, IWC, VAC", IsRequired=true)
public String brand = null;
/**
* Point of Sale Code, e.g. ES100:102048
*/
@ApiMember(Description="Point of Sale Code, e.g. ES100:102048", IsRequired=true)
public String posCode = null;
/**
* Booster Customer Id
*/
@ApiMember(Description="Booster Customer Id")
public Integer boosterCustomerId = null;
/**
* Whether the sales representative's account is locked.
*/
@ApiMember(Description="Whether the sales representative's account is locked.")
public Boolean accountLocked = null;
/**
* Whether the sales representative's account is pinned.
*/
@ApiMember(Description="Whether the sales representative's account is pinned.")
public Boolean isPinned = null;
public String getBrand() { return brand; }
public GetSalesReps setBrand(String value) { this.brand = value; return this; }
public String getPosCode() { return posCode; }
public GetSalesReps setPosCode(String value) { this.posCode = value; return this; }
public Integer getBoosterCustomerId() { return boosterCustomerId; }
public GetSalesReps setBoosterCustomerId(Integer value) { this.boosterCustomerId = value; return this; }
public Boolean isAccountLocked() { return accountLocked; }
public GetSalesReps setAccountLocked(Boolean value) { this.accountLocked = value; return this; }
public Boolean getIsPinned() { return isPinned; }
public GetSalesReps setIsPinned(Boolean value) { this.isPinned = value; return this; }
}
public static class GetSalesRepsResponse extends ArrayList<SalesRep>
{
}
public static class SalesRep
{
/**
* The first name of the sales representative.
*/
@ApiMember(Description="The first name of the sales representative.", IsRequired=true)
public String firstName = null;
/**
* The last name of the sales representative.
*/
@ApiMember(Description="The last name of the sales representative.", IsRequired=true)
public String lastName = null;
/**
* The email address of the sales representative.
*/
@ApiMember(Description="The email address of the sales representative.", IsRequired=true)
public String email = null;
/**
* The unique user ID of the sales representative.
*/
@ApiMember(Description="The unique user ID of the sales representative.", IsRequired=true)
public UUID userId = null;
/**
* Whether the sales representative's account is locked.
*/
@ApiMember(Description="Whether the sales representative's account is locked.", IsRequired=true)
public Boolean accountLocked = null;
/**
* Whether the sales representative's account is pinned.
*/
@ApiMember(Description="Whether the sales representative's account is pinned.", IsRequired=true)
public Boolean isPinned = null;
public String getFirstName() { return firstName; }
public SalesRep setFirstName(String value) { this.firstName = value; return this; }
public String getLastName() { return lastName; }
public SalesRep setLastName(String value) { this.lastName = value; return this; }
public String getEmail() { return email; }
public SalesRep setEmail(String value) { this.email = value; return this; }
public UUID getUserId() { return userId; }
public SalesRep setUserId(UUID value) { this.userId = value; return this; }
public Boolean isAccountLocked() { return accountLocked; }
public SalesRep setAccountLocked(Boolean value) { this.accountLocked = value; return this; }
public Boolean getIsPinned() { return isPinned; }
public SalesRep setIsPinned(Boolean value) { this.isPinned = 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 /salesReps/{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 [ ]