| Copyright | (c) Petter Bergman |
|---|---|
| License | BSD3 |
| Maintainer | jon.petter.bergman@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
Finance.BgMax.TK
Description
This module contain data definitions for the different types of Posts or "Transaction Codes" that may occur in a BgMax file, as well as auxiliary data types.
The datatypes should map in a straightforward way to the documentation from Bankgirocentralen.
- data TestMark
- data Currency
- data Reference
- = Ref0
- | Ref1
- | Ref2 Integer
- | Ref3 ByteString
- | Ref4 ByteString
- | Ref5 ByteString
- | Ref Int ByteString
- data DepositType
- data Transaction = Transaction {}
- data TK01_t = TK01_t {}
- data TK05_t = TK05_t {}
- data TK20_t = TK20_t {}
- data TK21_t = TK21_t {}
- data TK22_t = TK22_t {}
- data TK23_t = TK23_t {}
- data TK25_t = TK25_t {}
- data TK26_t = TK26_t {}
- data TK27_t = TK27_t {}
- data TK28_t = TK28_t {}
- data TK29_t = TK29_t {}
- data TK15_t = TK15_t {}
- data TK70_t = TK70_t {}
- data Post
Documentation
BankGirot currently only supports EUR and SEK
Reference. The references correspond to the reference codes defined in the BgMax documentation.
Constructors
| Ref0 | No reference. |
| Ref1 | No reference. |
| Ref2 Integer | Reference is correct OCR-no. |
| Ref3 ByteString | One or more references. |
| Ref4 ByteString | One reference. |
| Ref5 ByteString | Incorrect reference. |
| Ref Int ByteString | Reserved for future use. |
Start post.
Constructors
| TK01_t | |
Fields
| |
Opening post.
Constructors
| TK05_t | |
Fields
| |
Deduction post.
Constructors
| TK21_t | |
Fields
| |
Extra reference post.
Constructors
| TK22_t | |
Fields | |
Extra reference post (negative ammount).
Constructors
| TK23_t | |
Fields | |
Information post.
Constructors
| TK25_t | |
Fields | |
Name post.
Constructors
| TK26_t | |
Fields
| |
Address 1 post.
Constructors
| TK27_t | |
Fields
| |
Address 2 post.
Constructors
| TK28_t | |
Fields
| |
Organisation-number post.
Deposit post.
Constructors
| TK15_t | |
Fields | |
End post
Constructors
| TK70_t | |
Fields
| |
Sum type for posts.
Constructors
| TK01 TK01_t | |
| TK05 TK05_t | |
| TK20 TK20_t | |
| TK21 TK21_t | |
| TK22 TK22_t | |
| TK23 TK23_t | |
| TK25 TK25_t | |
| TK26 TK26_t | |
| TK27 TK27_t | |
| TK28 TK28_t | |
| TK29 TK29_t | |
| TK15 TK15_t | |
| TK70 TK70_t | |
| TK Int | The BGC documentation states that implementations should ignore posts they don't understand, they will be instead be recorded using this constructor. |