Sha256: 437d5ef91c907b3585336e9bb6bffd65ee8878bd71d387040b2acd10524124da

Contents?: true

Size: 751 Bytes

Versions: 4

Compression:

Stored size: 751 Bytes

Contents

# frozen_string_literal: true

module Api
  module V1
    module Banking
      # This class is responsible for all the API calls related to banking bank connections.
      class BankConnections < Api::V1::Base
        def by(id:)
          get("#{@url_api_path}/banking/bank_connections/#{id}")
        end

        def all(page: 1,
                page_size: 100,
                order_by: nil,
                order_direction: nil)
          query = {
            page: page,
            page_size: page_size
          }
          query[:order_by] = order_by if order_by
          query[:order_direction] = order_direction if order_direction

          get("#{@url_api_path}/banking/bank_connections", query)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
papierkram_api_client-0.1.3 lib/api/v1/banking/bank_connections.rb
papierkram_api_client-0.1.2 lib/api/v1/banking/bank_connections.rb
papierkram_api_client-0.1.1 lib/api/v1/banking/bank_connections.rb
papierkram_api_client-0.1.0 lib/api/v1/banking/bank_connections.rb