Skip to content

Fare based distribution Shop Book Ticket

CGantert345 edited this page Sep 11, 2025 · 2 revisions

Description

Scenario with an offer request for fares based on a trip specification, booking request based on the response of the offer response. The booking will be fulfilled. After fulfilling the booking request a refund, retrieve it, patch it with status confirmed. Retrieve the booking to test the refund was processed correctly. The trip is based on a single outbound leg

Scenario

  1. Generate and send a post offer request with a trip specification
    • indicate FARE_ADMISSION in offerSearchCriteria->offerParts
    • set isPartOfInternationalTrip to true
    • add requestedSections from a fare connection point to a station (fitting to the trip specification)
  2. Generate and send a post booking request 3a. Generate and send a post fulfillment request 3b. request the fulfillment via get fulfillment
  3. Generate and send a get booking request
  4. Generate and send a post refund offer request
  5. Generate and send a get refund offer request
  6. Generate and send a get booking request
  7. Generate and send a patch refund offer request
  8. Generate and send a get booking request

Example data

Suggested Validations per step

  1. Generate and send a post offer request with a trip specification
    • One or more fares should be provided
    • the fares should cover the requested section
    • the fares should cover the requested passengers (same as in usual offers)
    • a regional validity must be provided in the fare(s)
    • combination constraints with combination model(s) must be provided in the fare(s)
    • after sales conditions must be provided
    • travelValidityConstraint must be provided
    • for rail involvedTCOs must be provided
    • fare type must be ADMISSION 3b. request the fulfillment
    • the fulfillment documents are missing or empty

Clone this wiki locally