src/app/models/session.model.ts
Properties |
constructor(jwt?: IJwt, accounts?: BankAccount[], phones?: Phone[], urls?: IExportUrls)
|
|||||||||||||||
Defined in src/app/models/session.model.ts:6
|
|||||||||||||||
Parameters :
|
accounts |
accounts:
|
Type : BankAccount[]
|
Defined in src/app/models/session.model.ts:45
|
allowsEmailMfa |
allowsEmailMfa:
|
Type : boolean
|
Defined in src/app/models/session.model.ts:37
|
customerId |
customerId:
|
Type : string
|
Defined in src/app/models/session.model.ts:39
|
domain |
domain:
|
Type : string
|
Defined in src/app/models/session.model.ts:35
|
email:
|
Type : string
|
Defined in src/app/models/session.model.ts:34
|
exportUrls |
exportUrls:
|
Type : IExportUrls
|
Defined in src/app/models/session.model.ts:47
|
firstName |
firstName:
|
Type : string
|
Defined in src/app/models/session.model.ts:31
|
hasGoogleAuth |
hasGoogleAuth:
|
Type : boolean
|
Defined in src/app/models/session.model.ts:40
|
hideMaskedAccount |
hideMaskedAccount:
|
Type : boolean
|
Defined in src/app/models/session.model.ts:44
|
lastName |
lastName:
|
Type : string
|
Defined in src/app/models/session.model.ts:32
|
limits |
limits:
|
Type : Limits
|
Defined in src/app/models/session.model.ts:48
|
mfaType |
mfaType:
|
Type : string
|
Defined in src/app/models/session.model.ts:41
|
name |
name:
|
Type : string
|
Defined in src/app/models/session.model.ts:33
|
phones |
phones:
|
Type : Phone[]
|
Defined in src/app/models/session.model.ts:46
|
secretType |
secretType:
|
Type : string
|
Defined in src/app/models/session.model.ts:42
|
sso |
sso:
|
Type : boolean
|
Defined in src/app/models/session.model.ts:36
|
styleUrl |
styleUrl:
|
Type : string
|
Defined in src/app/models/session.model.ts:43
|
userId |
userId:
|
Type : string
|
Defined in src/app/models/session.model.ts:38
|
version |
version:
|
Type : string
|
Defined in src/app/models/session.model.ts:49
|
import { BankAccount, Phone } from './';
import { IExportUrls } from './i-export-urls.model';
import { IJwt } from './i-jwt.model';
import { Limits } from './limits.model';
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.exportUrls = urls;
this.phones = phones;
this.accounts = accounts;
this.limits = jwt.limits;
this.version = jwt.version;
}
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[];
exportUrls: IExportUrls;
limits: Limits;
version: string;
}