pub struct TestHelpersTestClock {
pub id: TestHelpersTestClockId,
pub created: Option<Timestamp>,
pub deleted: bool,
pub deletes_after: Option<Timestamp>,
pub frozen_time: Option<Timestamp>,
pub livemode: Option<bool>,
pub name: Option<String>,
pub status: Option<TestHelpersTestClockStatus>,
}
Expand description
The resource representing a Stripe “TestClock”.
Fields§
§id: TestHelpersTestClockId
Unique identifier for the object.
created: Option<Timestamp>
Time at which the object was created.
Measured in seconds since the Unix epoch.
deleted: bool
§deletes_after: Option<Timestamp>
Time at which this clock is scheduled to auto delete.
frozen_time: Option<Timestamp>
Time at which all objects belonging to this clock are frozen.
livemode: Option<bool>
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
name: Option<String>
The custom name supplied at creation.
status: Option<TestHelpersTestClockStatus>
The status of the Test Clock.
Implementations§
Source§impl TestHelpersTestClock
impl TestHelpersTestClock
Sourcepub fn create(
client: &Client,
params: &CreateTestClock<'_>,
) -> Response<TestHelpersTestClock>
pub fn create( client: &Client, params: &CreateTestClock<'_>, ) -> Response<TestHelpersTestClock>
Creates a new test clock that can be attached to new customers and quotes.
For more details see https://docs.stripe.com/api/test_clocks/create
Sourcepub fn retrieve(
client: &Client,
id: &TestHelpersTestClockId,
) -> Response<TestHelpersTestClock>
pub fn retrieve( client: &Client, id: &TestHelpersTestClockId, ) -> Response<TestHelpersTestClock>
Retrieves a test clock.
For more details see https://docs.stripe.com/api/test_clocks/retrieve
Sourcepub fn list(
client: &Client,
params: &ListTestClocks,
) -> Response<List<TestHelpersTestClock>>
pub fn list( client: &Client, params: &ListTestClocks, ) -> Response<List<TestHelpersTestClock>>
Returns a list of your test clocks.
For more details see https://docs.stripe.com/api/test_clocks/list
Sourcepub fn delete(
client: &Client,
id: &TestHelpersTestClockId,
) -> Response<TestHelpersTestClock>
pub fn delete( client: &Client, id: &TestHelpersTestClockId, ) -> Response<TestHelpersTestClock>
Deletes a test clock.
For more details see https://docs.stripe.com/api/test_clocks/delete
Sourcepub fn advance(
client: &Client,
test_clock_id: &TestHelpersTestClockId,
params: &AdvanceTestClock,
) -> Response<TestHelpersTestClock>
pub fn advance( client: &Client, test_clock_id: &TestHelpersTestClockId, params: &AdvanceTestClock, ) -> Response<TestHelpersTestClock>
Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready
.
For more details see https://docs.stripe.com/api/test_clocks/advance
Trait Implementations§
Source§impl Clone for TestHelpersTestClock
impl Clone for TestHelpersTestClock
Source§fn clone(&self) -> TestHelpersTestClock
fn clone(&self) -> TestHelpersTestClock
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more