| GET,OPTIONS | /v1/visits/exceptions |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class VisitExceptionsRequest
{
}
open class VisitExceptionsResponse
{
open var Items:ArrayList<ExceptionItem> = ArrayList<ExceptionItem>()
open var MissedCount:Int? = null
open var SlaCount:Int? = null
open var SkippedCount:Int? = null
open var AtRiskCount:Int? = null
open var ResponseStatus:ResponseStatus? = null
}
open class ExceptionItem
{
open var Kind:String? = null
open var VisitKey:String? = null
open var JobID:Int? = null
open var ProjectID:Int? = null
open var AgreementID:Int? = null
open var AgreementJobID:Int? = null
open var OccurrenceDate:String? = null
open var CustomerName:String? = null
open var LocationName:String? = null
open var City:String? = null
open var Lat:Double? = null
open var Lng:Double? = null
open var AgeDays:Int? = null
open var Reason:String? = null
open var DurationMinutes:Int? = null
open var IsCommercial:Boolean? = null
open var PreferredCrewID:Int? = null
}
Kotlin VisitExceptionsRequest DTOs
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/visits/exceptions HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Items:
[
{
Kind: String,
VisitKey: String,
JobID: 0,
ProjectID: 0,
AgreementID: 0,
AgreementJobID: 0,
OccurrenceDate: String,
CustomerName: String,
LocationName: String,
City: String,
Lat: 0,
Lng: 0,
AgeDays: 0,
Reason: String,
DurationMinutes: 0,
IsCommercial: False,
PreferredCrewID: 0
}
],
MissedCount: 0,
SlaCount: 0,
SkippedCount: 0,
AtRiskCount: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}