Defines the object schema located at components.schemas.test_helpers.test_clock in the specification.
A test clock enables deterministic control over objects in testmode. With a test clock, you can create objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances, you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time.
Constructors
TestHelpers'testClocktestHelpers'testClockCreated :: Intcreated: Time at which the object was created. Measured in seconds since the Unix epoch.
testHelpers'testClockDeletesAfter :: Intdeletes_after: Time at which this clock is scheduled to auto delete.
testHelpers'testClockFrozenTime :: Intfrozen_time: Time at which all objects belonging to this clock are frozen.
testHelpers'testClockId :: Textid: Unique identifier for the object.
Constraints:
Maximum length of 5000
testHelpers'testClockLivemode :: Boollivemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
testHelpers'testClockName :: Maybe (Nullable Text)name: The custom name supplied at creation.
Constraints:
Maximum length of 5000
testHelpers'testClockStatus :: TestHelpers'testClockStatus'status: The status of the Test Clock.
Instances4Eq, Show, FromJSON, ToJSON
Eq TestHelpers'testClockDefined in stripeapi-3.0.0.0 · StripeAPI.Types.TestHelpers_TestClockShow TestHelpers'testClockDefined in stripeapi-3.0.0.0 · StripeAPI.Types.TestHelpers_TestClockFromJSON TestHelpers'testClockDefined in stripeapi-3.0.0.0 · StripeAPI.Types.TestHelpers_TestClockToJSON TestHelpers'testClockDefined in stripeapi-3.0.0.0 · StripeAPI.Types.TestHelpers_TestClock