-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathPersonalBankAccount.ts
34 lines (24 loc) · 1.13 KB
/
PersonalBankAccount.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type {Route} from '@src/ROUTES';
import type * as OnyxCommon from './OnyxCommon';
/** Model of personal bank account */
type PersonalBankAccount = {
/** An error message to display to the user */
errors?: OnyxCommon.Errors;
/** Error objects keyed by field name containing errors keyed by microtime */
errorFields?: OnyxCommon.ErrorFields;
/** Whether we should show the view that the bank account was successfully added */
shouldShowSuccess?: boolean;
/** Whether the form is loading */
isLoading?: boolean;
/** The account ID of the selected bank account from Plaid */
plaidAccountID?: string;
/** Any reportID we should redirect to at the end of the flow */
exitReportID?: string;
/** The policyID of the workspace for which the bank account is being added */
policyID?: string;
/** Where the bank account addition was started, e.g., from the Invoices page or Wallet page */
source?: string;
/** If set, continue with the KYC flow after adding a PBA. This specifies the fallback route to use. */
onSuccessFallbackRoute?: Route;
};
export default PersonalBankAccount;