camt_parser 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/camt_parser/053/statement.rb +2 -2
- data/lib/camt_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df511d70f5657f1b4712fd29c91b4d790a8bbfb3
|
4
|
+
data.tar.gz: f633b2714129b84aa10a331fd44d599087e50beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ede5475f0e6d526394ab775be6419c239d3ff0cc1f4827ce31c6694230dc1a10306f1323e2f4497cef6922f1a2f493d37200afcbbe7a3a59f3acaab37a9eaefe
|
7
|
+
data.tar.gz: 8a1c6b1add697dc3dbe5976e150c0f6f7b7a0dbc123d7741ecf88711b47e2cf41b54d34d0e31fc114ec80c293ac950b5bea73e83036c456742a2086e182ee037
|
@@ -19,7 +19,7 @@ module CamtParser
|
|
19
19
|
|
20
20
|
class Entry
|
21
21
|
attr_reader :amount, :currency, :value_date, :debitor, :creditor, :remittance_information,
|
22
|
-
:
|
22
|
+
:additional_information
|
23
23
|
|
24
24
|
def initialize(xml_data)
|
25
25
|
@amount = BigDecimal.new(xml_data.xpath('Amt').first.content)
|
@@ -28,7 +28,7 @@ module CamtParser
|
|
28
28
|
@value_date = Date.parse(xml_data.xpath('ValDt/Dt').first.content)
|
29
29
|
@creditor = Creditor.new(xml_data.xpath('NtryDtls'))
|
30
30
|
@debitor = Debitor.new(xml_data.xpath('NtryDtls'))
|
31
|
-
@
|
31
|
+
@additional_information = xml_data.xpath('AddtlNtryInf').first.content
|
32
32
|
# Makes the assumption that only unstructured remittance information will be given
|
33
33
|
if (x = xml_data.xpath('NtryDtls/TxDtls/RmtInf/Ustrd')).empty?
|
34
34
|
@remittance_information = nil
|
data/lib/camt_parser/version.rb
CHANGED