(a) If you authorize the Credit Card first and then try to save the itinerary which fails because "seat" is no more available then you will have to void the credit card transaction.
(b) If you store the itinerary and then do the credit card transaction, which does not go thru then you have to roll back the itinerary freeing up the seat.
I feel the architecture/proposed design should address the problem in hand, atleast to some extent.
What do you think about the following scenario:
What is the main purpose of the Change Itinerary use case ?
(a) Allow the user to make changes to paid itinerary OR
(b) Allow the user to make changes to unpaid itinerary.
If the purpose is to allow the user to make changes to unpaid itinerary, then we do not have a choice. It is implied that unpaid itineraries will be saved in the database. The use case states that user will first select the itinerary and the segment within it.
If the purpose is to allow the user to make changes to paid itinerary, then in our credit card (and FFM) transactions, we need to show somekind of debit/credit transaction posting.
But I think we need to provide some provision for saving unpaid itinerary because the "Change Itinerary" use case clearly says that the system presents a list of itineraries, the customer selects the itinerary to change, system returns the selected itinerary, which includes each segment of the itinerary.
(a) Change Itineray use case will allow changes to the current itinerary being prepared.
(b) It will also allow changes to the paid itinerary.
(c) and since unpaid itineraries are not saved in the database so no changes can be done if customer leaves the application before paying for it.
But I think we need to provide some provision for saving unpaid itinerary because the "Change Itinerary" use case clearly says that the system presents a list of itineraries, the customer selects the itinerary to change, system returns the selected itinerary, which includes each segment of the itinerary.
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|