RemittanceScreenViewModel
ViewModel for the Remittance Transfer screen.
On submit it runs the full Remittance transfer flow against the SDK:
transfer— sends money to the payee (HTTP 202).getTransferStatus— polls the outcome and posts it to transferStatus.
The screen shows the input form while transferStatus 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.
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.
Holds the TransferStatus returned by the API; null while no request has succeeded.
Functions
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.
Submits a Remittance transfer, then polls the status and posts the resulting TransferStatus to transferStatus.