| 1 |
&id003 !!python/object:mt940.models.Transactions |
| 2 |
data: |
| 3 |
account_identification: 0123456789 |
| 4 |
final_closing_balance: !!python/object:mt940.models.Balance |
| 5 |
amount: !!python/object:mt940.models.Amount |
| 6 |
amount: !!python/object/apply:decimal.Decimal |
| 7 |
- '1209.56' |
| 8 |
currency: EUR |
| 9 |
date: !!python/object/apply:mt940.models.Date |
| 10 |
- !!binary | |
| 11 |
B9wGCQ== |
| 12 |
status: C |
| 13 |
final_opening_balance: !!python/object:mt940.models.Balance |
| 14 |
amount: !!python/object:mt940.models.Amount |
| 15 |
amount: !!python/object/apply:decimal.Decimal |
| 16 |
- '1209.56' |
| 17 |
currency: EUR |
| 18 |
date: !!python/object/apply:mt940.models.Date |
| 19 |
- !!binary | |
| 20 |
B9wGCQ== |
| 21 |
status: C |
| 22 |
sequence_number: '1' |
| 23 |
statement_number: '161' |
| 24 |
transaction_reference: '0000000000' |
| 25 |
tags: |
| 26 |
13: !!python/object:mt940.tags.DateTimeIndication |
| 27 |
re: !!python/object/apply:re._compile |
| 28 |
- "^\n (?P<year>\\d{2})\n (?P<month>\\d{2})\n (?P<day>\\d{2})\n (?P<hour>\\d{2})\n |
| 29 |
\ (?P<minute>\\d{2})\n (\\+(?P<offset>\\d{4})|)\n " |
| 30 |
- 98 |
| 31 |
20: !!python/object:mt940.tags.TransactionReferenceNumber |
| 32 |
re: !!python/object/apply:re._compile |
| 33 |
- (?P<transaction_reference>.{0,16}) |
| 34 |
- 98 |
| 35 |
21: !!python/object:mt940.tags.RelatedReference |
| 36 |
re: !!python/object/apply:re._compile |
| 37 |
- (?P<related_reference>.{0,16}) |
| 38 |
- 98 |
| 39 |
25: !!python/object:mt940.tags.AccountIdentification |
| 40 |
re: !!python/object/apply:re._compile |
| 41 |
- (?P<account_identification>.{0,35}) |
| 42 |
- 98 |
| 43 |
28: !!python/object:mt940.tags.StatementNumber |
| 44 |
re: !!python/object/apply:re._compile |
| 45 |
- "\n (?P<statement_number>\\d{1,5}) # 5n\n (?:/?(?P<sequence_number>\\d{1,5}))? |
| 46 |
\ # [/5n]\n $" |
| 47 |
- 98 |
| 48 |
60: !!python/object:mt940.tags.OpeningBalance |
| 49 |
re: &id001 !!python/object/apply:re._compile |
| 50 |
- "^\n (?P<status>[DC]) # 1!a Debit/Credit\n (?P<year>\\d{2}) # 6!n Value |
| 51 |
Date (YYMMDD)\n (?P<month>\\d{2})\n (?P<day>\\d{2})\n (?P<currency>.{3}) |
| 52 |
\ # 3!a Currency\n (?P<amount>[0-9,]{0,16}) # 15d Amount (includes decimal |
| 53 |
sign, so 16)\n " |
| 54 |
- 98 |
| 55 |
60M: !!python/object:mt940.tags.IntermediateOpeningBalance |
| 56 |
re: *id001 |
| 57 |
60F: !!python/object:mt940.tags.FinalOpeningBalance |
| 58 |
re: *id001 |
| 59 |
61: !!python/object:mt940.tags.Statement |
| 60 |
re: !!python/object/apply:re._compile |
| 61 |
- "^\n (?P<year>\\d{2}) # 6!n Value Date (YYMMDD)\n (?P<month>\\d{2})\n |
| 62 |
\ (?P<day>\\d{2})\n (?P<entry_month>\\d{2})? # [4!n] Entry Date (MMDD)\n |
| 63 |
\ (?P<entry_day>\\d{2})?\n (?P<status>R?[DC]) # 2a Debit/Credit Mark\n |
| 64 |
\ (?P<funds_code>[A-Z])? # [1!a] Funds Code (3rd character of the currency\n |
| 65 |
\ # code, if needed)\n [\\n ]? # apparently some |
| 66 |
banks (sparkassen) incorporate newlines here\n # cuscal can also send a space |
| 67 |
here as well\n (?P<amount>[\\d,]{1,15}) # 15d Amount\n (?P<id>[A-Z][A-Z0-9 |
| 68 |
]{3})? # 1!a3!c Transaction Type Identification Code\n # We need the (slow) |
| 69 |
repeating negative lookahead to search for // so we\n # don't acciddntly |
| 70 |
include the bank reference in the customer reference.\n (?P<customer_reference>((?!//)[^\\n]){0,16}) |
| 71 |
\ # 16x Customer Reference\n (//(?P<bank_reference>.{0,23}))? # [//23x] |
| 72 |
Bank Reference\n (\\n?(?P<extra_details>.{0,34}))? # [34x] Supplementary |
| 73 |
Details\n $" |
| 74 |
- 98 |
| 75 |
62: !!python/object:mt940.tags.ClosingBalance |
| 76 |
re: *id001 |
| 77 |
62M: !!python/object:mt940.tags.IntermediateClosingBalance |
| 78 |
re: *id001 |
| 79 |
62F: !!python/object:mt940.tags.FinalClosingBalance |
| 80 |
re: *id001 |
| 81 |
64: !!python/object:mt940.tags.AvailableBalance |
| 82 |
re: *id001 |
| 83 |
65: !!python/object:mt940.tags.ForwardAvailableBalance |
| 84 |
re: *id001 |
| 85 |
86: !!python/object:mt940.tags.TransactionDetails |
| 86 |
re: !!python/object/apply:re._compile |
| 87 |
- "\n (?P<transaction_details>(([\\s\\S]{0,65}\\r?\\n?){0,8}[\\s\\S]{0,65}))\n |
| 88 |
\ " |
| 89 |
- 98 |
| 90 |
34: !!python/object:mt940.tags.FloorLimitIndicator |
| 91 |
re: !!python/object/apply:re._compile |
| 92 |
- "^\n (?P<currency>[A-Z]{3}) # 3!a Currency\n (?P<status>[DC ]?) # 2a |
| 93 |
Debit/Credit Mark\n (?P<amount>[0-9,]{0,16}) # 15d Amount (includes decimal |
| 94 |
sign, so 16)\n $" |
| 95 |
- 98 |
| 96 |
NS: !!python/object:mt940.tags.NonSwift |
| 97 |
re: !!python/object/apply:re._compile |
| 98 |
- "\n (?P<non_swift>\n (\n (\\d{2}.{0,})\n (\\n\\d{2}.{0,})*\n |
| 99 |
\ )|(\n [^\\n]*\n )\n )\n $" |
| 100 |
- 98 |
| 101 |
90: !!python/object:mt940.tags.SumEntries |
| 102 |
re: &id002 !!python/object/apply:re._compile |
| 103 |
- "^\n (?P<number>\\d*)\n (?P<currency>.{3}) # 3!a Currency\n (?P<amount>[\\d,]{1,15}) |
| 104 |
\ # 15d Amount\n " |
| 105 |
- 98 |
| 106 |
90D: !!python/object:mt940.tags.SumDebitEntries |
| 107 |
re: *id002 |
| 108 |
90C: !!python/object:mt940.tags.SumCreditEntries |
| 109 |
re: *id002 |
| 110 |
transactions: |
| 111 |
- !!python/object:mt940.models.Transaction |
| 112 |
data: |
| 113 |
amount: !!python/object:mt940.models.Amount |
| 114 |
amount: !!python/object/apply:decimal.Decimal |
| 115 |
- '-20.00' |
| 116 |
currency: EUR |
| 117 |
bank_reference: null |
| 118 |
currency: EUR |
| 119 |
customer_reference: 0987654321 |
| 120 |
date: !!python/object/apply:mt940.models.Date |
| 121 |
- !!binary | |
| 122 |
B9wGBw== |
| 123 |
entry_date: !!python/object/apply:mt940.models.Date |
| 124 |
- !!binary | |
| 125 |
B9wGCA== |
| 126 |
extra_details: marechal s |
| 127 |
funds_code: null |
| 128 |
guessed_entry_date: !!python/object/apply:mt940.models.Date |
| 129 |
- !!binary | |
| 130 |
B9wGCA== |
| 131 |
id: NIOB |
| 132 |
status: D |
| 133 |
transaction_details: '0987654321 marechal s |
| 134 |
|
| 135 |
dit is een test' |
| 136 |
transaction_reference: '0000000000' |
| 137 |
transactions: *id003 |
| 138 |
- !!python/object:mt940.models.Transaction |
| 139 |
data: |
| 140 |
amount: !!python/object:mt940.models.Amount |
| 141 |
amount: !!python/object/apply:decimal.Decimal |
| 142 |
- '-5.00' |
| 143 |
currency: EUR |
| 144 |
bank_reference: null |
| 145 |
currency: EUR |
| 146 |
customer_reference: 0987654321 |
| 147 |
date: !!python/object/apply:mt940.models.Date |
| 148 |
- !!binary | |
| 149 |
B9wGCA== |
| 150 |
entry_date: !!python/object/apply:mt940.models.Date |
| 151 |
- !!binary | |
| 152 |
B9wGCA== |
| 153 |
extra_details: marechal s |
| 154 |
funds_code: null |
| 155 |
guessed_entry_date: !!python/object/apply:mt940.models.Date |
| 156 |
- !!binary | |
| 157 |
B9wGCA== |
| 158 |
id: NIOB |
| 159 |
status: D |
| 160 |
transaction_details: '0987654321 marechal s |
| 161 |
|
| 162 |
dit is test 2' |
| 163 |
transaction_reference: '0000000000' |
| 164 |
transactions: *id003 |