gocardless_pro 2.41.2 → 2.43.0
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/gocardless_pro/client.rb +1 -1
 - data/lib/gocardless_pro/resources/billing_request.rb +2 -0
 - data/lib/gocardless_pro/resources/verification_detail.rb +2 -0
 - data/lib/gocardless_pro/services/verification_details_service.rb +28 -0
 - data/lib/gocardless_pro/version.rb +1 -1
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: cfe5bc79f3dd706e3d9dc4e31b84986be8118e699cfda79a3e17f4b495e2aa23
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 75c9e531d0dab00f03aeecef2d647972c71a9bcffd90d4b75a43909447bbd4bc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 394f30d4aa47fd83b1a5c0db1c2774252fc399765bdef738295706c9f323803f2aa9c1758cad4f7acf1030a882c9644e1949e4e5dbdfab8b6e169539a30e2acd
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: '0638aac1d12e70e24614f19f692f0520fd7d28aba525a9708f8f0e99e302f8d04b56d752a89d7d423522ab283036917640b835df3c96f0c3157f2bc60d946924'
         
     | 
| 
         @@ -208,7 +208,7 @@ module GoCardlessPro 
     | 
|
| 
       208 
208 
     | 
    
         
             
                      'User-Agent' => "#{user_agent}",
         
     | 
| 
       209 
209 
     | 
    
         
             
                      'Content-Type' => 'application/json',
         
     | 
| 
       210 
210 
     | 
    
         
             
                      'GoCardless-Client-Library' => 'gocardless-pro-ruby',
         
     | 
| 
       211 
     | 
    
         
            -
                      'GoCardless-Client-Version' => '2. 
     | 
| 
      
 211 
     | 
    
         
            +
                      'GoCardless-Client-Version' => '2.43.0',
         
     | 
| 
       212 
212 
     | 
    
         
             
                    },
         
     | 
| 
       213 
213 
     | 
    
         
             
                  }
         
     | 
| 
       214 
214 
     | 
    
         
             
                end
         
     | 
| 
         @@ -27,6 +27,7 @@ module GoCardlessPro 
     | 
|
| 
       27 
27 
     | 
    
         
             
                  attr_reader :mandate_request
         
     | 
| 
       28 
28 
     | 
    
         
             
                  attr_reader :metadata
         
     | 
| 
       29 
29 
     | 
    
         
             
                  attr_reader :payment_request
         
     | 
| 
      
 30 
     | 
    
         
            +
                  attr_reader :purpose_code
         
     | 
| 
       30 
31 
     | 
    
         
             
                  attr_reader :resources
         
     | 
| 
       31 
32 
     | 
    
         
             
                  attr_reader :status
         
     | 
| 
       32 
33 
     | 
    
         | 
| 
         @@ -43,6 +44,7 @@ module GoCardlessPro 
     | 
|
| 
       43 
44 
     | 
    
         
             
                    @mandate_request = object['mandate_request']
         
     | 
| 
       44 
45 
     | 
    
         
             
                    @metadata = object['metadata']
         
     | 
| 
       45 
46 
     | 
    
         
             
                    @payment_request = object['payment_request']
         
     | 
| 
      
 47 
     | 
    
         
            +
                    @purpose_code = object['purpose_code']
         
     | 
| 
       46 
48 
     | 
    
         
             
                    @resources = object['resources']
         
     | 
| 
       47 
49 
     | 
    
         
             
                    @status = object['status']
         
     | 
| 
       48 
50 
     | 
    
         
             
                    @response = response
         
     | 
| 
         @@ -19,6 +19,7 @@ module GoCardlessPro 
     | 
|
| 
       19 
19 
     | 
    
         
             
                  attr_reader :company_number
         
     | 
| 
       20 
20 
     | 
    
         
             
                  attr_reader :description
         
     | 
| 
       21 
21 
     | 
    
         
             
                  attr_reader :directors
         
     | 
| 
      
 22 
     | 
    
         
            +
                  attr_reader :name
         
     | 
| 
       22 
23 
     | 
    
         
             
                  attr_reader :postal_code
         
     | 
| 
       23 
24 
     | 
    
         | 
| 
       24 
25 
     | 
    
         
             
                  # Initialize a verification_detail resource instance
         
     | 
| 
         @@ -34,6 +35,7 @@ module GoCardlessPro 
     | 
|
| 
       34 
35 
     | 
    
         
             
                    @description = object['description']
         
     | 
| 
       35 
36 
     | 
    
         
             
                    @directors = object['directors']
         
     | 
| 
       36 
37 
     | 
    
         
             
                    @links = object['links']
         
     | 
| 
      
 38 
     | 
    
         
            +
                    @name = object['name']
         
     | 
| 
       37 
39 
     | 
    
         
             
                    @postal_code = object['postal_code']
         
     | 
| 
       38 
40 
     | 
    
         
             
                    @response = response
         
     | 
| 
       39 
41 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -10,6 +10,34 @@ module GoCardlessPro 
     | 
|
| 
       10 
10 
     | 
    
         
             
              module Services
         
     | 
| 
       11 
11 
     | 
    
         
             
                # Service for making requests to the VerificationDetail endpoints
         
     | 
| 
       12 
12 
     | 
    
         
             
                class VerificationDetailsService < BaseService
         
     | 
| 
      
 13 
     | 
    
         
            +
                  # Returns a list of verification details belonging to a creditor.
         
     | 
| 
      
 14 
     | 
    
         
            +
                  # Example URL: /verification_details
         
     | 
| 
      
 15 
     | 
    
         
            +
                  # @param options [Hash] parameters as a hash, under a params key.
         
     | 
| 
      
 16 
     | 
    
         
            +
                  def list(options = {})
         
     | 
| 
      
 17 
     | 
    
         
            +
                    path = '/verification_details'
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                    options[:retry_failures] = true
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                    response = make_request(:get, path, options)
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                    ListResponse.new(
         
     | 
| 
      
 24 
     | 
    
         
            +
                      response: response,
         
     | 
| 
      
 25 
     | 
    
         
            +
                      unenveloped_body: unenvelope_body(response.body),
         
     | 
| 
      
 26 
     | 
    
         
            +
                      resource_class: Resources::VerificationDetail
         
     | 
| 
      
 27 
     | 
    
         
            +
                    )
         
     | 
| 
      
 28 
     | 
    
         
            +
                  end
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
                  # Get a lazily enumerated list of all the items returned. This is similar to the `list` method but will paginate for you automatically.
         
     | 
| 
      
 31 
     | 
    
         
            +
                  #
         
     | 
| 
      
 32 
     | 
    
         
            +
                  # @param options [Hash] parameters as a hash. If the request is a GET, these will be converted to query parameters.
         
     | 
| 
      
 33 
     | 
    
         
            +
                  # Otherwise they will be the body of the request.
         
     | 
| 
      
 34 
     | 
    
         
            +
                  def all(options = {})
         
     | 
| 
      
 35 
     | 
    
         
            +
                    Paginator.new(
         
     | 
| 
      
 36 
     | 
    
         
            +
                      service: self,
         
     | 
| 
      
 37 
     | 
    
         
            +
                      options: options
         
     | 
| 
      
 38 
     | 
    
         
            +
                    ).enumerator
         
     | 
| 
      
 39 
     | 
    
         
            +
                  end
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
       13 
41 
     | 
    
         
             
                  # Verification details represent any information needed by GoCardless to verify
         
     | 
| 
       14 
42 
     | 
    
         
             
                  # a creditor.
         
     | 
| 
       15 
43 
     | 
    
         
             
                  # Currently, only UK-based companies are supported.
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: gocardless_pro
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.43.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - GoCardless
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-02-10 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: faraday
         
     | 
| 
         @@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       197 
197 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       198 
198 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       199 
199 
     | 
    
         
             
            requirements: []
         
     | 
| 
       200 
     | 
    
         
            -
            rubygems_version: 3.4. 
     | 
| 
      
 200 
     | 
    
         
            +
            rubygems_version: 3.4.6
         
     | 
| 
       201 
201 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       202 
202 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       203 
203 
     | 
    
         
             
            summary: A gem for calling the GoCardless Pro API
         
     |