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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Contacts: 
	[
		{
			ContactId: 0,
			ContactGuid: 00000000000000000000000000000000,
			Name: String,
			Phone: String,
			Email: String,
			PastVisits: 0,
			LastVisitLocal: 0001-01-01,
			NextLocal: 0001-01-01,
			PhoneMatch: False,
			EmailMatch: False
		}
	],
	Duplicate: 
	{
		ContactId: 0,
		ContactGuid: 00000000000000000000000000000000,
		Name: String,
		Phone: String,
		Email: String,
		PastVisits: 0,
		LastVisitLocal: 0001-01-01,
		NextLocal: 0001-01-01,
		PhoneMatch: False,
		EmailMatch: False
	}
}