NAME

Net::API::Stripe::Billing::TestHelpersTestClock - The test clock object

SYNOPSIS

VERSION

v0.1.0

DESCRIPTION

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.

METHODS

id string

Unique identifier for the object.

object string

String representing the object's type. Objects of the same type share the same value.

created timestamp

Time at which the object was created. Measured in seconds since the Unix epoch.

deletes_after timestamp

Time at which this clock is scheduled to auto delete.

frozen_time timestamp

Time at which all objects belonging to this clock are frozen.

livemode boolean

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

name string

The custom name supplied at creation.

status string

The status of the Test Clock.

API SAMPLE

[ { "created" : "1662261084", "deletes_after" : "1662865884", "frozen_time" : "1577836800", "id" : "clock_1Le9F22eZvKYlo2CqGgA3AzY", "livemode" : 0, "name" : null, "object" : "test_helpers.test_clock", "status" : "ready" } ]

HISTORY

v0.1.0

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation

COPYRIGHT & LICENSE

Copyright (c) 2019-2022 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.