Sha256: ad0c68d4aca2d19aab3377c5c8d1e1ba83588e71c0b9619a967265a5fcefa123
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
module SantanderChile module ApiClient class ProductsResource < Resource ## PATHS on santander_chile/api_client/endpoints.rb def products_params(username) { "cabecera" => { "RutUsuario" => username }, "INPUT" => { "NUMERODOCUMENTO" => username }, } end def list(**params) response = post_request(PRODUCTS[:PATH], body: products_params(@client.username).to_json) Collection.from_response(response, keys_to: PRODUCTS[:KEYS_TO], type: Account) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
santander_chile-api_client-1.0.0 | lib/santander_chile/api_client/resources/products.rb |
santander_chile-api_client-0.0.2 | lib/santander_chile/api_client/resources/products.rb |