-
-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! [IMP] account_statement_import_camt: multi account support
- Loading branch information
1 parent
8b55347
commit c498cfc
Showing
4 changed files
with
156 additions
and
156 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
account_statement_import_camt/test_files/golden-camt053-no-ntry.pydata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
(None, None, []) | ||
[] |
88 changes: 44 additions & 44 deletions
88
account_statement_import_camt/test_files/golden-camt053-txdtls.pydata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
('CHF', | ||
'CH1111000000123456789', | ||
[{'balance_end_real': 79443.15, | ||
'balance_start': 75960.15, | ||
'date': '2017-03-22', | ||
'name': '20170323123456789012345', | ||
'transactions': [{'account_number': 'CH2222000000123456789', | ||
'amount': 2187.0, | ||
'date': '2017-03-22', | ||
'narration': 'Partner Name (RltdPties/Nm): Banque Cantonale Vaudoise\n' | ||
'Partner Account Number (RltdPties/Acct): CH2222000000123456789\n' | ||
'Transaction Date (BookgDt): 2017-03-22\n' | ||
'Reference: 302388292000011111111111111\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RCDT-VCOM\n' | ||
'Additional Entry Information (AddtlNtryInf): CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: ' | ||
'123456CHCAFEBABE\n' | ||
'Reversal Indicator (RvslInd): false\n' | ||
'Structured Reference (RmtInf/Strd/CdtrRefInf/Ref): 302388292000011111111111111\n' | ||
'Account Servicer Reference (Refs/AcctSvcrRef): 123456CHCAFEBABE\n' | ||
'Postal Address (PstlAdr): Place Saint-François | 14 | 1003 | Lausanne | CH1', | ||
'partner_name': 'Banque Cantonale Vaudoise', | ||
'payment_ref': '/', | ||
'ref': '302388292000011111111111111', | ||
'transaction_type': 'PMNT-RCDT-VCOM'}, | ||
{'account_number': 'CH3333000000123456789', | ||
'amount': 1296.0, | ||
'date': '2017-03-22', | ||
'narration': 'Partner Name (RltdPties/Nm): Banque Cantonale Vaudoise\n' | ||
'Partner Account Number (RltdPties/Acct): CH3333000000123456789\n' | ||
'Transaction Date (BookgDt): 2017-03-22\n' | ||
'Reference: 302388292000022222222222222\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RCDT-VCOM\n' | ||
'Additional Entry Information (AddtlNtryInf): CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ID: ' | ||
'123456CHCAFEBABE\n' | ||
'Reversal Indicator (RvslInd): false\n' | ||
'Structured Reference (RmtInf/Strd/CdtrRefInf/Ref): 302388292000022222222222222\n' | ||
'Account Servicer Reference (Refs/AcctSvcrRef): 123456CHCAFEBABE\n' | ||
'Postal Address (PstlAdr): Place Saint-François | 14 | 1003 | Lausanne | CH2', | ||
'partner_name': 'Banque Cantonale Vaudoise', | ||
'payment_ref': '/', | ||
'ref': '302388292000022222222222222', | ||
'transaction_type': 'PMNT-RCDT-VCOM'}]}]) | ||
[('CHF', | ||
'CH1111000000123456789', | ||
[{'balance_end_real': 79443.15, | ||
'balance_start': 75960.15, | ||
'date': '2017-03-22', | ||
'name': '20170323123456789012345', | ||
'transactions': [{'account_number': 'CH2222000000123456789', | ||
'amount': 2187.0, | ||
'date': '2017-03-22', | ||
'narration': 'Partner Name (RltdPties/Nm): Banque Cantonale Vaudoise\n' | ||
'Partner Account Number (RltdPties/Acct): CH2222000000123456789\n' | ||
'Transaction Date (BookgDt): 2017-03-22\n' | ||
'Reference: 302388292000011111111111111\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RCDT-VCOM\n' | ||
'Additional Entry Information (AddtlNtryInf): CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ' | ||
'ID: 123456CHCAFEBABE\n' | ||
'Reversal Indicator (RvslInd): false\n' | ||
'Structured Reference (RmtInf/Strd/CdtrRefInf/Ref): 302388292000011111111111111\n' | ||
'Account Servicer Reference (Refs/AcctSvcrRef): 123456CHCAFEBABE\n' | ||
'Postal Address (PstlAdr): Place Saint-François | 14 | 1003 | Lausanne | CH1', | ||
'partner_name': 'Banque Cantonale Vaudoise', | ||
'payment_ref': '/', | ||
'ref': '302388292000011111111111111', | ||
'transaction_type': 'PMNT-RCDT-VCOM'}, | ||
{'account_number': 'CH3333000000123456789', | ||
'amount': 1296.0, | ||
'date': '2017-03-22', | ||
'narration': 'Partner Name (RltdPties/Nm): Banque Cantonale Vaudoise\n' | ||
'Partner Account Number (RltdPties/Acct): CH3333000000123456789\n' | ||
'Transaction Date (BookgDt): 2017-03-22\n' | ||
'Reference: 302388292000022222222222222\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RCDT-VCOM\n' | ||
'Additional Entry Information (AddtlNtryInf): CRÉDIT GROUPÉ BVR TRAITEMENT DU 22.03.2017 NUMÉRO CLIENT 01-70884-3 PAQUET ' | ||
'ID: 123456CHCAFEBABE\n' | ||
'Reversal Indicator (RvslInd): false\n' | ||
'Structured Reference (RmtInf/Strd/CdtrRefInf/Ref): 302388292000022222222222222\n' | ||
'Account Servicer Reference (Refs/AcctSvcrRef): 123456CHCAFEBABE\n' | ||
'Postal Address (PstlAdr): Place Saint-François | 14 | 1003 | Lausanne | CH2', | ||
'partner_name': 'Banque Cantonale Vaudoise', | ||
'payment_ref': '/', | ||
'ref': '302388292000022222222222222', | ||
'transaction_type': 'PMNT-RCDT-VCOM'}]}])] |
170 changes: 85 additions & 85 deletions
170
account_statement_import_camt/test_files/golden-camt053.pydata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,85 @@ | ||
('EUR', | ||
'NL77ABNA0574908765', | ||
[{'balance_end_real': 15121.12, | ||
'balance_start': 15568.27, | ||
'date': '2014-01-05', | ||
'name': '1234Test/1', | ||
'transactions': [{'account_number': 'NL46ABNA0499998748', | ||
'amount': -754.25, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): INSURANCE COMPANY TESTX\n' | ||
'Partner Account Number (RltdPties/Acct): NL46ABNA0499998748\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: 435005714488-ABNO33052620\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RDDT-ESDD\n' | ||
'Unstructured Reference (RmtInf/Ustrd): Insurance policy 857239PERIOD 01.01.2014 - 31.12.2014\n' | ||
'Additional Transaction Information (AddtlTxInf): MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014\n' | ||
'End To End Id (Refs/EndToEndId): 435005714488-ABNO33052620\n' | ||
'Instructed Id (Refs/InstrId): INNDNL2U20141231000142300002844\n' | ||
'Postal Address (PstlAdr): TEST STREET 20 | 1234 AB TESTCITY | NL', | ||
'partner_name': 'INSURANCE COMPANY TESTX', | ||
'payment_ref': 'MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014', | ||
'ref': '435005714488-ABNO33052620', | ||
'transaction_type': 'PMNT-RDDT-ESDD'}, | ||
{'account_number': 'NL46ABNA0499998748', | ||
'amount': -564.05, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): Test Customer\n' | ||
'Partner Account Number (RltdPties/Acct): NL46ABNA0499998748\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: TESTBANK/NL/20141229/01206408\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-IDDT-UPDD\n' | ||
'Reversal Indicator (RvslInd): true\n' | ||
'Unstructured Reference (RmtInf/Ustrd): Direct Debit S14 0410\n' | ||
'Additional Transaction Information (AddtlTxInf): Direct debit S14 0410 AC07 Rek.nummer blokkade ' | ||
'TESTBANK/NL/20141229/01206408\n' | ||
'Return Reason Code (RtrInf/Rsn/Cd): AC06\n' | ||
'Return Reason Code (Proprietary) (RtrInf/Rsn/Prtry): AC06\n' | ||
'End To End Id (Refs/EndToEndId): TESTBANK/NL/20141229/01206408\n' | ||
'Instructed Id (Refs/InstrId): TESTBANK/NL/20141229/01206408\n' | ||
'Postal Address (PstlAdr): NL', | ||
'partner_name': 'Test Customer', | ||
'payment_ref': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', | ||
'ref': 'TESTBANK/NL/20141229/01206408', | ||
'transaction_type': 'PMNT-IDDT-UPDD'}, | ||
{'account_number': 'NL46ABNA0499998748', | ||
'amount': -100.0, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): Test Customer\n' | ||
'Partner Account Number (RltdPties/Acct): NL46ABNA0499998748\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: TESTBANK/NL/20141229/01206407\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-IDDT-UPDD\n' | ||
'Reversal Indicator (RvslInd): true\n' | ||
'Unstructured Reference (RmtInf/Ustrd): Direct Debit S14 0410\n' | ||
'Additional Transaction Information (AddtlTxInf): Direct debit S14 0410 AC07 Rek.nummer blokkade ' | ||
'TESTBANK/NL/20141229/01206408\n' | ||
'Return Reason Code (RtrInf/Rsn/Cd): AC06\n' | ||
'Return Reason Code (Proprietary) (RtrInf/Rsn/Prtry): AC06\n' | ||
'End To End Id (Refs/EndToEndId): TESTBANK/NL/20141229/01206407\n' | ||
'Instructed Id (Refs/InstrId): TESTBANK/NL/20141229/01206407\n' | ||
'Postal Address (PstlAdr): NL', | ||
'partner_name': 'Test Customer', | ||
'payment_ref': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', | ||
'ref': 'TESTBANK/NL/20141229/01206407', | ||
'transaction_type': 'PMNT-IDDT-UPDD'}, | ||
{'account_number': 'NL69ABNA0522123643', | ||
'amount': 1405.31, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): 3rd party Media\n' | ||
'Partner Account Number (RltdPties/Acct): NL69ABNA0522123643\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: 115\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RCDT-ESCT\n' | ||
'Additional Transaction Information (AddtlTxInf): #RD PARTY MEDIA CUSNO 90782 4210773\n' | ||
'End To End Id (Refs/EndToEndId): 115\n' | ||
'Instructed Id (Refs/InstrId): INNDNL2U20140105000217200000708\n' | ||
'Postal Address (PstlAdr): SOMESTREET 570-A | 1276 ML HOUSCITY | NL', | ||
'partner_name': '3rd party Media', | ||
'payment_ref': '#RD PARTY MEDIA CUSNO 90782 4210773', | ||
'ref': '115', | ||
'transaction_type': 'PMNT-RCDT-ESCT'}]}]) | ||
[('EUR', | ||
'NL77ABNA0574908765', | ||
[{'balance_end_real': 15121.12, | ||
'balance_start': 15568.27, | ||
'date': '2014-01-05', | ||
'name': '1234Test/1', | ||
'transactions': [{'account_number': 'NL46ABNA0499998748', | ||
'amount': -754.25, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): INSURANCE COMPANY TESTX\n' | ||
'Partner Account Number (RltdPties/Acct): NL46ABNA0499998748\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: 435005714488-ABNO33052620\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RDDT-ESDD\n' | ||
'Unstructured Reference (RmtInf/Ustrd): Insurance policy 857239PERIOD 01.01.2014 - 31.12.2014\n' | ||
'Additional Transaction Information (AddtlTxInf): MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014\n' | ||
'End To End Id (Refs/EndToEndId): 435005714488-ABNO33052620\n' | ||
'Instructed Id (Refs/InstrId): INNDNL2U20141231000142300002844\n' | ||
'Postal Address (PstlAdr): TEST STREET 20 | 1234 AB TESTCITY | NL', | ||
'partner_name': 'INSURANCE COMPANY TESTX', | ||
'payment_ref': 'MKB Insurance 859239PERIOD 01.01.2014 - 31.12.2014', | ||
'ref': '435005714488-ABNO33052620', | ||
'transaction_type': 'PMNT-RDDT-ESDD'}, | ||
{'account_number': 'NL46ABNA0499998748', | ||
'amount': -564.05, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): Test Customer\n' | ||
'Partner Account Number (RltdPties/Acct): NL46ABNA0499998748\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: TESTBANK/NL/20141229/01206408\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-IDDT-UPDD\n' | ||
'Reversal Indicator (RvslInd): true\n' | ||
'Unstructured Reference (RmtInf/Ustrd): Direct Debit S14 0410\n' | ||
'Additional Transaction Information (AddtlTxInf): Direct debit S14 0410 AC07 Rek.nummer blokkade ' | ||
'TESTBANK/NL/20141229/01206408\n' | ||
'Return Reason Code (RtrInf/Rsn/Cd): AC06\n' | ||
'Return Reason Code (Proprietary) (RtrInf/Rsn/Prtry): AC06\n' | ||
'End To End Id (Refs/EndToEndId): TESTBANK/NL/20141229/01206408\n' | ||
'Instructed Id (Refs/InstrId): TESTBANK/NL/20141229/01206408\n' | ||
'Postal Address (PstlAdr): NL', | ||
'partner_name': 'Test Customer', | ||
'payment_ref': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', | ||
'ref': 'TESTBANK/NL/20141229/01206408', | ||
'transaction_type': 'PMNT-IDDT-UPDD'}, | ||
{'account_number': 'NL46ABNA0499998748', | ||
'amount': -100.0, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): Test Customer\n' | ||
'Partner Account Number (RltdPties/Acct): NL46ABNA0499998748\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: TESTBANK/NL/20141229/01206407\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-IDDT-UPDD\n' | ||
'Reversal Indicator (RvslInd): true\n' | ||
'Unstructured Reference (RmtInf/Ustrd): Direct Debit S14 0410\n' | ||
'Additional Transaction Information (AddtlTxInf): Direct debit S14 0410 AC07 Rek.nummer blokkade ' | ||
'TESTBANK/NL/20141229/01206408\n' | ||
'Return Reason Code (RtrInf/Rsn/Cd): AC06\n' | ||
'Return Reason Code (Proprietary) (RtrInf/Rsn/Prtry): AC06\n' | ||
'End To End Id (Refs/EndToEndId): TESTBANK/NL/20141229/01206407\n' | ||
'Instructed Id (Refs/InstrId): TESTBANK/NL/20141229/01206407\n' | ||
'Postal Address (PstlAdr): NL', | ||
'partner_name': 'Test Customer', | ||
'payment_ref': 'Direct debit S14 0410 AC07 Rek.nummer blokkade TESTBANK/NL/20141229/01206408', | ||
'ref': 'TESTBANK/NL/20141229/01206407', | ||
'transaction_type': 'PMNT-IDDT-UPDD'}, | ||
{'account_number': 'NL69ABNA0522123643', | ||
'amount': 1405.31, | ||
'date': '2014-01-05', | ||
'narration': 'Partner Name (RltdPties/Nm): 3rd party Media\n' | ||
'Partner Account Number (RltdPties/Acct): NL69ABNA0522123643\n' | ||
'Transaction Date (BookgDt): 2014-01-05\n' | ||
'Reference: 115\n' | ||
'Communication: \n' | ||
'Transaction Type (BkTxCd): PMNT-RCDT-ESCT\n' | ||
'Additional Transaction Information (AddtlTxInf): #RD PARTY MEDIA CUSNO 90782 4210773\n' | ||
'End To End Id (Refs/EndToEndId): 115\n' | ||
'Instructed Id (Refs/InstrId): INNDNL2U20140105000217200000708\n' | ||
'Postal Address (PstlAdr): SOMESTREET 570-A | 1276 ML HOUSCITY | NL', | ||
'partner_name': '3rd party Media', | ||
'payment_ref': '#RD PARTY MEDIA CUSNO 90782 4210773', | ||
'ref': '115', | ||
'transaction_type': 'PMNT-RCDT-ESCT'}]}])] |
Oops, something went wrong.