trustly-client-ruby 0.1.75 → 0.1.78

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 301079494a0cc519c1188fb66f677adecbeeb567
4
- data.tar.gz: 6eed968b737900e65e5af87aa79d79dab70401dc
3
+ metadata.gz: 7cc697919e415a62fcc2981db206bed108214d34
4
+ data.tar.gz: d72ab0f505ee115f90252f8383ee8ddfa1f24886
5
5
  SHA512:
6
- metadata.gz: ecf6624a327035330bf0c406ef6c3116f3d23c06c0fc266c58755991723468f780f869b46c4620964931980093f46bb9d69e492916b15a6612d8e00368d75e46
7
- data.tar.gz: ea1c4de9c9ae1e92729237e5da4066f435bd71ee48f94b9c516ef79adcee0b59f1fe5966d93b091780967602a726f80ab5a9523be39af2ebf65c4a36e808622a
6
+ metadata.gz: 0ffc51c6ef37c257b996285f8fd77c64826b8b02bb9be2ee41f43c128b857170d316840c35022dfb66579ae7f85155ec31b89a886fc0f6c564c72f9d53e8fc55
7
+ data.tar.gz: 4e5f8781e5c1b327467c4b8da82b4123311c3c135411b46413433ebb173f6b8eca92a1b8f49715967d06e11a22041677e5c5d3afd61872dff4617e887011b17d
data/lib/trustly/api.rb CHANGED
@@ -46,6 +46,14 @@ class Trustly::Api
46
46
  raise NotImplementedError
47
47
  end
48
48
 
49
+ def verify_trustly_signed_notification(response)
50
+ method = response.get_method()
51
+ uuid = response.get_uuid()
52
+ signature = response.get_signature()
53
+ data = response.get_data()
54
+ return self._verify_trustly_signed_data(method, uuid, signature, data)
55
+ end
56
+
49
57
  protected
50
58
 
51
59
  def _verify_trustly_signed_data(method, uuid, signature, data)
@@ -64,13 +72,6 @@ class Trustly::Api
64
72
  return self._verify_trustly_signed_data(method, uuid, signature, data)
65
73
  end
66
74
 
67
- def verify_trustly_signed_notification(response)
68
- method = response.get_method()
69
- uuid = response.get_uuid()
70
- signature = response.get_signature()
71
- data = response.get_data()
72
- return self._verify_trustly_signed_data(method, uuid, signature, data)
73
- end
74
75
 
75
76
  def set_host(host=nil,port=nil,is_https=nil)
76
77
  self.api_host = host unless host.nil?
@@ -1,3 +1,3 @@
1
1
  module Trustly
2
- VERSION = "0.1.75"
2
+ VERSION = "0.1.78"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Trustly
2
- VERSION = "0.1.72"
2
+ VERSION = "0.1.75"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trustly-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.75
4
+ version: 0.1.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Carretie