Skip to content

Instantly share code, notes, and snippets.

@Sava4
Last active December 3, 2018 16:39
Show Gist options
  • Save Sava4/8fe6afd0400d18c906ec3bc6b20022f4 to your computer and use it in GitHub Desktop.
Save Sava4/8fe6afd0400d18c906ec3bc6b20022f4 to your computer and use it in GitHub Desktop.
Logged out*
Logged out*
Enter Phone Number -> Try Send SMS
Logged in
Sign out -> Logged out
Debt
Create Debt
Debt Details Input
Check Borrower Phone Number -> Try Send SMS
Borrower Confirm Debt Page
yes -> Confirmed Debt
Confirmed Debt
Returned Debt
SMS
Try Send SMS
Check SMS Gateway -> SMS Gateway Available?
OTP SMS Sent
OTP Password entered -> Logged in
3 minute passed -> OTP Password invalidated
OTP Password invalidated
New OTP Generated
Retry OTP -> OTP SMS Sent
Send OTP to New Number -> OTP SMS Sent
Sent OTP 10 times to same number -> Number Error
Link SMS Sent
Link followed -> Borrower Confirm Debt Page
3 minute passed -> Retry Link SMS again
Retry Link SMS again
Retry Link SMS -> Link SMS Sent
Send Link to New Number -> Link SMS Sent
Sent Link SMS 10 times to same number -> Number Error
API
SMS Gateway Available?
API Error -> API Unavailable?
API OK -> SMS Gateway OK
SMS Gateway OK
Send OTP -> OTP SMS Sent
Send Link SMS -> Link SMS Sent
API Unavailable?
Try again OTP -> OTP SMS Sent
Ty again Link SMS -> Link SMS Sent
Tried 5 times? -> API Error Exception
Errors
API Error Exception
Number Error
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