Copyright | (c) Petter Bergman |
---|---|
License | BSD3 |
Maintainer | jon.petter.bergman@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
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
Reference. The references correspond to the reference codes defined in the BgMax documentation.
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. |
data DepositType Source
Deposit type. Deposit type according to bank agreement.
Start post.
TK01_t | |
|
Opening post.
TK05_t | |
|
Deduction post.
TK21_t | |
|
Extra reference post (negative ammount).
Address 2 post.
TK28_t | |
|
Deposit post.
End post
TK70_t | |
|
Sum type for posts.
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. |