|
| 1 | +package com.amadeus.resources; |
| 2 | + |
| 3 | +import java.util.Date; |
| 4 | +import lombok.Getter; |
| 5 | +import lombok.ToString; |
| 6 | + |
| 7 | +/** |
| 8 | + * An Airline object as returned by the Airline Code LookUp API. |
| 9 | + * @see com.amadeus.booking.flightOrder#get() |
| 10 | + */ |
| 11 | +@ToString |
| 12 | +public class FlightOrder extends Resource { |
| 13 | + protected FlightOrder() {} |
| 14 | + |
| 15 | + private @Getter String type; |
| 16 | + private @Getter String id; |
| 17 | + private @Getter String queuingOfficeId; |
| 18 | + private @Getter AssociatedRecord[] associatedRecords; |
| 19 | + private @Getter Traveler[] travelers; |
| 20 | + private @Getter FlightOfferSearch[] flightOffers; |
| 21 | + |
| 22 | + @ToString |
| 23 | + public class AssociatedRecord { |
| 24 | + protected AssociatedRecord() { |
| 25 | + } |
| 26 | + |
| 27 | + private @Getter String reference; |
| 28 | + private @Getter String creationDateTime; |
| 29 | + private @Getter String originSystemCode; |
| 30 | + private @Getter String flightOfferId; |
| 31 | + } |
| 32 | + |
| 33 | + @ToString |
| 34 | + public class Traveler { |
| 35 | + protected Traveler() { |
| 36 | + } |
| 37 | + |
| 38 | + private @Getter String id; |
| 39 | + private @Getter Date dateOfBirth; |
| 40 | + private @Getter Name name; |
| 41 | + private @Getter Contact contact; |
| 42 | + private @Getter Document[] documents; |
| 43 | + } |
| 44 | + |
| 45 | + @ToString |
| 46 | + public class Name { |
| 47 | + protected Name() { |
| 48 | + } |
| 49 | + |
| 50 | + private @Getter String firstName; |
| 51 | + private @Getter String lastName; |
| 52 | + } |
| 53 | + |
| 54 | + @ToString |
| 55 | + public class Contact { |
| 56 | + protected Contact() { |
| 57 | + } |
| 58 | + |
| 59 | + private @Getter Phone[] phones; |
| 60 | + } |
| 61 | + |
| 62 | + @ToString |
| 63 | + public class Document { |
| 64 | + protected Document() { |
| 65 | + } |
| 66 | + |
| 67 | + private @Getter String documentType; |
| 68 | + private @Getter String number; |
| 69 | + private @Getter Date expiryDate; |
| 70 | + private @Getter String issuanceCountry; |
| 71 | + private @Getter String nationality; |
| 72 | + private @Getter boolean holder; |
| 73 | + } |
| 74 | + |
| 75 | + @ToString |
| 76 | + public class Phone { |
| 77 | + |
| 78 | + protected Phone() { |
| 79 | + } |
| 80 | + |
| 81 | + private @Getter String countryCallingCode; |
| 82 | + private @Getter String number; |
| 83 | + } |
| 84 | + |
| 85 | +} |
0 commit comments