Skip to content

Commit

Permalink
docs: add method to list credit card transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabiopf02 committed May 19, 2024
1 parent e50713a commit 4e09a07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The `Ofx` class provides the following methods:
- `config(options: OfxConfig)`: Used for formatting the generated json.`
- `getHeaders(): OFXMetaData`: Returns the metadata section of the OFX file as an object.
- `getBankTransferList(): Pick<BankTransferList, 'STRTTRN'>`: Returns a list of bank transfer transactions as an object.
- `getCreditCardTransferList(): Pick<BankTransferList, 'STRTTRN'>`: Returns a list of credit card transactions as an object.
- `getTransactionsSummary()`: Object: Returns a summary of transactions for a bank statement as an object.
- `getContent(): OfxStructure`: Returns the OFX file content as an object.
- `toJson(): OfxResponse`: Returns the entire OFX file content as a JSON object.
Expand Down
4 changes: 4 additions & 0 deletions src/older-implementation/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export class Ofx {
return this.extractor.getBankTransferList()
}

getCreditCardTransferList(): STRTTRN[] {
return this.extractor.getCreditCardTransferList()
}

getTransactionsSummary() {
return this.extractor.getTransactionsSummary()
}
Expand Down

0 comments on commit 4e09a07

Please sign in to comment.