AuthorizedRider
The following methods are exposed in the AuthorizedRider, which is received on successful login.
-
Log out the current user.
-
Check whether the user has accepted the Popup terms and conditions.
-
Check whether a user is logged in.
-
Check whether the logged in user is currently in a ride.
-
Get the logged in user's active ride, if it exists.
-
Check whether the a given ride can be requested. Checks whether the pickup location is in a valid area, the user is enabled, and has atleast one payment method.
-
Request a ride.
-
Request a fare estimate.
-
Get a list of the nearby drivers.
-
Add a new payment credit card for the logged in user.
-
Delete a credit card for a logged in user.
-
Mark a payment method as the primary payment method.
-
Update a payment method.
-
Get the entire payment history for a logged in user.
-
Get a part of the users payment history, by defining the page size and page number.
-
Check if the user has an unpaid ride.
-
Pay off the balance for any unpaid ride.
-
Register the token with the popup server to receive notifications. This is automatically done during login, but must be also called when Firebase refreshed the token.
-
Send an email to Popup support.
-
Get available support topics by avatar type.
-
Get chidlren of a support topic.
-
Get a support form by topic ID.
-
Send a support request.
-
Contact support over a lost or found item. TODO: These params reflect SupportFieldViewModel. Should we expose that as well?
-
Post information about a lost item.
-
Post information about a found item.
-
Update a user's details. Accepts the updated user object.
-
Request an email to be sent in case of a forgotten password. If the email is valid, the user will receive an email with their new password.
-
Update the password for a user.