Skip to content

Commit

Permalink
Resolved all requested changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvlvte committed Sep 20, 2023
1 parent a52ade1 commit b0f2d57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libs/models/BankAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ACHData = {
};

class BankAccount {
public static readonly STATE = {
static readonly STATE = {
PENDING: 'PENDING',
OPEN: 'OPEN',
DELETED: 'DELETED',
Expand Down Expand Up @@ -182,28 +182,28 @@ class BankAccount {
* @returns - country of the bank account.
*/
getCountry(): string {
return this.json.accountData?.additionalData?.country as string || CONST.COUNTRY.US;
return this.json.accountData?.additionalData?.country ?? CONST.COUNTRY.US;
}

/**
* @returns - currency of the bank account.
*/
getCurrency(): string {
return this.json.accountData?.additionalData?.currency as string || "USD";
return this.json.accountData?.additionalData?.currency ?? "USD";
}

/**
* @returns - bank name of the bank account.
*/
getBankName(): string {
return this.json.accountData?.additionalData?.bankName as string || "";
return this.json.accountData?.additionalData?.bankName ?? "";
}

/**
* @returns - Information if did we get bank account details for local transfer or international wire.
*/
hasInternationalWireDetails(): boolean {
return this.json.accountData?.additionalData?.fieldsType as string === 'international';
return this.json.accountData?.additionalData?.fieldsType === 'international';
}

/**
Expand Down

0 comments on commit b0f2d57

Please sign in to comment.