gocardless_pro 2.44.0 → 2.45.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/resources/creditor.rb +0 -2
- data/lib/gocardless_pro/services/creditors_service.rb +12 -3
- data/lib/gocardless_pro/services/scheme_identifiers_service.rb +25 -19
- 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: f933bb05815504fee3eb6ea9893bfc3b3a2588b0672a5bf015b0d91309f98ff6
|
4
|
+
data.tar.gz: 151cd4b107edad4c6b6c55edfbbce6119d7d2c9eecee964c825b70e929733383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77c2b924f6aa8f9866657fc98d7c9c7531c2a1cea2cdd2d91c88adf3a0fc60dd5cbbf4a05a9c614be4fc88441403ff9b29c4eb662a6d8b3094bdfef1bbb12bd5
|
7
|
+
data.tar.gz: 0fb451d644a7f14b703857e51f6cb29a07410692f0943caa11561083a8e8119772c4f709f2fb50df62cabdd656f556ea9cbfa0b93e138150b40d01f379cba3ba
|
@@ -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.45.0',
|
212
212
|
},
|
213
213
|
}
|
214
214
|
end
|
@@ -18,7 +18,6 @@ module GoCardlessPro
|
|
18
18
|
# Currently, for Anti Money Laundering reasons, any creditors you add must
|
19
19
|
# be directly related to your organisation.
|
20
20
|
class Creditor
|
21
|
-
attr_reader :activated
|
22
21
|
attr_reader :address_line1
|
23
22
|
attr_reader :address_line2
|
24
23
|
attr_reader :address_line3
|
@@ -44,7 +43,6 @@ module GoCardlessPro
|
|
44
43
|
def initialize(object, response = nil)
|
45
44
|
@object = object
|
46
45
|
|
47
|
-
@activated = object['activated']
|
48
46
|
@address_line1 = object['address_line1']
|
49
47
|
@address_line2 = object['address_line2']
|
50
48
|
@address_line3 = object['address_line3']
|
@@ -119,11 +119,20 @@ module GoCardlessPro
|
|
119
119
|
|
120
120
|
# Applies a [scheme identifier](#core-endpoints-scheme-identifiers) to a
|
121
121
|
# creditor.
|
122
|
+
#
|
123
|
+
# If the scheme identifier has a `pending` status, it will be applied
|
124
|
+
# asynchronously
|
125
|
+
# once it becomes `active`.
|
126
|
+
#
|
122
127
|
# If the creditor already has a scheme identifier for the scheme, it will be
|
123
128
|
# replaced,
|
124
|
-
# and any mandates attached to it transferred asynchronously.
|
125
|
-
#
|
126
|
-
#
|
129
|
+
# and any mandates attached to it transferred asynchronously. On Bacs and SEPA,
|
130
|
+
# if
|
131
|
+
# payments were about to be submitted, they will be delayed. To minimise this
|
132
|
+
# delay, we
|
133
|
+
# recommend that you apply the new scheme identifier after the daily payment
|
134
|
+
# submission
|
135
|
+
# time (4 PM Europe/London time).
|
127
136
|
#
|
128
137
|
# Example URL: /creditors/:identity/actions/apply_scheme_identifier
|
129
138
|
#
|
@@ -15,33 +15,39 @@ module GoCardlessPro
|
|
15
15
|
# are taken
|
16
16
|
# using it. The scheme identifier must also have the `status` of active before
|
17
17
|
# it can be
|
18
|
-
# used.
|
19
|
-
#
|
20
|
-
# e.g. bacs this can take several days.
|
18
|
+
# used. On Bacs, this will take 5 working days. On other schemes, this happens
|
19
|
+
# instantly.
|
21
20
|
#
|
22
|
-
#
|
21
|
+
# #### Scheme identifier name validations
|
23
22
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
23
|
+
# The `name` field of a scheme identifier can contain alphanumeric characters,
|
24
|
+
# spaces and
|
25
|
+
# special characters.
|
27
26
|
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
# |
|
32
|
-
#
|
33
|
-
# |
|
34
|
-
#
|
35
|
-
# |
|
36
|
-
#
|
37
|
-
# |
|
38
|
-
#
|
39
|
-
# |
|
27
|
+
# Its maximum length and the special characters it supports depend on the
|
28
|
+
# scheme:
|
29
|
+
#
|
30
|
+
# | __scheme__ | __maximum length__ | __special characters allowed__
|
31
|
+
# |
|
32
|
+
# | :---------------- | :----------------- |
|
33
|
+
# :-------------------------------------------------- |
|
34
|
+
# | `bacs` | 18 characters | `/` `.` `&` `-`
|
35
|
+
# |
|
36
|
+
# | `sepa_core` | 70 characters | `/` `?` `:` `(` `)` `.` `,` `+` `&`
|
37
|
+
# `<` `>` `'` `"` |
|
38
|
+
# | `ach` | 16 characters | `/` `?` `:` `(` `)` `.` `,` `'` `+`
|
39
|
+
# `-` |
|
40
|
+
# | `faster_payments` | 18 characters | `/` `?` `:` `(` `)` `.` `,` `'` `+`
|
41
|
+
# `-` |
|
40
42
|
#
|
41
43
|
# The validation error that gets returned for an invalid name will contain a
|
42
44
|
# suggested name
|
43
45
|
# in the metadata that is guaranteed to pass name validations.
|
44
46
|
#
|
47
|
+
# You should ensure that the name you set matches the legal name or the trading
|
48
|
+
# name of
|
49
|
+
# the creditor, otherwise, there is an increased risk of chargeback.
|
50
|
+
#
|
45
51
|
# Example URL: /scheme_identifiers
|
46
52
|
# @param options [Hash] parameters as a hash, under a params key.
|
47
53
|
def create(options = {})
|
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.45.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-04-11 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.
|
200
|
+
rubygems_version: 3.4.10
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: A gem for calling the GoCardless Pro API
|