camt_parser 1.0.0 → 1.0.1
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 +3 -1
- data/lib/camt_parser/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 792b0c062e0f73b4244dad16397b1a228e74b07b
|
4
|
+
data.tar.gz: b9354f8b28c77d60c1b2422566442c4d17ba3a6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b2c584890451e51db8bfa15ce1966adde5f95c533cb470c087c4f0e031c299e2e499fe579ad967399b1ca929cb204558ff48bfc5ff212910d4099ef111dcd1
|
7
|
+
data.tar.gz: d025553e91341d25451ecd8b28e208f5ef9dd2be1d597009beaf6b71879ffeb23e93a1956da35cc747e10a209f5d65793a23560449eab8d2ed109fcaf3d698ea
|
@@ -18,7 +18,8 @@ module CamtParser
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class Entry
|
21
|
-
attr_reader :amount, :currency, :value_date, :debitor, :creditor, :remittance_information
|
21
|
+
attr_reader :amount, :currency, :value_date, :debitor, :creditor, :remittance_information,
|
22
|
+
:additional_entry_information
|
22
23
|
|
23
24
|
def initialize(xml_data)
|
24
25
|
@amount = BigDecimal.new(xml_data.xpath('Amt').first.content)
|
@@ -27,6 +28,7 @@ module CamtParser
|
|
27
28
|
@value_date = Date.parse(xml_data.xpath('ValDt/Dt').first.content)
|
28
29
|
@creditor = Creditor.new(xml_data.xpath('NtryDtls'))
|
29
30
|
@debitor = Debitor.new(xml_data.xpath('NtryDtls'))
|
31
|
+
@additional_entry_information = xml_data.xpath('AddtlNtryInf').first.content
|
30
32
|
# Makes the assumption that only unstructured remittance information will be given
|
31
33
|
if (x = xml_data.xpath('NtryDtls/TxDtls/RmtInf/Ustrd')).empty?
|
32
34
|
@remittance_information = nil
|
data/lib/camt_parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camt_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schoknecht
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -93,7 +93,7 @@ files:
|
|
93
93
|
- lib/camt_parser/053/statement.rb
|
94
94
|
- lib/camt_parser/file.rb
|
95
95
|
- lib/camt_parser/version.rb
|
96
|
-
homepage:
|
96
|
+
homepage: https://github.com/Barzahlen/camt_parser
|
97
97
|
licenses:
|
98
98
|
- MIT
|
99
99
|
metadata: {}
|