camt_parser 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d05e17d91aaedeaf9a6f1973248329b4b79a880
4
- data.tar.gz: 72c4fcd51b6b6d1303090ffa7699616b5705c7b9
3
+ metadata.gz: 792b0c062e0f73b4244dad16397b1a228e74b07b
4
+ data.tar.gz: b9354f8b28c77d60c1b2422566442c4d17ba3a6a
5
5
  SHA512:
6
- metadata.gz: b36ca72815e182bf7e8a7ca0f30d0e4ae6e26abd591c0cfb295ba91ddcc74f83671f2a96b77e95395f9627114a60baf71d6794da01f6ab1966b6f3401c97812e
7
- data.tar.gz: 60ba5d68f92a309cea026895e733ff15c1c3230e1dd48d9ba416fba7b6f69b66faeba96df9ac42486bf3151b62c04230c0ca088a127e03a3cd8a7dc929214137
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
@@ -1,3 +1,3 @@
1
1
  module CamtParser
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-03 00:00:00.000000000 Z
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: {}