Provides vendor contract info for a client.
| name | data type | constraints | description |
|---|---|---|---|
| favorite | boolean | required boolean | Whether the contract is a favorite |
| expirationDate | number | The expiration date for this contract | |
| type | string | The type of contract. | |
| contractLocation | string | The location of the contract pdf | |
| travelType | ClientTravelType | required | The travel type for this contract. Must be either air, car, hotel, or other |
| ignored | boolean | required boolean | Whether or not this contract should be ignored during validation. |
Properties inherited from AirportalClientContract |
|||
| client | Client | ||
| notes | string | ||
| accountNumber | string | ||
| name | string | ||
| chain | AirportalVendor | ||
| preferred | boolean | required boolean | |
Properties inherited from BaseHibernateEntity |
|||
| id | number | The unique internal ID of the object. | |
| version | number | For internal use only. This is the serialization recorder for optimistic locking of several objects between sessions. | |
Properties inherited from BaseEntity |
|||
| violations | array of SimpleViolation | A list of constraint violations, if any, that this object has. | |
Example
{
"favorite" : true,
"expirationDate" : 12345,
"type" : "...",
"contractLocation" : "...",
"travelType" : {
"travelType" : "...",
"code" : "...",
"id" : 12345,
"version" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"ignored" : true,
"client" : {
"status" : {
"name" : "...",
"active" : true,
"id" : 12345,
"version" : 12345,
"violations" : [ { }, { } ]
},
"parentClient" : { },
"accountNumber" : "...",
"name" : "...",
"type" : {
"name" : "...",
"hide" : true,
"level" : 12345,
"id" : 12345,
"version" : 12345,
"violations" : [ { }, { } ]
},
"id" : 12345,
"version" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"notes" : "...",
"accountNumber" : "...",
"name" : "...",
"chain" : {
"code" : "...",
"name" : "...",
"id" : 12345,
"version" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
},
"preferred" : true,
"id" : 12345,
"version" : 12345,
"violations" : [ {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
}, {
"propertyName" : "...",
"failureMessage" : "...",
"stackTrace" : "..."
} ]
}