Sha256: 0133474fd848fcbf0ee34ceadc6a8fc1edf9cf60ff00a3ac6e0e82b2ef5ab9b8

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

module SantanderChile
  module ApiClient
    class ProductsResource < Resource
      DIG_RESPONSE = ["DATA", "OUTPUT", "MATRICES", "MATRIZCAPTACIONES", "e1"]

      def list(**params)
        response = post_request("CruceProductoOnline", body: body_builder)
        Collection.from_response(response, dig_keys: DIG_RESPONSE, type: Account)
      end

      private

      def body_builder
        with_template "requests/CruceProductoOnline", client: @client
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
santander_chile-api_client-1.1.1 lib/santander_chile/api_client/resources/products.rb
santander_chile-api_client-1.1.0 lib/santander_chile/api_client/resources/products.rb