testclock

package
v81.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package testclock provides the /test_helpers/test_clocks APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Advance

Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.

func Del

Deletes a test clock.

func Get

Retrieves a test clock.

func New

Creates a new test clock that can be attached to new customers and quotes.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /test_helpers/test_clocks APIs.

func (Client) Advance

Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.

func (Client) Del

Deletes a test clock.

func (Client) Get

Retrieves a test clock.

func (Client) List

func (c Client) List(listParams *stripe.TestHelpersTestClockListParams) *Iter

Returns a list of your test clocks.

func (Client) New

Creates a new test clock that can be attached to new customers and quotes.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for test helpers test clocks.

func List

Returns a list of your test clocks.

func (*Iter) TestHelpersTestClock

func (i *Iter) TestHelpersTestClock() *stripe.TestHelpersTestClock

TestHelpersTestClock returns the test helpers test clock which the iterator is currently pointing to.

func (*Iter) TestHelpersTestClockList

func (i *Iter) TestHelpersTestClockList() *stripe.TestHelpersTestClockList

TestHelpersTestClockList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL