CashTransferScreenViewModel

class CashTransferScreenViewModel(defaultRepository: ERROR CLASS: Symbol not found for DefaultRepository, credentialStorage: CredentialStorage, dispatchers: DispatcherProvider, sampleConfig: SampleConfig) : BaseScreenViewModel

ViewModel for the Remittance Cash Transfer (V2) screen. Showcases the cash transfer lifecycle against the SDK: cashTransfergetCashTransferStatus, keyed on a locally generated reference ID.

The last operation's outcome (reference ID, status payload, or error) is exposed via result and rendered in a console panel so the flow is visible to developers exploring the SDK.

Constructors

Link copied to clipboard
constructor(defaultRepository: ERROR CLASS: Symbol not found for DefaultRepository, credentialStorage: CredentialStorage, dispatchers: DispatcherProvider, sampleConfig: SampleConfig)

Properties

Link copied to clipboard
val amount: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val currency: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val originalAmount: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val originalCurrency: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val originatingCountry: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payeeMsisdn: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payeeNote: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerEmail: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerFirstName: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerGender: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerIdentificationNumber: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerIdentificationType: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerIdentity: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerLanguageCode: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerMessage: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerMsisdn: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val payerSurName: ERROR CLASS: Symbol not found for LiveData<kotlin/String>
Link copied to clipboard
val referenceId: ERROR CLASS: Unresolved name: MutableLiveData

The reference ID of the last cash transfer; enables the status action.

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

Console output describing the outcome of the last operation.

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

Controls whether the circular progress indicator is shown instead of the screen content.

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 snack bars.

Functions

Link copied to clipboard

Fetches the status of the previously sent cash transfer and prints the raw payload.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sends a cash transfer with a fresh reference ID and stores that ID for the status action.