Class: Lithic::Resources::ExternalBankAccounts::MicroDeposits
- Inherits:
-
Object
- Object
- Lithic::Resources::ExternalBankAccounts::MicroDeposits
- Defined in:
- lib/lithic/resources/external_bank_accounts/micro_deposits.rb
Instance Method Summary collapse
-
#create(external_bank_account_token, micro_deposits:, request_options: {}) ⇒ Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse
Verify the external bank account by providing the micro deposit amounts.
-
#initialize(client:) ⇒ MicroDeposits
constructor
private
A new instance of MicroDeposits.
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(external_bank_account_token, params) parsed, = Lithic::ExternalBankAccounts::MicroDepositCreateParams.dump_request(params) @client.request( method: :post, path: ["v1/external_bank_accounts/%1$s/micro_deposits", external_bank_account_token], body: parsed, model: Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse, options: ) end |