Swiftpack.co - Nef10/SwiftBeanCountRogersBankMapper as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Nef10.
Nef10/SwiftBeanCountRogersBankMapper v0.0.11
Swift library to convert download Rogers Bank data to the SwiftBeanCount model
⭐️ 1
🕓 20 weeks ago
.package(url: "https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git", from: "v0.0.11")

SwiftBeanCountRogersBankMapper

CI Status Documentation percentage License: MIT Latest version platforms supported: linux | macOS | iOS | watchOS | tvOS SPM compatible

This project is part for SwiftBeanCount, please check out the main documentation here.

What

This is a small library to convert downloaded data from a Rogers Bank Credit Card (via RogersBankDownloader) to the Beancount format (via SwiftBeanCountModel).

Beancount meta data

The library relies on meta data in your Beancount file to find your accounts. Please add importer-type: "rogers" and last-four: "XXXX" with the last four digits of your number to your Credit Card Liability account.

How

  1. Load your ledger, e.g. via SwiftBeanCountParser
  2. Create an instance of SwiftBeanCountRogersBankMapper using the ledger
  3. Dowload the accounts and activities you want to convert via the RogersBankDownloader
  4. Use mapAccountToBalance and mapActivitiesToTransactions on the mapper to convert the downloaded data

Please also check out the complete documentation here.

Usage

The library supports the Swift Package Manger, so simply add a dependency in your Package.swift:

.package(url: "https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git", .exact(from: "X.Y.Z")),

Note: as per semantic versioning all versions changes < 1.0.0 can be breaking, so please use .exact for now

GitHub

link
Stars: 1
Last commit: 5 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.0.11 Downloader update
20 weeks ago

Changes

🧰 Maintenance

  • Update swiftlint config for 0.53.0 @file-sync-app (#169)
  • Update SwiftLint config for 0.52.2 @file-sync-app (#158)

📦 Dependencies

  • Bump RogersBankDownloader from 0.0.9 to 0.1.0 @swift-dependency-updater (#180)
  • Bump very_good_coverage from 2.1.0 to 2.2.0 @file-sync-app (#179)
  • Bump github-script from 6.4.1 to 7.0.1 @file-sync-app (#178)
  • Bump SwiftLint to 0.54.0 @file-sync-app (#175)
  • Bump release-drafter from 5.24.0 to 5.25.0 @file-sync-app (#174)
  • Bump swift-actions/setup-swift from 1.24.0 to 1.25.0 @file-sync-app (#172)
  • Bump SwiftLint to 0.53.0 @file-sync-app (#170)
  • Bump tibdex/github-app-token from 2.0.0 to 2.1.0 @file-sync-app (#168)
  • Bump tibdex/github-app-token from 1.8.0 to 2.0.0 @file-sync-app (#167)
  • Bump actions/checkout from 3 to 4 @file-sync-app (#166)
  • Bump setup-swift from 1.23.0 to 1.24.0 @file-sync-app (#165)
  • Bump sticky-pull-request-comment to 2.8.0 @file-sync-app (#164)
  • Bump sticky-pull-request-comment to 2.7.0 @file-sync-app (#163)
  • Bump SwiftLint to 0.52.4 @file-sync-app (#162)
  • Bump Release Drafter to 5.24.0 @file-sync-app (#161)
  • Bump SwiftLint to 0.52.3 @file-sync-app (#160)
  • Bump SwiftLint to 0.52.2 @file-sync-app (#159)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics