gocardless_pro 2.41.2 → 2.42.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f25ecfdfd84932a52514eee32983142bb7d3d9b3b578cd0ee547226c75ad01
4
- data.tar.gz: 281155b55d074a8ab7206f76f026bcc7083159b3959ee3586dc0cbef01325ca2
3
+ metadata.gz: f4b2570429f8c937be79f712b94f14f55de11e55b0b5b6f97502783670c3fc95
4
+ data.tar.gz: 5c3a1044449cefad90b250dffeace0308f90debdbe545f0d129110f93e395431
5
5
  SHA512:
6
- metadata.gz: 63f430b9362d350783aee88ffa9ce6c5f9827a0217dad005243e5697e352419439f908bdfa96b7e7335fe4f993a00edbba31553b694a08186ea68fda62aa1900
7
- data.tar.gz: 1e258511daa2a7f0d53aa3741dce6f577b107092a4da3b69b5e2c2896cf45b1f951c5fed26a62584ab874cbc8f1241e6764ff16535064db4dccfa10dec0a44f0
6
+ metadata.gz: c89c68bd0de560c0be8acc15505cffdea8cfd91bbd438d7d7274f392fe52cef692cb2409eddc07677b443d8d52fde55260af703ebfab1db7242ef0212a7ca09f
7
+ data.tar.gz: 955ee987380e9810714197a60d4313f0a58123b46ff49bd6b7fa2445368411fe92210b6da0b133375c789214bf695fae3e2730bc8ea4f8f9425ebbc95748ccb7
@@ -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.42.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
@@ -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.42.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.42.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-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday