stripe: test clocks resource (#9026)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Steve Dignam
2022-10-30 19:23:07 -04:00
committed by GitHub
parent a46c48136b
commit 1f191a6c13
3 changed files with 14 additions and 2 deletions

View File

@@ -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.

View File

@@ -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: ...