Class: Stripe::TestHelpers::TestClock::AdvanceParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/test_helpers/test_clock.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, frozen_time: nil) ⇒ AdvanceParams

Returns a new instance of AdvanceParams.



70
71
72
73
# File 'lib/stripe/resources/test_helpers/test_clock.rb', line 70

def initialize(expand: nil, frozen_time: nil)
  @expand = expand
  @frozen_time = frozen_time
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



66
67
68
# File 'lib/stripe/resources/test_helpers/test_clock.rb', line 66

def expand
  @expand
end

#frozen_timeObject

The time to advance the test clock. Must be after the test clock’s current frozen time. Cannot be more than two intervals in the future from the shortest subscription in this test clock. If there are no subscriptions in this test clock, it cannot be more than two years in the future.



68
69
70
# File 'lib/stripe/resources/test_helpers/test_clock.rb', line 68

def frozen_time
  @frozen_time
end