Sha256: 6466f8194c886709ed50356be488eb494545bdfcb9578cee446b2a33ad799af7

Contents?: true

Size: 771 Bytes

Versions: 11

Compression:

Stored size: 771 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

11 entries across 11 versions & 1 rubygems

Version Path
mangopay-3.0.25 lib/mangopay/event.rb
mangopay-3.0.23 lib/mangopay/event.rb
mangopay-3.0.21 lib/mangopay/event.rb
mangopay-3.0.20 lib/mangopay/event.rb
mangopay-3.0.19 lib/mangopay/event.rb
mangopay-3.0.18 lib/mangopay/event.rb
mangopay-3.0.17 lib/mangopay/event.rb
mangopay-3.0.16 lib/mangopay/event.rb
mangopay-3.0.15 lib/mangopay/event.rb
mangopay-3.0.14 lib/mangopay/event.rb
mangopay-3.0.13 lib/mangopay/event.rb