Trendsic Platform Service

<back to all web services

GetInspectionReport

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/InspectionReport/{AgentUID}/{ContactUID}/
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetInspectionReport
    {
        public UUID AgentUID = null;
        public UUID ContactUID = null;
        public UUID InspectionReportUID = null;
        
        public UUID getAgentUID() { return AgentUID; }
        public GetInspectionReport setAgentUID(UUID value) { this.AgentUID = value; return this; }
        public UUID getContactUID() { return ContactUID; }
        public GetInspectionReport setContactUID(UUID value) { this.ContactUID = value; return this; }
        public UUID getInspectionReportUID() { return InspectionReportUID; }
        public GetInspectionReport setInspectionReportUID(UUID value) { this.InspectionReportUID = value; return this; }
    }

    public static class GetInspectionReportResponse
    {
        public ArrayList<InspectionReport> Result = new ArrayList<InspectionReport>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<InspectionReport> getResult() { return Result; }
        public GetInspectionReportResponse setResult(ArrayList<InspectionReport> value) { this.Result = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public GetInspectionReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class InspectionReport
    {
        public UUID AgentUID = null;
        public UUID ContactUID = null;
        public UUID InspectionReportUID = null;
        public String TradeName = null;
        public String BusinessPhone = null;
        public String StreetAddress = null;
        public String ZipCode = null;
        public String OwnersName = null;
        public Short ComplianceStatus = null;
        public Boolean IsBusinessClassABeer = null;
        public Boolean IsBusinessClassBBeer = null;
        public Boolean IsBusinessClassALiquor = null;
        public Boolean IsBusinessClassBLiquor = null;
        public Boolean IsBusinessClassD = null;
        public Boolean IsBusinessClassM = null;
        public Boolean IsBusinessClassP = null;
        public Boolean IsBusinessClassR = null;
        public Boolean IsBusinessClassRAH = null;
        public String ClassBeerAccountNum = null;
        public String ClassBeerStateNum = null;
        public String ClassLiquorAccountNum = null;
        public String ClassLiquorStateNum = null;
        public ArrayList<Employee> LicensedEmployees = new ArrayList<Employee>();
        public String AgentName = null;
        public Object ManagerSignature = null;
        public String ManagerName = null;
        public String ManagerPhone = null;
        public Date InspectionDate = null;
        
        public UUID getAgentUID() { return AgentUID; }
        public InspectionReport setAgentUID(UUID value) { this.AgentUID = value; return this; }
        public UUID getContactUID() { return ContactUID; }
        public InspectionReport setContactUID(UUID value) { this.ContactUID = value; return this; }
        public UUID getInspectionReportUID() { return InspectionReportUID; }
        public InspectionReport setInspectionReportUID(UUID value) { this.InspectionReportUID = value; return this; }
        public String getTradeName() { return TradeName; }
        public InspectionReport setTradeName(String value) { this.TradeName = value; return this; }
        public String getBusinessPhone() { return BusinessPhone; }
        public InspectionReport setBusinessPhone(String value) { this.BusinessPhone = value; return this; }
        public String getStreetAddress() { return StreetAddress; }
        public InspectionReport setStreetAddress(String value) { this.StreetAddress = value; return this; }
        public String getZipCode() { return ZipCode; }
        public InspectionReport setZipCode(String value) { this.ZipCode = value; return this; }
        public String getOwnersName() { return OwnersName; }
        public InspectionReport setOwnersName(String value) { this.OwnersName = value; return this; }
        public Short getComplianceStatus() { return ComplianceStatus; }
        public InspectionReport setComplianceStatus(Short value) { this.ComplianceStatus = value; return this; }
        public Boolean getIsBusinessClassABeer() { return IsBusinessClassABeer; }
        public InspectionReport setIsBusinessClassABeer(Boolean value) { this.IsBusinessClassABeer = value; return this; }
        public Boolean getIsBusinessClassBBeer() { return IsBusinessClassBBeer; }
        public InspectionReport setIsBusinessClassBBeer(Boolean value) { this.IsBusinessClassBBeer = value; return this; }
        public Boolean getIsBusinessClassALiquor() { return IsBusinessClassALiquor; }
        public InspectionReport setIsBusinessClassALiquor(Boolean value) { this.IsBusinessClassALiquor = value; return this; }
        public Boolean getIsBusinessClassBLiquor() { return IsBusinessClassBLiquor; }
        public InspectionReport setIsBusinessClassBLiquor(Boolean value) { this.IsBusinessClassBLiquor = value; return this; }
        public Boolean getIsBusinessClassD() { return IsBusinessClassD; }
        public InspectionReport setIsBusinessClassD(Boolean value) { this.IsBusinessClassD = value; return this; }
        public Boolean getIsBusinessClassM() { return IsBusinessClassM; }
        public InspectionReport setIsBusinessClassM(Boolean value) { this.IsBusinessClassM = value; return this; }
        public Boolean getIsBusinessClassP() { return IsBusinessClassP; }
        public InspectionReport setIsBusinessClassP(Boolean value) { this.IsBusinessClassP = value; return this; }
        public Boolean getIsBusinessClassR() { return IsBusinessClassR; }
        public InspectionReport setIsBusinessClassR(Boolean value) { this.IsBusinessClassR = value; return this; }
        public Boolean getIsBusinessClassRAH() { return IsBusinessClassRAH; }
        public InspectionReport setIsBusinessClassRAH(Boolean value) { this.IsBusinessClassRAH = value; return this; }
        public String getClassBeerAccountNum() { return ClassBeerAccountNum; }
        public InspectionReport setClassBeerAccountNum(String value) { this.ClassBeerAccountNum = value; return this; }
        public String getClassBeerStateNum() { return ClassBeerStateNum; }
        public InspectionReport setClassBeerStateNum(String value) { this.ClassBeerStateNum = value; return this; }
        public String getClassLiquorAccountNum() { return ClassLiquorAccountNum; }
        public InspectionReport setClassLiquorAccountNum(String value) { this.ClassLiquorAccountNum = value; return this; }
        public String getClassLiquorStateNum() { return ClassLiquorStateNum; }
        public InspectionReport setClassLiquorStateNum(String value) { this.ClassLiquorStateNum = value; return this; }
        public ArrayList<Employee> getLicensedEmployees() { return LicensedEmployees; }
        public InspectionReport setLicensedEmployees(ArrayList<Employee> value) { this.LicensedEmployees = value; return this; }
        public String getAgentName() { return AgentName; }
        public InspectionReport setAgentName(String value) { this.AgentName = value; return this; }
        public Object getManagerSignature() { return ManagerSignature; }
        public InspectionReport setManagerSignature(Object value) { this.ManagerSignature = value; return this; }
        public String getManagerName() { return ManagerName; }
        public InspectionReport setManagerName(String value) { this.ManagerName = value; return this; }
        public String getManagerPhone() { return ManagerPhone; }
        public InspectionReport setManagerPhone(String value) { this.ManagerPhone = value; return this; }
        public Date getInspectionDate() { return InspectionDate; }
        public InspectionReport setInspectionDate(Date value) { this.InspectionDate = value; return this; }
    }

    public static class Employee
    {
        public String FirstName = null;
        public String MiddleName = null;
        public String LastName = null;
        
        public String getFirstName() { return FirstName; }
        public Employee setFirstName(String value) { this.FirstName = value; return this; }
        public String getMiddleName() { return MiddleName; }
        public Employee setMiddleName(String value) { this.MiddleName = value; return this; }
        public String getLastName() { return LastName; }
        public Employee setLastName(String value) { this.LastName = value; return this; }
    }

}

Java GetInspectionReport 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/InspectionReport/{AgentUID}/{ContactUID}/ HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: 
	[
		{
			AgentUID: 00000000000000000000000000000000,
			ContactUID: 00000000000000000000000000000000,
			InspectionReportUID: 00000000000000000000000000000000,
			TradeName: String,
			BusinessPhone: String,
			StreetAddress: String,
			ZipCode: String,
			OwnersName: String,
			ComplianceStatus: 0,
			IsBusinessClassABeer: False,
			IsBusinessClassBBeer: False,
			IsBusinessClassALiquor: False,
			IsBusinessClassBLiquor: False,
			IsBusinessClassD: False,
			IsBusinessClassM: False,
			IsBusinessClassP: False,
			IsBusinessClassR: False,
			IsBusinessClassRAH: False,
			ClassBeerAccountNum: String,
			ClassBeerStateNum: String,
			ClassLiquorAccountNum: String,
			ClassLiquorStateNum: String,
			LicensedEmployees: 
			[
				{
					FirstName: String,
					MiddleName: String,
					LastName: String
				}
			],
			AgentName: String,
			ManagerSignature: {},
			ManagerName: String,
			ManagerPhone: String,
			InspectionDate: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}