Skip to content

Commit 29d1cd5

Browse files
committed
add constructor to accept only first and last names
1 parent 5c36c7e commit 29d1cd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public static class Name {
5454
private @Getter @Setter String firstName;
5555
private @Getter @Setter String lastName;
5656
private @Getter @Setter String middleName;
57+
58+
// Constructor with firstName and lastName only
59+
public Name(String firstName, String lastName) {
60+
this.firstName = firstName;
61+
this.lastName = lastName;
62+
}
5763
}
5864

5965
@AllArgsConstructor

0 commit comments

Comments
 (0)