gocardless_pro 2.41.2 → 2.43.0

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
  SHA256:
3
- metadata.gz: e7f25ecfdfd84932a52514eee32983142bb7d3d9b3b578cd0ee547226c75ad01
4
- data.tar.gz: 281155b55d074a8ab7206f76f026bcc7083159b3959ee3586dc0cbef01325ca2
3
+ metadata.gz: cfe5bc79f3dd706e3d9dc4e31b84986be8118e699cfda79a3e17f4b495e2aa23
4
+ data.tar.gz: 75c9e531d0dab00f03aeecef2d647972c71a9bcffd90d4b75a43909447bbd4bc
5
5
  SHA512:
6
- metadata.gz: 63f430b9362d350783aee88ffa9ce6c5f9827a0217dad005243e5697e352419439f908bdfa96b7e7335fe4f993a00edbba31553b694a08186ea68fda62aa1900
7
- data.tar.gz: 1e258511daa2a7f0d53aa3741dce6f577b107092a4da3b69b5e2c2896cf45b1f951c5fed26a62584ab874cbc8f1241e6764ff16535064db4dccfa10dec0a44f0
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.41.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.
@@ -3,5 +3,5 @@ end
3
3
 
4
4
  module GoCardlessPro
5
5
  # Current version of the GC gem
6
- VERSION = '2.41.2'
6
+ VERSION = '2.43.0'
7
7
  end
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.41.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-01-31 00:00:00.000000000 Z
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.1
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