OfficeInfo Data Type

An object defining the basic abilities we want all of our hibernate objects to have.

Properties
name data type constraints description
pcc string required
name string  
address1 string  
address2 string  
address3 string  
city string  
state string  
zip string  
parentCompany TravelManagementCompany required The parent company of this department / office.
active string required Whether or not this office is active.
branch string   The branch code for the office.
clientPrefix string   If the agency's clients have a prefix added to all of their account numbers, add them here.
profileSettings OfficeProfileSettings   The profile settings of this office, as a travel agency.
afterHoursNumber string   The agency's after hours phone number.
collectVoidLogs boolean   Whether or not to collect void logs for this PCC.
gds GlobalDistributionSystem   The GDS that this office uses.
arcNumber string max size: 9, min size: 0 This office's ARC number.
string  
logoLink string  
afterHoursInternationalNumber string  
tollFreeNumber string  
phoneNumber string  
onlineOffice OnlineSupportOffice  
accountNumbers string  
showTmcAppLinks boolean  
vipTollFree string   A VIP number for regular office hours.
vipAfterHours string   A VIP number for after hours.
cityCode City required The city that this office resides in.
tmcHeadQuarters boolean   Whether or not this office is the headquarters of the TMC.
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

{
  "pcc" : "...",
  "name" : "...",
  "address1" : "...",
  "address2" : "...",
  "address3" : "...",
  "city" : "...",
  "state" : "...",
  "zip" : "...",
  "parentCompany" : {
    "name" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "active" : "...",
  "branch" : "...",
  "clientPrefix" : "...",
  "profileSettings" : {
    "profileNameFormat" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "afterHoursNumber" : "...",
  "collectVoidLogs" : true,
  "gds" : {
    "code" : "...",
    "oldCode" : "...",
    "name" : "...",
    "agressoCode" : "...",
    "enabled" : true,
    "profileSyncEnabled" : true,
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "arcNumber" : "...",
  "logo" : "...",
  "logoLink" : "...",
  "afterHoursInternationalNumber" : "...",
  "tollFreeNumber" : "...",
  "phoneNumber" : "...",
  "onlineOffice" : {
    "name" : "...",
    "hours" : "...",
    "phone" : "...",
    "tollFree" : "...",
    "email" : "...",
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "showTmcAppLinks" : true,
  "vipTollFree" : "...",
  "vipAfterHours" : "...",
  "cityCode" : {
    "code" : "...",
    "countryCode" : "...",
    "latitude" : 12345.0,
    "longitude" : 12345.0,
    "name" : "...",
    "stateOrCountry" : "...",
    "airportName" : "...",
    "region" : {
      "name" : "...",
      "code" : "...",
      "country" : { },
      "position" : 12345,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "timeZone" : {
      "name" : "...",
      "offset" : 12345.0,
      "daylightSavingsOffset" : 12345.0,
      "id" : 12345,
      "version" : 12345,
      "violations" : [ { }, { } ]
    },
    "retentionOnly" : true,
    "position" : 12345,
    "unique" : true,
    "alias" : true,
    "id" : 12345,
    "version" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "tmcHeadQuarters" : true,
  "id" : 12345,
  "version" : 12345,
  "violations" : [ {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  }, {
    "propertyName" : "...",
    "failureMessage" : "...",
    "stackTrace" : "..."
  } ]
}