Last active
May 6, 2021 09:53
-
-
Save lifedraft/3ae3595ac78eb7014cdf08e2b3d73c40 to your computer and use it in GitHub Desktop.
Billing
This file contains hidden or 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
Billing | |
FetchBilling | |
done -> Guard | |
Guard | |
doneLoggedIn -> LoggedIn | |
doneGuest -> Guest | |
LoggedIn | |
GuardLoggedIn | |
withoutAddresses -> WithoutAddresses | |
withAddresses -> WithAddresses | |
WithoutAddresses | |
IdleWithoutAddresses | |
submit -> UpdateBilling | |
UpdateBilling | |
done -> SetPayment | |
fail -> IdleWithoutAddresses | |
WithAddresses | |
IdleWithAddress | |
selectAddress -> updateBillingByUUID | |
updateBillingAddres -> updateBillingWithAddress | |
updateBillingByUUID | |
done -> SetPayment | |
fail -> IdleWithAddress | |
updateBillingWithAddress | |
done -> SetPayment | |
fail -> IdleWithAddress | |
Guest | |
GuestIdle | |
submit -> GuestUpdateBilling | |
GuestUpdateBilling | |
done -> SetPayment | |
fail -> GuestIdle | |
SetPayment | |
done -> Success | |
Success |
This file contains hidden or 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