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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ecad438a0c8a714c21a37886e6acad344ed255a4
4
- data.tar.gz: 3555440053e69ad6827ce80f2503b428696ffd21
2
+ SHA256:
3
+ metadata.gz: c23596e08bddabf190c3c9f36dfd96b2459d004b9fd763221fa6deed515bd9cb
4
+ data.tar.gz: c10f4cf0616ddc843060ae2dfaa335361e1ee1cb23c1ab2fb528dffc396af38d
5
5
  SHA512:
6
- metadata.gz: a94e3e00b5bd98e9237a0c0e2d6c1a6dbd9c0d0f2662d587245200add1aed0f115fc7cc5dc1ec1043606e29fcd0cfc17b3b8c82ae17ad8d0bd7d4f42575726f5
7
- data.tar.gz: cbe1262312b000848dd14018b78214693eea72dc11b10ad9e331718364d8bd3b9699e00a390d10ef647eb1e1712a3dcb919eaaef99f98a8bb65b4c9b6e18777a
6
+ metadata.gz: 7e827b56d080fc333b4f7e62529ecb92b69dab761b6d062fb2be2dced424de4d307580731419c74946a16398557639bd0381efacb275e74a1cd1e90973934a13
7
+ data.tar.gz: 9ad2bff98ea64beb46dbfed89c0c411dc3bf787bcb6f4c4e91e20573d4fbee09ffe13d323321ac3850956ca4b18524faa0867a57ca32007ceccb905466283a44
@@ -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
@@ -45,7 +45,6 @@ Gem::Specification.new do |spec|
45
45
  spec.add_dependency "nokogiri"
46
46
  end
47
47
 
48
- spec.add_dependency "gyoku"
49
48
  spec.add_dependency "faraday"
50
49
  spec.add_dependency "rubyzip", ">= 1.0.0"
51
50
 
@@ -5,7 +5,6 @@ require 'json'
5
5
  require 'zlib'
6
6
  require 'zip'
7
7
  require 'nokogiri'
8
- require 'gyoku'
9
8
  require 'faraday'
10
9
  require 'securerandom'
11
10
  require 'time'
@@ -1,41 +1,30 @@
1
1
  class Epics::AZV < Epics::GenericUploadRequest
2
- def header
3
- {
4
- :@authenticate => true,
5
- static: {
6
- "HostID" => host_id,
7
- "Nonce" => nonce,
8
- "Timestamp" => timestamp,
9
- "PartnerID" => partner_id,
10
- "UserID" => user_id,
11
- "Product" => {
12
- :@Language => "de",
13
- :content! => "EPICS - a ruby ebics kernel"
14
- },
15
- "OrderDetails" => {
16
- "OrderType" => "AZV",
17
- "OrderAttribute" => "OZHNN",
18
- "StandardOrderParams/" => ""
19
- },
20
- "BankPubKeyDigests" => {
21
- "Authentication" => {
22
- :@Version => "X002",
23
- :@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256",
24
- :content! => client.bank_x.public_digest
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
@@ -8,45 +8,35 @@ class Epics::C52 < Epics::GenericRequest
8
8
  end
9
9
 
10
10
  def header
11
- {
12
- :@authenticate => true,
13
- static: {
14
- "HostID" => host_id,
15
- "Nonce" => nonce,
16
- "Timestamp" => timestamp,
17
- "PartnerID" => partner_id,
18
- "UserID" => user_id,
19
- "Product" => {
20
- :@Language => "de",
21
- :content! => "EPICS - a ruby ebics kernel"
22
- },
23
- "OrderDetails" => {
24
- "OrderType" => "C52",
25
- "OrderAttribute" => "DZHNN",
26
- "StandardOrderParams" => {
27
- "DateRange" => {
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
- "BankPubKeyDigests" => {
34
- "Authentication" => {
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
- "SecurityMedium" => "0000"
46
- },
47
- "mutable" => {
48
- "TransactionPhase" => "Initialisation"
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
@@ -8,45 +8,35 @@ class Epics::C53 < Epics::GenericRequest
8
8
  end
9
9
 
10
10
  def header
11
- {
12
- :@authenticate => true,
13
- static: {
14
- "HostID" => host_id,
15
- "Nonce" => nonce,
16
- "Timestamp" => timestamp,
17
- "PartnerID" => partner_id,
18
- "UserID" => user_id,
19
- "Product" => {
20
- :@Language => "de",
21
- :content! => "EPICS - a ruby ebics kernel"
22
- },
23
- "OrderDetails" => {
24
- "OrderType" => "C53",
25
- "OrderAttribute" => "DZHNN",
26
- "StandardOrderParams" => {
27
- "DateRange" => {
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
- "BankPubKeyDigests" => {
34
- "Authentication" => {
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
- "SecurityMedium" => "0000"
46
- },
47
- "mutable" => {
48
- "TransactionPhase" => "Initialisation"
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
@@ -8,45 +8,35 @@ class Epics::C54 < Epics::GenericRequest
8
8
  end
9
9
 
10
10
  def header
11
- {
12
- :@authenticate => true,
13
- static: {
14
- "HostID" => host_id,
15
- "Nonce" => nonce,
16
- "Timestamp" => timestamp,
17
- "PartnerID" => partner_id,
18
- "UserID" => user_id,
19
- "Product" => {
20
- :@Language => "de",
21
- :content! => "EPICS - a ruby ebics kernel"
22
- },
23
- "OrderDetails" => {
24
- "OrderType" => "C54",
25
- "OrderAttribute" => "DZHNN",
26
- "StandardOrderParams" => {
27
- "DateRange" => {
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
- "BankPubKeyDigests" => {
34
- "Authentication" => {
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
- "SecurityMedium" => "0000"
46
- },
47
- "mutable" => {
48
- "TransactionPhase" => "Initialisation"
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
@@ -1,42 +1,30 @@
1
1
  class Epics::CCT < Epics::GenericUploadRequest
2
-
3
2
  def header
4
- {
5
- :@authenticate => true,
6
- static: {
7
- "HostID" => host_id,
8
- "Nonce" => nonce,
9
- "Timestamp" => timestamp,
10
- "PartnerID" => partner_id,
11
- "UserID" => user_id,
12
- "Product" => {
13
- :@Language => "de",
14
- :content! => "EPICS - a ruby ebics kernel"
15
- },
16
- "OrderDetails" => {
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
- "SecurityMedium" => "0000",
34
- "NumSegments" => 1
35
- },
36
- "mutable" => {
37
- "TransactionPhase" => "Initialisation"
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
@@ -1,42 +1,30 @@
1
1
  class Epics::CD1 < Epics::GenericUploadRequest
2
-
3
2
  def header
4
- {
5
- :@authenticate => true,
6
- static: {
7
- "HostID" => host_id,
8
- "Nonce" => nonce,
9
- "Timestamp" => timestamp,
10
- "PartnerID" => partner_id,
11
- "UserID" => user_id,
12
- "Product" => {
13
- :@Language => "de",
14
- :content! => "EPICS - a ruby ebics kernel"
15
- },
16
- "OrderDetails" => {
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
- "SecurityMedium" => "0000",
34
- "NumSegments" => 1
35
- },
36
- "mutable" => {
37
- "TransactionPhase" => "Initialisation"
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