Net::API::Stripe::Billing::TestClock - The test clock object
use Net::API::Stripe::Billing::TestClock; my $this = Net::API::Stripe::Billing::TestClock->new || die( Net::API::Stripe::Billing::TestClock->error, "\n" );
v0.1.0
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.
Creates a new Net::API::Stripe::Billing::TaxID object. It may also take an hash like arguments, that also are method of the same name.
Unique identifier for the object.
String representing the object’s type. Objects of the same type share the same value.
Time at which the object was created. Measured in seconds since the Unix epoch.
Time at which this clock is scheduled to auto delete.
Time at which all objects belonging to this clock are frozen.
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
The custom name supplied at creation.
The status of the Test Clock.
Possible enum values
ready
All test clock objects have advanced to the frozen_time.
advancing
In the process of advancing time for the test clock objects.
internal_failure
Failed to advance time. Future requests to advance time will fail.
{ "id": "clock_1LKKwJCeyNCl6fY2ggn0eCSi", "object": "test_helpers.test_clock", "created": 1657539491, "deletes_after": 1658144291, "frozen_time": 1577836800, "livemode": false, "name": null, "status": "ready" }
Jacques Deguest <jack@deguest.jp>
Stripe API documentation:
https://stripe.com/docs/api/test_clocks/object
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::API::Stripe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Stripe
CPAN shell
perl -MCPAN -e shell install Net::API::Stripe
For more information on module installation, please visit the detailed CPAN module installation guide.