mangopay 3.0.37 → 3.0.38
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/mangopay/filter_parameters.rb +2 -2
- data/lib/mangopay/user.rb +10 -0
- data/lib/mangopay/version.rb +1 -1
- data/spec/mangopay/user_spec.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf7447c17143576fc551c5360bd879c107d30c8311b684d7a6e85fbbd924634f
|
4
|
+
data.tar.gz: b7fba691a647737ffc2a055214fe78c5b9b54c4c1b44b6796dd3333d1e6b6172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebba688cb4bdec07a07bc7bd56076e381282cfc0d32dd8c619bdab17d300eb545cc95a4961a72a24fff3674d96c6046aa5cd706af2aabb6b894c1e800501785f
|
7
|
+
data.tar.gz: 6b15d0fc47ed468ac522bdda90542839de2ec6d9759ce2568386b9c1c6a45c285280a73ce7a7de9ec642c66228a79867b53e15051d229d582e073a662e6a6976
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [3.0.38] - 2020-12-11
|
2
|
+
- Added 'Regulatory' endpoint to allow checks of User Block Status
|
3
|
+
- Added support for Regulatory -> Blocked Status Hooks
|
4
|
+
- Removed sensitive data from logs, such as OwnerName, OwnerAddress BIC
|
5
|
+
|
1
6
|
## [3.0.37] - 2020-10-30
|
2
7
|
- Card Validation endpoint fully activated
|
3
8
|
- added pre authorizations transactions method
|
@@ -39,12 +39,12 @@ module MangoPay
|
|
39
39
|
@@res_confidential_params ||= [
|
40
40
|
'access_token', 'AccessKey', 'IBAN', 'CardRegistrationURL',
|
41
41
|
'PreregistrationData', 'RedirectURL', 'RegistrationData',
|
42
|
-
'SecureModeRedirectUrl'
|
42
|
+
'SecureModeRedirectUrl', 'OwnerName', 'OwnerAddress', 'BIC'
|
43
43
|
].freeze
|
44
44
|
end
|
45
45
|
|
46
46
|
def self.req_confidential_params
|
47
|
-
@@req_confidential_params ||= ['File', 'IBAN'].freeze
|
47
|
+
@@req_confidential_params ||= ['File', 'IBAN', 'OwnerName', 'OwnerAddress', 'BIC'].freeze
|
48
48
|
end
|
49
49
|
|
50
50
|
end
|
data/lib/mangopay/user.rb
CHANGED
@@ -64,6 +64,16 @@ module MangoPay
|
|
64
64
|
def pre_authorizations(user_id, filters = {})
|
65
65
|
MangoPay.request(:get, url(user_id) + '/preauthorizations', {}, filters)
|
66
66
|
end
|
67
|
+
|
68
|
+
# Fetches User Block Status
|
69
|
+
def block_status(user_id, filters = {})
|
70
|
+
MangoPay.request(:get, url(user_id) + '/blockStatus', {}, filters)
|
71
|
+
end
|
72
|
+
|
73
|
+
# Fetches User Regulatory
|
74
|
+
def regulatory(user_id, filters = {})
|
75
|
+
MangoPay.request(:get, url(user_id) + '/Regulatory', {}, filters)
|
76
|
+
end
|
67
77
|
end
|
68
78
|
end
|
69
79
|
end
|
data/lib/mangopay/version.rb
CHANGED
data/spec/mangopay/user_spec.rb
CHANGED
@@ -208,4 +208,14 @@ describe MangoPay::User do
|
|
208
208
|
expect(pre_authorizations).to be_an(Array)
|
209
209
|
end
|
210
210
|
end
|
211
|
+
|
212
|
+
=begin
|
213
|
+
describe 'FETCH Block Status' do
|
214
|
+
it "fetches user's block status" do
|
215
|
+
legal_user = new_legal_user
|
216
|
+
block_status = MangoPay::User.block_status(legal_user['Id'])
|
217
|
+
expect(block_status).to_not be_nil
|
218
|
+
end
|
219
|
+
end
|
220
|
+
=end
|
211
221
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangopay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffroy Lorieux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|