File

src/app/models/session.model.ts

Index

Properties

Constructor

constructor(jwt?: IJwt, accounts?: BankAccount[], phones?: Phone[], urls?: IExportUrls)
Parameters :
Name Type Optional
jwt IJwt yes
accounts BankAccount[] yes
phones Phone[] yes
urls IExportUrls yes

Properties

accounts
accounts: BankAccount[]
Type : BankAccount[]
allowsEmailMfa
allowsEmailMfa: boolean
Type : boolean
customerId
customerId: string
Type : string
domain
domain: string
Type : string
email
email: string
Type : string
exportUrls
exportUrls: IExportUrls
Type : IExportUrls
firstName
firstName: string
Type : string
hasGoogleAuth
hasGoogleAuth: boolean
Type : boolean
hideMaskedAccount
hideMaskedAccount: boolean
Type : boolean
lastName
lastName: string
Type : string
limits
limits: Limits
Type : Limits
mfaType
mfaType: string
Type : string
name
name: string
Type : string
phones
phones: Phone[]
Type : Phone[]
secretType
secretType: string
Type : string
sso
sso: boolean
Type : boolean
styleUrl
styleUrl: string
Type : string
userId
userId: string
Type : string
version
version: string
Type : string
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;
}

results matching ""

    No results matching ""