girocode 1.0.0 → 1.1.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 +5 -0
- data/README.md +23 -13
- data/lib/girocode/code.rb +2 -2
- data/lib/girocode/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adc698ff8d7690d8cf1bf530b92d4b6050233b1770e6286c5dc22248cb222c62
|
4
|
+
data.tar.gz: d3535a8fac2374ec841e5a2ea7293cddd5080573accbfdafdce3bfcd7bf1efaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74805d61d5034093b2984213c5f9ce5f6cc22f2d168bda27e2a86d0c011863497b6276d419177b8e81e67ba79e7cc1ffd0b6a07376d2ce4184e1d69b2e9a401
|
7
|
+
data.tar.gz: 82d1ab5288c21ddc20a0db118feac4d243483e6067abaf4e73f3950e57c742e4cd4960c7ca4b35928c4f2354c1b8ed045fa8d4d88a5b3d8d19a27e397fca5580
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -33,17 +33,27 @@ puts code.to_ansi
|
|
33
33
|
|
34
34
|
Codes can be generated with the following attributes:
|
35
35
|
|
36
|
-
| Attribute | Description
|
37
|
-
|
38
|
-
| `bic` | Bank Identifier Code
|
39
|
-
| `name` | Name of beneficiary
|
40
|
-
| `iban` | IBAN
|
41
|
-
| `currency` | ISO-4217 currency code
|
42
|
-
| `amount` | Money amount
|
43
|
-
| `purpose` | SEPA purpose code
|
44
|
-
| `creditor_reference` | ISO-11649 creditor reference
|
45
|
-
| `reference` | Unstructured reference
|
46
|
-
| `bto_info` | Beneficiary to originator info
|
36
|
+
| Attribute | Description | required | exclusive | max size |
|
37
|
+
|----------------------|---------------------------------------|--------------------|-----------|----------|
|
38
|
+
| `bic` | Bank Identifier Code | | | 11 |
|
39
|
+
| `name` | Name of beneficiary | ✓ | | 70 |
|
40
|
+
| `iban` | IBAN | ✓ | | 34 |
|
41
|
+
| `currency` | ISO-4217 currency code | if `amount` given | | 3 |
|
42
|
+
| `amount` | Money amount | | | 12 |
|
43
|
+
| `purpose` | SEPA purpose code | | | 4 |
|
44
|
+
| `creditor_reference` | ISO-11649 creditor reference | | ✓ | 35 |
|
45
|
+
| `reference` | Unstructured reference ("remittance") | | ✓ | 140 |
|
46
|
+
| `bto_info` | Beneficiary to originator info | | | 70 |
|
47
|
+
|
48
|
+
## QR code generation options
|
49
|
+
|
50
|
+
All `to_<format>` methods forward options to `RQRCode`. You can therefore supply all supported options to the respective generator, e.g.
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
code.to_svg(fill: :white, color: :blue, module_size: 20)
|
54
|
+
```
|
55
|
+
|
56
|
+
Check the [RQRCode docs](https://github.com/whomwah/rqrcode) for all available options.
|
47
57
|
|
48
58
|
## Limitations
|
49
59
|
|
@@ -51,6 +61,6 @@ Codes are generated as EPC-QR Version 2 in UTF-8 format only.
|
|
51
61
|
|
52
62
|
## Specification
|
53
63
|
|
54
|
-
European Payments Council: Quick Response Code
|
64
|
+
European Payments Council: Quick Response Code, v3.1
|
55
65
|
|
56
|
-
[Guidelines to enable data capture for the initiation of a SEPA credit transfer](https://www.europeanpaymentscouncil.eu/sites/default/files/kb/file/
|
66
|
+
[Guidelines to enable data capture for the initiation of a SEPA credit transfer](https://www.europeanpaymentscouncil.eu/sites/default/files/kb/file/2024-03/EPC069-12%20v3.1%20Quick%20Response%20Code%20-%20Guidelines%20to%20Enable%20the%20Data%20Capture%20for%20the%20Initiation%20of%20an%20SCT.pdf)
|
data/lib/girocode/code.rb
CHANGED
@@ -94,8 +94,8 @@ module Girocode
|
|
94
94
|
|
95
95
|
def payload
|
96
96
|
['BCD', '002', '1', 'SCT',
|
97
|
-
bic, name, iban,formatted_amount, purpose,
|
98
|
-
creditor_reference
|
97
|
+
bic, name, iban, formatted_amount, purpose,
|
98
|
+
creditor_reference, reference, bto_info].map(&:to_s).join("\n").rstrip
|
99
99
|
end
|
100
100
|
|
101
101
|
def to_qrcode
|
data/lib/girocode/version.rb
CHANGED