sepa_file_parser 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: 2cb401c65a44c25eadf2e3c2b8d75cd3a6838bbac979687709af19d156358bcf
4
- data.tar.gz: df7d103ca5a48a1a50d705488ed49437fffaddcfc7971cb67eabae19421b2414
3
+ metadata.gz: 8abd588cdd7b25e93e2f84071fce567e415db66fb8a9f1f35ce725adc297102d
4
+ data.tar.gz: c8007c4ce7073d627a02ed01e96a1dd3dda67be7f3eee0e7c5e9ef546ec60958
5
5
  SHA512:
6
- metadata.gz: 0aad68c7df361fcb4b12bd412cdcb87e6a50b9609f2f6bcc452a5017c887925dcf7fd4fe69369e48858a55a7c0770a1d4879c476c2f832a0bd2223eff0ce9ff2
7
- data.tar.gz: 3d313635b906e1cbedd4841ccd61ffabb43e30e5ee64f91bd149586de99aeb2a4f7a57cb731aa12725946ce6046db38dab5b325fdfc5cf8e5c75b18e1db1b2ac
6
+ metadata.gz: 94eb91a4c0104f970da7577b234b53c0fe7cf38c26d077e43a7fe474e713bfd1a0d53ebb91aefefbf1c5f5f2c27269758b7265174d1108e8fb9663b2dd293d76
7
+ data.tar.gz: d43e066b32aa6bcf3f81641813bb10cda4696dedf12beb667d210ca0ded3b00d29c7c05396784b1961d70eacbdd9b2f98088089afd86f86141daaec5cf53eb54
@@ -15,7 +15,7 @@ module SepaFileParser
15
15
  @reports = reports.map { |x| Report.new(x) }
16
16
 
17
17
  group_information_and_status = xml_data.xpath('CstmrPmtStsRpt/OrgnlGrpInfAndSts')
18
- @group_information_and_status = group_information_and_status.map { |x| GroupInformation.new(x) }
18
+ @group_information_and_status = GroupInformation.new(group_information_and_status)
19
19
  end
20
20
  end
21
21
  end
@@ -18,6 +18,14 @@ module SepaFileParser
18
18
  @status_id ||= xml_data.xpath('TxInfAndSts/StsId/text()').text
19
19
  end
20
20
 
21
+ def transaction_instruction
22
+ @transaction_instruction ||= xml_data.xpath('TxInfAndSts/OrgnlInstrId/text()').text
23
+ end
24
+
25
+ def transaction_reference
26
+ @transaction_reference ||= xml_data.xpath('TxInfAndSts/OrgnlEndToEndId/text()').text
27
+ end
28
+
21
29
  def transaction_status
22
30
  @transaction_status ||= xml_data.xpath('TxInfAndSts/TxSts/text()').text
23
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SepaFileParser
4
- VERSION = '0.6.0'.freeze
4
+ VERSION = '0.6.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sepa_file_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schoknecht