Last active
October 30, 2020 02:27
-
-
Save jjmilburn/d26bc6044fdfbb8500c31cc57e17e67e to your computer and use it in GitHub Desktop.
POST_PAY Phone in Backend*
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
POST_PAY Phone in Backend* | |
No unit record* | |
# Upload IMEIs to Angaza, we will attempt to upload to Samsung | |
batch_upload ->SHOULD_UPLOAD | |
SHOULD_UPLOAD | |
# successfully sets reported data, marks as uploaded OK to samsung | |
activation_success ->UPLOADED | |
UPLOADED& | |
set_desired_credit_until_in_past->-disable unit- is PostPaid model? | |
set_desired_credit_until_in_future->-enable unit- is PostPaid model? | |
Device Knox State | |
LOCKED* | |
ENROLLED | |
credit_until | |
past* | |
future | |
-disable unit- is PostPaid model? | |
no -> set_credit_until_in_past | |
yes -> LOCKED | |
set_credit_until_in_past | |
API success?->past | |
-enable unit- is PostPaid model? | |
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){ | |
if (model.active_states[1]) | |
{ | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${model.active_states[0].name}, ${model.active_states[1].name}`); | |
} | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${model.active_states[0].name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment