TravelPolicyViolation Data Type

A violation that is caused from a violation in travel policy rules. Created by nick on 1/29/15.

Properties
name data type description
action TravelPolicyAction The action that should be taken because of the violation.
type TravelPolicyRuleType
identifier string A way to determine which object inside the trip threw the violation. Could be segment number or ticket number.
override boolean The value indicates if the rule class needs to be override.
Properties inherited from SimpleViolation
propertyName string The property name.
failureMessage string The message for the failure that should be displayed for the user.
stackTrace string

Example

{
  "action" : {
    "name" : "...",
    "description" : "...",
    "possibleReviewers" : [ {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    }, {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    } ],
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "type" : {
    "description" : "...",
    "message" : "...",
    "travelType" : {
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "valueType" : "...",
    "operators" : [ {
      "code" : "...",
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    }, {
      "code" : "...",
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    } ],
    "units" : [ {
      "code" : "...",
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    }, {
      "code" : "...",
      "name" : "...",
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    } ],
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "identifier" : "...",
  "override" : true,
  "propertyName" : "...",
  "failureMessage" : "...",
  "stackTrace" : "..."
}