sepa_file_parser 0.6.0 → 0.7.0

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: 6f8f56c047978a6819537fe74436d7ff29f4cb68e8e2220629ea4bec5f693d58
4
+ data.tar.gz: aec82af45b0e2ebabca9cf74ebf6ac307db0680bf570d46a32a3824abc761c1a
5
5
  SHA512:
6
- metadata.gz: 0aad68c7df361fcb4b12bd412cdcb87e6a50b9609f2f6bcc452a5017c887925dcf7fd4fe69369e48858a55a7c0770a1d4879c476c2f832a0bd2223eff0ce9ff2
7
- data.tar.gz: 3d313635b906e1cbedd4841ccd61ffabb43e30e5ee64f91bd149586de99aeb2a4f7a57cb731aa12725946ce6046db38dab5b325fdfc5cf8e5c75b18e1db1b2ac
6
+ metadata.gz: 6457d63b008b30385ff752e5464dbc3d5054ce8acf1829fc4fcf03e68c01849841b37e45c17aee7a2844a86c166f0bedd0d6f3d1f07d210a06f7bf28c1166daf
7
+ data.tar.gz: 8dc47db27754b8bdb4f07c249f76720050af7545c20f6c1c015b57e98f51b2cda90e76f83492bf9140e8f683b1a9073ee7549cec1d65eb5b3ac8e896791e4c5d
@@ -110,6 +110,10 @@ module SepaFileParser
110
110
  @creditor_reference ||= xml_data.xpath('RmtInf/Strd/CdtrRefInf/Ref/text()').text
111
111
  end
112
112
 
113
+ def message_id # May be missing
114
+ @message_id ||= xml_data.xpath('Refs/MsgId/text()').text
115
+ end
116
+
113
117
  def transaction_id # May be missing
114
118
  @transaction_id ||= xml_data.xpath('Refs/TxId/text()').text
115
119
  end
@@ -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.7.0'.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.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schoknecht