Skip to content

OTST_TS_OB_BOOK_01

Patrick Heuguet edited this page Oct 26, 2024 · 8 revisions

Work In Progress

Description

The scenario will book an offer reusing the content of OTST_TS_OB_OFER_01

Step 1: Selection of the offer to be booked

Based on config file parameters, select the first offer which fit parameters criterias. If no offers fit select the offer which meet the higest number of criterias and send a warning on criterias not meet. and if no criterias are meet, select the first offer and send a warning. For the first delivery, only one criteria will be triggered : "overallFlexibility", in a futur evolution more criterias could be added like (isTrainBound, isReturnProduct, includedReservations, throughTicketTags...)

Step 2: Validation of the booking replay

Once the offer is selected, the scenario sends a Post/bookings/{bookingId}/booked-offers to create a bookedOffers from offers and adds them in a booking.

  • First check the return code and If 200 : check following parameters:
    • Warning : check if some wrning are p^rovided. If yes display in the report the warning for information.
    • bookedOfferIds : Check that the paratemer is returned not empty.
    • Then check then that the offerbooked is consistent with the offer the customer selected Based on the following data struture diagramm OSDM data structure diagramm

Clone this wiki locally