-
public final class BankAccountsViewModel extends ViewModel
-
-
Field Summary
Fields Modifier and Type Field Description private StringcustomerGuidprivate MutableState<BankAccountsView.State>uiStateprivate MutableState<BankAccountsView.AddAccountButtonState>buttonAddAccountsStateprivate MutableState<BankAccountsView.ModalState>accountDetailStateprivate PollingworkflowJobprivate PollingworkflowUpdateJobprivate PollingexternalAccountJobprivate WorkflowWithDetailsBankModellatestWorkflowprivate WorkflowWithDetailsBankModellatestWorkflowUpdateprivate List<ExternalBankAccountBankModel>accountsprivate MutableState<Boolean>showAccountDetailModalprivate ExternalBankAccountBankModelcurrentAccountprivate ManagedActivityResultLauncher<LinkTokenConfiguration, LinkResult>getPlaidUpdateResult
-
Constructor Summary
Constructors Constructor Description BankAccountsViewModel()
-
Method Summary
Modifier and Type Method Description final StringgetCustomerGuid()final UnitsetCustomerGuid(String customerGuid)final MutableState<BankAccountsView.State>getUiState()final UnitsetUiState(MutableState<BankAccountsView.State> uiState)final MutableState<BankAccountsView.AddAccountButtonState>getButtonAddAccountsState()final UnitsetButtonAddAccountsState(MutableState<BankAccountsView.AddAccountButtonState> buttonAddAccountsState)final MutableState<BankAccountsView.ModalState>getAccountDetailState()final UnitsetAccountDetailState(MutableState<BankAccountsView.ModalState> accountDetailState)final PollinggetWorkflowJob()final UnitsetWorkflowJob(Polling workflowJob)final PollinggetWorkflowUpdateJob()final UnitsetWorkflowUpdateJob(Polling workflowUpdateJob)final PollinggetExternalAccountJob()final UnitsetExternalAccountJob(Polling externalAccountJob)final WorkflowWithDetailsBankModelgetLatestWorkflow()final UnitsetLatestWorkflow(WorkflowWithDetailsBankModel latestWorkflow)final WorkflowWithDetailsBankModelgetLatestWorkflowUpdate()final UnitsetLatestWorkflowUpdate(WorkflowWithDetailsBankModel latestWorkflowUpdate)final List<ExternalBankAccountBankModel>getAccounts()final UnitsetAccounts(List<ExternalBankAccountBankModel> accounts)final MutableState<Boolean>getShowAccountDetailModal()final UnitsetShowAccountDetailModal(MutableState<Boolean> showAccountDetailModal)final ExternalBankAccountBankModelgetCurrentAccount()final UnitsetCurrentAccount(ExternalBankAccountBankModel currentAccount)final ManagedActivityResultLauncher<LinkTokenConfiguration, LinkResult>getGetPlaidUpdateResult()final UnitsetGetPlaidUpdateResult(ManagedActivityResultLauncher<LinkTokenConfiguration, LinkResult> getPlaidUpdateResult)final UnitsetDataProvider(ApiClient dataProvider)final UnitfetchExternalBankAccounts()final UnitcreateWorkflow()final UnitfetchWorkflow(String guid)final UnitcreateExternalBankAccount(String publicToken, LinkAccount account)final CustomerBankModelgetCustomer()final BankBankModelgetBank(String guid)final BooleanassetIsSupported(String asset)final UnitcheckWorkflowStatus(WorkflowWithDetailsBankModel workflow)final UnitshowExternalBankAccountDetail(ExternalBankAccountBankModel account)final UnitdismissExternalBankAccountDetail()final UnitdisconnectExternalBankAccount()final UnitrefreshAccount()final UnitupdateExternalBankAccount(PatchExternalBankAccountBankModel.State state)-
-
Method Detail
-
getCustomerGuid
final String getCustomerGuid()
-
setCustomerGuid
final Unit setCustomerGuid(String customerGuid)
-
getUiState
final MutableState<BankAccountsView.State> getUiState()
-
setUiState
final Unit setUiState(MutableState<BankAccountsView.State> uiState)
-
getButtonAddAccountsState
final MutableState<BankAccountsView.AddAccountButtonState> getButtonAddAccountsState()
-
setButtonAddAccountsState
final Unit setButtonAddAccountsState(MutableState<BankAccountsView.AddAccountButtonState> buttonAddAccountsState)
-
getAccountDetailState
final MutableState<BankAccountsView.ModalState> getAccountDetailState()
-
setAccountDetailState
final Unit setAccountDetailState(MutableState<BankAccountsView.ModalState> accountDetailState)
-
getWorkflowJob
final Polling getWorkflowJob()
-
setWorkflowJob
final Unit setWorkflowJob(Polling workflowJob)
-
getWorkflowUpdateJob
final Polling getWorkflowUpdateJob()
-
setWorkflowUpdateJob
final Unit setWorkflowUpdateJob(Polling workflowUpdateJob)
-
getExternalAccountJob
final Polling getExternalAccountJob()
-
setExternalAccountJob
final Unit setExternalAccountJob(Polling externalAccountJob)
-
getLatestWorkflow
final WorkflowWithDetailsBankModel getLatestWorkflow()
-
setLatestWorkflow
final Unit setLatestWorkflow(WorkflowWithDetailsBankModel latestWorkflow)
-
getLatestWorkflowUpdate
final WorkflowWithDetailsBankModel getLatestWorkflowUpdate()
-
setLatestWorkflowUpdate
final Unit setLatestWorkflowUpdate(WorkflowWithDetailsBankModel latestWorkflowUpdate)
-
getAccounts
final List<ExternalBankAccountBankModel> getAccounts()
-
setAccounts
final Unit setAccounts(List<ExternalBankAccountBankModel> accounts)
-
getShowAccountDetailModal
final MutableState<Boolean> getShowAccountDetailModal()
-
setShowAccountDetailModal
final Unit setShowAccountDetailModal(MutableState<Boolean> showAccountDetailModal)
-
getCurrentAccount
final ExternalBankAccountBankModel getCurrentAccount()
-
setCurrentAccount
final Unit setCurrentAccount(ExternalBankAccountBankModel currentAccount)
-
getGetPlaidUpdateResult
final ManagedActivityResultLauncher<LinkTokenConfiguration, LinkResult> getGetPlaidUpdateResult()
-
setGetPlaidUpdateResult
final Unit setGetPlaidUpdateResult(ManagedActivityResultLauncher<LinkTokenConfiguration, LinkResult> getPlaidUpdateResult)
-
setDataProvider
final Unit setDataProvider(ApiClient dataProvider)
-
fetchExternalBankAccounts
final Unit fetchExternalBankAccounts()
-
createWorkflow
final Unit createWorkflow()
-
fetchWorkflow
final Unit fetchWorkflow(String guid)
-
createExternalBankAccount
final Unit createExternalBankAccount(String publicToken, LinkAccount account)
-
getCustomer
final CustomerBankModel getCustomer()
-
assetIsSupported
final Boolean assetIsSupported(String asset)
-
checkWorkflowStatus
final Unit checkWorkflowStatus(WorkflowWithDetailsBankModel workflow)
-
showExternalBankAccountDetail
final Unit showExternalBankAccountDetail(ExternalBankAccountBankModel account)
-
dismissExternalBankAccountDetail
final Unit dismissExternalBankAccountDetail()
-
disconnectExternalBankAccount
final Unit disconnectExternalBankAccount()
-
refreshAccount
final Unit refreshAccount()
-
updateExternalBankAccount
final Unit updateExternalBankAccount(PatchExternalBankAccountBankModel.State state)
-
-
-
-