Last active
March 14, 2023 09:52
-
-
Save BurningDog/3bc59fd429929822a36ea0e810f3c5d9 to your computer and use it in GitHub Desktop.
MSC Manual Booking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MSC Manual Booking | |
GOTO -> Populate MscCruiseBooking from MscRetrieveBooking response | |
Enter MSC booking number | |
Create manual booking -> Make Manual Booking | |
Make Manual Booking | |
Does booking exist? | |
Yes -> End | |
No -> MSC API 3 Retrieve Booking | |
End | |
MSC API 3 Retrieve Booking | |
Do Retrieve Booking -> Create new booking | |
Create new booking | |
Check for Itinerary Code and number of nights | |
Use CruiseAirPricingRepository REFACTOR -> Create HuplaBooking | |
Create HuplaBooking | |
HuplaBooking created -> Check for local cruise | |
Check for local cruise | |
Use CruiseItineraryRepository REFACTOR -> Check for Ship Code | |
Check for Ship Code | |
Use CruiseAirPricingRepository REFACTOR -> MscCruiseBooking created | |
MscCruiseBooking created | |
Created -> Populate MscCruiseBooking from MscRetrieveBooking response | |
Populate MscCruiseBooking from MscRetrieveBooking response | |
Done 2 -> Handle API Response | |
Handle API Response | |
Create or update the MscRetrieveBooking | |
Done 3 -> Create or update MscChargeItems | |
Create or update MscChargeItems | |
Done 4 -> Create or update MscAdditionalItems | |
Create or update MscAdditionalItems | |
Done 5 -> Booking State Transitions | |
Booking State Transitions | |
Cruise Has Availability | |
Create Hubspot Deal -> Proceed to Checkout | |
Proceed to Checkout | |
Update Hubspot Deal Stage | |
Done 6 -> Update Hubspot Contact Property | |
Update Hubspot Contact Property | |
Done 7 -> End | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment