Skip to main content

TravelType

Defines a Travel Type managed by EventsAir.

For example, a Travel Type can be for:

  • Airline travel
  • Rail travel
  • Bus travel
  • International travel
  • Domestic travel
  • Any other designation that you want to define your travel types against
type TravelType {
alternateCurrencyCancelationAmounts: [Money!]!
cancelationAmount: Float!
cancelationTaxes: [TaxItem!]!
createdAt: DateTime!
createdBy: String
creditHours: Float!
customFields(
input: CustomFieldSearchFilterInput! = [object Object]
limit: PaginationLimit! = 100
offset: NonNegativeInt! = 0
): [CustomField!]! @deprecated
customFieldsPaged(
filterInput: CustomFieldAdvancedSearchFilterInput! = [object Object]
limit: PaginationLimit! = 100
offset: NonNegativeInt! = 0
): CustomFieldPage!
id: ID!
includeTravelTaxBeforeTaxCalculation: Boolean!
incomeAccount: Account!
lastModifiedAt: DateTime!
lastModifiedBy: String
name: String!
paymentStatuses: [PaymentStatus!]!
taxes: [TaxItem!]!
uniqueCode: String
}

Fields​

TravelType.alternateCurrencyCancelationAmounts ● [Money!]! non-null object​

The collection of cancelation amounts for this travel type in alternate currencies.

TravelType.cancelationAmount ● Float! non-null scalar​

The cancelation amount for the travel type.

TravelType.cancelationTaxes ● [TaxItem!]! non-null object​

The list of taxes that apply to a cancelation fee for the travel type.

TravelType.createdAt ● DateTime! non-null scalar​

The date and time the record was created.

TravelType.createdBy ● String scalar​

UTF-8 string value that represents the username of the user who created the record. Optional.

TravelType.creditHours ● Float! non-null scalar​

The number of credit hours for the travel type.

TravelType.customFields ● [CustomField!]! deprecated non-null object​

DEPRECATED

Use customFieldsPaged instead. It returns the same custom fields together with pagination metadata (total count, has-next-page) and exposes a richer filter input supporting both inclusion and exclusion semantics (eq, ne, in, notIn). This field will be removed in a future release.

A list of custom field values associated with this travel type.

CustomFields and CustomFieldDefinitions can be matched through the definitionId and id fields, respectively.

See CustomFieldSearchFilterInput for details on how the optional input argument can be used to filter custom fields.

Optionally, the offset and limit arguments can be used to page through multiple items:

  • offset must be a non-negative integer (defaults to 0).
  • limit must be a positive integer from 1 to 2000 (defaults to 100).
TravelType.customFields.input ● CustomFieldSearchFilterInput! non-null input​
TravelType.customFields.limit ● PaginationLimit! non-null scalar​
TravelType.customFields.offset ● NonNegativeInt! non-null scalar​

TravelType.customFieldsPaged ● CustomFieldPage! non-null object​

Custom fields associated with this record that match the filter criteria specified in the optional filterInput argument, returned together with pagination metadata.

See CustomFieldAdvancedSearchFilterInput for details on how the filterInput argument can be used. The filter supports both inclusion and exclusion semantics (eq, ne, in, notIn).

Optionally, the offset and limit arguments can be used to page through multiple items:

  • offset must be a non-negative integer (defaults to 0).
  • limit must be a positive integer from 1 to 2000 (defaults to 100).

Throws an error with code:

  • BAD_USER_INPUT if all fields in the filterInput argument have a combined total number of values exceeding 1,000.
TravelType.customFieldsPaged.filterInput ● CustomFieldAdvancedSearchFilterInput! non-null input​
TravelType.customFieldsPaged.limit ● PaginationLimit! non-null scalar​
TravelType.customFieldsPaged.offset ● NonNegativeInt! non-null scalar​

TravelType.id ● ID! non-null scalar​

The unique identifier for a travel type.

TravelType.includeTravelTaxBeforeTaxCalculation ● Boolean! non-null scalar​

A flag indicating whether to include the travel tax before tax calculation.

TravelType.incomeAccount ● Account! non-null object​

The income account for the travel type.

TravelType.lastModifiedAt ● DateTime! non-null scalar​

The date and time the record was last modified.

TravelType.lastModifiedBy ● String scalar​

UTF-8 string value that represents the username of the user who last modified the record. Optional.

TravelType.name ● String! non-null scalar​

A UTF-8 string representing the name of the travel type.

TravelType.paymentStatuses ● [PaymentStatus!]! non-null enum​

A list of valid payment statuses for this travel type.

TravelType.taxes ● [TaxItem!]! non-null object​

The list of taxes that apply to the travel type.

TravelType.uniqueCode ● String scalar​

A customer supplied, UTF-8 string value that represents a unique code for the travel type. Optional.

The value must be unique across all travel types for an event.

Member Of​

CreateTravelTypePayload object ● Sector object ● TravelBooking object ● TravelSetup object ● UpdateTravelTypePayload object