Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

api: add test clock support #264

Merged
merged 1 commit into from
Feb 25, 2023
Merged

api: add test clock support #264

merged 1 commit into from
Feb 25, 2023

Conversation

bmizerany
Copy link
Contributor

@bmizerany bmizerany commented Feb 24, 2023

This makes the API aware of test clocks, and will pass them along in
requests to Stripe that have support for test clocks.

This also adds WithClock to the tier package for passing a clock ID
through to the API using contexts.

Also, expose Created date on OrgInfo. This was useful for testing test
clocks, but is a useful field to have in general.

@bmizerany bmizerany force-pushed the apitestclocks branch 2 times, most recently from 904728d to f92789a Compare February 25, 2023 01:26
@bmizerany bmizerany changed the title control: start work on test clock support api,client/tier: support test clocks Feb 25, 2023
@bmizerany bmizerany marked this pull request as ready for review February 25, 2023 01:27
client/tier/client.go Outdated Show resolved Hide resolved
control/clock.go Outdated Show resolved Hide resolved
control/clock.go Show resolved Hide resolved
api/api_test.go Show resolved Hide resolved
This makes the API aware of test clocks, and will pass them along in
requests to Stripe that have support for test clocks.

This also adds WithClock to the tier package for passing a clock ID
through to the API using contexts.

Also, expose Created date on OrgInfo. This was useful for testing test
clocks, but is a useful field to have in general.
@bmizerany bmizerany changed the title api,client/tier: support test clocks api: add test clock support Feb 25, 2023
@bmizerany bmizerany merged commit 7322395 into main Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant