import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PostInspectionReportResponse
{
public InspectionReport Result = null;
public ResponseStatus ResponseStatus = null;
public InspectionReport getResult() { return Result; }
public PostInspectionReportResponse setResult(InspectionReport value) { this.Result = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PostInspectionReportResponse 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 PostInspectionReportResponse DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/oneway/PostInspectionReportResponse HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PostInspectionReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<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>
<Result>
<AgentName>String</AgentName>
<AgentUID>00000000-0000-0000-0000-000000000000</AgentUID>
<BusinessPhone>String</BusinessPhone>
<ClassBeerAccountNum>String</ClassBeerAccountNum>
<ClassBeerStateNum>String</ClassBeerStateNum>
<ClassLiquorAccountNum>String</ClassLiquorAccountNum>
<ClassLiquorStateNum>String</ClassLiquorStateNum>
<ComplianceStatus>0</ComplianceStatus>
<ContactUID>00000000-0000-0000-0000-000000000000</ContactUID>
<InspectionDate>0001-01-01T00:00:00</InspectionDate>
<InspectionReportUID>00000000-0000-0000-0000-000000000000</InspectionReportUID>
<IsBusinessClassABeer>false</IsBusinessClassABeer>
<IsBusinessClassALiquor>false</IsBusinessClassALiquor>
<IsBusinessClassBBeer>false</IsBusinessClassBBeer>
<IsBusinessClassBLiquor>false</IsBusinessClassBLiquor>
<IsBusinessClassD>false</IsBusinessClassD>
<IsBusinessClassM>false</IsBusinessClassM>
<IsBusinessClassP>false</IsBusinessClassP>
<IsBusinessClassR>false</IsBusinessClassR>
<IsBusinessClassRAH>false</IsBusinessClassRAH>
<LicensedEmployees>
<Employee>
<FirstName>String</FirstName>
<IsOnDuty>false</IsOnDuty>
<LastName>String</LastName>
<LicenseExpirationDate>0001-01-01T00:00:00</LicenseExpirationDate>
<LicenseNumber>String</LicenseNumber>
<LicenseTypeCode>0</LicenseTypeCode>
<MiddleName>String</MiddleName>
</Employee>
</LicensedEmployees>
<ManagerName>String</ManagerName>
<ManagerPhone>String</ManagerPhone>
<ManagerSignature />
<OwnersName>String</OwnersName>
<StreetAddress>String</StreetAddress>
<TradeName>String</TradeName>
<ZipCode>String</ZipCode>
</Result>
</PostInspectionReportResponse>