sepa_rator 1.2.0 → 1.3.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 +1 -0
- data/lib/sepa_rator/profiles/country_defaults.rb +20 -0
- data/lib/sepa_rator/profiles/nl.rb +45 -0
- data/lib/sepa_rator/version.rb +1 -1
- data/lib/sepa_rator.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f5c4d4ba498a51346375639632710641e3155d6ae580f6b20a830970cc16b91
|
|
4
|
+
data.tar.gz: 340692a742d81be85dd1c46568269192a04f05f6ca63a9cf0ce270a28c3873e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf92825685748b1537816192e43049895c61d460891ec3dcb151fa1d85aa126b6660c75292336e1f1d73f0b453d9e6424e7f1381b74ae10588b69bc320226c16
|
|
7
|
+
data.tar.gz: 896146e071e0be2f864156b5b8241307f47dac1848e25910e4691933fe948e47de40b597038a3bfeb918c958d07c8bb963e5b66a5fdd29d203cc8f0016062376
|
data/README.md
CHANGED
|
@@ -28,6 +28,7 @@ national variants (CFONB for France, DK/DFÜ for Germany, …) first-class.
|
|
|
28
28
|
| SPS 🇨🇭 | `Profiles::SPS` | `country: :ch` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
29
29
|
| GB 🇬🇧 | `Profiles::GB` | `country: :gb` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
30
30
|
| AT / PSA 🇦🇹 | `Profiles::AT` | `country: :at` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
31
|
+
| NL 🇳🇱 | `Profiles::NL` | `country: :nl` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
31
32
|
|
|
32
33
|
For the full per-profile detail (XSD, constraints, capabilities), see [DOCUMENTATION.md](DOCUMENTATION.md#supported-profiles-and-schemas). Adding a new country is a single file in `lib/sepa_rator/profiles/` plus entries in `lib/sepa_rator/profiles/country_defaults.rb`.
|
|
33
34
|
|
|
@@ -139,6 +139,26 @@ module SEPA
|
|
|
139
139
|
profile: GB::SDD_08)
|
|
140
140
|
R.set_country_default(family: :direct_debit, country: :gb, version: :v02,
|
|
141
141
|
profile: GB::SDD_02)
|
|
142
|
+
|
|
143
|
+
# ── Netherlands → NL (Betaalvereniging) ──────────────────────
|
|
144
|
+
|
|
145
|
+
R.set_country_default(family: :credit_transfer, country: :nl, version: :latest,
|
|
146
|
+
profile: NL::SCT_13)
|
|
147
|
+
R.set_country_default(family: :credit_transfer, country: :nl, version: :v13,
|
|
148
|
+
profile: NL::SCT_13)
|
|
149
|
+
R.set_country_default(family: :credit_transfer, country: :nl, version: :v09,
|
|
150
|
+
profile: NL::SCT_09)
|
|
151
|
+
R.set_country_default(family: :credit_transfer, country: :nl, version: :v03,
|
|
152
|
+
profile: NL::SCT_03)
|
|
153
|
+
|
|
154
|
+
R.set_country_default(family: :direct_debit, country: :nl, version: :latest,
|
|
155
|
+
profile: NL::SDD_12)
|
|
156
|
+
R.set_country_default(family: :direct_debit, country: :nl, version: :v12,
|
|
157
|
+
profile: NL::SDD_12)
|
|
158
|
+
R.set_country_default(family: :direct_debit, country: :nl, version: :v08,
|
|
159
|
+
profile: NL::SDD_08)
|
|
160
|
+
R.set_country_default(family: :direct_debit, country: :nl, version: :v02,
|
|
161
|
+
profile: NL::SDD_02)
|
|
142
162
|
end
|
|
143
163
|
end
|
|
144
164
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SEPA
|
|
4
|
+
module Profiles
|
|
5
|
+
# NL (Betaalvereniging / Dutch Payments Association) profiles.
|
|
6
|
+
# Dutch banks follow the EPC SEPA rulebook and add their own
|
|
7
|
+
# implementation guidelines on top — the Betaalvereniging NL IG C2B
|
|
8
|
+
# SCT/SDD 2023 v1.0 covers pain.001.001.09 and pain.008.001.08.
|
|
9
|
+
#
|
|
10
|
+
# NL profiles inherit everything from EPC and require postal addresses
|
|
11
|
+
# to be carried as structured fields (StrtNm, PstCd, TwnNm, …), enforced
|
|
12
|
+
# via `features.requires_structured_address`.
|
|
13
|
+
module NL
|
|
14
|
+
REQUIRES_STRUCTURED_ADDRESS = { requires_structured_address: true }.freeze
|
|
15
|
+
|
|
16
|
+
# ─── SEPA Credit Transfer ────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
SCT_03 = ProfileRegistry.register(
|
|
19
|
+
EPC::SCT_03.with(id: 'nl.sct.03', features: REQUIRES_STRUCTURED_ADDRESS)
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
SCT_09 = ProfileRegistry.register(
|
|
23
|
+
EPC::SCT_09.with(id: 'nl.sct.09', features: REQUIRES_STRUCTURED_ADDRESS)
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
SCT_13 = ProfileRegistry.register(
|
|
27
|
+
EPC::SCT_13.with(id: 'nl.sct.13', features: REQUIRES_STRUCTURED_ADDRESS)
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
# ─── SEPA Direct Debit ───────────────────────────────────────────────
|
|
31
|
+
|
|
32
|
+
SDD_02 = ProfileRegistry.register(
|
|
33
|
+
EPC::SDD_02.with(id: 'nl.sdd.02', features: REQUIRES_STRUCTURED_ADDRESS)
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
SDD_08 = ProfileRegistry.register(
|
|
37
|
+
EPC::SDD_08.with(id: 'nl.sdd.08', features: REQUIRES_STRUCTURED_ADDRESS)
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
SDD_12 = ProfileRegistry.register(
|
|
41
|
+
EPC::SDD_12.with(id: 'nl.sdd.12', features: REQUIRES_STRUCTURED_ADDRESS)
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
data/lib/sepa_rator/version.rb
CHANGED
data/lib/sepa_rator.rb
CHANGED
|
@@ -72,6 +72,7 @@ require 'sepa_rator/profiles/dk'
|
|
|
72
72
|
require 'sepa_rator/profiles/sps'
|
|
73
73
|
require 'sepa_rator/profiles/gb'
|
|
74
74
|
require 'sepa_rator/profiles/at'
|
|
75
|
+
require 'sepa_rator/profiles/nl'
|
|
75
76
|
|
|
76
77
|
# Country defaults must load AFTER all variant profiles have been defined.
|
|
77
78
|
require 'sepa_rator/profiles/country_defaults'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sepa_rator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Georg Leciejewski
|
|
@@ -148,6 +148,7 @@ files:
|
|
|
148
148
|
- lib/sepa_rator/profiles/epc.rb
|
|
149
149
|
- lib/sepa_rator/profiles/gb.rb
|
|
150
150
|
- lib/sepa_rator/profiles/iso.rb
|
|
151
|
+
- lib/sepa_rator/profiles/nl.rb
|
|
151
152
|
- lib/sepa_rator/profiles/sps.rb
|
|
152
153
|
- lib/sepa_rator/transaction.rb
|
|
153
154
|
- lib/sepa_rator/transaction/credit_transfer_transaction.rb
|