Sha256: d7b78d38812d8f61f5c610d6ac138405db54e80de8dcbdbfb0676593137438c9

Contents?: true

Size: 638 Bytes

Versions: 7

Compression:

Stored size: 638 Bytes

Contents

require_relative 'notification_filter_url'

module Bunq
  ##
  # https://doc.bunq.com/api/1/call/monetary-account
  class MonetaryAccount
    def initialize(parent_resource, id)
      @resource = parent_resource.append("/monetary-account/#{id}")
    end

    def payment(id)
      Bunq::Payment.new(@resource, id)
    end

    def payments
      Bunq::Payments.new(@resource)
    end

    ##
    # https://doc.bunq.com/api/1/call/monetary-account/method/get
    def show
      @resource.with_session { @resource.get }['Response']
    end

    def notification_filter_url
      Bunq::NotificationFilterUrl.new(@resource)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bunq-client-0.7.2 lib/bunq/monetary_account.rb
bunq-client-0.7.1 lib/bunq/monetary_account.rb
bunq-client-0.7.0 lib/bunq/monetary_account.rb
bunq-client-0.6.1 lib/bunq/monetary_account.rb
bunq-client-0.6.0 lib/bunq/monetary_account.rb
bunq-client-0.5.0 lib/bunq/monetary_account.rb
bunq-client-0.4.2 lib/bunq/monetary_account.rb