Skip to content

Instantly share code, notes, and snippets.

@lifedraft
Last active May 6, 2021 09:53
Show Gist options
  • Save lifedraft/3ae3595ac78eb7014cdf08e2b3d73c40 to your computer and use it in GitHub Desktop.
Save lifedraft/3ae3595ac78eb7014cdf08e2b3d73c40 to your computer and use it in GitHub Desktop.
Billing
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
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