sepa_king 0.0.7 → 0.1.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/README.md +22 -11
- data/lib/schema/pain.001.002.03.xsd +450 -450
- data/lib/schema/pain.001.003.03.xsd +474 -0
- data/lib/schema/pain.008.002.02.xsd +597 -597
- data/lib/schema/pain.008.003.02.xsd +614 -0
- data/lib/sepa_king/converter.rb +2 -0
- data/lib/sepa_king/message/credit_transfer.rb +16 -13
- data/lib/sepa_king/message/direct_debit.rb +16 -10
- data/lib/sepa_king/message.rb +27 -3
- data/lib/sepa_king/transaction/credit_transfer_transaction.rb +17 -0
- data/lib/sepa_king/transaction/direct_debit_transaction.rb +10 -1
- data/lib/sepa_king/validator.rb +6 -4
- data/lib/sepa_king/version.rb +1 -1
- data/spec/account_spec.rb +1 -1
- data/spec/converter_spec.rb +7 -0
- data/spec/credit_transfer_spec.rb +52 -4
- data/spec/credit_transfer_transaction_spec.rb +30 -9
- data/spec/direct_debit_spec.rb +56 -3
- data/spec/direct_debit_transaction_spec.rb +32 -11
- data/spec/examples/pain.001.002.03.xml +89 -89
- data/spec/examples/pain.001.003.03.xml +89 -0
- data/spec/examples/pain.008.002.02.xml +134 -134
- data/spec/examples/pain.008.003.02.xml +134 -0
- data/spec/transaction_spec.rb +1 -1
- data/spec/validation_spec.rb +4 -0
- metadata +9 -3
data/spec/transaction_spec.rb
CHANGED
data/spec/validation_spec.rb
CHANGED
@@ -3,19 +3,23 @@ require 'spec_helper'
|
|
3
3
|
describe 'Credit Transfer Initiation' do
|
4
4
|
it "should validate example file" do
|
5
5
|
File.read('spec/examples/pain.001.002.03.xml').should validate_against('pain.001.002.03.xsd')
|
6
|
+
File.read('spec/examples/pain.001.003.03.xml').should validate_against('pain.001.003.03.xsd')
|
6
7
|
end
|
7
8
|
|
8
9
|
it 'should not validate dummy string' do
|
9
10
|
'foo'.should_not validate_against('pain.001.002.03.xsd')
|
11
|
+
'foo'.should_not validate_against('pain.001.003.03.xsd')
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
13
15
|
describe 'Direct Debit Initiation' do
|
14
16
|
it 'should validate example file' do
|
15
17
|
File.read('spec/examples/pain.008.002.02.xml').should validate_against('pain.008.002.02.xsd')
|
18
|
+
File.read('spec/examples/pain.008.003.02.xml').should validate_against('pain.008.003.02.xsd')
|
16
19
|
end
|
17
20
|
|
18
21
|
it 'should not validate dummy string' do
|
19
22
|
'foo'.should_not validate_against('pain.008.002.02.xsd')
|
23
|
+
'foo'.should_not validate_against('pain.008.003.02.xsd')
|
20
24
|
end
|
21
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sepa_king
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Leciejewski
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -168,7 +168,9 @@ files:
|
|
168
168
|
- README.md
|
169
169
|
- Rakefile
|
170
170
|
- lib/schema/pain.001.002.03.xsd
|
171
|
+
- lib/schema/pain.001.003.03.xsd
|
171
172
|
- lib/schema/pain.008.002.02.xsd
|
173
|
+
- lib/schema/pain.008.003.02.xsd
|
172
174
|
- lib/sepa_king.rb
|
173
175
|
- lib/sepa_king/account.rb
|
174
176
|
- lib/sepa_king/account/creditor_account.rb
|
@@ -192,7 +194,9 @@ files:
|
|
192
194
|
- spec/direct_debit_spec.rb
|
193
195
|
- spec/direct_debit_transaction_spec.rb
|
194
196
|
- spec/examples/pain.001.002.03.xml
|
197
|
+
- spec/examples/pain.001.003.03.xml
|
195
198
|
- spec/examples/pain.008.002.02.xml
|
199
|
+
- spec/examples/pain.008.003.02.xml
|
196
200
|
- spec/message_spec.rb
|
197
201
|
- spec/spec_helper.rb
|
198
202
|
- spec/support/custom_matcher.rb
|
@@ -220,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
224
|
version: '0'
|
221
225
|
requirements: []
|
222
226
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.1.
|
227
|
+
rubygems_version: 2.1.10
|
224
228
|
signing_key:
|
225
229
|
specification_version: 4
|
226
230
|
summary: Ruby gem for creating SEPA XML files
|
@@ -234,7 +238,9 @@ test_files:
|
|
234
238
|
- spec/direct_debit_spec.rb
|
235
239
|
- spec/direct_debit_transaction_spec.rb
|
236
240
|
- spec/examples/pain.001.002.03.xml
|
241
|
+
- spec/examples/pain.001.003.03.xml
|
237
242
|
- spec/examples/pain.008.002.02.xml
|
243
|
+
- spec/examples/pain.008.003.02.xml
|
238
244
|
- spec/message_spec.rb
|
239
245
|
- spec/spec_helper.rb
|
240
246
|
- spec/support/custom_matcher.rb
|