trustly-client-ruby 0.1.85 → 0.1.86
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 +4 -4
- data/lib/trustly/data/jsonrpcnotification_response.rb +5 -1
- data/lib/trustly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa19ee312cc55c6d3fb61dc5219933db4dc81091
|
|
4
|
+
data.tar.gz: 067fb785d74bfabcfac18dd6d1d105c83cdbed6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?
|
data/lib/trustly/version.rb
CHANGED