Sha256: a19fc8c1d6199e671d856df3b8bef1fcadfa88d1911a2267b0225704e5900518

Contents?: true

Size: 753 Bytes

Versions: 47

Compression:

Stored size: 753 Bytes

Contents

module MangoPay

  # See http://docs.mangopay.com/api-references/events/
  class Event < Resource

    # Fetches list of events (PayIns, PayOuts, Transfers).
    # 
    # Optional +filters+ is a hash accepting following keys:
    # - +page+, +per_page+, +sort+: pagination and sorting params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch)
    # - +EventType+: {PAYIN_NORMAL_CREATED, PAYIN_NORMAL_SUCCEEDED, PAYIN_NORMAL_FAILED etc...} (see http://docs.mangopay.com/api-references/events/)
    # - +BeforeDate+ (timestamp): filters events with Date _before_ this date
    # - +AfterDate+ (timestamp): filters events with Date _after_ this date
    #
    def self.fetch(filters={})
      MangoPay.request(:get, url(), {}, filters)
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
mangopay-3.28.0 lib/mangopay/event.rb
mangopay-3.27.0 lib/mangopay/event.rb
mangopay-3.26.1 lib/mangopay/event.rb
mangopay-3.26.0 lib/mangopay/event.rb
mangopay-3.25.1 lib/mangopay/event.rb
mangopay-3.25.0 lib/mangopay/event.rb
mangopay-3.24.1 lib/mangopay/event.rb
mangopay-3.24.0 lib/mangopay/event.rb
mangopay-3.23.0 lib/mangopay/event.rb
mangopay-3.22.0 lib/mangopay/event.rb
mangopay-3.21.0 lib/mangopay/event.rb
mangopay-3.20.0 lib/mangopay/event.rb
mangopay-3.19.0 lib/mangopay/event.rb
mangopay-3.18.0 lib/mangopay/event.rb
mangopay-3.17.0 lib/mangopay/event.rb
mangopay-3.16.0 lib/mangopay/event.rb
mangopay-3.15.0 lib/mangopay/event.rb
mangopay-3.14.0 lib/mangopay/event.rb
mangopay-3.13.2 lib/mangopay/event.rb
mangopay-3.12.0 lib/mangopay/event.rb