seb_elink 0.9.1 → 0.9.2
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/Gemfile.lock +1 -1
- data/lib/seb_elink/message_specs.rb +89 -87
- data/lib/seb_elink/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64f56b37d4019992c2b1fa1a5a1cf288a93d3f54
|
|
4
|
+
data.tar.gz: 990bb0a7d4c8461d01f58fb7fa99d1cec58d99b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3cf750728e68d49ed9ae6350afdeacd86541ba93690901c24d3c39f233246d117a06e4907814a00dc2575fa58ef104c9977f290357f9cef8b33137afd235f7a
|
|
7
|
+
data.tar.gz: 14894d91c3b7a6f1b20c6cd72c1f632e83ce4876c42667057c6c50061b9745eafc1ed1b1470a6dd4df8ad301def4bef2b5aa3a20dfc5edf936161568434090ea
|
data/Gemfile.lock
CHANGED
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
module SebElink
|
|
2
|
-
|
|
1
|
+
module SebElink
|
|
2
|
+
module MessageSpecs
|
|
3
|
+
# Storing SEB-defined specs for messages here
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
# AKA P.MU.1
|
|
6
|
+
# Sequence, Parameter title, Max length, Example of value, Description
|
|
7
|
+
# 1, IB_SND_ID, 10, SOMENAME, AAA Request sender (E-system)
|
|
8
|
+
# 2, IB_SERVICE, 4, 0002, Code of the Internet bank request type. Constant 0002
|
|
9
|
+
# 3, IB_VERSION, 3, 001, ID of used digital signature algorithm. Constant 001.
|
|
10
|
+
# 4, IB_AMOUNT, 17, 1234.56, Payment amount
|
|
11
|
+
# 5, IB_CURR, 3, EUR, Payment currency (EUR)
|
|
12
|
+
# 6, IB_NAME, 30, Company Beneficiary’s name, (in this case: Company)
|
|
13
|
+
# 7, IB_PAYMENT_ID, 20, UB0000000000015, Payment order reference number
|
|
14
|
+
# 8, IB_PAYMENT_DESC, 100, Your invoice No. 1234 is paid, Payment order description
|
|
15
|
+
# 9, IB_CRC, 500, abs51ajksa..., Request digital signature
|
|
16
|
+
# 10, IB_FEEDBACK, 150, URL to which the Bank will send the message of acceptance
|
|
17
|
+
# of the payment order for processing, execution, cancellation.
|
|
18
|
+
# 11, IB_LANG, 3, LAT, Preferable language (LAT, ENG, RUS)
|
|
19
|
+
V001_MESSAGE0002_SPEC = {
|
|
20
|
+
IB_SND_ID: {no: 1, in_signature: true, max_length: 10, format: %r'\A.{1,}\z'},
|
|
21
|
+
IB_SERVICE: {no: 2, in_signature: true, max_length: 4, format: %r'\A0002\z'},
|
|
22
|
+
IB_VERSION: {no: 3, in_signature: true, max_length: 3, format: %r'\A001\z'},
|
|
23
|
+
IB_AMOUNT: {no: 4, in_signature: true, max_length: 17, format: %r'\A\d+([.,]\d{,2})?\z'},
|
|
24
|
+
IB_CURR: {no: 5, in_signature: true, max_length: 3, format: %r'\A[A-Z]{3}\z'},
|
|
25
|
+
IB_NAME: {no: 6, in_signature: true, max_length: 30, format: %r'\A.{1,}\z'},
|
|
26
|
+
IB_PAYMENT_ID: {no: 7, in_signature: true, max_length: 20, format: %r'\A[0-9a-zA-Z]{1,20}\z'},
|
|
27
|
+
IB_PAYMENT_DESC: {no: 8, in_signature: true, max_length: 100, format: %r'\A.{1,}\z'},
|
|
28
|
+
# IB_CRC: {no: 9, in_signature: false, max_length: 500, format: %r'\A.*\z'},
|
|
29
|
+
IB_FEEDBACK: {no: 10, in_signature: false, max_length: 150, format: %r'\A.*\z'},
|
|
30
|
+
IB_LANG: {no: 11, in_signature: false, max_length: 3, format: %r'\A(?:LAT)|(?:ENG)|(?:RUS)\z'},
|
|
31
|
+
}.freeze
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
33
|
+
# # 4.2 Message 0003 - Payment order acceptance for processing (P.MU.3 and P.MU.4 parameters):
|
|
34
|
+
# Sequence Parameter title Max length Example of value Description
|
|
35
|
+
# 1. IB_SND_ID 10 B1 Request sender (Banks ID)
|
|
36
|
+
# 2. IB_SERVICE 4 0003 Code of the Internet bank request type
|
|
37
|
+
# 3. IB_VERSION 3 001 ID of used digital signature algorithm
|
|
38
|
+
# 4. IB_PAYMENT_ID 20 UB0000000000015 Payment order reference number
|
|
39
|
+
# 5. IB_AMOUNT 17 1234.56 Payment amount
|
|
40
|
+
# 6. IB_CURR 3 EUR Payment currency (EUR)
|
|
41
|
+
# 7. IB_REC_ID 10 AAA Beneficiary’s identifier (in this case: AAA)
|
|
42
|
+
# 8. IB_REC_ACC 21 Beneficiary’s account (IBAN).
|
|
43
|
+
# 9. IB_REC_NAME 30 Company Beneficiary’s name (in this case: Company)
|
|
44
|
+
# 10. IB_PAYER_ACC 21 Payer’s account (IBAN)
|
|
45
|
+
# 11. IB_PAYER_NAME 110 Jānis Ozols Payer’s name
|
|
46
|
+
# 12. IB_PAYMENT_DESC 100 Your invoice No.1234 is paid Payment order description
|
|
47
|
+
# 13. IB_PAYMENT_DATE 10 12.12.2005 Payment confirmation date (DD.MM.YYYY)
|
|
48
|
+
# 14. IB_PAYMENT_TIME 8 21:12:34 Payment confirmation time (HH:MM:SS)
|
|
49
|
+
# 15. IB_CRC 500 Request digital signature
|
|
50
|
+
# 16. IB_LANG 3 LAT Language (possible values: LAT, ENG, RUS)
|
|
51
|
+
# 17. IB_FROM_SERVER 1 Y / N In case of P.MU.2: Y, P.MU.3: N
|
|
52
|
+
V001_MESSAGE0003_SPEC = {
|
|
53
|
+
IB_SND_ID: {no: 1, in_signature: true},
|
|
54
|
+
IB_SERVICE: {no: 2, in_signature: true},
|
|
55
|
+
IB_VERSION: {no: 3, in_signature: true},
|
|
56
|
+
IB_PAYMENT_ID: {no: 4, in_signature: true},
|
|
57
|
+
IB_AMOUNT: {no: 5, in_signature: true},
|
|
58
|
+
IB_CURR: {no: 6, in_signature: true},
|
|
59
|
+
IB_REC_ID: {no: 7, in_signature: true},
|
|
60
|
+
IB_REC_ACC: {no: 8, in_signature: true},
|
|
61
|
+
IB_REC_NAME: {no: 9, in_signature: true},
|
|
62
|
+
IB_PAYER_ACC: {no: 10, in_signature: true},
|
|
63
|
+
IB_PAYER_NAME: {no: 11, in_signature: true},
|
|
64
|
+
IB_PAYMENT_DESC: {no: 12, in_signature: true},
|
|
65
|
+
IB_PAYMENT_DATE: {no: 13, in_signature: true},
|
|
66
|
+
IB_PAYMENT_TIME: {no: 14, in_signature: true},
|
|
67
|
+
IB_PAYMENT_TIME: {no: 15, in_signature: true}
|
|
68
|
+
}.freeze
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
# # 4.3 Message 0004 - Payment order execution or cancellation (P.MU.2 and P.MU.5 parameters):
|
|
71
|
+
# Sequence, Parameter title, Max length, Example of value, Description
|
|
72
|
+
# 1. IB_SND_ID 10 B1 Request sender (Banks ID)
|
|
73
|
+
# 2. IB_SERVICE 4 0004 Code of the Internet bank request type
|
|
74
|
+
# 3. IB_VERSION 3 001 ID of used digital signature algorithm
|
|
75
|
+
# 4. IB_REC_ID 10 AAA Beneficiary’s identifier (in this case: “AAA”)
|
|
76
|
+
# 5. IB_PAYMENT_ID 20 UB0000000000015 Payment order reference number
|
|
77
|
+
# 6. IB_PAYMENT_DESC 100 Your invoice No. 1234 is paid Payment order description
|
|
78
|
+
# 7. IB_FROM_SERVER 1 Y/ N In case of P.MU.4: “Y”, P.MU.5: “N”
|
|
79
|
+
# 8. IB_STATUS 12 ACCOMPLISHED Payment order status
|
|
80
|
+
# 9. IB_CRC 300 Message digital signature
|
|
81
|
+
# 10. IB_LANG 3 LAT Language (possible values: “LAT”, “ENG”, “RUS”)
|
|
82
|
+
V001_MESSAGE0004_SPEC = {
|
|
83
|
+
IB_SND_ID: {no: 1, in_signature: true},
|
|
84
|
+
IB_SERVICE: {no: 2, in_signature: true},
|
|
85
|
+
IB_VERSION: {no: 3, in_signature: true},
|
|
86
|
+
IB_REC_ID: {no: 4, in_signature: true},
|
|
87
|
+
IB_PAYMENT_ID: {no: 5, in_signature: true},
|
|
88
|
+
IB_PAYMENT_DESC: {no: 6, in_signature: true},
|
|
89
|
+
# -- IB_FROM_SERVER {no: 7, in_signature: true},
|
|
90
|
+
IB_STATUS: {no: 7, in_signature: true},
|
|
91
|
+
}.freeze
|
|
91
92
|
|
|
92
93
|
|
|
93
94
|
|
|
94
95
|
|
|
95
96
|
|
|
97
|
+
end
|
|
96
98
|
end
|
data/lib/seb_elink/version.rb
CHANGED