TicketUserServices

<back to all web services

SupportCustomerSearchRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<SupportCustomerSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Limit>0</Limit>
  <Term>String</Term>
</SupportCustomerSearchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SupportCustomerSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Hits>
    <SupportCustomerHit>
      <Email>String</Email>
      <GiftCardCount>0</GiftCardCount>
      <LastActivityUtc>0001-01-01T00:00:00</LastActivityUtc>
      <MatchedBy>String</MatchedBy>
      <Name>String</Name>
      <OwnerCardCount>0</OwnerCardCount>
      <Phone>String</Phone>
      <Sellers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Sellers>
      <SharedLinkCount>0</SharedLinkCount>
      <TicketCount>0</TicketCount>
      <WebshopOrderCount>0</WebshopOrderCount>
    </SupportCustomerHit>
  </Hits>
  <Message>String</Message>
  <NormalizedTerm>String</NormalizedTerm>
  <StatusCode>0</StatusCode>
  <TermKind>String</TermKind>
  <Warnings xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Warnings>
</SupportCustomerSearchResult>