Class: Lithic::Resources::ExternalBankAccounts::MicroDeposits

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/external_bank_accounts/micro_deposits.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ MicroDeposits

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



32
33
34
# File 'lib/lithic/resources/external_bank_accounts/micro_deposits.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#create(external_bank_account_token, micro_deposits:, request_options: {}) ⇒ Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse

Verify the external bank account by providing the micro deposit amounts.



18
19
20
21
22
23
24
25
26
27
# File 'lib/lithic/resources/external_bank_accounts/micro_deposits.rb', line 18

def create(, params)
  parsed, options = Lithic::ExternalBankAccounts::MicroDepositCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: ["v1/external_bank_accounts/%1$s/micro_deposits", ],
    body: parsed,
    model: Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse,
    options: options
  )
end