gocardless_pro 4.20.0 → 4.20.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d609bad8f5a7b85cf05639093c346966b16df40a2519f44409900ee60a4ad40
|
|
4
|
+
data.tar.gz: 42bddbcb2b62a5053333d60051b3bd3323267e5f45f98ebc89f795ce24e8ed33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36a5335fdd6fbe2674d449e53ddc6e759739dd361c0fa21754c02b175a98867051be8d3d70038a4e6df8334038d4a27ac093aa911969a11ec054c461c7e6cf76
|
|
7
|
+
data.tar.gz: 1d1047507f809cf172b6ef1c3bd14971076bb5680eebf8d842c1d9cab9cba29a55cdbd5ee80ba7a7ffb35e8044125805402b37b7cbe65836327dcd169879c8b3
|
|
@@ -283,7 +283,7 @@ module GoCardlessPro
|
|
|
283
283
|
'User-Agent' => "#{user_agent}",
|
|
284
284
|
'Content-Type' => 'application/json',
|
|
285
285
|
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
|
|
286
|
-
'GoCardless-Client-Version' => '4.20.
|
|
286
|
+
'GoCardless-Client-Version' => '4.20.1',
|
|
287
287
|
},
|
|
288
288
|
}
|
|
289
289
|
end
|
|
@@ -17,7 +17,7 @@ module GoCardlessPro
|
|
|
17
17
|
# Some errors are returned as string rather than objects, wrap in standard format
|
|
18
18
|
json_body['error'] = {
|
|
19
19
|
'message' => json_body['error'],
|
|
20
|
-
'
|
|
20
|
+
'code' => env.status,
|
|
21
21
|
}
|
|
22
22
|
end
|
|
23
23
|
error_type = json_body['error']['type']
|
|
@@ -44,7 +44,7 @@ module GoCardlessPro
|
|
|
44
44
|
gocardless: GoCardlessPro::GoCardlessError,
|
|
45
45
|
invalid_api_usage: GoCardlessPro::InvalidApiUsageError,
|
|
46
46
|
invalid_state: GoCardlessPro::InvalidStateError,
|
|
47
|
-
}.fetch(type
|
|
47
|
+
}.fetch(type&.to_sym, GoCardlessPro::ApiError)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def generate_error_data(env)
|