Package com.stripe.service.testhelpers
Class TestClockService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.testhelpers.TestClockService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadvance(String testClock, TestClockAdvanceParams params) Starts advancing a test clock to a specified time in the future.advance(String testClock, TestClockAdvanceParams params, RequestOptions options) Starts advancing a test clock to a specified time in the future.create(TestClockCreateParams params) Creates a new test clock that can be attached to new customers and quotes.create(TestClockCreateParams params, RequestOptions options) Creates a new test clock that can be attached to new customers and quotes.Deletes a test clock.delete(String testClock, RequestOptions options) Deletes a test clock.list()Returns a list of your test clocks.list(RequestOptions options) Returns a list of your test clocks.list(TestClockListParams params) Returns a list of your test clocks.list(TestClockListParams params, RequestOptions options) Returns a list of your test clocks.Retrieves a test clock.retrieve(String testClock, RequestOptions options) Retrieves a test clock.retrieve(String testClock, TestClockRetrieveParams params) Retrieves a test clock.retrieve(String testClock, TestClockRetrieveParams params, RequestOptions options) Retrieves a test clock.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
TestClockService
-
-
Method Details
-
delete
Deletes a test clock.- Throws:
StripeException
-
delete
Deletes a test clock.- Throws:
StripeException
-
retrieve
Retrieves a test clock.- Throws:
StripeException
-
retrieve
Retrieves a test clock.- Throws:
StripeException
-
retrieve
Retrieves a test clock.- Throws:
StripeException
-
retrieve
public TestClock retrieve(String testClock, TestClockRetrieveParams params, RequestOptions options) throws StripeException Retrieves a test clock.- Throws:
StripeException
-
list
Returns a list of your test clocks.- Throws:
StripeException
-
list
Returns a list of your test clocks.- Throws:
StripeException
-
list
Returns a list of your test clocks.- Throws:
StripeException
-
list
public StripeCollection<TestClock> list(TestClockListParams params, RequestOptions options) throws StripeException Returns a list of your test clocks.- Throws:
StripeException
-
create
Creates a new test clock that can be attached to new customers and quotes.- Throws:
StripeException
-
create
public TestClock create(TestClockCreateParams params, RequestOptions options) throws StripeException Creates a new test clock that can be attached to new customers and quotes.- Throws:
StripeException
-
advance
Starts advancing a test clock to a specified time in the future. Advancement is done when status changes toReady.- Throws:
StripeException
-
advance
public TestClock advance(String testClock, TestClockAdvanceParams params, RequestOptions options) throws StripeException Starts advancing a test clock to a specified time in the future. Advancement is done when status changes toReady.- Throws:
StripeException
-