mangopay 3.20.0 → 3.21.0

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: c22a75f6a785d55c368cc565e3d9b2dc399c5b08cb8b4b8ed27f24762ee9b6a2
4
- data.tar.gz: 7b1b066c802f7716aa500267349928ed05d7df7ac9be74e63855376c284e2c03
3
+ metadata.gz: 4ebf18b4543fba2a3bb18f64c34d7e104647012da1c9a177f20df4c9399832c1
4
+ data.tar.gz: 9907c1a093070848df08f761bcf6ca8e40675220d99bed080987f6545b99d8a2
5
5
  SHA512:
6
- metadata.gz: 51efb4cb9942a749604b7f44e0fb79958b862ab03a0aa742c70af9bc650001aff7b339d43e56011392556e2e38572343c19a243e5218e09b24d4960346d3c10c
7
- data.tar.gz: 1b8d01d73103c23d7e999e6c4e49ae2d57f5161ecb20626be0465d581de3e4c606b38549c4bde0fc4e4b2d27d4a7684c6cd1566b949f32463bf52ace34b309cf
6
+ metadata.gz: d1abeac43f7b0222ff080a37f6c20c58a01933767e54d6c0b322b13d2b87515c37f791c606c5c755f25957dbfca274139f680ef32bd690e5614345fba45ffd39
7
+ data.tar.gz: 9a083534b2638e0cba743a6a15b9af3e7c25a36108ff87db434aa18dbbf834fbd6a4efe76a2de180cea7a1aeff0fb55a6bf8ca0275cb741142455e1b65f333af
@@ -28,7 +28,7 @@ jobs:
28
28
  ruby-version: 2.6.10
29
29
  - name: Install Rspec
30
30
  run: |
31
- gem install bundler
31
+ gem install bundler -v 2.4.22
32
32
  bundler install
33
33
  - name: Test
34
34
  run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [3.21.0] - 2024-01-23
2
+ ### Added
3
+
4
+ - The endpoint [View a card Validation](https://mangopay.com/docs/endpoints/card-validations#view-card-validation) is now available
5
+
1
6
  ## [3.20.0] - 2023-11-15
2
7
  ### Added
3
8
 
data/lib/mangopay/card.rb CHANGED
@@ -40,6 +40,11 @@ module MangoPay
40
40
  url = "#{MangoPay.api_path}/cards/#{card_id}/validation"
41
41
  MangoPay.request(:post, url, params)
42
42
  end
43
+
44
+ def get_card_validation(card_id, validation_id)
45
+ url = "#{MangoPay.api_path}/cards/#{card_id}/validation/#{validation_id}"
46
+ MangoPay.request(:get, url)
47
+ end
43
48
  end
44
49
  end
45
50
  end
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.20.0'
2
+ VERSION = '3.21.0'
3
3
  end
@@ -100,5 +100,13 @@ describe MangoPay::CardRegistration do
100
100
 
101
101
  expect(validated).to_not be_nil
102
102
  end
103
+
104
+ it "fetches card validation" do
105
+ created = new_card_registration_completed
106
+ card_validation = create_card_validation(created['UserId'], created['CardId'])
107
+ fetched_card_validation = MangoPay::Card.get_card_validation(created['CardId'], card_validation['Id'])
108
+
109
+ expect(card_validation['Id']).equal? fetched_card_validation['Id']
110
+ end
103
111
  end
104
112
  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.20.0
4
+ version: 3.21.0
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: 2023-11-15 00:00:00.000000000 Z
12
+ date: 2024-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json