| Requires the role: | Admin | Requires the permission: | ReadData |
| POST | /Support/CustomerSearch |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SupportCustomerSearchRequest
{
public String term = null;
public Integer limit = null;
public String getTerm() { return term; }
public SupportCustomerSearchRequest setTerm(String value) { this.term = value; return this; }
public Integer getLimit() { return limit; }
public SupportCustomerSearchRequest setLimit(Integer value) { this.limit = value; return this; }
}
public static class SupportCustomerSearchResult
{
public ArrayList<SupportCustomerHit> hits = null;
public String termKind = null;
public String normalizedTerm = null;
public ArrayList<String> warnings = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<SupportCustomerHit> getHits() { return hits; }
public SupportCustomerSearchResult setHits(ArrayList<SupportCustomerHit> value) { this.hits = value; return this; }
public String getTermKind() { return termKind; }
public SupportCustomerSearchResult setTermKind(String value) { this.termKind = value; return this; }
public String getNormalizedTerm() { return normalizedTerm; }
public SupportCustomerSearchResult setNormalizedTerm(String value) { this.normalizedTerm = value; return this; }
public ArrayList<String> getWarnings() { return warnings; }
public SupportCustomerSearchResult setWarnings(ArrayList<String> value) { this.warnings = value; return this; }
public Integer getStatusCode() { return statusCode; }
public SupportCustomerSearchResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public SupportCustomerSearchResult setMessage(String value) { this.message = value; return this; }
}
public static class SupportCustomerHit
{
public String phone = null;
public String email = null;
public String name = null;
public Integer ticketCount = null;
public Integer ownerCardCount = null;
public Integer webshopOrderCount = null;
public Integer giftCardCount = null;
public Integer sharedLinkCount = null;
public Date lastActivityUtc = null;
public ArrayList<String> sellers = null;
public String matchedBy = null;
public String getPhone() { return phone; }
public SupportCustomerHit setPhone(String value) { this.phone = value; return this; }
public String getEmail() { return email; }
public SupportCustomerHit setEmail(String value) { this.email = value; return this; }
public String getName() { return name; }
public SupportCustomerHit setName(String value) { this.name = value; return this; }
public Integer getTicketCount() { return ticketCount; }
public SupportCustomerHit setTicketCount(Integer value) { this.ticketCount = value; return this; }
public Integer getOwnerCardCount() { return ownerCardCount; }
public SupportCustomerHit setOwnerCardCount(Integer value) { this.ownerCardCount = value; return this; }
public Integer getWebshopOrderCount() { return webshopOrderCount; }
public SupportCustomerHit setWebshopOrderCount(Integer value) { this.webshopOrderCount = value; return this; }
public Integer getGiftCardCount() { return giftCardCount; }
public SupportCustomerHit setGiftCardCount(Integer value) { this.giftCardCount = value; return this; }
public Integer getSharedLinkCount() { return sharedLinkCount; }
public SupportCustomerHit setSharedLinkCount(Integer value) { this.sharedLinkCount = value; return this; }
public Date getLastActivityUtc() { return lastActivityUtc; }
public SupportCustomerHit setLastActivityUtc(Date value) { this.lastActivityUtc = value; return this; }
public ArrayList<String> getSellers() { return sellers; }
public SupportCustomerHit setSellers(ArrayList<String> value) { this.sellers = value; return this; }
public String getMatchedBy() { return matchedBy; }
public SupportCustomerHit setMatchedBy(String value) { this.matchedBy = value; return this; }
}
}
Java SupportCustomerSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Support/CustomerSearch HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"term":"String","limit":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"hits":[{"phone":"String","email":"String","name":"String","ticketCount":0,"ownerCardCount":0,"webshopOrderCount":0,"giftCardCount":0,"sharedLinkCount":0,"lastActivityUtc":"0001-01-01T00:00:00.0000000","sellers":["String"],"matchedBy":"String"}],"termKind":"String","normalizedTerm":"String","warnings":["String"],"statusCode":0,"message":"String"}