Skip to content

Commit

Permalink
fix: add max unknown transaction types (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazazor committed Jun 26, 2022
1 parent 087a5c8 commit be08917
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scrapers/max.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const MONTHLY_CHARGE_PLUS_INTEREST_TYPE_NAME = 'חודשי + ריבית';
const CREDIT_TYPE_NAME = 'קרדיט';
const ACCUMULATING_BASKET = 'סל מצטבר';
const POSTPONED_TRANSACTION_INSTALLMENTS = 'פריסת העסקה הדחויה';
const REPLACEMENT_CARD = 'כרטיס חליפי';
const EARLY_REPAYMENT = 'פרעון מוקדם';

const INVALID_DETAILS_SELECTOR = '#popupWrongDetails';
const LOGIN_ERROR_SELECTOR = '#popupCardHoldersLoginError';
Expand Down Expand Up @@ -116,6 +118,8 @@ function getTransactionType(txnTypeStr: string) {
case INTERNET_SHOPPING_TYPE_NAME:
case MONTHLY_CHARGE_PLUS_INTEREST_TYPE_NAME:
case POSTPONED_TRANSACTION_INSTALLMENTS:
case REPLACEMENT_CARD:
case EARLY_REPAYMENT:
return TransactionTypes.Normal;
case INSTALLMENTS_TYPE_NAME:
case CREDIT_TYPE_NAME:
Expand Down

0 comments on commit be08917

Please sign in to comment.