| GET,OPTIONS | /v1/InspectionReport/{AgentUID}/{ContactUID}/ |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Employee() =
member val FirstName:String = null with get,set
member val MiddleName:String = null with get,set
member val LastName:String = null with get,set
[<AllowNullLiteral>]
type InspectionReport() =
member val AgentUID:Guid = new Guid() with get,set
member val ContactUID:Guid = new Guid() with get,set
member val InspectionReportUID:Guid = new Guid() with get,set
member val TradeName:String = null with get,set
member val BusinessPhone:String = null with get,set
member val StreetAddress:String = null with get,set
member val ZipCode:String = null with get,set
member val OwnersName:String = null with get,set
member val ComplianceStatus:Byte = new Byte() with get,set
member val IsBusinessClassABeer:Boolean = new Boolean() with get,set
member val IsBusinessClassBBeer:Boolean = new Boolean() with get,set
member val IsBusinessClassALiquor:Boolean = new Boolean() with get,set
member val IsBusinessClassBLiquor:Boolean = new Boolean() with get,set
member val IsBusinessClassD:Boolean = new Boolean() with get,set
member val IsBusinessClassM:Boolean = new Boolean() with get,set
member val IsBusinessClassP:Boolean = new Boolean() with get,set
member val IsBusinessClassR:Boolean = new Boolean() with get,set
member val IsBusinessClassRAH:Boolean = new Boolean() with get,set
member val ClassBeerAccountNum:String = null with get,set
member val ClassBeerStateNum:String = null with get,set
member val ClassLiquorAccountNum:String = null with get,set
member val ClassLiquorStateNum:String = null with get,set
member val LicensedEmployees:ResizeArray<Employee> = new ResizeArray<Employee>() with get,set
member val AgentName:String = null with get,set
member val ManagerSignature:Object = null with get,set
member val ManagerName:String = null with get,set
member val ManagerPhone:String = null with get,set
member val InspectionDate:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type GetInspectionReportResponse() =
member val Result:ResizeArray<InspectionReport> = new ResizeArray<InspectionReport>() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type GetInspectionReport() =
member val AgentUID:Guid = new Guid() with get,set
member val ContactUID:Guid = new Guid() with get,set
member val InspectionReportUID:Guid = new Guid() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}