Skip to content

Commit 7b6db26

Browse files
committed
fl availability flightdate fl destination fl offers search
1 parent aee5d96 commit 7b6db26

File tree

4 files changed

+68
-89
lines changed

4 files changed

+68
-89
lines changed

src/main/java/com/amadeus/resources/FlightAvailability.java

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*/
1212
@ToString
1313
public class FlightAvailability extends Resource {
14-
protected FlightAvailability() {}
15-
1614
private @Getter String type;
1715
private @Getter String id;
1816
private @Getter String originDestinationId;
@@ -22,10 +20,10 @@ protected FlightAvailability() {}
2220
private @Getter String duration;
2321
private @Getter ExtendedSegment[] segments;
2422

23+
protected FlightAvailability() {}
24+
2525
@ToString
2626
public class ExtendedSegment {
27-
protected ExtendedSegment() {}
28-
2927
private @Getter String closedStatus;
3028
private @Getter AvailabilityClass[] availabilityClasses;
3129
private @Getter String id;
@@ -40,69 +38,70 @@ protected ExtendedSegment() {}
4038
private @Getter OperatingFlight operating;
4139
private @Getter String duration;
4240
private @Getter FlightStop[] stops;
41+
42+
protected ExtendedSegment() {}
4343
}
4444

4545
@ToString
4646
public class FlightEndpoint {
47-
protected FlightEndpoint() { }
48-
4947
private @Getter String iataCode;
5048
private @Getter String terminal;
5149
private @Getter String at;
50+
51+
protected FlightEndpoint() {}
5252
}
5353

5454
@ToString
5555
public class AircraftEquipment {
56-
protected AircraftEquipment() {}
57-
5856
private @Getter String code;
57+
58+
protected AircraftEquipment() {}
5959
}
6060

6161
@ToString
6262
public class AvailabilityClass {
63-
protected AvailabilityClass() {}
64-
6563
private @Getter int numberOfBookableSeats;
6664
@SerializedName("class")
6765
private @Getter String segmentClass;
6866
private @Getter String closedStatus;
6967
private @Getter TourAllotment tourAllotment;
68+
69+
protected AvailabilityClass() {}
7070
}
7171

7272
@ToString
7373
public class FlightStop {
74-
protected FlightStop() {}
75-
7674
private @Getter String iataCode;
7775
private @Getter String duration;
7876
private @Getter String arrivalAt;
7977
private @Getter String departureAt;
78+
79+
protected FlightStop() {}
8080
}
8181

8282
@ToString
8383
public class OperatingFlight {
84-
protected OperatingFlight() {}
85-
8684
private @Getter String carrierCode;
85+
86+
protected OperatingFlight() {}
8787
}
8888

8989
@ToString
9090
public class TourAllotment {
91-
protected TourAllotment() {}
92-
9391
private @Getter String tourName;
9492
private @Getter String tourReference;
9593
private @Getter String mode;
9694
private @Getter String remainingSeats;
95+
96+
protected TourAllotment() {}
9797
}
9898

9999
@ToString
100100
public class Co2Emission {
101-
protected Co2Emission() {
102-
}
103-
104101
private @Getter int weight;
105102
private @Getter String weightUnit;
106103
private @Getter String cabin;
104+
105+
protected Co2Emission() {}
107106
}
108107
}

src/main/java/com/amadeus/resources/FlightDate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
*/
1111
@ToString
1212
public class FlightDate extends Resource {
13-
protected FlightDate() {}
14-
1513
private @Getter String type;
1614
private @Getter String origin;
1715
private @Getter String destination;
1816
private @Getter Date departureDate;
1917
private @Getter Date returnDate;
2018
private @Getter Price price;
2119

20+
protected FlightDate() {}
21+
2222
/**
2323
* An FlightDate-related object as returned by the FlightDates API.
2424
* @see com.amadeus.shopping.FlightDates#get()
2525
*/
2626
@ToString
2727
public class Price {
28-
protected Price() {}
29-
3028
private @Getter double total;
29+
30+
protected Price() {}
3131
}
3232
}

src/main/java/com/amadeus/resources/FlightDestination.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
*/
1111
@ToString
1212
public class FlightDestination extends Resource {
13-
protected FlightDestination() {}
14-
1513
private @Getter String type;
1614
private @Getter String origin;
1715
private @Getter String destination;
1816
private @Getter Date departureDate;
1917
private @Getter Date returnDate;
2018
private @Getter Price price;
2119

20+
protected FlightDestination() {}
21+
2222
/**
2323
* An FlightDestination-related object as returned by the FlightDestinations API.
2424
* @see com.amadeus.shopping.FlightDestinations#get()
2525
*/
2626
@ToString
2727
public class Price {
28-
protected Price() {}
29-
3028
private @Getter double total;
29+
30+
protected Price() {}
3131
}
3232
}

0 commit comments

Comments
 (0)