Sha256: dd119850eb0b2e03b436a4813535aec263423e2d8ced01c5b6de94e92b079c9c
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 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 set_active_pending_update(id) not_blank(id, :consumer_institution_id) send_request "p/institution/consumer/#{id}", :put end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
finapps-5.0.21 | lib/finapps/rest/plaid/plaid_consumer_institutions.rb |