Skip to content

OTST_TS_SNCF_EXCHANGE_EXCH_01

NicolasAU35 edited this page Oct 30, 2024 · 5 revisions

Description

Scenario with an offer request based on a trip specification for a passenger, booking request based on the response of the offer response. The booking will be fulfilled with status confirmed. Exchange the booking for another route. The trip is based on a single outbound leg.

Scenario

1.Generate and send a post offer request with a trip specification

2.Generate and send a post booking request

3.Generate and send a post fulfillment request

4.Generate and send a get booking request

5.Generate and send a post exchange offers request

6.Generate and send a post exchange operations request

7.Generate and send a post fulfillment request

8.Generate and send a get booking request

Example data for the exchange request

TBD

Suggested Validations per step

Step 1 to 4: same validation as made in the Offer/Book/Ticket scenario Step 5:

  • ExchangeFee / amount
  • exchangePrice / amount
  • fulFillments
  • offerID

Step 6:

  • Status PREBOOKED

Step 7:

  • Status : FULFILLED

Step 8:

  • Validate the price comparing the ExchangeFee and ExchangePrice (Fees amounbt calculated based on the exchange condition related to the choosen offer)
  • ExchangeOffers / ExchangeFee / Amount
  • ExchangeOffers / ExchangePrice / Amount