synapse_pay_rest 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/synapse_pay_rest/api/Nodes.rb +3 -3
- data/lib/synapse_pay_rest/api/Trans.rb +5 -5
- data/lib/synapse_pay_rest/api/Users.rb +6 -6
- 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: 105e66b40ec36bca1b9adc3af99ce7fde4913f77
|
4
|
+
data.tar.gz: e0b00ce8d3f708129f4f9bf1c271811d9e0ea3a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e030b2713d6f7156713fa7735a4c95f9bb1835006a7727c44d1d191f451c2a04000abf0803dc431ee137fdd675af6995d4c0211698a74526128fc2d415a1a4b
|
7
|
+
data.tar.gz: a27d174559ce19d434a6aa352786a7c7b054d7b1370a24b3751151a119c92509fa4e5c03d7365113e3b8b33346304356b51c6ff6227a62a319b6a4535a3dbd5d
|
@@ -15,7 +15,7 @@ module SynapsePayRest
|
|
15
15
|
return path
|
16
16
|
end
|
17
17
|
|
18
|
-
def add(payload: )
|
18
|
+
def add(payload: raise("payload is required"))
|
19
19
|
path = create_node_path()
|
20
20
|
response = @client.post(path, payload)
|
21
21
|
return response
|
@@ -34,7 +34,7 @@ module SynapsePayRest
|
|
34
34
|
return response
|
35
35
|
end
|
36
36
|
|
37
|
-
def verify(node_id: nil, payload: )
|
37
|
+
def verify(node_id: nil, payload: raise("payload is required"))
|
38
38
|
if node_id
|
39
39
|
path = create_node_path(node_id: node_id)
|
40
40
|
response = @client.patch(path, payload)
|
@@ -46,7 +46,7 @@ module SynapsePayRest
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
def delete(node_id: )
|
49
|
+
def delete(node_id: raise("node_id is required"))
|
50
50
|
path = create_node_path(node_id: node_id)
|
51
51
|
response = @client.delete(path)
|
52
52
|
return response
|
@@ -7,7 +7,7 @@ module SynapsePayRest
|
|
7
7
|
@client = client
|
8
8
|
end
|
9
9
|
|
10
|
-
def create_transaction_path(node_id: , trans_id: nil)
|
10
|
+
def create_transaction_path(node_id: raise("node_id is required"), trans_id: nil)
|
11
11
|
path = '/users/' + @client.user_id + '/nodes/' + node_id + '/trans'
|
12
12
|
if trans_id
|
13
13
|
path += '/' + trans_id
|
@@ -15,19 +15,19 @@ module SynapsePayRest
|
|
15
15
|
return path
|
16
16
|
end
|
17
17
|
|
18
|
-
def create(node_id: , payload: )
|
18
|
+
def create(node_id: raise("node_id is required"), payload: raise("payload is required"))
|
19
19
|
path = create_transaction_path(node_id: node_id)
|
20
20
|
response = @client.post(path, payload)
|
21
21
|
return response
|
22
22
|
end
|
23
23
|
|
24
|
-
def update(node_id: , trans_id: , payload: )
|
24
|
+
def update(node_id: raise("node_id is required"), trans_id: raise("trans_id is required"), payload: raise("payload is required"))
|
25
25
|
path = create_transaction_path(node_id: node_id, trans_id: trans_id)
|
26
26
|
response = @client.patch(path, payload)
|
27
27
|
return response
|
28
28
|
end
|
29
29
|
|
30
|
-
def get(node_id: , trans_id: nil, page: nil)
|
30
|
+
def get(node_id: raise("node_id is required"), trans_id: nil, page: nil)
|
31
31
|
if trans_id
|
32
32
|
path = create_transaction_path(node_id: node_id, trans_id: trans_id)
|
33
33
|
response = @client.get(path)
|
@@ -42,7 +42,7 @@ module SynapsePayRest
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
def delete(node_id: , trans_id: )
|
45
|
+
def delete(node_id: raise("node_id is required"), trans_id: raise("trans_id is required"))
|
46
46
|
path = create_transaction_path(node_id: node_id, trans_id: trans_id)
|
47
47
|
response = @client.delete(path)
|
48
48
|
return response
|
@@ -19,7 +19,7 @@ module SynapsePayRest
|
|
19
19
|
return path
|
20
20
|
end
|
21
21
|
|
22
|
-
def refresh(payload: )
|
22
|
+
def refresh(payload: raise("payload is required"))
|
23
23
|
path = '/oauth/%s' % @client.user_id
|
24
24
|
response = @client.post(path, payload)
|
25
25
|
if response.has_key?('oauth_key')
|
@@ -57,31 +57,31 @@ module SynapsePayRest
|
|
57
57
|
return response
|
58
58
|
end
|
59
59
|
|
60
|
-
def update(payload: )
|
60
|
+
def update(payload: raise("payload is required"))
|
61
61
|
path = create_user_path(user_id: @client.user_id)
|
62
62
|
response = @client.patch(path, payload)
|
63
63
|
return response
|
64
64
|
end
|
65
65
|
|
66
|
-
def create(payload: )
|
66
|
+
def create(payload: raise("payload is required"))
|
67
67
|
path = create_user_path()
|
68
68
|
response = @client.post(path, payload)
|
69
69
|
return response
|
70
70
|
end
|
71
71
|
|
72
|
-
def add_doc(payload: )
|
72
|
+
def add_doc(payload: raise("payload is required"))
|
73
73
|
path = create_user_path(user_id: @client.user_id)
|
74
74
|
response = @client.patch(path, payload)
|
75
75
|
return response
|
76
76
|
end
|
77
77
|
|
78
|
-
def answer_kba(payload: )
|
78
|
+
def answer_kba(payload: raise("payload is required"))
|
79
79
|
path = create_user_path(user_id: @client.user_id)
|
80
80
|
response = @client.patch(path, payload)
|
81
81
|
return response
|
82
82
|
end
|
83
83
|
|
84
|
-
def attach_file(file_path: )
|
84
|
+
def attach_file(file_path: raise("file_path is required"))
|
85
85
|
path = create_user_path(user_id: @client.user_id)
|
86
86
|
file_contents = open(file_path) { |f| f.read }
|
87
87
|
file_type = MIME::Types.type_for(file_path).first.content_type
|