mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 12:21:27 +08:00
stripe: test clocks resource (#9026)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# The following methods have custom classmethod decorators
|
||||
stripe\..*\.delete
|
||||
stripe\..*PaymentIntent\.confirm
|
||||
stripe\.api_resources\..*\.SearchableAPIResource\.search # Not defined on the actual class in v3, but expected to exist.
|
||||
stripe\.api_resources\..*\.SearchableAPIResource\.search_auto_paging_iter # Not defined on the actual class in v3, but expected to exist.
|
||||
stripe\.api_resources\.test_helpers\.test_clock\.TestClock\.advance
|
||||
stripe\.api_resources\..*\.SearchableAPIResource\.search # Not defined on the actual class in v3, but expected to exist.
|
||||
stripe\.api_resources\..*\.SearchableAPIResource\.search_auto_paging_iter # Not defined on the actual class in v3, but expected to exist.
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
from stripe.api_resources.abstract import CreateableAPIResource, DeletableAPIResource, ListableAPIResource
|
||||
|
||||
class TestClock(CreateableAPIResource, DeletableAPIResource, ListableAPIResource):
|
||||
OBJECT_NAME: Literal["test_helpers.test_clock"]
|
||||
|
||||
@classmethod
|
||||
def advance(cls: type[Self], idempotency_key: str | None = ..., **params: Any) -> Self: ...
|
||||
Reference in New Issue
Block a user