sps_king 0.6.1 → 0.7.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/CHANGELOG.md +6 -0
- data/LICENSE.txt +1 -1
- data/README.md +4 -3
- data/lib/schema/pain.001.001.09.ch.03.xsd +1733 -0
- data/lib/sps_king/account/address.rb +32 -9
- data/lib/sps_king/message/credit_transfer.rb +59 -8
- data/lib/sps_king/message/direct_debit.rb +4 -4
- data/lib/sps_king/message.rb +27 -14
- data/lib/sps_king/transaction/credit_transfer_transaction.rb +2 -2
- data/lib/sps_king/version.rb +3 -1
- data/spec/lib/sps_king/account/address_spec.rb +10 -4
- data/spec/lib/sps_king/message/credit_transfer_spec.rb +34 -1
- data/spec/lib/sps_king/message/direct_debit_spec.rb +2 -2
- 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: 31b32c348bef762b07d56477514a4a2bfd8e8f0e3747efc868dfc87c5c2d2611
|
|
4
|
+
data.tar.gz: a35d23dcca002639fe9fd1f81ef31c9da0fdb1211b5c3486f6d563451ad10fb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1945d74086db0e92cb5ad8dae6e091d40df533fa77cc44c8e58057f1c9ccb1b48bc153cccde657de747ef882b4f886aa1d5c994c2f90022a4b340ba20a1c70d
|
|
7
|
+
data.tar.gz: 336173dab180c320bb5bb201ed7ef06463c2cd1a1bf09fb7b4b84947a33def1190432c5d6bc1d5951b4e0956fdc1f4b455c7ad59d880928905e48e6f3c7cb710
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## What's Changed in v0.7.0
|
|
2
|
+
|
|
3
|
+
* Add support for pain.001.001.09.ch.03 in [#20](https://github.com/viafintech/sps_king/pull/20)
|
|
4
|
+
|
|
5
|
+
**Full Changelog**: https://github.com/viafintech/sps_king/compare/v0.6.1...v0.7.0
|
|
6
|
+
|
|
1
7
|
## What's Changed in v0.6.1
|
|
2
8
|
* Add support for execution with Ruby 4 [#21](https://github.com/viafintech/sps_king/pull/21)
|
|
3
9
|
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](http://badge.fury.io/rb/sps_king)
|
|
5
5
|
|
|
6
6
|
sps_king is a Ruby gem which implements **pain** (**Pa**yment **In**itiation) file building for the Swiss Payment Standard, which is a subset of the ISO 20022 standard.
|
|
7
|
-
This is currently implemented in v1.8 for Swiss Credit Transfers (`pain.001.001.03.ch.02`) and v1.2 for Swiss Direct Debits (`pain.008.001.02.ch.03`).
|
|
7
|
+
This is currently implemented in v1.8 and v1.9 for Swiss Credit Transfers (`pain.001.001.03.ch.02`, `pain.001.001.09.ch.03`) and v1.2 for Swiss Direct Debits (`pain.008.001.02.ch.03`).
|
|
8
8
|
|
|
9
9
|
If you are looking for SEPA **pain** file building, take a look at [sepa_king](https://github.com/salesking/sepa_king).
|
|
10
10
|
This gem is forked of `sepa_king` and therefore heavily inspired by the structure and the API.
|
|
@@ -130,7 +130,7 @@ sdd.add_transaction(
|
|
|
130
130
|
sdd.add_transaction ...
|
|
131
131
|
|
|
132
132
|
# Last: create XML string
|
|
133
|
-
xml_string = sdd.to_xml # Use
|
|
133
|
+
xml_string = sdd.to_xml # Use default schema pain.008.001.02.ch.03
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
### Credit Transfer Initiation
|
|
@@ -242,7 +242,8 @@ sct.add_transaction(
|
|
|
242
242
|
sct.add_transaction ...
|
|
243
243
|
|
|
244
244
|
# Last: create XML string
|
|
245
|
-
xml_string = sct.to_xml # Use
|
|
245
|
+
xml_string = sct.to_xml # Use default schema pain.001.001.03.ch.02
|
|
246
|
+
xml_string = sct.to_xml('pain.001.001.09.ch.03') # Use pain.001.001.09.ch.03
|
|
246
247
|
```
|
|
247
248
|
|
|
248
249
|
## Changelog
|