Class: AhoSdk::Verifier::DcSessionsResource Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aho_sdk/verifier.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Dc_sessions resource operations

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ DcSessionsResource

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DcSessionsResource.



66
67
68
# File 'lib/aho_sdk/verifier.rb', line 66

def initialize(client)
  @client = client
end

Instance Method Details

#create(body: nil, idempotency_key: nil) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create a DC API session

Returns:

  • (Hash)


73
74
75
# File 'lib/aho_sdk/verifier.rb', line 73

def create(body: nil, idempotency_key: nil)
  @client.post("/v1/verifier/dc_sessions", body: body, idempotency_key: idempotency_key)
end

#get(id:) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get DC API session status

Returns:

  • (Hash)


80
81
82
# File 'lib/aho_sdk/verifier.rb', line 80

def get(id:)
  @client.get("/v1/verifier/dc_sessions/#{id}")
end

#verify(id:, body: nil, idempotency_key: nil) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Verify a DC API session

Returns:

  • (Hash)


87
88
89
# File 'lib/aho_sdk/verifier.rb', line 87

def verify(id:, body: nil, idempotency_key: nil)
  @client.post("/v1/verifier/dc_sessions/#{id}/verify", body: body, idempotency_key: idempotency_key)
end