sepa_rator 1.1.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 +19 -16
- data/lib/schema/at/pain.001.001.03.at.004.xsd +1942 -0
- data/lib/schema/at/pain.001.001.03.xsd +921 -0
- data/lib/schema/at/pain.001.001.09.at.005.xsd +2094 -0
- data/lib/schema/at/pain.001.001.09.xsd +1114 -0
- data/lib/schema/at/pain.001.codelists.xsd +4680 -0
- data/lib/schema/at/pain.001_codelists.xsd +6314 -0
- data/lib/schema/at/pain.008.001.02.at.004.xsd +2204 -0
- data/lib/schema/at/pain.008.001.02.xsd +879 -0
- data/lib/schema/at/pain.008.001.08.at.004.xsd +2185 -0
- data/lib/schema/at/pain.008.001.08.xsd +1106 -0
- data/lib/schema/at/pain.008.codelists.xsd +3111 -0
- data/lib/schema/at/pain.008_codelists.xsd +6275 -0
- data/lib/sepa_rator/concerns/schema_validation.rb +3 -1
- data/lib/sepa_rator/profiles/at.rb +65 -0
- data/lib/sepa_rator/profiles/country_defaults.rb +60 -0
- data/lib/sepa_rator/profiles/gb.rb +70 -0
- data/lib/sepa_rator/profiles/nl.rb +45 -0
- data/lib/sepa_rator/validators/dk/min_amount.rb +4 -19
- data/lib/sepa_rator/validators/min_amount.rb +22 -0
- data/lib/sepa_rator/version.rb +1 -1
- data/lib/sepa_rator.rb +4 -0
- metadata +17 -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
|
@@ -8,10 +8,8 @@ national variants (CFONB for France, DK/DFÜ for Germany, …) first-class.
|
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
|
-
- **Credit Transfer** (`pain.001`)
|
|
12
|
-
-
|
|
13
|
-
- **National profiles** — `CFONB` (🇫🇷), `DK/DFÜ` (🇩🇪), generic `EPC` SEPA
|
|
14
|
-
- Resolves the right profile from a simple `country: :fr` hint
|
|
11
|
+
- **Credit Transfer** (`pain.001`) and **Direct Debit** (`pain.008`) across 7 profile families (see table below)
|
|
12
|
+
- Resolves the right profile from a simple `country: :fr` hint — falls back to generic EPC for unlisted countries
|
|
15
13
|
- Full XSD validation on every generated XML
|
|
16
14
|
- Postal addresses, contact details, LEI, regulatory reporting
|
|
17
15
|
- Flexible charge bearer (SLEV, DEBT, CRED, SHAR)
|
|
@@ -19,6 +17,21 @@ national variants (CFONB for France, DK/DFÜ for Germany, …) first-class.
|
|
|
19
17
|
|
|
20
18
|
**pain** = **Pa**yment **In**itiation (ISO 20022).
|
|
21
19
|
|
|
20
|
+
## Supported schemas & profiles
|
|
21
|
+
|
|
22
|
+
| Family | Namespace | Country hint | Credit Transfer (pain.001) | Direct Debit (pain.008) |
|
|
23
|
+
|---|---|---|---|---|
|
|
24
|
+
| ISO (raw XSD) | `Profiles::ISO` | — | `SCT_03`, `SCT_09`, `SCT_13`, `SCT_EPC_002_03`, `SCT_EPC_003_03` | `SDD_02`, `SDD_08`, `SDD_12`, `SDD_EPC_002_02`, `SDD_EPC_003_02` |
|
|
25
|
+
| EPC SEPA | `Profiles::EPC` | _(SEPA fallback)_ | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
26
|
+
| CFONB 🇫🇷 | `Profiles::CFONB` | `country: :fr` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
27
|
+
| DK / DFÜ 🇩🇪 | `Profiles::DK` | `country: :de` | `SCT_03_GBIC3`, `SCT_09_GBIC5`, `SCT_13_GBIC5` | `SDD_02_GBIC3`, `SDD_08_GBIC5`, `SDD_12_GBIC5` |
|
|
28
|
+
| SPS 🇨🇭 | `Profiles::SPS` | `country: :ch` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
29
|
+
| GB 🇬🇧 | `Profiles::GB` | `country: :gb` | `SCT_03`, `SCT_09`, `SCT_13` | `SDD_02`, `SDD_08`, `SDD_12` |
|
|
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` |
|
|
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`.
|
|
34
|
+
|
|
22
35
|
## Requirements
|
|
23
36
|
|
|
24
37
|
- Ruby 3.2+
|
|
@@ -151,18 +164,6 @@ SEPA::CreditTransfer.new(
|
|
|
151
164
|
`profile:` is mutually exclusive with `country:` / `version:` — passing
|
|
152
165
|
both raises `ArgumentError`.
|
|
153
166
|
|
|
154
|
-
## Supported profiles
|
|
155
|
-
|
|
156
|
-
| Family | Namespace | Profiles |
|
|
157
|
-
|---------------------|------------------|----------------------------------------------------------------------------------------------------------------------------------------|
|
|
158
|
-
| ISO (raw XSD) | `Profiles::ISO` | `SCT_03`, `SCT_09`, `SCT_13`, `SCT_EPC_002_03`, `SCT_EPC_003_03`, `SDD_02`, `SDD_08`, `SDD_12`, `SDD_EPC_002_02`, `SDD_EPC_003_02` |
|
|
159
|
-
| EPC SEPA | `Profiles::EPC` | `SCT_09`, `SCT_13`, `SDD_08`, `SDD_12` |
|
|
160
|
-
| CFONB (France 🇫🇷) | `Profiles::CFONB` | `SCT_09`, `SCT_13`, `SDD_08`, `SDD_12` |
|
|
161
|
-
| DK / DFÜ (Germany 🇩🇪) | `Profiles::DK` | `SCT_09_GBIC5`, `SCT_13_GBIC5`, `SDD_08_GBIC5`, `SDD_12_GBIC5` |
|
|
162
|
-
|
|
163
|
-
Adding a new country is a single file in `lib/sepa_rator/profiles/` plus
|
|
164
|
-
entries in `lib/sepa_rator/profiles/country_defaults.rb`.
|
|
165
|
-
|
|
166
167
|
## Reusing validators
|
|
167
168
|
|
|
168
169
|
```ruby
|
|
@@ -194,6 +195,8 @@ See [CHANGELOG.md](CHANGELOG.md).
|
|
|
194
195
|
- [EPC rulebooks](https://www.europeanpaymentscouncil.eu/document-library)
|
|
195
196
|
- [CFONB guides](https://www.cfonb.org/espaces-telechargements/documents)
|
|
196
197
|
- [EBICS / DK data formats](https://www.ebics.de/de/datenformate)
|
|
198
|
+
- [Swiss Payment Standards (SIX)](https://www.six-group.com/en/products-services/banking-services/payment-standardization/standards/iso-20022.html)
|
|
199
|
+
- [Bank of England ISO 20022 handbook](https://www.bankofengland.co.uk/payment-and-settlement/rtgs-renewal-programme/iso-20022-handbook)
|
|
197
200
|
|
|
198
201
|
## License
|
|
199
202
|
|