seb_elink 0.9.1 → 0.9.2

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