DisbursementRefundScreenViewModel
ViewModel for the Disbursement Refund screen.
On submit it runs the full Disbursement refund flow against the SDK:
refund— reverses a prior transaction back to the payee (HTTP 202).getRefundStatus— polls the outcome and posts it to refundStatus.
The screen shows the input form while refundStatus 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.
Holds the RefundStatus returned by the API; null while no request has succeeded.
Controls whether the circular progress indicator is shown instead of the screen content.
Flow of SnackBarComponentConfiguration events to be displayed as snack bars.
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 Disbursement refund, then polls the status and posts the resulting RefundStatus to refundStatus.