Sha256: aeaa2fd1db5671668871022b166a03c12df53e1a617e76d4aedfaac6911b3e37

Contents?: true

Size: 451 Bytes

Versions: 14

Compression:

Stored size: 451 Bytes

Contents

require_relative 'paginated'

module Bunq
  # https://doc.bunq.com/api/1/call/payment
  class Payments
    def initialize(parent_resource)
      @resource = parent_resource.append("/payment")
    end

    # https://doc.bunq.com/api/1/call/payment/method/list
    def index(count: 200, older_id: nil, newer_id: nil)
      Bunq::Paginated
        .new(@resource)
        .paginate(count: count, older_id: older_id, newer_id: newer_id)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bunq-client-0.7.2 lib/bunq/payments.rb
bunq-client-0.7.1 lib/bunq/payments.rb
bunq-client-0.7.0 lib/bunq/payments.rb
bunq-client-0.6.1 lib/bunq/payments.rb
bunq-client-0.6.0 lib/bunq/payments.rb
bunq-client-0.5.0 lib/bunq/payments.rb
bunq-client-0.4.2 lib/bunq/payments.rb
bunq-client-0.4.1 lib/bunq/payments.rb
bunq-client-0.4.0 lib/bunq/payments.rb
bunq-client-0.3.0 lib/bunq/payments.rb
bunq-client-0.2.0 lib/bunq/payments.rb
bunq-client-0.1.2 lib/bunq/payments.rb
bunq-client-0.1.1 lib/bunq/payments.rb
bunq-client-0.1.0 lib/bunq/payments.rb