Class: Leetchi::StrongAuthentication

Inherits:
Ressource
  • Object
show all
Defined in:
lib/leetchi/strong_authentication.rb

Overview

Get all the strongAuthentication created who need to be validated. It’s important to understand that Leetchi can create himself the request of strongAuthentication, if a user reaches some limits.

Class Method Summary collapse

Class Method Details

.getObject

Get all the strongAuthentication created who need to be validated

  • Returns :

    • A array of strongAuthentication objects



11
12
13
# File 'lib/leetchi/strong_authentication.rb', line 11

def self.get
    get_request(File.join('strongAuthentication'))
end

.upload(upload_url, file_path) ⇒ Object

Upload your Strong Authentication required files using the Leetchi API

  • Args :

    • upload_url -> The url to where the StrongAuthentication documents need to be uploaded

    • file_path -> Local path to the file

  • Returns :

    • true if the request is done

    • false if the request failed



24
25
26
# File 'lib/leetchi/strong_authentication.rb', line 24

def self.upload(upload_url, file_path)
    form_request(upload_url, "StrongValidationDto.Picture", file_path)
end