Typedef
Static Public Summary | ||
public |
XMLHttpRequest is a global object with a Fake XMLHttpRequest function ( useFakeXMLHttpRequest() ) to run the SDK test cases. |
|
public |
dataObjects is a global object, which returns a new instance of each class. |
|
public |
|
|
public |
dataObjects.date returns a new instance of Date class. |
|
public |
dataObjects.dateOfBirth returns a new instance of DateOfBirth class. |
|
public |
dataObjects.flight returns a new instance of Flight class. |
|
public |
dataObjects.leg returns a new instance of Leg class. |
|
public |
dataObjects.passengerCounts returns a new instance of PassengerCount class. |
|
public |
dataObjects.personInfo returns a new instance of PersonInfo class. |
|
public |
dataObjects.purchaseData returns a new instance of PurchaseData class. |
|
public |
dataObjects.segment returns a new instance of Segment class. |
|
public |
dataObjects.slice returns a new instance of Slice class. |
|
public |
dataObjects.trip returns a new instance of Trip class. |
|
public |
dataObjects.tripData returns a new instance of TripData class. |
|
public |
fBird is another global object including various calls like GET and POST calls. |
|
public |
fBird.get takes the auth Token and does the authentication for the user. |
|
public |
fBird.post returns with a request call on the pricing endpoint. |
Static Public
public XMLHttpRequest: Object source
XMLHttpRequest is a global object with a Fake XMLHttpRequest function ( useFakeXMLHttpRequest() ) to run the SDK test cases.
public dataObjects: Object source
dataObjects is a global object, which returns a new instance of each class.
public dataObjects.dateOfBirth: Object source
dataObjects.dateOfBirth returns a new instance of DateOfBirth class.
public dataObjects.leg: Object source
dataObjects.leg returns a new instance of Leg class.
Properties:
Name | Type | Attribute | Description |
aircraft | string | Aircraft is flying between an origin and destination. |
|
arrival | string | Flight arrival date in Jodatime format |
|
departure | string | Flight departure date in Jodatime format |
|
origin | string | Source origin of the flight |
|
destination | string | Flight Destination |
|
operatingDisclosure | string | Department of Transportation disclosure information on the actual operator of a flight in a code share. |
|
changePlane | boolean | Whether the passenger(s) have to change planes following this leg. Only applies to the next leg. |
|
data | string | [OPTIONAL] any client specific key-value pair specific to leg |
public dataObjects.passengerCounts: Object source
dataObjects.passengerCounts returns a new instance of PassengerCount class.
public dataObjects.personInfo: Object source
dataObjects.personInfo returns a new instance of PersonInfo class.
Properties:
Name | Type | Attribute | Description |
gender | string | Gender of the passenger |
|
firstName | string | First name of the passenger |
|
lastName | string | Last name of the passenger |
|
middleName | string | Middle name of the passenger |
|
dateOfBirth | object | Date Of Birth of the passenger |
|
phone | string | Phone number of the passenger |
|
string | Email of the passenger |
||
isDeciderToPay | boolean | Is he the decider to pay? |
|
isPayer | boolean | Is he the Payer? |
|
isPassenger | boolean | Is he the passenger himself? |
|
isBookingPerson | boolean | Is he the booking person? |
public dataObjects.purchaseData: Object source
dataObjects.purchaseData returns a new instance of PurchaseData class.
Properties:
Name | Type | Attribute | Description |
priceRequestId | number | This is the pricing ID , received from the pricing API |
|
clientNonce | string | ClientNonce can be GOLD, PREMIUM or PLATINUM |
|
priceTier | string | PriceTier |
|
tripData | object | This is received from the TripData Class |
|
pciTransactionId | string | Payment Transaction ID |
|
data | string | Data having payment related details of the purchased transaction |
public dataObjects.segment: Object source
dataObjects.segment returns a new instance of Segment class.
Properties:
Name | Type | Attribute | Description |
duration | number | Flight duration |
|
flight | object | Flight object having flight details |
|
cabin | string | Booked Cabin in the Flight |
|
bookingCode | string | The booking code or class for this segment. |
|
bookingCodeCount | number | The number of seats available in this booking code on this segment. |
|
data | string | [OPTIONAL] any client specific key-value pair specific to segment |
|
leg | object[] | Leg object comprising of the details about the hop taken by a flight.Segment can have multiple legs |
public dataObjects.trip: Object source
dataObjects.trip returns a new instance of Trip class.
Properties:
Name | Type | Attribute | Description |
missedConnections | boolean | - |
|
passengerCounts | object | Passenger count object having the total count of travelling passengers. |
|
data | string | [OPTIONAL] any client specific key-value pair specific to trip. |
|
slices | object[] | Slice object having trip info. Trip can have multiple slices. |
public dataObjects.tripData: Object source
dataObjects.tripData returns a new instance of TripData class.
public fBird: Object source
fBird is another global object including various calls like GET and POST calls.
public fBird.get: source
fBird.get takes the auth Token and does the authentication for the user.