Skip to content

Commit

Permalink
Add the CfarPassenger in the example of exercise creation
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémy Pinet <[email protected]>
  • Loading branch information
jpinetHCAP committed Apr 17, 2024
1 parent 3c7c65e commit 0a2abe4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,12 @@ An array of arbitrary key-value pairs for storing airline-specific entity metada
Ancillary ancillary = new Ancillary();
ancillary.setType(AncillaryType.TRAVEL_INSURANCE);
ancillary.setTotalPrice("30.55");
ancillary.setPassengerReference("1");
CfarPassenger pax = new CfarPassenger();
pax.setPassengerReference("1");
pax.setPassengerType(PassengerType.ADULT);
CfarItinerarySlice cfarItinerarySlice = new CfarItinerarySlice();
CfarItinerarySliceSegment cfarItinerarySliceSegment = new CfarItinerarySliceSegment();
cfarItinerarySliceSegment.setArrivalDateTime("2022-09-15T19:12:30");
Expand Down Expand Up @@ -907,7 +912,8 @@ An array of arbitrary key-value pairs for storing airline-specific entity metada
itinerary.setSlices(Collections.singletonList(cfarItinerarySlice));
itinerary.setAncillaries(Collections.singletonList(ancillary));
itinerary.setPassengerPricing(Collections.singletonList(passengerPricing));
itinerary.setPassengers(Collections.singletonList(pax));
createCfarContractExerciseRequest.setItinerary(itinerary);
CfarContractExercise cfarContractExercise = client.createfarContractExercise(sessionId, createCfarContractExerciseRequest);
```
Expand Down

0 comments on commit 0a2abe4

Please sign in to comment.