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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(gt: nil, gte: nil, limit: nil, lt: nil, lte: nil, object_id_: nil, types: nil) ⇒ EventListParams

Returns a new instance of EventListParams.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 25

def initialize(
  gt: nil,
  gte: nil,
  limit: nil,
  lt: nil,
  lte: nil,
  object_id_: nil,
  types: nil
)
  @gt = gt
  @gte = gte
  @limit = limit
  @lt = lt
  @lte = lte
  @object_id_ = object_id_
  @types = types
end

Instance Attribute Details

#gtObject

Filter for events created after the specified timestamp.



9
10
11
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 9

def gt
  @gt
end

#gteObject

Filter for events created at or after the specified timestamp.



11
12
13
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 11

def gte
  @gte
end

#limitObject

The page size.



13
14
15
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 13

def limit
  @limit
end

#ltObject

Filter for events created before the specified timestamp.



15
16
17
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 15

def lt
  @lt
end

#lteObject

Filter for events created at or before the specified timestamp.



17
18
19
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 17

def lte
  @lte
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.



21
22
23
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 21

def object_id_
  @object_id_
end

#typesObject

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



23
24
25
# File 'lib/stripe/params/v2/core/event_list_params.rb', line 23

def types
  @types
end