trustly-client-ruby 0.1.85 → 0.1.86

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: 7d2975425e998c9d88c6cdd0ed2f8958005d4ba8
4
- data.tar.gz: 791c25a48622e86067f483bd3f91fae2ba47de29
3
+ metadata.gz: fa19ee312cc55c6d3fb61dc5219933db4dc81091
4
+ data.tar.gz: 067fb785d74bfabcfac18dd6d1d105c83cdbed6a
5
5
  SHA512:
6
- metadata.gz: c783baa436332be39470304c51a0492d5a694f24c9c205212000fb9e93d9258e73b978a0277e895c7a2f58f3fd3a61dfbefe55fadd56ed238774b6911d4b886f
7
- data.tar.gz: 912321faa33848cfc511e658a2ce94190cdc553141cb61a6b28707e95baa685ba611a81bcb43da2c0a261cdc35b214f1f80e8dc2130d574ffc13052e2673d2c2
6
+ metadata.gz: 9144b13fb9a69b8a37bdf5df36d95a885250efbb6e9c1a586ecbb78edce7a28d9751bb26d5bba414d984691712bb141791f53b8004887ffeb4446df7f80cdab2
7
+ data.tar.gz: 499734aae159ab0684c639daf6e7fc1b64852f7fa40a39c37b553d0ce052aea89596d19ae1a7f7f257358e97e888a61bd24248908999c3a193cb19a4a6700e74
@@ -5,12 +5,16 @@ class Trustly::JSONRPCNotificationResponse < Trustly::Data
5
5
  uuid = request.get_uuid()
6
6
  method = request.get_method()
7
7
 
8
- self.set('version')
8
+ self.set('version','1.1')
9
9
  self.set_result('uuid',uuid) unless uuid.nil?
10
10
  self.set_result('method',method) unless method.nil?
11
11
  self.set_data('success', (!success.nil? && !success ? 'FAILED' : 'OK' ))
12
12
  end
13
13
 
14
+ def set_signature(signature)
15
+ self.set_result('signature',signature)
16
+ end
17
+
14
18
  def set_result(name,value)
15
19
  return nil if name.nil? || value.nil?
16
20
  self.payload["result"] = {} if self.payload.try(:[],"result").nil?
@@ -1,3 +1,3 @@
1
1
  module Trustly
2
- VERSION = "0.1.85"
2
+ VERSION = "0.1.86"
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.85
4
+ version: 0.1.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Carretie