src/app/models/session.model.ts
Properties |
constructor(jwt?: IJwt, accounts?: BankAccount[], phones?: Phone[], urls?: IExportUrls)
|
|||||||||||||||
Defined in src/app/models/session.model.ts:8
|
|||||||||||||||
Parameters :
|
accounts |
Type : BankAccount[]
|
Defined in src/app/models/session.model.ts:51
|
accountVerificationTypes |
Type : string[]
|
Defined in src/app/models/session.model.ts:57
|
allowsEmailMfa |
Type : boolean
|
Defined in src/app/models/session.model.ts:43
|
customerId |
Type : string
|
Defined in src/app/models/session.model.ts:45
|
domain |
Type : string
|
Defined in src/app/models/session.model.ts:41
|
Type : string
|
Defined in src/app/models/session.model.ts:40
|
exportUrls |
Type : IExportUrls
|
Defined in src/app/models/session.model.ts:54
|
firstName |
Type : string
|
Defined in src/app/models/session.model.ts:37
|
hasGoogleAuth |
Type : boolean
|
Defined in src/app/models/session.model.ts:46
|
hideMaskedAccount |
Type : boolean
|
Defined in src/app/models/session.model.ts:50
|
lastName |
Type : string
|
Defined in src/app/models/session.model.ts:38
|
limits |
Type : Limits
|
Defined in src/app/models/session.model.ts:53
|
mfaType |
Type : string
|
Defined in src/app/models/session.model.ts:47
|
name |
Type : string
|
Defined in src/app/models/session.model.ts:39
|
phones |
Type : Phone[]
|
Defined in src/app/models/session.model.ts:52
|
plaidEnvironment |
Type : string
|
Defined in src/app/models/session.model.ts:56
|
secretType |
Type : string
|
Defined in src/app/models/session.model.ts:48
|
sso |
Type : boolean
|
Defined in src/app/models/session.model.ts:42
|
styleUrl |
Type : string
|
Defined in src/app/models/session.model.ts:49
|
userId |
Type : string
|
Defined in src/app/models/session.model.ts:44
|
version |
Type : string
|
Defined in src/app/models/session.model.ts:55
|
import { BankAccount } from './bank-account.model';
import { IExportUrls } from './i-export-urls.model';
import { IJwt } from './i-jwt.model';
import { Limits } from './limits.model';
import { Phone } from './phone.model';
const DEFAULT_PLAID_ENVIRONMENT = 'DEVELOPMENT';
export class Session {
constructor(jwt?: IJwt, accounts?: BankAccount[], phones?: Phone[], urls?: IExportUrls) {
if (!jwt) {
return;
}
this.lastName = jwt.family_name;
this.firstName = jwt.given_name;
this.name = `${jwt.given_name} ${jwt.family_name}`;
this.domain = jwt.domain;
this.email = jwt.mfaEmail;
this.sso = jwt.sso;
this.userId = jwt.userId;
this.customerId = jwt.customerId;
this.hasGoogleAuth = jwt.hasGoogleAuth;
this.mfaType = jwt.mfaType;
this.allowsEmailMfa = jwt.allowsEmailMfa;
this.secretType = jwt.secretType;
this.styleUrl = jwt.styleUrl;
this.hideMaskedAccount = jwt.hideMaskedAccount;
this.phones = phones;
this.accounts = accounts;
this.limits = jwt.limits;
this.exportUrls = urls;
this.version = jwt.version;
this.accountVerificationTypes = jwt.accountVerificationTypes;
this.plaidEnvironment = jwt.plaidEnvironment
? jwt.plaidEnvironment
: DEFAULT_PLAID_ENVIRONMENT;
}
firstName: string;
lastName: string;
name: string;
email: string;
domain: string;
sso: boolean;
allowsEmailMfa: boolean;
userId: string;
customerId: string;
hasGoogleAuth: boolean;
mfaType: string;
secretType: string;
styleUrl: string;
hideMaskedAccount: boolean;
accounts: BankAccount[];
phones: Phone[];
limits: Limits;
exportUrls: IExportUrls;
version: string;
plaidEnvironment: string;
accountVerificationTypes: string[];
}