question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussion: Add future debit charges for the bank accounts

See original GitHub issue

The goal

Be able to see my current balances (already possible) and the future charges I should expect from my credit cards according to their next charging date. That will help not just reading the history of the charges, but also getting the current status in an easy-to-use way.

What exists on the bank website?

In the credit card section of each bank website, you have all of your credit cards, their charge date, and the accumulated charge amount.

By default, only the bank-issued credit cards appear, but anyone can request to also see the accumulated charges from other issuers (cal, max, isracard). Due to that, in order to see the charges on the next charge date - there is no real need to fetch that data form cal/max/isracard because the banks are taking care of that.

What exists today in this repo?

In his PR, https://github.com/eshaham/israeli-bank-scrapers/pull/656, @LiranBri added it for Cal - futureDebits :

export interface ScaperScrapingResult {
  success: boolean;
  accounts?: TransactionsAccount[];
  futureDebits?: FutureDebit[];
  errorType?: ScraperErrorTypes;
  errorMessage?: string; // only on success=false
}

export interface FutureDebit {
  amount: number;
  amountCurrency: string;
  chargeDate?: string;
  bankAccountNumber?: string;
}

By the way, this is not documented in the readme file at the moment.

This was a very cool addition that is highly needed IMO.

What do I think we should do?

After I talked offline with @LiranBri , and like I said before, IMO this information should really just be in the bank accounts and not the other vendors. More than that, IMO this data should show the charges for each credit card separately so it will be more generic. At the moment it’s grouped by the bank account number - so again it’s all coming back to the bank account.

So here is what I’m suggesting:

  1. Remove the futureDebits object added by @LiranBri + remove this code from the Cal scraper (it won’t be a breaking change as it’s undocumented anyway…)
  2. Replace it under the standard account: TransactionsAccount object:
export interface TransactionsAccount {
    accountNumber: string;
    balance?: number;
    txns: Transaction[];
    futureCharges?: FutureCharge[];
}

export interface FutureCharge {
  amount: number;
  amountCurrency: string;
  chargeDate: string;
  cardLastFourDigits: string;
  issuesByTheBank: boolean;
  issuer: string; ("מקס, ישראכארט, כאל")
}

IMO that will introduce a more generic way to get ALL the future credit card chargers which will be more aligned with the way the current code works and separation by card.

What can I do?

I can go ahead and do that for the Hapoalim bank, and so create the infrastructure for this to be implemented on other bank scrapers. But before I do that, I would like to get @LiranBri and @erikash opinions so I won’t develop it for nothing 😃 WDYT?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
eshahamcommented, Jul 12, 2022

Love the discussion here and where this is going 💪

1reaction
erikashcommented, Jul 11, 2022

Go ahead!

On Mon, Jul 11, 2022 at 6:17 PM Liran Brimer @.***> wrote:

Go ahead 💪

— Reply to this email directly, view it on GitHub https://github.com/eshaham/israeli-bank-scrapers/issues/707#issuecomment-1180540911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABCIPMBOOEFUKJWFQODJ5LVTQ3HBANCNFSM53BVA4MQ . You are receiving this because you were mentioned.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

FDIC Law, Regulations, Related Acts - Consumer Financial ...
A preauthorized transfer credited or debited to an account in accordance with ... it must block all future payments for the particular debit...
Read more >
Types of Bank Accounts: Options, Benefits, and Drawbacks
Consumers use this type of bank account to set aside money for future use. Since your deposits collect interest, your money grows over...
Read more >
How to Avoid Bank Fees - American Bankers Association
Are you looking for ways to minimize your banking costs? Here are some proven tips: Utilize free checking and savings accounts. Many banks...
Read more >
The Future of Money and Payments - Treasury Department
A single form of money can use more than one payment system; for example, private bank money (i.e., deposits) can be transferred using...
Read more >
A glossary of terms used in payments and settlement systems
payment instruments that allow customers to access their deposit accounts and to transfer the deposits therein. Examples include electronic funds transfers at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found