| POST,OPTIONS | /v1/dashboard/kpiv2/detail |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class KpiV2DetailRequest
{
open var BranchId:UUID? = null
open var StationId:UUID? = null
open var EmployeeId:UUID? = null
open var FromDate:Date? = null
open var ToDate:Date? = null
}
open class KpiV2DetailResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Detail:SvcDetail? = null
}
open class SvcDetail
{
open var Kind:String? = null
open var Window:SvcWindowRow? = null
open var Clerk:SvcClerkRow? = null
open var BranchMetrics:SvcMetrics? = null
open var PerRowAverage:SvcAverage? = null
open var Sessions:ArrayList<SvcSession> = ArrayList<SvcSession>()
open var Services:ArrayList<SvcServiceRow> = ArrayList<SvcServiceRow>()
open var CanSeeStaff:Boolean? = null
open var CanSeeFinancial:Boolean? = null
open var CanSeePay:Boolean? = null
}
open class SvcWindowRow
{
open var StationId:UUID? = null
open var Name:String? = null
open var Clerks:ArrayList<SvcNamedTime> = ArrayList<SvcNamedTime>()
open var NeverStaffed:Boolean? = null
open var LastStaffedUtc:Date? = null
open var LastStaffedBy:String? = null
open var Metrics:SvcMetrics? = null
}
open class SvcNamedTime
{
open var Id:UUID? = null
open var Name:String? = null
open var SignedSec:Long? = null
open var Served:Int? = null
}
open class SvcMetrics
{
open var Checkins:Int? = null
open var Walkins:Int? = null
open var Appts:Int? = null
open var Served:Int? = null
open var NoShows:Int? = null
open var ApptNoShows:Int? = null
open var CancelledAtWindow:Int? = null
open var Abandoned:Int? = null
open var Called:Int? = null
open var CalledUp:Int? = null
open var AbandonRate:Double? = null
open var NoShowRate:Double? = null
open var AvgServiceSec:Double? = null
open var MedianServiceSec:Double? = null
open var AvgWaitSec:Double? = null
open var MaxWaitSec:Int? = null
open var AvgWalkUpSec:Double? = null
open var ExpectedServiceSec:Double? = null
open var SignedSec:Long? = null
open var ServingSec:Long? = null
open var PausedSec:Long? = null
open var IdleSec:Long? = null
open var UnstaffedSec:Long? = null
open var Utilization:Double? = null
open var IdleShare:Double? = null
open var PausedShare:Double? = null
open var Sessions:Int? = null
open var OpenDays:Int? = null
open var FeesEarned:BigDecimal? = null
open var AvgFee:BigDecimal? = null
open var FeesPerStaffedHour:BigDecimal? = null
open var ExpectedFeesPerStaffedHour:BigDecimal? = null
open var LaborCost:BigDecimal? = null
open var LaborPartial:Boolean? = null
open var MissingCostEmployeeIds:ArrayList<UUID> = ArrayList<UUID>()
open var MissingCost:ArrayList<SvcNamedTime> = ArrayList<SvcNamedTime>()
open var LaborLocked:Boolean? = null
open var Contribution:BigDecimal? = null
open var LostFees:BigDecimal? = null
open var LostNoShowFees:BigDecimal? = null
open var Mix:HashMap<UUID,Int> = HashMap<UUID,Int>()
open var HourlyServed:ArrayList<Int> = ArrayList<Int>()
open var HourlyFees:ArrayList<BigDecimal> = ArrayList<BigDecimal>()
open var HourlyCost:ArrayList<BigDecimal> = ArrayList<BigDecimal>()
open var Tints:ArrayList<SvcTint> = ArrayList<SvcTint>()
}
open class SvcTint
{
open var Field:String? = null
open var Tone:String? = null
open var Reason:String? = null
open var Value:Double? = null
open var Reference:Double? = null
open var BranchValue:Double? = null
}
open class SvcClerkRow
{
open var EmployeeId:UUID? = null
open var Name:String? = null
open var Windows:ArrayList<SvcNamedTime> = ArrayList<SvcNamedTime>()
open var LoadedRate:BigDecimal? = null
open var RateSet:Boolean? = null
open var RateLocked:Boolean? = null
open var Metrics:SvcMetrics? = null
}
open class SvcAverage
{
open var Count:Int? = null
open var Served:Double? = null
open var AvgServiceSec:Double? = null
open var MedianServiceSec:Double? = null
open var AvgWaitSec:Double? = null
open var Utilization:Double? = null
open var IdleSec:Double? = null
open var PausedSec:Double? = null
open var NoShows:Double? = null
open var SignedSec:Double? = null
open var FeesEarned:BigDecimal? = null
open var FeesPerStaffedHour:BigDecimal? = null
open var LaborCost:BigDecimal? = null
open var Contribution:BigDecimal? = null
open var LostNoShowFees:BigDecimal? = null
}
open class SvcSession
{
open var SessionId:UUID? = null
open var StationId:UUID? = null
open var StationName:String? = null
open var EmployeeId:UUID? = null
open var EmployeeName:String? = null
open var LocalIn:Date? = null
open var LocalOut:Date? = null
open var IsOpen:Boolean? = null
open var EndReason:String? = null
open var PausedSec:Long? = null
}
open class SvcServiceRow
{
open var LineId:UUID? = null
open var Name:String? = null
open var Completed:Int? = null
open var AvgServiceSec:Double? = null
open var BranchAvgServiceSec:Double? = null
open var FeesEarned:BigDecimal? = null
open var FeeCurrent:BigDecimal? = null
open var FeeMin:BigDecimal? = null
open var FeeMax:BigDecimal? = null
open var FeePerMinute:BigDecimal? = null
open var BranchFeePerMinute:BigDecimal? = null
open var FeeChanges:ArrayList<SvcFeeChange> = ArrayList<SvcFeeChange>()
}
open class SvcFeeChange
{
open var LocationId:UUID? = null
open var OnDate:Date? = null
open var FromFee:BigDecimal? = null
open var ToFee:BigDecimal? = null
}
Kotlin KpiV2DetailRequest 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.
POST /v1/dashboard/kpiv2/detail HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
BranchId: 00000000000000000000000000000000,
StationId: 00000000000000000000000000000000,
EmployeeId: 00000000000000000000000000000000,
FromDate: 0001-01-01,
ToDate: 0001-01-01
}
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
}
},
Detail:
{
Kind: String,
Window:
{
StationId: 00000000000000000000000000000000,
Name: String,
Clerks:
[
{
Id: 00000000000000000000000000000000,
Name: String,
SignedSec: 0,
Served: 0
}
],
NeverStaffed: False,
LastStaffedUtc: 0001-01-01,
LastStaffedBy: String,
Metrics:
{
Checkins: 0,
Walkins: 0,
Appts: 0,
Served: 0,
NoShows: 0,
ApptNoShows: 0,
CancelledAtWindow: 0,
Abandoned: 0,
Called: 0,
CalledUp: 0,
AbandonRate: 0,
NoShowRate: 0,
AvgServiceSec: 0,
MedianServiceSec: 0,
AvgWaitSec: 0,
MaxWaitSec: 0,
AvgWalkUpSec: 0,
ExpectedServiceSec: 0,
SignedSec: 0,
ServingSec: 0,
PausedSec: 0,
IdleSec: 0,
UnstaffedSec: 0,
Utilization: 0,
IdleShare: 0,
PausedShare: 0,
Sessions: 0,
OpenDays: 0,
FeesEarned: 0,
AvgFee: 0,
FeesPerStaffedHour: 0,
ExpectedFeesPerStaffedHour: 0,
LaborCost: 0,
LaborPartial: False,
MissingCostEmployeeIds:
[
00000000000000000000000000000000
],
MissingCost:
[
{
Id: 00000000000000000000000000000000,
Name: String,
SignedSec: 0,
Served: 0
}
],
LaborLocked: False,
Contribution: 0,
LostFees: 0,
LostNoShowFees: 0,
Mix:
{
00000000000000000000000000000000: 0
},
HourlyServed:
[
0
],
HourlyFees:
[
0
],
HourlyCost:
[
0
],
Tints:
[
{
Field: String,
Tone: String,
Reason: String,
Value: 0,
Reference: 0,
BranchValue: 0
}
]
}
},
Clerk:
{
EmployeeId: 00000000000000000000000000000000,
Name: String,
Windows:
[
{
Id: 00000000000000000000000000000000,
Name: String,
SignedSec: 0,
Served: 0
}
],
LoadedRate: 0,
RateSet: False,
RateLocked: False,
Metrics:
{
Checkins: 0,
Walkins: 0,
Appts: 0,
Served: 0,
NoShows: 0,
ApptNoShows: 0,
CancelledAtWindow: 0,
Abandoned: 0,
Called: 0,
CalledUp: 0,
AbandonRate: 0,
NoShowRate: 0,
AvgServiceSec: 0,
MedianServiceSec: 0,
AvgWaitSec: 0,
MaxWaitSec: 0,
AvgWalkUpSec: 0,
ExpectedServiceSec: 0,
SignedSec: 0,
ServingSec: 0,
PausedSec: 0,
IdleSec: 0,
UnstaffedSec: 0,
Utilization: 0,
IdleShare: 0,
PausedShare: 0,
Sessions: 0,
OpenDays: 0,
FeesEarned: 0,
AvgFee: 0,
FeesPerStaffedHour: 0,
ExpectedFeesPerStaffedHour: 0,
LaborCost: 0,
LaborPartial: False,
MissingCostEmployeeIds:
[
00000000000000000000000000000000
],
MissingCost:
[
{
Id: 00000000000000000000000000000000,
Name: String,
SignedSec: 0,
Served: 0
}
],
LaborLocked: False,
Contribution: 0,
LostFees: 0,
LostNoShowFees: 0,
Mix:
{
00000000000000000000000000000000: 0
},
HourlyServed:
[
0
],
HourlyFees:
[
0
],
HourlyCost:
[
0
],
Tints:
[
{
Field: String,
Tone: String,
Reason: String,
Value: 0,
Reference: 0,
BranchValue: 0
}
]
}
},
BranchMetrics:
{
Checkins: 0,
Walkins: 0,
Appts: 0,
Served: 0,
NoShows: 0,
ApptNoShows: 0,
CancelledAtWindow: 0,
Abandoned: 0,
Called: 0,
CalledUp: 0,
AbandonRate: 0,
NoShowRate: 0,
AvgServiceSec: 0,
MedianServiceSec: 0,
AvgWaitSec: 0,
MaxWaitSec: 0,
AvgWalkUpSec: 0,
ExpectedServiceSec: 0,
SignedSec: 0,
ServingSec: 0,
PausedSec: 0,
IdleSec: 0,
UnstaffedSec: 0,
Utilization: 0,
IdleShare: 0,
PausedShare: 0,
Sessions: 0,
OpenDays: 0,
FeesEarned: 0,
AvgFee: 0,
FeesPerStaffedHour: 0,
ExpectedFeesPerStaffedHour: 0,
LaborCost: 0,
LaborPartial: False,
MissingCostEmployeeIds:
[
00000000000000000000000000000000
],
MissingCost:
[
{
Id: 00000000000000000000000000000000,
Name: String,
SignedSec: 0,
Served: 0
}
],
LaborLocked: False,
Contribution: 0,
LostFees: 0,
LostNoShowFees: 0,
Mix:
{
00000000000000000000000000000000: 0
},
HourlyServed:
[
0
],
HourlyFees:
[
0
],
HourlyCost:
[
0
],
Tints:
[
{
Field: String,
Tone: String,
Reason: String,
Value: 0,
Reference: 0,
BranchValue: 0
}
]
},
PerRowAverage:
{
Count: 0,
Served: 0,
AvgServiceSec: 0,
MedianServiceSec: 0,
AvgWaitSec: 0,
Utilization: 0,
IdleSec: 0,
PausedSec: 0,
NoShows: 0,
SignedSec: 0,
FeesEarned: 0,
FeesPerStaffedHour: 0,
LaborCost: 0,
Contribution: 0,
LostNoShowFees: 0
},
Sessions:
[
{
SessionId: 00000000000000000000000000000000,
StationId: 00000000000000000000000000000000,
StationName: String,
EmployeeId: 00000000000000000000000000000000,
EmployeeName: String,
LocalIn: 0001-01-01,
LocalOut: 0001-01-01,
IsOpen: False,
EndReason: String,
PausedSec: 0
}
],
Services:
[
{
LineId: 00000000000000000000000000000000,
Name: String,
Completed: 0,
AvgServiceSec: 0,
BranchAvgServiceSec: 0,
FeesEarned: 0,
FeeCurrent: 0,
FeeMin: 0,
FeeMax: 0,
FeePerMinute: 0,
BranchFeePerMinute: 0,
FeeChanges:
[
{
LocationId: 00000000000000000000000000000000,
OnDate: 0001-01-01,
FromFee: 0,
ToFee: 0
}
]
}
],
CanSeeStaff: False,
CanSeeFinancial: False,
CanSeePay: False
}
}