Created
March 23, 2020 05:35
-
-
Save bodhi/c199dfe1f6b1a3f35c1a8abca38d0b61 to your computer and use it in GitHub Desktop.
Ordering&
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
Ordering& | |
Browser | |
PDP | |
add to cart -> PDP | |
buy -> Fulfilment | |
checkout -> Fulfilment | |
Fulfilment | |
confirm -> Check-in | |
Check-in | |
check in -> Confirmation | |
Confirmation | |
Payment | |
Not Started | |
add to cart -> Started Intent | |
buy -> Started Intent | |
checkout -> Started Intent | |
Started Intent | |
confirm -> Authorised | |
Authorised | |
check in -> Captured | |
Captured | |
refund -> Payment Refunded | |
Payment Refunded | |
FOE | |
Empty | |
check in -> Order Received | |
Order Received | |
ROM | |
No | |
check in -> Refundable | |
Refundable | |
refund -> Refunded | |
Refunded |
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 = model.root.children[0].children[0].children.find(s => s.is_active); | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state.name} ${Object.keys(current_state)}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment