gocardless_pro 2.53.0 → 2.55.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gocardless_pro/client.rb +1 -1
- data/lib/gocardless_pro/middlewares/raise_gocardless_errors.rb +4 -1
- data/lib/gocardless_pro/resources/subscription.rb +0 -1
- data/lib/gocardless_pro/services/bank_details_lookups_service.rb +5 -4
- data/lib/gocardless_pro/services/billing_requests_service.rb +6 -0
- data/lib/gocardless_pro/services/subscriptions_service.rb +0 -1
- 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: a70aec41dcf3f0306b0358bb4b883594f3662c92d14b6424ea6a1563a4568dfc
|
4
|
+
data.tar.gz: 1c0a8185eba12c72f38fdbed514140f7128132b1b8407508bf123634d59d61df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 527f1b09398fb3953a4b3f8f4844ef265cc0c00e53dbf2464ec71acdf5ae9258c8220cef3ea85992fbf199fa6026499372b94cba96afc876d92ccc7af5dc8520
|
7
|
+
data.tar.gz: a02c87b919cfea0934a4afdbd01f9fc70d8ed3f98b27e1af4f4ed0790a48416a3402999f0527f76d863a2af441b22897bebe69eb5af5b889306cdafdebb942cb
|
@@ -218,7 +218,7 @@ module GoCardlessPro
|
|
218
218
|
'User-Agent' => "#{user_agent}",
|
219
219
|
'Content-Type' => 'application/json',
|
220
220
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
221
|
-
'GoCardless-Client-Version' => '2.
|
221
|
+
'GoCardless-Client-Version' => '2.55.0',
|
222
222
|
},
|
223
223
|
}
|
224
224
|
end
|
@@ -3,9 +3,12 @@ module GoCardlessPro
|
|
3
3
|
class RaiseGoCardlessErrors < Faraday::Middleware
|
4
4
|
API_ERROR_STATUSES = 501..599
|
5
5
|
CLIENT_ERROR_STATUSES = 400..500
|
6
|
+
API_STATUS_NO_CONTENT = 204
|
6
7
|
|
7
8
|
def on_complete(env)
|
8
|
-
|
9
|
+
if !(env.status == API_STATUS_NO_CONTENT || json?(env)) || API_ERROR_STATUSES.include?(env.status)
|
10
|
+
raise ApiError, generate_error_data(env)
|
11
|
+
end
|
9
12
|
|
10
13
|
return unless CLIENT_ERROR_STATUSES.include?(env.status)
|
11
14
|
|
@@ -13,10 +13,11 @@ module GoCardlessPro
|
|
13
13
|
# Performs a bank details lookup. As part of the lookup, a modulus check and
|
14
14
|
# reachability check are performed.
|
15
15
|
#
|
16
|
-
#
|
17
|
-
# or an iban
|
18
|
-
# are already present)
|
19
|
-
#
|
16
|
+
# For UK-based bank accounts, where an account holder name is provided (and an
|
17
|
+
# account number, a sort code or an iban
|
18
|
+
# are already present), we verify that the account holder name and bank account
|
19
|
+
# number match the details held by
|
20
|
+
# the relevant bank.
|
20
21
|
#
|
21
22
|
# If your request returns an [error](#api-usage-errors) or the
|
22
23
|
# `available_debit_schemes`
|
@@ -110,6 +110,12 @@ module GoCardlessPro
|
|
110
110
|
# Direct Debit. If a bank account is discovered to be closed or invalid, the
|
111
111
|
# customer is requested to adjust the account number/routing number and
|
112
112
|
# succeed in this check to continue with the flow.
|
113
|
+
#
|
114
|
+
# _BACS scheme_ [Payer Name
|
115
|
+
# Verification](https://hub.gocardless.com/s/article/Introduction-to-Payer-Name-Verification?language=en_GB)
|
116
|
+
# is enabled by default for UK based bank accounts, meaning we verify the
|
117
|
+
# account holder name and bank account
|
118
|
+
# number match the details held by the relevant bank.
|
113
119
|
# Example URL: /billing_requests/:identity/actions/collect_bank_account
|
114
120
|
#
|
115
121
|
# @param identity # Unique identifier, beginning with "BRQ".
|
@@ -180,7 +180,6 @@ module GoCardlessPro
|
|
180
180
|
#
|
181
181
|
# - `pause_cycles_must_be_greater_than_or_equal_to` if the provided value for
|
182
182
|
# `pause_cycles` cannot be satisfied.
|
183
|
-
#
|
184
183
|
# Example URL: /subscriptions/:identity/actions/pause
|
185
184
|
#
|
186
185
|
# @param identity # Unique identifier, beginning with "SB".
|
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.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubygems_version: 3.4.
|
204
|
+
rubygems_version: 3.4.19
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: A gem for calling the GoCardless Pro API
|