synapse_pay_rest 3.2.8 → 3.2.9
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:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 9e1254529baa7987ffaf86abeeffaff7b0219331
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: be4f9b1df87137bf78189aae8062986e0825baf9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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 
     | 
    
         
            -
                      ' 
     | 
| 
       319 
     | 
    
         
            -
                      ' 
     | 
| 
       320 
     | 
    
         
            -
                      ' 
     | 
| 
      
 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,
         
     | 
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2017-10-19 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: rest-client
         
     |