DisbursementRefundScreenViewModel

class DisbursementRefundScreenViewModel(defaultRepository: ERROR CLASS: Symbol not found for DefaultRepository, context: Context, sampleConfig: SampleConfig) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel

ViewModel for the Disbursement Refund screen, managing form field state and the resulting MomoTransaction after a refund request.

Constructors

Link copied to clipboard
constructor(defaultRepository: ERROR CLASS: Symbol not found for DefaultRepository, context: Context, sampleConfig: SampleConfig)

Properties

Link copied to clipboard
val amount: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current refund amount entered in the form.

Link copied to clipboard
val deliveryNote: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current delivery note entered in the form.

Link copied to clipboard
val financialId: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current financial ID entered in the form.

Link copied to clipboard
var momoTransaction: ERROR CLASS: Symbol not found for MutableLiveData<ERROR CLASS: Symbol not found for MomoTransaction?>

Holds the completed MomoTransaction returned by the API; null while no request has succeeded.

Link copied to clipboard
val payerMessage: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current payer message entered in the form.

Link copied to clipboard
val payerNote: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current payer note entered in the form.

Link copied to clipboard
val phoneNumber: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current phone number entered in the form.

Link copied to clipboard
val referenceIdToRefund: ERROR CLASS: Symbol not found for LiveData<kotlin/String>

The current reference ID of the original transaction to refund.

Link copied to clipboard
val showProgressBar: ERROR CLASS: Unresolved name: MutableLiveData

Controls whether the circular progress indicator is shown instead of the form.

Link copied to clipboard
val snackBarStateFlow: ERROR CLASS: Symbol not found for SharedFlow<io/rekast/sdk/sample/utils/SnackBarComponentConfiguration>

Flow of SnackBarComponentConfiguration events to be displayed as snackbars.

Functions

Link copied to clipboard
fun onAmountUpdated(amount: String)

Updates the amount field value.

Link copied to clipboard
fun onDeliveryNoteUpdated(deliveryNote: String)

Updates the delivery note field value.

Link copied to clipboard
fun onFinancialIdUpdated(financialId: String)

Updates the financial ID field value.

Link copied to clipboard
fun onPayerMessageUpdated(payerMessage: String)

Updates the payer message field value.

Link copied to clipboard
fun onPayerNoteUpdated(payerNote: String)

Updates the payer note field value.

Link copied to clipboard
fun onPhoneNumberUpdated(phoneNumber: String)

Updates the phone number field value.

Link copied to clipboard

Updates the reference ID to refund field value.