Sha256: c4a77cd1b28415b6960c1e69e0f5ab74b8e3e30a869aeccb53f997f70a259cd8

Contents?: true

Size: 676 Bytes

Versions: 7

Compression:

Stored size: 676 Bytes

Contents

module MangoPay
  class Event < Resource

    # Fetches list of events (PayIns, PayOuts, Transfers).
    # 
    # Optional +filters+ is a hash accepting following keys:
    # - +page+, +per_page+: pagination 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

7 entries across 7 versions & 1 rubygems

Version Path
mangopay-3.0.11 lib/mangopay/event.rb
mangopay-3.0.10 lib/mangopay/event.rb
mangopay-3.0.9 lib/mangopay/event.rb
mangopay-3.0.8 lib/mangopay/event.rb
mangopay-3.0.7 lib/mangopay/event.rb
mangopay-3.0.6 lib/mangopay/event.rb
mangopay-3.0.5 lib/mangopay/event.rb