Skip to content

Commit

Permalink
Added new transition type to MAX scrapper (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdimi4 authored Dec 3, 2023
1 parent cb0fb13 commit 7512a42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scrapers/max.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const THIRTY_DAYS_PLUS_TYPE_NAME = 'עסקת 30 פלוס';
const TWO_MONTHS_POSTPONED_TYPE_NAME = 'דחוי חודשיים';
const MONTHLY_CHARGE_PLUS_INTEREST_TYPE_NAME = 'חודשי + ריבית';
const CREDIT_TYPE_NAME = 'קרדיט';
const CREDIT_OUTSIDE_THE_LIMIT = 'קרדיט-מחוץ למסגרת';
const ACCUMULATING_BASKET = 'סל מצטבר';
const POSTPONED_TRANSACTION_INSTALLMENTS = 'פריסת העסקה הדחויה';
const REPLACEMENT_CARD = 'כרטיס חליפי';
Expand Down Expand Up @@ -125,6 +126,7 @@ function getTransactionType(txnTypeStr: string) {
return TransactionTypes.Normal;
case INSTALLMENTS_TYPE_NAME:
case CREDIT_TYPE_NAME:
case CREDIT_OUTSIDE_THE_LIMIT:
return TransactionTypes.Installments;
default:
throw new Error(`Unknown transaction type ${cleanedUpTxnTypeStr}`);
Expand Down

0 comments on commit 7512a42

Please sign in to comment.