Sha256: 970187774c6cf30038e0e270c0763c9ef3e8f4a909398fcd5f58fccdee83ed21

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 Bytes

Contents

# frozen_string_literal: true

require 'jumio/entities'

module Jumio
  module Repositories
    class Verification
      # A wrapper for the Netverify web client api
      #
      # https://github.com/Jumio/implementation-guides/blob/master/netverify/netverify-web-v4.md
      include JDC_CONTAINER[default_client: 'http_client']

      # @param verification_params [Hash] Request payload for initiating a new Netverify scan.
      # @param client [Jumio::HttpClient, nil] The HTTP client to use
      # @return [Entities::VerificationResponse]
      def initiate(verification_params, client = nil)
        raw_verification = (client || default_client.new).post('v4/initiate', verification_params)
        Entities::VerificationResponse.new(raw_verification)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jumio-1.0.0 lib/jumio/repositories/verification.rb