gocardless_pro 2.54.0 → 2.55.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: '0785e0ba3bd331adfc4a66689db74d9002d3ef91b1167300cdd3dd6868f645aa'
4
- data.tar.gz: a9627b7713acc48be5544ac07548557cba21c816c8de681355b1b0a71e92b73a
3
+ metadata.gz: a70aec41dcf3f0306b0358bb4b883594f3662c92d14b6424ea6a1563a4568dfc
4
+ data.tar.gz: 1c0a8185eba12c72f38fdbed514140f7128132b1b8407508bf123634d59d61df
5
5
  SHA512:
6
- metadata.gz: c65cf5d68e95ad31daed9bb9c0e887c04632869fed3731c48f724099f2febd024a06415fee1f16f216d56475dbd55afb92ef1c08e0a54dc1d951d5c8d2398e1b
7
- data.tar.gz: 3ce5ba13536d9f71947daf1998b60f21838a9438348c64215929737f66bbb956141e947ce048c1ca2b95e6ac19427c4824b8e7769e2b4dd3013f0dae970b2694
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.54.0',
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
- raise ApiError, generate_error_data(env) if !json?(env) || API_ERROR_STATUSES.include?(env.status)
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
 
@@ -67,7 +67,6 @@ module GoCardlessPro
67
67
  # last working day of the month).
68
68
  # - otherwise the charge date will be rolled __forwards__ to the next
69
69
  # business day.
70
- #
71
70
  class Subscription
72
71
  attr_reader :amount
73
72
  attr_reader :app_fee
@@ -13,6 +13,12 @@ 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
+ # 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.
21
+ #
16
22
  # If your request returns an [error](#api-usage-errors) or the
17
23
  # `available_debit_schemes`
18
24
  # attribute is an empty array, you will not be able to collect payments from the
@@ -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".
@@ -3,5 +3,5 @@ end
3
3
 
4
4
  module GoCardlessPro
5
5
  # Current version of the GC gem
6
- VERSION = '2.54.0'
6
+ VERSION = '2.55.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.54.0
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-01-18 00:00:00.000000000 Z
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.10
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