gocardless_pro 2.41.2 → 2.42.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b2570429f8c937be79f712b94f14f55de11e55b0b5b6f97502783670c3fc95
|
4
|
+
data.tar.gz: 5c3a1044449cefad90b250dffeace0308f90debdbe545f0d129110f93e395431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.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-
|
11
|
+
date: 2023-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|