swiss_qr 0.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 +7 -0
- data/CHANGELOG.md +27 -0
- data/LICENSE.txt +21 -0
- data/README.md +402 -0
- data/Rakefile +12 -0
- data/docs/SPEC_NOTES.md +542 -0
- data/exe/swiss_qr +12 -0
- data/lib/swiss_qr/address.rb +57 -0
- data/lib/swiss_qr/bill.rb +88 -0
- data/lib/swiss_qr/billing_information.rb +226 -0
- data/lib/swiss_qr/checksum.rb +29 -0
- data/lib/swiss_qr/cli.rb +123 -0
- data/lib/swiss_qr/countries.rb +48 -0
- data/lib/swiss_qr/errors.rb +58 -0
- data/lib/swiss_qr/iban.rb +60 -0
- data/lib/swiss_qr/parser.rb +211 -0
- data/lib/swiss_qr/reader.rb +211 -0
- data/lib/swiss_qr/reference.rb +79 -0
- data/lib/swiss_qr/validation.rb +380 -0
- data/lib/swiss_qr/version.rb +5 -0
- data/lib/swiss_qr.rb +56 -0
- data/sig/manifest.yaml +2 -0
- data/sig/swiss_qr.rbs +226 -0
- metadata +89 -0
metadata
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: swiss_qr
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andi Idogawa
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: bigdecimal
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3.1'
|
|
26
|
+
description: 'Parses the payload of the Swiss QR Code on a Swiss QR-bill (QR-Rechnung,
|
|
27
|
+
QR-facture, QR-fattura; Switzerland and Liechtenstein) per the SIX Swiss Implementation
|
|
28
|
+
Guidelines for the QR-bill ("SPC"/"0200") into immutable value objects: account
|
|
29
|
+
and QR-IBAN, creditor and debtor addresses, amount, currency, QR/creditor reference,
|
|
30
|
+
message, Swico S1 billing information and alternative procedures. Validates every
|
|
31
|
+
rule of the guidelines, including IBAN, QR reference and ISO 11649 check digits.
|
|
32
|
+
Optionally reads the QR codes from images and PDFs with the qr_reader gem.'
|
|
33
|
+
email:
|
|
34
|
+
- web@idogawa.com
|
|
35
|
+
executables:
|
|
36
|
+
- swiss_qr
|
|
37
|
+
extensions: []
|
|
38
|
+
extra_rdoc_files: []
|
|
39
|
+
files:
|
|
40
|
+
- CHANGELOG.md
|
|
41
|
+
- LICENSE.txt
|
|
42
|
+
- README.md
|
|
43
|
+
- Rakefile
|
|
44
|
+
- docs/SPEC_NOTES.md
|
|
45
|
+
- exe/swiss_qr
|
|
46
|
+
- lib/swiss_qr.rb
|
|
47
|
+
- lib/swiss_qr/address.rb
|
|
48
|
+
- lib/swiss_qr/bill.rb
|
|
49
|
+
- lib/swiss_qr/billing_information.rb
|
|
50
|
+
- lib/swiss_qr/checksum.rb
|
|
51
|
+
- lib/swiss_qr/cli.rb
|
|
52
|
+
- lib/swiss_qr/countries.rb
|
|
53
|
+
- lib/swiss_qr/errors.rb
|
|
54
|
+
- lib/swiss_qr/iban.rb
|
|
55
|
+
- lib/swiss_qr/parser.rb
|
|
56
|
+
- lib/swiss_qr/reader.rb
|
|
57
|
+
- lib/swiss_qr/reference.rb
|
|
58
|
+
- lib/swiss_qr/validation.rb
|
|
59
|
+
- lib/swiss_qr/version.rb
|
|
60
|
+
- sig/manifest.yaml
|
|
61
|
+
- sig/swiss_qr.rbs
|
|
62
|
+
homepage: https://github.com/largo/swiss_qr
|
|
63
|
+
licenses:
|
|
64
|
+
- MIT
|
|
65
|
+
metadata:
|
|
66
|
+
allowed_push_host: https://rubygems.org
|
|
67
|
+
source_code_uri: https://github.com/largo/swiss_qr
|
|
68
|
+
changelog_uri: https://github.com/largo/swiss_qr/blob/main/CHANGELOG.md
|
|
69
|
+
bug_tracker_uri: https://github.com/largo/swiss_qr/issues
|
|
70
|
+
documentation_uri: https://github.com/largo/swiss_qr#readme
|
|
71
|
+
rubygems_mfa_required: 'true'
|
|
72
|
+
rdoc_options: []
|
|
73
|
+
require_paths:
|
|
74
|
+
- lib
|
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
|
+
requirements:
|
|
77
|
+
- - ">="
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: 3.3.0
|
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '0'
|
|
85
|
+
requirements: []
|
|
86
|
+
rubygems_version: 4.0.20
|
|
87
|
+
specification_version: 4
|
|
88
|
+
summary: Parse and validate Swiss QR-bill payloads (QR-Rechnung, QR-facture, QR-fattura)
|
|
89
|
+
test_files: []
|