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 +4 -4
- data/.github/workflows/ruby_ci.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/mangopay/card.rb +5 -0
- data/lib/mangopay/version.rb +1 -1
- data/spec/mangopay/card_registration_spec.rb +8 -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: 4ebf18b4543fba2a3bb18f64c34d7e104647012da1c9a177f20df4c9399832c1
|
4
|
+
data.tar.gz: 9907c1a093070848df08f761bcf6ca8e40675220d99bed080987f6545b99d8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1abeac43f7b0222ff080a37f6c20c58a01933767e54d6c0b322b13d2b87515c37f791c606c5c755f25957dbfca274139f680ef32bd690e5614345fba45ffd39
|
7
|
+
data.tar.gz: 9a083534b2638e0cba743a6a15b9af3e7c25a36108ff87db434aa18dbbf834fbd6a4efe76a2de180cea7a1aeff0fb55a6bf8ca0275cb741142455e1b65f333af
|
data/CHANGELOG.md
CHANGED
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
|
data/lib/mangopay/version.rb
CHANGED
@@ -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.
|
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:
|
12
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|