Trendsic Platform Service

<back to all web services

BranchApptContactsRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/queue/appointments/contacts
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class BranchApptContactsRequest
    {
        public UUID LocationId = null;
        public String Q = null;
        public String Phone = null;
        public String Email = null;
        
        public UUID getLocationId() { return LocationId; }
        public BranchApptContactsRequest setLocationId(UUID value) { this.LocationId = value; return this; }
        public String getQ() { return Q; }
        public BranchApptContactsRequest setQ(String value) { this.Q = value; return this; }
        public String getPhone() { return Phone; }
        public BranchApptContactsRequest setPhone(String value) { this.Phone = value; return this; }
        public String getEmail() { return Email; }
        public BranchApptContactsRequest setEmail(String value) { this.Email = value; return this; }
    }

    public static class BranchApptContactsResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<BranchApptContact> Contacts = new ArrayList<BranchApptContact>();
        public BranchApptContact Duplicate = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public BranchApptContactsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<BranchApptContact> getContacts() { return Contacts; }
        public BranchApptContactsResponse setContacts(ArrayList<BranchApptContact> value) { this.Contacts = value; return this; }
        public BranchApptContact getDuplicate() { return Duplicate; }
        public BranchApptContactsResponse setDuplicate(BranchApptContact value) { this.Duplicate = value; return this; }
    }

    public static class BranchApptContact
    {
        public Integer ContactId = null;
        public UUID ContactGuid = null;
        public String Name = null;
        public String Phone = null;
        public String Email = null;
        public Integer PastVisits = null;
        public Date LastVisitLocal = null;
        public Date NextLocal = null;
        public Boolean PhoneMatch = null;
        public Boolean EmailMatch = null;
        
        public Integer getContactId() { return ContactId; }
        public BranchApptContact setContactId(Integer value) { this.ContactId = value; return this; }
        public UUID getContactGuid() { return ContactGuid; }
        public BranchApptContact setContactGuid(UUID value) { this.ContactGuid = value; return this; }
        public String getName() { return Name; }
        public BranchApptContact setName(String value) { this.Name = value; return this; }
        public String getPhone() { return Phone; }
        public BranchApptContact setPhone(String value) { this.Phone = value; return this; }
        public String getEmail() { return Email; }
        public BranchApptContact setEmail(String value) { this.Email = value; return this; }
        public Integer getPastVisits() { return PastVisits; }
        public BranchApptContact setPastVisits(Integer value) { this.PastVisits = value; return this; }
        public Date getLastVisitLocal() { return LastVisitLocal; }
        public BranchApptContact setLastVisitLocal(Date value) { this.LastVisitLocal = value; return this; }
        public Date getNextLocal() { return NextLocal; }
        public BranchApptContact setNextLocal(Date value) { this.NextLocal = value; return this; }
        public Boolean isPhoneMatch() { return PhoneMatch; }
        public BranchApptContact setPhoneMatch(Boolean value) { this.PhoneMatch = value; return this; }
        public Boolean isEmailMatch() { return EmailMatch; }
        public BranchApptContact setEmailMatch(Boolean value) { this.EmailMatch = value; return this; }
    }

}

Java BranchApptContactsRequest 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.

GET /v1/queue/appointments/contacts HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BranchApptContactsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Contacts>
    <BranchApptContact>
      <ContactGuid>00000000-0000-0000-0000-000000000000</ContactGuid>
      <ContactId>0</ContactId>
      <Email>String</Email>
      <EmailMatch>false</EmailMatch>
      <LastVisitLocal>0001-01-01T00:00:00</LastVisitLocal>
      <Name>String</Name>
      <NextLocal>0001-01-01T00:00:00</NextLocal>
      <PastVisits>0</PastVisits>
      <Phone>String</Phone>
      <PhoneMatch>false</PhoneMatch>
    </BranchApptContact>
  </Contacts>
  <Duplicate>
    <ContactGuid>00000000-0000-0000-0000-000000000000</ContactGuid>
    <ContactId>0</ContactId>
    <Email>String</Email>
    <EmailMatch>false</EmailMatch>
    <LastVisitLocal>0001-01-01T00:00:00</LastVisitLocal>
    <Name>String</Name>
    <NextLocal>0001-01-01T00:00:00</NextLocal>
    <PastVisits>0</PastVisits>
    <Phone>String</Phone>
    <PhoneMatch>false</PhoneMatch>
  </Duplicate>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</BranchApptContactsResponse>