Class: MangoPay::IdentityVerification
- Defined in:
- lib/mangopay/identity_verification.rb
Class Method Summary collapse
- .create(params, user_id, idempotency_key = nil) ⇒ Object
- .get(identity_verification_id, filters = {}) ⇒ Object
- .get_all(user_id, filters = {}) ⇒ Object
Methods inherited from Resource
Class Method Details
.create(params, user_id, idempotency_key = nil) ⇒ Object
4 5 6 |
# File 'lib/mangopay/identity_verification.rb', line 4 def self.create(params, user_id, idempotency_key = nil) MangoPay.request(:post, "#{MangoPay.api_path}/users/#{user_id}/identity-verifications", params, {}, idempotency_key) end |
.get(identity_verification_id, filters = {}) ⇒ Object
8 9 10 |
# File 'lib/mangopay/identity_verification.rb', line 8 def self.get(identity_verification_id, filters = {}) MangoPay.request(:get, "#{MangoPay.api_path}/identity-verifications/#{identity_verification_id}", {}, filters) end |
.get_all(user_id, filters = {}) ⇒ Object
12 13 14 |
# File 'lib/mangopay/identity_verification.rb', line 12 def self.get_all(user_id, filters = {}) MangoPay.request(:get, "#{MangoPay.api_path}/users/#{user_id}/identity-verifications", {}, filters) end |