src/app/models/session.ts
Properties |
constructor(jwt?: IJwt)
|
||||||
Defined in src/app/models/session.ts:6
|
||||||
Parameters :
|
accounts |
accounts:
|
Type : BankAccount[]
|
Defined in src/app/models/session.ts:39
|
customerId |
customerId:
|
Type : string
|
Defined in src/app/models/session.ts:33
|
domain |
domain:
|
Type : string
|
Defined in src/app/models/session.ts:30
|
email:
|
Type : string
|
Defined in src/app/models/session.ts:29
|
firstName |
firstName:
|
Type : string
|
Defined in src/app/models/session.ts:26
|
hasGoogleAuth |
hasGoogleAuth:
|
Type : boolean
|
Defined in src/app/models/session.ts:34
|
hideMaskedAccount |
hideMaskedAccount:
|
Type : boolean
|
Defined in src/app/models/session.ts:38
|
lastName |
lastName:
|
Type : string
|
Defined in src/app/models/session.ts:27
|
mfaType |
mfaType:
|
Type : string
|
Defined in src/app/models/session.ts:35
|
name |
name:
|
Type : string
|
Defined in src/app/models/session.ts:28
|
phones |
phones:
|
Type : Phone[]
|
Defined in src/app/models/session.ts:40
|
plaidEnvironment |
plaidEnvironment:
|
Type : string
|
Defined in src/app/models/session.ts:42
|
secretType |
secretType:
|
Type : string
|
Defined in src/app/models/session.ts:36
|
sso |
sso:
|
Type : boolean
|
Defined in src/app/models/session.ts:31
|
styleUrl |
styleUrl:
|
Type : string
|
Defined in src/app/models/session.ts:37
|
userId |
userId:
|
Type : string
|
Defined in src/app/models/session.ts:32
|
version |
version:
|
Type : string
|
Defined in src/app/models/session.ts:41
|
import { BankAccount } from './bank-account';
import { IJwt } from './i-jwt';
import { Phone } from './phone';
const DEFAULT_PLAID_ENVIRONMENT = 'DEVELOPMENT';
export class Session {
constructor(jwt?: IJwt) {
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.secretType = jwt.secretType;
this.phones = jwt.phones;
this.accounts = jwt.bankAccounts;
this.version = jwt.version;
}
firstName: string;
lastName: string;
name: string;
email: string;
domain: string;
sso: boolean;
userId: string;
customerId: string;
hasGoogleAuth: boolean;
mfaType: string;
secretType: string;
styleUrl: string;
hideMaskedAccount: boolean;
accounts: BankAccount[];
phones: Phone[];
version: string;
plaidEnvironment: string;
}