Skip to content

Commit

Permalink
Make bic optional, bump version to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSmit committed Sep 16, 2019
1 parent 641687a commit 122a219
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@

#JetBrains IDEs
/.idea/

*.gem
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.5.3
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.1.1 - 2019-09-16
- bugfixes
- BIC fields are now optional
4 changes: 2 additions & 2 deletions lib/sepa_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def self.parse(data) # rubocop:disable MethodLength, AbcSize
get_element_text(document, 'Document/CstmrCdtTrfInitn/PmtInf/Dbtr/Nm'),
get_element_text(document, 'Document/CstmrCdtTrfInitn/PmtInf/DbtrAcct/Id/IBAN'),
get_element_text_if_exists(document, 'Document/CstmrCdtTrfInitn/PmtInf/DbtrAcct/Ccy'),
get_element_text(document, 'Document/CstmrCdtTrfInitn/PmtInf/DbtrAgt/FinInstnId/BIC'),
get_element_text_if_exists(document, 'Document/CstmrCdtTrfInitn/PmtInf/DbtrAgt/FinInstnId/BIC'),
get_element_text(transfer, 'PmtId/EndToEndId'),
get_element_text(transfer, 'Amt/InstdAmt'),
get_element_attribute(transfer, 'Amt/InstdAmt', 'Ccy'),
get_element_text(transfer, 'CdtrAgt/FinInstnId/BIC'),
get_element_text_if_exists(transfer, 'CdtrAgt/FinInstnId/BIC'),
get_element_text(transfer, 'Cdtr/Nm'),
get_element_text(transfer, 'CdtrAcct/Id/IBAN'),
get_element_text_if_exists(transfer, 'CdtrAcct/Ccy'),
Expand Down
2 changes: 1 addition & 1 deletion lib/sepa_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SepaParser
VERSION = '0.1.0'
VERSION = '0.1.1'
end

0 comments on commit 122a219

Please sign in to comment.