mangopay 3.0.37 → 3.0.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95f96378128e4073bc8726a16a456a3fabfd34008a30f703cd8d22df86e8506e
4
- data.tar.gz: e6f80ed1350bd81983a6919ced5bcb7052d3eb5bfe4829e942ff0f4a599ce779
3
+ metadata.gz: cf7447c17143576fc551c5360bd879c107d30c8311b684d7a6e85fbbd924634f
4
+ data.tar.gz: b7fba691a647737ffc2a055214fe78c5b9b54c4c1b44b6796dd3333d1e6b6172
5
5
  SHA512:
6
- metadata.gz: 1b8a4718718e30c6b40e75f166998c39cedeb881b5b42bfdd8b6f0778e1f067c1eccea8d4269b1547e32a1e3cf2ecda56492d05a36423eb24247064a27ca7cb3
7
- data.tar.gz: 7a736e8e088babb16034733569c3d04fd2d653f03eddaac925fd9951f8a7759d397a5da7925e864303073a79777a717abfe044263928a7cf900cf2ae1c00b84f
6
+ metadata.gz: ebba688cb4bdec07a07bc7bd56076e381282cfc0d32dd8c619bdab17d300eb545cc95a4961a72a24fff3674d96c6046aa5cd706af2aabb6b894c1e800501785f
7
+ data.tar.gz: 6b15d0fc47ed468ac522bdda90542839de2ec6d9759ce2568386b9c1c6a45c285280a73ce7a7de9ec642c66228a79867b53e15051d229d582e073a662e6a6976
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.0.37'
2
+ VERSION = '3.0.38'
3
3
  end
@@ -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.37
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-10-30 00:00:00.000000000 Z
12
+ date: 2020-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json