camt_parser 2.10.1 → 2.12.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 +4 -4
- data/lib/camt_parser/errors.rb +6 -4
- data/lib/camt_parser/general/account.rb +8 -0
- data/lib/camt_parser/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450aa5c4c5b4b16c77da3a86e7b5d9ab5e9a7aca8afe6e7bcaf786b6cf113eb2
|
4
|
+
data.tar.gz: 788cc86a10e854d71195d3471076e8391f97a6fd2557767e38b1b1fb47cdaa48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ba043b5611080cb8ecd5d06419f4bdaa4a430dc5c62f5117882deb8e1ed01f836b9ebd771f3b3900ba0b99e194d322c4764602a45092f8ea2458465767267c
|
7
|
+
data.tar.gz: d7c7d4724a22548d74f46929511849e264f4e29cc125aa097688cfb055d6b4059dee8d0053dbcc1a271d42053c16160f867a4a001c5f52c3ebe3d54f3d57afb6
|
data/lib/camt_parser/errors.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
module CamtParser
|
2
2
|
module Errors
|
3
|
-
class
|
4
|
-
|
5
|
-
class
|
6
|
-
class
|
3
|
+
class BaseError < StandardError; end
|
4
|
+
|
5
|
+
class NamespaceAlreadyRegistered < BaseError; end
|
6
|
+
class NotXMLError < BaseError; end
|
7
|
+
class UnsupportedParserClass < BaseError; end
|
8
|
+
class UnsupportedNamespaceError < BaseError; end
|
7
9
|
end
|
8
10
|
end
|
@@ -8,6 +8,14 @@ module CamtParser
|
|
8
8
|
@iban ||= @xml_data.xpath('Id/IBAN/text()').text
|
9
9
|
end
|
10
10
|
|
11
|
+
def other_id
|
12
|
+
@other_id ||= @xml_data.xpath('Id/Othr/Id/text()').text
|
13
|
+
end
|
14
|
+
|
15
|
+
def account_number
|
16
|
+
!iban.nil? && !iban.empty? ? iban : other_id
|
17
|
+
end
|
18
|
+
|
11
19
|
def bic
|
12
20
|
@bic ||= @xml_data.xpath('Svcr/FinInstnId/BIC/text()').text
|
13
21
|
end
|
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: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Schoknecht
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -104,7 +104,7 @@ homepage: https://github.com/Barzahlen/camt_parser
|
|
104
104
|
licenses:
|
105
105
|
- MIT
|
106
106
|
metadata: {}
|
107
|
-
post_install_message:
|
107
|
+
post_install_message:
|
108
108
|
rdoc_options: []
|
109
109
|
require_paths:
|
110
110
|
- lib
|
@@ -119,8 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.0.
|
123
|
-
signing_key:
|
122
|
+
rubygems_version: 3.0.3.1
|
123
|
+
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Gem for parsing camt files into a speaking object.
|
126
126
|
test_files: []
|