Class: Stripe::V2::Core::EventListParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/v2/core/event_list_params.rb

Defined Under Namespace

Classes: Created

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(created: nil, limit: nil, object_id_: nil, types: nil) ⇒ EventListParams

Returns a new instance of EventListParams.



36
37
38
39
40
41
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 36

def initialize(created: nil, limit: nil, object_id_: nil, types: nil)
  @created = created
  @limit = limit
  @object_id_ = object_id_
  @types = types
end

Instance Attribute Details

#createdObject

Set of filters to query events within a range of ‘created` timestamps.



26
27
28
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 26

def created
  @created
end

#limitObject

The page size.



28
29
30
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 28

def limit
  @limit
end

#object_id_Object

Primary object ID used to retrieve related events.

To avoid conflict with Ruby’s ‘:object_id’, this attribute has been renamed. If using a hash parameter map instead, please use the original name ‘:object_id’ with NO trailing underscore as the provided param key.



32
33
34
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 32

def object_id_
  @object_id_
end

#typesObject

An array of up to 20 strings containing specific event names.



34
35
36
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 34

def types
  @types
end