Class: SantanderChile::ApiClient::MovementsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/santander_chile/api_client/resources/movements.rb

Constant Summary collapse

DIG_RESPONSE =
["DATA", "MovimientosDepositos"]

Constants included from Template

Template::TEMPLATES

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from Template

#with_template

Constructor Details

This class inherits a constructor from SantanderChile::ApiClient::Resource

Instance Method Details

#list(account, **params) ⇒ Object



6
7
8
9
# File 'lib/santander_chile/api_client/resources/movements.rb', line 6

def list(, **params)
  response = post_request("Consultas/MvtosYDeposiDocCtas", body: body_builder())
  Collection.from_response(response, dig_keys: DIG_RESPONSE, type: Movement)
end