The most basic entity type in our domain. We require that there is a location open to enter violations, so that this information can be returned to the client.
| name | data type | description |
|---|---|---|
| airSavings | VasrSavingsInfo | |
| carSavings | VasrSavingsInfo | |
| hotelSavings | VasrSavingsInfo | |
| agentName | string | |
| agentOfficeId | number | |
| agentCode | string | |
| totalSavings | VasrSavingsInfo | |
| agentId | number | |
Properties inherited from BaseEntity |
||
| violations | array of SimpleViolation | A list of constraint violations, if any, that this object has. |
Example
{
"airSavings" : {
"numBookings" : 12345,
"savingsAmount" : 12345.0,
"savingsAverage" : 12345.0,
"bookingsWithHardSavings" : 12345,
"softSavings" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"carSavings" : {
"numBookings" : 12345,
"savingsAmount" : 12345.0,
"savingsAverage" : 12345.0,
"bookingsWithHardSavings" : 12345,
"softSavings" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"hotelSavings" : {
"numBookings" : 12345,
"savingsAmount" : 12345.0,
"savingsAverage" : 12345.0,
"bookingsWithHardSavings" : 12345,
"softSavings" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"agentName" : "...",
"agentOfficeId" : 12345,
"agentCode" : "...",
"totalSavings" : {
"numBookings" : 12345,
"savingsAmount" : 12345.0,
"savingsAverage" : 12345.0,
"bookingsWithHardSavings" : 12345,
"softSavings" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"agentId" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
}