From be1b541966396e8e67fbcbdd4c508f8ac0010610 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Wed, 14 Feb 2018 12:18:12 +0100 Subject: [PATCH] Added a required field & the latest attributes in transaction --- misp_modules/modules/export_mod/goaml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misp_modules/modules/export_mod/goaml.py b/misp_modules/modules/export_mod/goaml.py index 23f9ba0..acddd43 100644 --- a/misp_modules/modules/export_mod/goaml.py +++ b/misp_modules/modules/export_mod/goaml.py @@ -28,7 +28,8 @@ goAMLmapping = {'bank-account': 't_account', 'institution-code': 'institution_co 'address': 'address', 'zipcode': 'zip', 'transaction': 'transaction', 'transaction-number': 'transactionnumber', 'date': 'date_transaction', 'location': 'transaction_location', 'transmode-code': 'transmode_code', 'amount': 'amount_local', - 'transmode-comment': 'transmode_comment', 'date-posting': 'date_posting', + 'transmode-comment': 'transmode_comment', 'date-posting': 'date_posting', 'teller': 'teller', + 'authorized': 'authorized', 'legal-entity': 'entity', 'name': 'name', 'commercial-name': 'commercial_name', 'business': 'business', 'legal-form': 'incorporation_legal_form', 'registration-number': 'incorporation_number', 'phone-number': 'phone'} @@ -102,6 +103,8 @@ class GoAmlGeneration(object): attribute_value = attribute.value.split(' - ')[0] else: attribute_value = attribute.value + if obj.name == 'transaction' and attribute.object_relation == 'date-posting': + self.xml[xml_part] += "True" try: self.xml[xml_part] += "<{0}>{1}".format(goAMLmapping[attribute.object_relation], attribute_value) except KeyError: