sepa_rator 1.1.0 → 1.2.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 +18 -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 +40 -0
- data/lib/sepa_rator/profiles/gb.rb +70 -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 +3 -0
- metadata +16 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 142a5f6d6bff2b0355c10149b9654e20f2754b73db9ba049191c00dd5571e370
|
|
4
|
+
data.tar.gz: 34979be8d246b1e4dbcbb4ac8e0e9d6852a7b5406b76bd171838bb4a16f55b5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee2885d89f417ff31bf9ee8ebe692ba5aaddd5533cc129b995d039f2727447e47f4e62ad7867ad1d34f53a5f8f4a4c5f61c3168f5050cd0c194ec435c6b68d05
|
|
7
|
+
data.tar.gz: 4f0cd2f5f693efbbb91decb08384d54b6e9b97580ba01f9921a5ff8513c199a44445f7365e91cd1dd80f28c50280a394b8f8638b493a7b86d7e5d8f6ea31c483
|
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,20 @@ 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
|
+
|
|
32
|
+
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
|
+
|
|
22
34
|
## Requirements
|
|
23
35
|
|
|
24
36
|
- Ruby 3.2+
|
|
@@ -151,18 +163,6 @@ SEPA::CreditTransfer.new(
|
|
|
151
163
|
`profile:` is mutually exclusive with `country:` / `version:` — passing
|
|
152
164
|
both raises `ArgumentError`.
|
|
153
165
|
|
|
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
166
|
## Reusing validators
|
|
167
167
|
|
|
168
168
|
```ruby
|
|
@@ -194,6 +194,8 @@ See [CHANGELOG.md](CHANGELOG.md).
|
|
|
194
194
|
- [EPC rulebooks](https://www.europeanpaymentscouncil.eu/document-library)
|
|
195
195
|
- [CFONB guides](https://www.cfonb.org/espaces-telechargements/documents)
|
|
196
196
|
- [EBICS / DK data formats](https://www.ebics.de/de/datenformate)
|
|
197
|
+
- [Swiss Payment Standards (SIX)](https://www.six-group.com/en/products-services/banking-services/payment-standardization/standards/iso-20022.html)
|
|
198
|
+
- [Bank of England ISO 20022 handbook](https://www.bankofengland.co.uk/payment-and-settlement/rtgs-renewal-programme/iso-20022-handbook)
|
|
197
199
|
|
|
198
200
|
## License
|
|
199
201
|
|