Class: MethodRuby::Resources::Accounts::VerificationSessions::Amounts

Inherits:
Object
  • Object
show all
Defined in:
lib/method_ruby/resources/accounts/verification_sessions/amounts.rb

Overview

Verification sessions for accounts

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Amounts

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 Amounts.

Parameters:



47
48
49
# File 'lib/method_ruby/resources/accounts/verification_sessions/amounts.rb', line 47

def initialize(client:)
  @client = client
end

Instance Method Details

#retrieve(avf_id, account_id:, method_version:, request_options: {}) ⇒ MethodRuby::Models::Accounts::VerificationSessions::AmountRetrieveResponse

Some parameter documentations has been truncated, see Models::Accounts::VerificationSessions::AmountRetrieveParams for more details.

Retrieves the micro deposit amounts for a verification session.

Parameters:

Returns:

See Also:



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/method_ruby/resources/accounts/verification_sessions/amounts.rb', line 28

def retrieve(avf_id, params)
  parsed, options = MethodRuby::Accounts::VerificationSessions::AmountRetrieveParams.dump_request(params)
   =
    parsed.delete(:account_id) do
      raise ArgumentError.new("missing required path argument #{_1}")
    end
  @client.request(
    method: :get,
    path: ["accounts/%1$s/verification_sessions/%2$s/amounts", , avf_id],
    headers: parsed.transform_keys(method_version: "method-version"),
    model: MethodRuby::Models::Accounts::VerificationSessions::AmountRetrieveResponse,
    security: {secret_key: true},
    options: options
  )
end