synapse_pay_rest 3.2.8 → 3.2.9

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: c438f641057f3ce3480e5f43a11c3a1109233100
4
- data.tar.gz: a09df32bbbc228d9fe4b1d2647130d8734424546
3
+ metadata.gz: 9e1254529baa7987ffaf86abeeffaff7b0219331
4
+ data.tar.gz: be4f9b1df87137bf78189aae8062986e0825baf9
5
5
  SHA512:
6
- metadata.gz: ddee097e6b46c77bc0ba91b5354e2367fd5187f8db0d1cda69be77d8be9beb0a5340d0a7efc35ef49fd1628450557d788d44d9178e6e6e2acb0e66bb26f7068a
7
- data.tar.gz: a75f236ced31c80948408e778a14284b02a5611e2f2a0a219593f858211ef63df28883fe7f53465f6b45c26c20a80fdf73d4908e44bb81a99f2910000f43d15a
6
+ metadata.gz: 23a3ed5f4a1ca4073df50437910bef26c88a3f819c576c3bd74fdae61ca09d8edc4986fa5dc4486a3ca3ab4e68e3e6e7851e3aa87c661abfe9cd688f1cbc903c
7
+ data.tar.gz: 6c2bba6907cb3ec22ad8e877a241d766de06200825e9428ea6f066a2ff5998d5745a56b3e901c4f080ab6a1528cdf8690b19697b33bed34b9111ae81508bc47b
@@ -77,6 +77,22 @@ module SynapsePayRest
77
77
  path = node_path(user_id: user_id, node_id: node_id)
78
78
  client.patch(path, payload)
79
79
  end
80
+
81
+ # Sends a PATCH request to /nodes endpoint to reinitiate microdeposits on a node, and returns the
82
+ # response.
83
+ #
84
+ # @param user_id [String]
85
+ # @param node_id [String]
86
+ #
87
+ # @raise [SynapsePayRest::Error] may return subclasses of error based on
88
+ # HTTP response from API
89
+ #
90
+ # @return [Hash] API response
91
+ def resend_micro(user_id:, node_id:)
92
+ path = node_path(user_id: user_id, node_id: node_id)
93
+ path += '?resend_micro=YES'
94
+ client.patch(path, {})
95
+ end
80
96
 
81
97
  # Sends a DELETE request to /node endpoint to remove a node, and returns the response.
82
98
  #
@@ -115,6 +115,17 @@ module SynapsePayRest
115
115
  response = user.client.nodes.patch(user_id: user.id, node_id: id, payload: payload)
116
116
  self.class.from_response(user, response)
117
117
  end
118
+
119
+ # Reinitiates microdeposits on a node
120
+ #
121
+ #
122
+ # @raise [SynapsePayRest::Error] if wrong guess or HTTP error
123
+ #
124
+ # @return [SynapsePayRest::AchUsNode]
125
+ def resend_micro()
126
+ response = user.client.nodes.resend_micro(user_id: user.id, node_id: id)
127
+ self.class.from_response(user, response)
128
+ end
118
129
 
119
130
  private
120
131
 
@@ -315,9 +315,9 @@ module SynapsePayRest
315
315
  'alias' => aka,
316
316
  'entity_type' => entity_type,
317
317
  'entity_scope' => entity_scope,
318
- 'birth_day' => birth_day,
319
- 'birth_month' => birth_month,
320
- 'birth_year' => birth_year,
318
+ 'day' => birth_day,
319
+ 'month' => birth_month,
320
+ 'year' => birth_year,
321
321
  'address_street' => address_street,
322
322
  'address_city' => address_city,
323
323
  'address_subdivision' => address_subdivision,
@@ -1,4 +1,4 @@
1
1
  module SynapsePayRest
2
2
  # Gem version
3
- VERSION = '3.2.8'.freeze
3
+ VERSION = '3.2.9'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_pay_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.8
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Broderick
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-10-11 00:00:00.000000000 Z
12
+ date: 2017-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client