Class: MasspayRubySdk::KycService
- Inherits:
-
Object
- Object
- MasspayRubySdk::KycService
- Defined in:
- lib/masspay_ruby_sdk/api/kyc_service.rb
Instance Method Summary collapse
-
#find_attributes_velocity(user_token, body) ⇒ Object
Attributes velocity check POST /payout/attribute/user_token/velocity.
-
#get_user_user_token_kyc_attempts(user_token) ⇒ Object
Get all KYC sessions GET /payout/user/user_token/kyc/id.
-
#get_user_user_token_kyc_au_10_tix(user_token) ⇒ Object
Get an Au10tix session link GET /payout/user/user_token/kyc/au10tix.
-
#get_user_user_token_kyc_veriff(user_token) ⇒ Object
Get a Veriff session link GET /payout/user/user_token/kyc/veriff.
-
#initialize(client) ⇒ KycService
constructor
A new instance of KycService.
-
#upload_id_photos(user_token, body) ⇒ Object
Upload ID photos POST /payout/user/user_token/kyc/id.
Constructor Details
#initialize(client) ⇒ KycService
Returns a new instance of KycService.
15 16 17 |
# File 'lib/masspay_ruby_sdk/api/kyc_service.rb', line 15 def initialize(client) @client = client ||= Client.new end |
Instance Method Details
#find_attributes_velocity(user_token, body) ⇒ Object
Attributes velocity check POST /payout/attribute/user_token/velocity
22 23 24 25 26 |
# File 'lib/masspay_ruby_sdk/api/kyc_service.rb', line 22 def find_attributes_velocity user_token, body @client.post("payout/attribute/#{user_token}/velocity") do |req| req.body = body end end |
#get_user_user_token_kyc_attempts(user_token) ⇒ Object
Get all KYC sessions GET /payout/user/user_token/kyc/id
45 46 47 |
# File 'lib/masspay_ruby_sdk/api/kyc_service.rb', line 45 def get_user_user_token_kyc_attempts user_token @client.get("payout/user/#{user_token}/kyc/id") end |
#get_user_user_token_kyc_au_10_tix(user_token) ⇒ Object
Get an Au10tix session link GET /payout/user/user_token/kyc/au10tix
30 31 32 |
# File 'lib/masspay_ruby_sdk/api/kyc_service.rb', line 30 def get_user_user_token_kyc_au_10_tix user_token @client.get("payout/user/#{user_token}/kyc/au10tix") end |
#get_user_user_token_kyc_veriff(user_token) ⇒ Object
Get a Veriff session link GET /payout/user/user_token/kyc/veriff
51 52 53 |
# File 'lib/masspay_ruby_sdk/api/kyc_service.rb', line 51 def get_user_user_token_kyc_veriff user_token @client.get("payout/user/#{user_token}/kyc/veriff") end |
#upload_id_photos(user_token, body) ⇒ Object
Upload ID photos POST /payout/user/user_token/kyc/id
37 38 39 40 41 |
# File 'lib/masspay_ruby_sdk/api/kyc_service.rb', line 37 def upload_id_photos user_token, body @client.post("payout/user/#{user_token}/kyc/id") do |req| req.body = body end end |