class SantanderChile::ApiClient::MovementsResource

Constants

DIG_RESPONSE

Public Instance Methods

list(account, **params) click to toggle source
# File lib/santander_chile/api_client/resources/movements.rb, line 6
def list(account, **params)
  response = post_request("Consultas/MvtosYDeposiDocCtas", body: body_builder(account))
  Collection.from_response(response, dig_keys: DIG_RESPONSE, type: Movement)
end

Private Instance Methods

body_builder(account) click to toggle source
# File lib/santander_chile/api_client/resources/movements.rb, line 13
def body_builder(account)
  with_template "requests/MvtosYDeposiDocCtas", client: @client, account: account
end