epics 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/epics.gemspec +0 -1
- data/lib/epics.rb +0 -1
- data/lib/epics/azv.rb +26 -37
- data/lib/epics/c52.rb +26 -36
- data/lib/epics/c53.rb +26 -36
- data/lib/epics/c54.rb +26 -36
- data/lib/epics/cct.rb +24 -36
- data/lib/epics/cd1.rb +24 -36
- data/lib/epics/cdb.rb +24 -36
- data/lib/epics/cdd.rb +24 -35
- data/lib/epics/client.rb +8 -3
- data/lib/epics/generic_request.rb +54 -79
- data/lib/epics/generic_upload_request.rb +19 -27
- data/lib/epics/haa.rb +23 -34
- data/lib/epics/hac.rb +32 -41
- data/lib/epics/hia.rb +49 -57
- data/lib/epics/hkd.rb +23 -34
- data/lib/epics/hpb.rb +18 -21
- data/lib/epics/hpd.rb +23 -34
- data/lib/epics/htd.rb +23 -34
- data/lib/epics/ini.rb +43 -50
- data/lib/epics/ptk.rb +32 -38
- data/lib/epics/sta.rb +32 -41
- data/lib/epics/version.rb +1 -1
- data/lib/epics/vmk.rb +32 -41
- data/spec/client_spec.rb +14 -0
- data/spec/fixtures/xml/haa.xml +2 -0
- data/spec/fixtures/xml/haa_receipt.xml +31 -0
- data/spec/fixtures/xml/jruby/hia.xml +2 -0
- data/spec/fixtures/xml/jruby/ini.xml +2 -0
- data/spec/fixtures/xml/ruby/hia.xml +2 -0
- data/spec/fixtures/xml/ruby/ini.xml +2 -0
- data/spec/orders/azv_spec.rb +18 -0
- data/spec/orders/c54_spec.rb +0 -2
- data/spec/orders/haa_spec.rb +23 -1
- data/spec/orders/hia_spec.rb +1 -4
- data/spec/orders/ini_spec.rb +2 -6
- data/spec/orders/ptk_spec.rb +1 -3
- data/spec/orders/vmk_spec.rb +9 -0
- metadata +19 -23
- data/spec/fixtures/xml/hia.xml +0 -2
- data/spec/fixtures/xml/ini.xml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c23596e08bddabf190c3c9f36dfd96b2459d004b9fd763221fa6deed515bd9cb
|
4
|
+
data.tar.gz: c10f4cf0616ddc843060ae2dfaa335361e1ee1cb23c1ab2fb528dffc396af38d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e827b56d080fc333b4f7e62529ecb92b69dab761b6d062fb2be2dced424de4d307580731419c74946a16398557639bd0381efacb275e74a1cd1e90973934a13
|
7
|
+
data.tar.gz: 9ad2bff98ea64beb46dbfed89c0c411dc3bf787bcb6f4c4e91e20573d4fbee09ffe13d323321ac3850956ca4b18524faa0867a57ca32007ceccb905466283a44
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 1.5.2
|
2
|
+
|
3
|
+
* [COMPATIBILITY] be removing the `goyku` dependency we're more recilent against old versions of that gem
|
4
|
+
* [ENHANCEMENT] #order_type gives you more complete overview which order types to current client is entitled
|
5
|
+
to use, there was already `HAA` which isn't as complete as this, which gets its info from `HTD`
|
6
|
+
|
1
7
|
### 1.5.1
|
2
8
|
|
3
9
|
* [ENHANCEMENT] some banks are not returning the order_id in the second upload phase, we now fetch it already
|
data/epics.gemspec
CHANGED
data/lib/epics.rb
CHANGED
data/lib/epics/azv.rb
CHANGED
@@ -1,41 +1,30 @@
|
|
1
1
|
class Epics::AZV < Epics::GenericUploadRequest
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
static
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
"Encryption" => {
|
27
|
-
:@Version => "E002",
|
28
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
29
|
-
:content! => client.bank_e.public_digest
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"SecurityMedium" => "0000",
|
33
|
-
"NumSegments" => 1
|
34
|
-
},
|
35
|
-
"mutable" => {
|
36
|
-
"TransactionPhase" => "Initialisation"
|
2
|
+
def header
|
3
|
+
Nokogiri::XML::Builder.new do |xml|
|
4
|
+
xml.header(authenticate: true) {
|
5
|
+
xml.static {
|
6
|
+
xml.HostID host_id
|
7
|
+
xml.Nonce nonce
|
8
|
+
xml.Timestamp timestamp
|
9
|
+
xml.PartnerID partner_id
|
10
|
+
xml.UserID user_id
|
11
|
+
xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
|
12
|
+
xml.OrderDetails {
|
13
|
+
xml.OrderType 'CD1'
|
14
|
+
xml.OrderAttribute 'OZHNN'
|
15
|
+
xml.StandardOrderParams
|
16
|
+
}
|
17
|
+
xml.BankPubKeyDigests {
|
18
|
+
xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256")
|
19
|
+
xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" )
|
20
|
+
}
|
21
|
+
xml.SecurityMedium '0000'
|
22
|
+
xml.NumSegments 1
|
23
|
+
}
|
24
|
+
xml.mutable {
|
25
|
+
xml.TransactionPhase 'Initialisation'
|
37
26
|
}
|
38
27
|
}
|
39
|
-
end
|
40
|
-
|
28
|
+
end.doc.root
|
41
29
|
end
|
30
|
+
end
|
data/lib/epics/c52.rb
CHANGED
@@ -8,45 +8,35 @@ class Epics::C52 < Epics::GenericRequest
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def header
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"Start" => from,
|
29
|
-
"End" => to
|
11
|
+
Nokogiri::XML::Builder.new do |xml|
|
12
|
+
xml.header(authenticate: true) {
|
13
|
+
xml.static {
|
14
|
+
xml.HostID host_id
|
15
|
+
xml.Nonce nonce
|
16
|
+
xml.Timestamp timestamp
|
17
|
+
xml.PartnerID partner_id
|
18
|
+
xml.UserID user_id
|
19
|
+
xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
|
20
|
+
xml.OrderDetails {
|
21
|
+
xml.OrderType 'C52'
|
22
|
+
xml.OrderAttribute 'DZHNN'
|
23
|
+
xml.StandardOrderParams {
|
24
|
+
xml.DateRange {
|
25
|
+
xml.Start from
|
26
|
+
xml.End to
|
27
|
+
}
|
30
28
|
}
|
31
29
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
:@Version => "X002",
|
36
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
37
|
-
:content! => client.bank_x.public_digest
|
38
|
-
},
|
39
|
-
"Encryption" => {
|
40
|
-
:@Version => "E002",
|
41
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
42
|
-
:content! => client.bank_e.public_digest
|
30
|
+
xml.BankPubKeyDigests {
|
31
|
+
xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256")
|
32
|
+
xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" )
|
43
33
|
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
34
|
+
xml.SecurityMedium '0000'
|
35
|
+
}
|
36
|
+
xml.mutable {
|
37
|
+
xml.TransactionPhase 'Initialisation'
|
38
|
+
}
|
49
39
|
}
|
50
|
-
|
40
|
+
end.doc.root
|
51
41
|
end
|
52
42
|
end
|
data/lib/epics/c53.rb
CHANGED
@@ -8,45 +8,35 @@ class Epics::C53 < Epics::GenericRequest
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def header
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"Start" => from,
|
29
|
-
"End" => to
|
11
|
+
Nokogiri::XML::Builder.new do |xml|
|
12
|
+
xml.header(authenticate: true) {
|
13
|
+
xml.static {
|
14
|
+
xml.HostID host_id
|
15
|
+
xml.Nonce nonce
|
16
|
+
xml.Timestamp timestamp
|
17
|
+
xml.PartnerID partner_id
|
18
|
+
xml.UserID user_id
|
19
|
+
xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
|
20
|
+
xml.OrderDetails {
|
21
|
+
xml.OrderType 'C53'
|
22
|
+
xml.OrderAttribute 'DZHNN'
|
23
|
+
xml.StandardOrderParams {
|
24
|
+
xml.DateRange {
|
25
|
+
xml.Start from
|
26
|
+
xml.End to
|
27
|
+
}
|
30
28
|
}
|
31
29
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
:@Version => "X002",
|
36
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
37
|
-
:content! => client.bank_x.public_digest
|
38
|
-
},
|
39
|
-
"Encryption" => {
|
40
|
-
:@Version => "E002",
|
41
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
42
|
-
:content! => client.bank_e.public_digest
|
30
|
+
xml.BankPubKeyDigests {
|
31
|
+
xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256")
|
32
|
+
xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" )
|
43
33
|
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
34
|
+
xml.SecurityMedium '0000'
|
35
|
+
}
|
36
|
+
xml.mutable {
|
37
|
+
xml.TransactionPhase 'Initialisation'
|
38
|
+
}
|
49
39
|
}
|
50
|
-
|
40
|
+
end.doc.root
|
51
41
|
end
|
52
42
|
end
|
data/lib/epics/c54.rb
CHANGED
@@ -8,45 +8,35 @@ class Epics::C54 < Epics::GenericRequest
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def header
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"Start" => from,
|
29
|
-
"End" => to
|
11
|
+
Nokogiri::XML::Builder.new do |xml|
|
12
|
+
xml.header(authenticate: true) {
|
13
|
+
xml.static {
|
14
|
+
xml.HostID host_id
|
15
|
+
xml.Nonce nonce
|
16
|
+
xml.Timestamp timestamp
|
17
|
+
xml.PartnerID partner_id
|
18
|
+
xml.UserID user_id
|
19
|
+
xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
|
20
|
+
xml.OrderDetails {
|
21
|
+
xml.OrderType 'C54'
|
22
|
+
xml.OrderAttribute 'DZHNN'
|
23
|
+
xml.StandardOrderParams {
|
24
|
+
xml.DateRange {
|
25
|
+
xml.Start from
|
26
|
+
xml.End to
|
27
|
+
}
|
30
28
|
}
|
31
29
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
:@Version => "X002",
|
36
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
37
|
-
:content! => client.bank_x.public_digest
|
38
|
-
},
|
39
|
-
"Encryption" => {
|
40
|
-
:@Version => "E002",
|
41
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
42
|
-
:content! => client.bank_e.public_digest
|
30
|
+
xml.BankPubKeyDigests {
|
31
|
+
xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256")
|
32
|
+
xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" )
|
43
33
|
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
34
|
+
xml.SecurityMedium '0000'
|
35
|
+
}
|
36
|
+
xml.mutable {
|
37
|
+
xml.TransactionPhase 'Initialisation'
|
38
|
+
}
|
49
39
|
}
|
50
|
-
|
40
|
+
end.doc.root
|
51
41
|
end
|
52
42
|
end
|
data/lib/epics/cct.rb
CHANGED
@@ -1,42 +1,30 @@
|
|
1
1
|
class Epics::CCT < Epics::GenericUploadRequest
|
2
|
-
|
3
2
|
def header
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"OrderType" => "CCT",
|
18
|
-
"OrderAttribute" => "OZHNN",
|
19
|
-
"StandardOrderParams/" => ""
|
20
|
-
},
|
21
|
-
"BankPubKeyDigests" => {
|
22
|
-
"Authentication" => {
|
23
|
-
:@Version => "X002",
|
24
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
25
|
-
:content! => client.bank_x.public_digest
|
26
|
-
},
|
27
|
-
"Encryption" => {
|
28
|
-
:@Version => "E002",
|
29
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
30
|
-
:content! => client.bank_e.public_digest
|
3
|
+
Nokogiri::XML::Builder.new do |xml|
|
4
|
+
xml.header(authenticate: true) {
|
5
|
+
xml.static {
|
6
|
+
xml.HostID host_id
|
7
|
+
xml.Nonce nonce
|
8
|
+
xml.Timestamp timestamp
|
9
|
+
xml.PartnerID partner_id
|
10
|
+
xml.UserID user_id
|
11
|
+
xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
|
12
|
+
xml.OrderDetails {
|
13
|
+
xml.OrderType 'CCT'
|
14
|
+
xml.OrderAttribute 'OZHNN'
|
15
|
+
xml.StandardOrderParams
|
31
16
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
17
|
+
xml.BankPubKeyDigests {
|
18
|
+
xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256")
|
19
|
+
xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" )
|
20
|
+
}
|
21
|
+
xml.SecurityMedium '0000'
|
22
|
+
xml.NumSegments 1
|
23
|
+
}
|
24
|
+
xml.mutable {
|
25
|
+
xml.TransactionPhase 'Initialisation'
|
26
|
+
}
|
38
27
|
}
|
39
|
-
|
28
|
+
end.doc.root
|
40
29
|
end
|
41
|
-
|
42
30
|
end
|
data/lib/epics/cd1.rb
CHANGED
@@ -1,42 +1,30 @@
|
|
1
1
|
class Epics::CD1 < Epics::GenericUploadRequest
|
2
|
-
|
3
2
|
def header
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"OrderType" => "CD1",
|
18
|
-
"OrderAttribute" => "OZHNN",
|
19
|
-
"StandardOrderParams/" => ""
|
20
|
-
},
|
21
|
-
"BankPubKeyDigests" => {
|
22
|
-
"Authentication" => {
|
23
|
-
:@Version => "X002",
|
24
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
25
|
-
:content! => client.bank_x.public_digest
|
26
|
-
},
|
27
|
-
"Encryption" => {
|
28
|
-
:@Version => "E002",
|
29
|
-
:@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
|
30
|
-
:content! => client.bank_e.public_digest
|
3
|
+
Nokogiri::XML::Builder.new do |xml|
|
4
|
+
xml.header(authenticate: true) {
|
5
|
+
xml.static {
|
6
|
+
xml.HostID host_id
|
7
|
+
xml.Nonce nonce
|
8
|
+
xml.Timestamp timestamp
|
9
|
+
xml.PartnerID partner_id
|
10
|
+
xml.UserID user_id
|
11
|
+
xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
|
12
|
+
xml.OrderDetails {
|
13
|
+
xml.OrderType 'CD1'
|
14
|
+
xml.OrderAttribute 'OZHNN'
|
15
|
+
xml.StandardOrderParams
|
31
16
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
17
|
+
xml.BankPubKeyDigests {
|
18
|
+
xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256")
|
19
|
+
xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" )
|
20
|
+
}
|
21
|
+
xml.SecurityMedium '0000'
|
22
|
+
xml.NumSegments 1
|
23
|
+
}
|
24
|
+
xml.mutable {
|
25
|
+
xml.TransactionPhase 'Initialisation'
|
26
|
+
}
|
38
27
|
}
|
39
|
-
|
28
|
+
end.doc.root
|
40
29
|
end
|
41
|
-
|
42
30
|
end
|