sps_king 0.6.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd8f010271911b78bed9955509277ed10a1a9da20c11ac9cc6c52847cffaf810
4
- data.tar.gz: 44a38096598ff27e120797c59b43d0505c184db77eb08556982f39ce0823fff4
3
+ metadata.gz: 31b32c348bef762b07d56477514a4a2bfd8e8f0e3747efc868dfc87c5c2d2611
4
+ data.tar.gz: a35d23dcca002639fe9fd1f81ef31c9da0fdb1211b5c3486f6d563451ad10fb9
5
5
  SHA512:
6
- metadata.gz: 2b88d4094b57f6b40db6ebc5e83b90238bafb99521d38b0c59b5d7b13b317917bf54184fb5b654c810c0cd19394a5915fd6940bc7752fb1a9b9519e9ff0034f3
7
- data.tar.gz: 99cbcd8f475d7310ecf302a5d6786594d883d8a9464a670baabbaf0207a17227c80dcf46bb277a501649c84c9c957ba126128a58d0cc2047ec4465fc82885e4f
6
+ metadata.gz: b1945d74086db0e92cb5ad8dae6e091d40df533fa77cc44c8e58057f1c9ccb1b48bc153cccde657de747ef882b4f886aa1d5c994c2f90022a4b340ba20a1c70d
7
+ data.tar.gz: 336173dab180c320bb5bb201ed7ef06463c2cd1a1bf09fb7b4b84947a33def1190432c5d6bc1d5951b4e0956fdc1f4b455c7ad59d880928905e48e6f3c7cb710
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: ['3.2', '3.3', '3.4']
16
+ ruby: ['3.2', '3.3', '3.4', '4.0']
17
17
  gemfile:
18
18
  - gemfiles/Gemfile-activemodel-7.1.x
19
19
  - gemfiles/Gemfile-activemodel-7.2.x
data/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
- ## What's Changed in v0.5.0
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
+
7
+ ## What's Changed in v0.6.1
8
+ * Add support for execution with Ruby 4 [#21](https://github.com/viafintech/sps_king/pull/21)
9
+
10
+ **Full Changelog**: https://github.com/viafintech/sps_king/compare/v0.6.0...v0.6.1
11
+
12
+ ## What's Changed in v0.6.0
2
13
  * Update covered ruby and activemodel versions for testing
3
14
  * Improvement of the convert_decimal function by @casaper in [#14](https://github.com/viafintech/sps_king/pull/14)
4
15
  * Standardized creditor and debitor addresses and added stricter validation by @casapar in [#16](https://github.com/viafintech/sps_king/pull/16)
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018-2024 viafintech GmbH
1
+ Copyright (c) 2018-2025 viafintech GmbH
2
2
 
3
3
  Copyright (c) 2013-2017 Georg Leciejewski (Sales King GmbH) & Georg Ledermann for portions of this project copied from sepa_king
4
4
 
data/README.md CHANGED
@@ -4,14 +4,14 @@
4
4
  [![Gem Version](https://badge.fury.io/rb/sps_king.svg)](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.
11
11
 
12
12
  ## Requirements
13
13
 
14
- * Ruby 2.7 or newer
14
+ * Ruby 3.0 or newer
15
15
  * ActiveModel 5.0 or newer
16
16
 
17
17
 
@@ -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 latest schema pain.008.001.02.ch.03
133
+ xml_string = sdd.to_xml # Use default schema pain.008.001.02.ch.03
134
134
  ```
135
135
 
136
136
  ### Credit Transfer Initiation
@@ -190,7 +190,7 @@ sct.add_transaction(
190
190
  # OPTIONAL: Structured remittance information, in German "Strukturierter Verwendungszweck". Required for e.g. Swiss QR transfers
191
191
  # StructuredRemittanceInformation
192
192
  structured_remittance_information: SPS::StructuredRemittanceInformation.new(
193
- # Defines how the reference field should be interpreted for Swiss Direct Debits
193
+ # Defines how the reference field should be interpreted for Swiss Credit Transfers
194
194
  # One of these strings:
195
195
  # 'IPI' ("IPI-Verwendungszweck")
196
196
  # 'QRR' ("QR-Referenz")
@@ -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 latest schema pain.001.001.03.ch.02
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