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.8
Swift library to convert download Rogers Bank data to the SwiftBeanCount model
⭐️ 0
🕓 4 weeks ago
.package(url: "https://github.com/Nef10/SwiftBeanCountRogersBankMapper.git", from: "v0.0.8")

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: 0
Last commit: 5 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.0.8 Bump downloader
4 weeks ago

Changes

🐛 Bug Fixes

  • Upstream: Fix downloading for pending foreign currency transactions (#114)

🧰 Maintenance

  • Bump RogersBankDownloader from 0.0.7 to 0.0.8 @swift-dependency-updater (#114)
  • Bump sticky-pull-request-comment to 2.3.0 @file-sync-app (#112)
  • Bump release-drafter from 5.21.0 to 5.21.1 @file-sync-app (#111)
  • Bump tibdex/github-app-token from 1.6.0 to 1.7.0 @file-sync-app (#110)
  • Update Nef10/lcov-reporter-action to 0.4.0 @file-sync-app (#107)
  • Bump actions/github-script from 6.3.1 to 6.3.3 @file-sync-app (#106)
  • Bumpsticky-pull-request-comment to 2.2.1 @file-sync-app (#105)
  • Bump very_good_coverage from 1.2.1 to 2.0.0 @file-sync-app (#102)
  • Bump actions/github-script from 6.2.0 to 6.3.1 @file-sync-app (#101)
  • Bump Nef10/lcov-reporter-action to 0.3.2 @file-sync-app (#100)
  • Bump swift-actions/setup-swift to 1.18.0 @file-sync-app (#99)
  • Bump release-drafter from 5.20.1 to 5.21.0 @file-sync-app (#98)
  • Update SwiftLint config for 0.49.1 @file-sync-app (#95)
  • Update SwiftLint config for 0.49.0 @file-sync-app (#94)
  • Bump actions/github-script from 6.1.1 to 6.2.0 @file-sync-app (#93)
  • Bump release-drafter from 5.20.0 to 5.20.1 @file-sync-app (#91)
  • Bump actions/github-script from 6.1.0 to 6.1.1 @file-sync-app (#90)
  • Allow specifying macOS version @file-sync-app (#88)
  • Bump tibdex/github-app-token from 1.5.2 to 1.6.0 @file-sync-app (#87)
  • Update copyright year @file-sync-app (#85)
  • Update SwiftLint config for 0.47.1 @file-sync-app (#84)

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