Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SeatMap Resource #274

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions src/main/java/com/amadeus/resources/SeatMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,78 @@ protected Arrival() {}
public class Deck {
private @Getter String deckType;
private @Getter DeckConfiguration deckConfiguration;
private @Getter Facility[] facilities;
private @Getter Seat[] seats;

protected Deck() {}
}

@ToString
public class Facility {
private @Getter String code;
private @Getter String column;
private @Getter String row;
private @Getter String position;
private @Getter Coordinates coordinates;

protected Facility() {}
}

@ToString
public class Coordinates {
private @Getter int coordX;
private @Getter int coordY;

protected Coordinates() {}
}

@ToString
public class Seat {
private @Getter String cabin;
private @Getter String number;
private @Getter String[] characteristicsCodes;
private @Getter SeatmapTravelerPricing[] travelerPricings;
private @Getter Coordinates coordinates;

protected Seat() {}
}

@ToString
public class SeatmapTravelerPricing {
private @Getter String travelerId;
private @Getter String seatAvailabilityStatus;
private @Getter Price price;

protected SeatmapTravelerPricing() {}
}

@ToString
public class Price {
private @Getter String currency;
private @Getter String total;
private @Getter String base;
private @Getter Fee[] fees;
private @Getter Tax[] taxes;

protected Price() {}
}

@ToString
public class Fee {
private @Getter String amount;
private @Getter String type;

protected Fee() {}
}

@ToString
public class Tax {
private @Getter String amount;
private @Getter String code;

protected Tax() {}
}

@ToString
public class AircraftCabinAmenities {
private @Getter AmenityPower power;
Expand Down
Loading