SwiftBeanCountCompassCardMapper

0.0.3

Library to Convert downloaded Compass Card transaction into BeanCount format
Nef10/SwiftBeanCountCompassCardMapper

What's New

0.0.3 Update Parser Utils

2023-04-29T17:23:40Z

Changes

🧰 Maintenance

  • SwiftLint: ignore Protocol Buffer files @file-sync-app (#13)
  • Update copyright year @file-sync-app (#9)
  • Release Drafter: Move dependencies to separate section @file-sync-app (#8)
  • Update SwiftLint config for 0.51.0 @file-sync-app (#5)
  • Update SwiftLint to 0.51.0 @file-sync-app (#4)

📦 Dependencies

  • Bump SwiftBeanCountParserUtils from 0.0.1 to 1.0.0 @swift-dependency-updater (#12)
  • Bump sticky-pull-request-comment to 2.6.2 @file-sync-app (#10)
  • Bump swift-actions/setup-swift from 1.22.0 to 1.23.0 @file-sync-app (#7)
  • Bump actions/github-script from 6.4.0 to 6.4.1 @file-sync-app (#6)
  • Bump peaceiris/actions-gh-pages from 3.9.2 to 3.9.3 @file-sync-app (#3)

SwiftBeanCountCompassCardMapper

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 Compass Card (via CompassCardDownloader) 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: "compass-card" and card-number: "XXXXXXXXXXXXXXXXXXXX" to your Compass Card Asset account. To automatically add the expense account, add compass-card-expense: "XXXXXXXXXXXXXXXXXXXX" with the card number to an account - for auto load, use compass-card-load: "XXXXXXXXXXXXXXXXXXXX".

How

  1. Load your ledger, e.g. via SwiftBeanCountParser
  2. Create an instance of SwiftBeanCountCompassCardMapper using the ledger
  3. Dowload the balance and transactions you want to convert via the CompassCardDownloader
  4. Use createBalance and createTransactions 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/SwiftBeanCountCompassCardMapper.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

Copyright

While my code is licensed under the MIT License, the source repository may include names or other trademarks of CompassCard, TransLink or other entities; potential usage restrictions for these elements still apply and are not touched by the software license. Same applies for the API design. I am in no way affilliated with TransLink other than beeing customer.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Sat Dec 21 2024 11:14:28 GMT-1000 (Hawaii-Aleutian Standard Time)