Sha256: b861495a5c9066213a07a32736d7eac97f5328537f7bc83fdc682583ad6ba43a
Contents?: true
Size: 1.13 KB
Versions: 11
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require 'erb' module FinApps module REST class PlaidConsumerInstitutions < PlaidResources # :nodoc: def create(params) super(params, 'p/institution/consumer') end def show(id, options = { show_accounts: false }) results, error_messages = super(nil, "p/institution/consumer/#{id}") if error_messages.empty? && options[:show_accounts] account_results, error_messages = super(nil, "p/institution/consumer/#{id}/account") results[:accounts] = account_results if error_messages.empty? end [results, error_messages] end def list super 'p/institution/consumer' end def destroy(id) not_blank(id, :consumer_institution_id) super id, "p/institution/consumer/#{id}" end def public_token(id) not_blank(id, :consumer_institution_id) send_request "p/institution/consumer/#{id}/token", :get end def update_status(id) not_blank(id, :consumer_institution_id) send_request "p/institution/consumer/#{id}", :put end end end end
Version data entries
11 entries across 11 versions & 1 rubygems