DisbursementDepositScreenViewModel
ViewModel for the Disbursement Deposit screen.
On submit it runs the full Disbursement deposit flow against the SDK:
deposit— sends money to the payee's wallet (HTTP 202).getDepositStatus— polls the outcome and posts it to depositStatus.
The screen shows the input form while depositStatus is null and the result once it is set. Authentication is handled automatically by the SDK's interceptor/authenticator, so the ViewModel only guards on the presence of an access token before starting.
Constructors
Properties
The current delivery note entered in the form.
Holds the DepositStatus returned by the API; null while no request has succeeded.
The current financial ID entered in the form.
The current payer message entered in the form.
The current phone number entered in the form.
The current reference ID to refund entered in the form.
Controls whether the circular progress indicator is shown instead of the screen content.
Flow of SnackBarComponentConfiguration events to be displayed as snack bars.
Functions
Submits a Disbursement deposit, then polls the status and posts the resulting DepositStatus to depositStatus.
Updates the amount field value.
Updates the delivery note field value.
Updates the financial ID field value.
Updates the payer message field value.
Updates the payer note field value.
Updates the phone number field value.
Updates the reference ID to refund field value.