sepa_king 0.11.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +50 -0
- data/.gitignore +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +10 -11
- data/gemfiles/{Gemfile-activemodel-4.0.x → Gemfile-activemodel-6.0.x} +1 -1
- data/gemfiles/{Gemfile-activemodel-4.1.x → Gemfile-activemodel-6.1.x} +1 -1
- data/gemfiles/{Gemfile-activemodel-3.1.x → Gemfile-activemodel-7.0.x} +1 -1
- data/lib/schema/pain.001.001.03.ch.02.xsd +1212 -0
- data/lib/sepa_king/message/credit_transfer.rb +4 -2
- data/lib/sepa_king/message/direct_debit.rb +1 -1
- data/lib/sepa_king/message.rb +15 -6
- data/lib/sepa_king/transaction/credit_transfer_transaction.rb +2 -0
- data/lib/sepa_king/validator.rb +11 -6
- data/lib/sepa_king/version.rb +1 -1
- data/sepa_king.gemspec +6 -8
- data/spec/credit_transfer_spec.rb +111 -12
- data/spec/credit_transfer_transaction_spec.rb +6 -0
- data/spec/direct_debit_spec.rb +90 -9
- data/spec/examples/pain.001.001.03.ch.02.xml +172 -0
- data/spec/validator_spec.rb +23 -5
- metadata +21 -46
- data/.travis.yml +0 -25
- data/bin/rake +0 -29
- data/gemfiles/Gemfile-activemodel-3.2.x +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e3b76466f9a0fa80b6b9580abbf8cfdc8c1e530914d833848f16962bf49f1c0
|
4
|
+
data.tar.gz: '08059bad5cd7a74208fad02c15769de2cb5e84b3ae7cb622165af5081bc8a4df'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c7f07f705f9afb8c6bcd0e91c3371b4f496e0649dd93b3dab85b5167223393d428d652cbf90147aa415ec63af3d9a01ac6f416a13c4190d28276b49d4a79b30
|
7
|
+
data.tar.gz: 20670910d9fe37671c90dc4189756757ed109b3110429631726b3b479e9ed625927db391002b6f9a01af4ba2e87ea921cd28c5c6e628daa3ec73483f7aa34904
|
@@ -0,0 +1,50 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby: [ '2.7', '3.0', '3.1' ]
|
15
|
+
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1', '7.0' ]
|
16
|
+
exclude:
|
17
|
+
- ruby: '2.7'
|
18
|
+
rails: '4.2'
|
19
|
+
- ruby: '3.0'
|
20
|
+
rails: '4.2'
|
21
|
+
- ruby: '3.0'
|
22
|
+
rails: '5.0'
|
23
|
+
- ruby: '3.0'
|
24
|
+
rails: '5.1'
|
25
|
+
- ruby: '3.0'
|
26
|
+
rails: '5.2'
|
27
|
+
- ruby: '3.1'
|
28
|
+
rails: '4.2'
|
29
|
+
- ruby: '3.1'
|
30
|
+
rails: '5.0'
|
31
|
+
- ruby: '3.1'
|
32
|
+
rails: '5.1'
|
33
|
+
- ruby: '3.1'
|
34
|
+
rails: '5.2'
|
35
|
+
|
36
|
+
name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
|
37
|
+
env:
|
38
|
+
BUNDLE_GEMFILE: gemfiles/Gemfile-activemodel-${{ matrix.rails }}.x
|
39
|
+
|
40
|
+
steps:
|
41
|
+
- uses: actions/checkout@v3
|
42
|
+
|
43
|
+
- name: Setup Ruby
|
44
|
+
uses: ruby/setup-ruby@v1
|
45
|
+
with:
|
46
|
+
ruby-version: ${{ matrix.ruby }}
|
47
|
+
bundler-cache: true # 'bundle install' and cache gems
|
48
|
+
|
49
|
+
- name: RSpec
|
50
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
# Ruby gem for creating SEPA XML files
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/salesking/sepa_king/workflows/Test/badge.svg?branch=master)](https://github.com/salesking/sepa_king/actions)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/salesking/sepa_king/badges/gpa.svg)](https://codeclimate.com/github/salesking/sepa_king)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/salesking/sepa_king/badge.svg?branch=master)](https://coveralls.io/r/salesking/sepa_king?branch=master)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/sepa_king.svg)](http://badge.fury.io/rb/sepa_king)
|
7
|
-
[![Dependency Status](https://gemnasium.com/salesking/sepa_king.svg)](https://gemnasium.com/salesking/sepa_king)
|
8
7
|
|
9
8
|
We love building payment applications! So after developing the [DTAUS library for Ruby](https://github.com/salesking/king_dtaus) we move on with SEPA.
|
10
9
|
|
@@ -16,15 +15,15 @@ This gem implements the following two messages out of the ISO 20022 standard:
|
|
16
15
|
* Credit Transfer Initiation (`pain.001.003.03`, `pain.001.002.03` and `pain.001.001.03`)
|
17
16
|
* Direct Debit Initiation (`pain.008.003.02`, `pain.008.002.02` and `pain.008.001.02`)
|
18
17
|
|
19
|
-
It handles the _Specification of Data Formats_
|
18
|
+
It handles the _Specification of Data Formats_ v3.3 (2019-11-17).
|
20
19
|
|
21
20
|
BTW: **pain** is a shortcut for **Pa**yment **In**itiation.
|
22
21
|
|
23
22
|
|
24
23
|
## Requirements
|
25
24
|
|
26
|
-
* Ruby 2.
|
27
|
-
* ActiveModel
|
25
|
+
* Ruby 2.7 or newer
|
26
|
+
* ActiveModel 4.2 or newer (including 7.0)
|
28
27
|
|
29
28
|
|
30
29
|
## Installation
|
@@ -146,8 +145,8 @@ sdd.add_transaction(
|
|
146
145
|
sdd.add_transaction ...
|
147
146
|
|
148
147
|
# Last: create XML string
|
149
|
-
xml_string = sdd.to_xml
|
150
|
-
xml_string = sdd.to_xml('pain.008.002.02') # Use
|
148
|
+
xml_string = sdd.to_xml # Use schema pain.008.001.02
|
149
|
+
xml_string = sdd.to_xml('pain.008.002.02') # Use schema pain.008.002.02
|
151
150
|
```
|
152
151
|
|
153
152
|
|
@@ -237,8 +236,8 @@ sct.add_transaction(
|
|
237
236
|
sct.add_transaction ...
|
238
237
|
|
239
238
|
# Last: create XML string
|
240
|
-
xml_string = sct.to_xml
|
241
|
-
xml_string = sct.to_xml('pain.001.002.03') # Use
|
239
|
+
xml_string = sct.to_xml # Use schema pain.001.001.03
|
240
|
+
xml_string = sct.to_xml('pain.001.002.03') # Use schema pain.001.002.03
|
242
241
|
```
|
243
242
|
|
244
243
|
## Validations
|
@@ -286,7 +285,7 @@ https://github.com/salesking/sepa_king/graphs/contributors
|
|
286
285
|
|
287
286
|
## Resources
|
288
287
|
|
289
|
-
*
|
288
|
+
* https://www.ebics.de/de/datenformate
|
290
289
|
* SalesKing: http://salesking.eu
|
291
290
|
|
292
291
|
|
@@ -294,4 +293,4 @@ https://github.com/salesking/sepa_king/graphs/contributors
|
|
294
293
|
|
295
294
|
Released under the MIT license
|
296
295
|
|
297
|
-
Copyright (c) 2013-
|
296
|
+
Copyright (c) 2013-2022 Georg Leciejewski (SalesKing), Georg Ledermann (https://github.com/ledermann)
|