Skip to content

Instantly share code, notes, and snippets.

@jjmilburn
Last active October 30, 2020 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjmilburn/d26bc6044fdfbb8500c31cc57e17e67e to your computer and use it in GitHub Desktop.
Save jjmilburn/d26bc6044fdfbb8500c31cc57e17e67e to your computer and use it in GitHub Desktop.
POST_PAY Phone in Backend*
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?
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