Property Descriptions
SDK Initialisation Parameters
- style
- An optional CTStyle object, used to set the fonts as well as the primary and secondary colors in the SDK.
Please ensure any custom fonts used are included in your main bundle.
Initialising CTContext for In Path Grid View
To initialise the In Path flow, it is necessary to instantiate a CTContext and CTFlighDetails objects.
Parameter | Description | Example | Type |
---|---|---|---|
implementationID | [Required] An implementation ID, provided by CarTrawler and required to fetch the partner configuration. | 9f3e1d7c-3e44-49f2-b1c9-ra4e7c2f59b | String |
clientID | [Required] A client ID, required to use the CarTrawler API. | 564488 | Integer |
flow | [Required] The flow to be launched. Must be .inPath | .inPath | Enum |
countryCode | A country code, such as “US”. Default is the device location if not provided. | IE | String |
currencyCode | A currency code, based on the ISO standard currency codes e.g “USD”. The currency associated with the device’s system region is used by default. | EUR | String |
languageCode | A language code to switch between languages. Default is “EN” if not provided. | Economy | String |
flightDetails | [Required] The flight details | CTFlightDetails() | CT Object. |
CTFlightDetails object:
Parameter | Description | Example | Type |
---|---|---|---|
flightOrigin | [Required] Origin flight details separated by pipes: IATA departure, IATA arrival, datetime departure, datetime arrival, flight number. | DUB|LHR|2025-01-16T06:05:00|2025-01-16T07:25:00|XX8719 | String |
flightReturn | [Required] (return flights only) Return flight details separated by pipes: IATA departure, IATA arrival, datetime departure, datetime arrival, flight number. | LHR|DUB|2025-01-22T21:20:00|2025-01-23T22:45:00|XX8720 | String |
passengerBreakdown | Breakdown of Adults, Teens, Children and Infants | CTFlightPassengerBreakdown(adults: 2, teens: 0, children: 0, infants: 0) | CT Object |
firstName | First name of the customer. | John | String |
surName | Surname of the customer. | Doe | String |
customerEmail | Email address of the customer. | john.doe@example.com | String |
fareClass | Flight class selected by the customer. Map to values like economy, business, etc. | business | String |
flightFare | Total price of the flight fare in the selected currency. | 175.95 | Double |
bags | Number of extra bags added by the customer. | 1 | UInt |
loyaltyNumber | Loyalty program membership ID, if applicable. | ABC123456 | String |
loyaltyTier | Loyalty program tier name, if applicable. | gold | String |
context | Where in the flow the grid view is loaded. IN_PATH or CONFIRMATION | IN_PATH | String |