Skip to content

Commit

Permalink
add constructor to accept only first and last names
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolakoua committed Jun 5, 2024
1 parent 5c36c7e commit 29d1cd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/amadeus/resources/FlightOrder.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public static class Name {
private @Getter @Setter String firstName;
private @Getter @Setter String lastName;
private @Getter @Setter String middleName;

// Constructor with firstName and lastName only
public Name(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
}

@AllArgsConstructor
Expand Down

0 comments on commit 29d1cd5

Please sign in to comment.