mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
[stripe] Add Session.expire() (#9814)
This commit is contained in:
@@ -5,3 +5,4 @@ stripe\.api_resources\.test_helpers\.test_clock\.TestClock\.advance
|
||||
stripe\.api_resources\.test_helpers\.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.
|
||||
stripe\.api_resources\..*\.Session.expire
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from typing import overload
|
||||
|
||||
from stripe.api_resources.abstract import (
|
||||
CreateableAPIResource as CreateableAPIResource,
|
||||
ListableAPIResource as ListableAPIResource,
|
||||
@@ -6,3 +8,9 @@ from stripe.api_resources.abstract import (
|
||||
|
||||
class Session(CreateableAPIResource, ListableAPIResource):
|
||||
OBJECT_NAME: str
|
||||
@overload
|
||||
@classmethod
|
||||
def expire(cls, session, api_key=None, stripe_version=None, stripe_account=None, **params): ...
|
||||
@overload
|
||||
@classmethod
|
||||
def expire(cls, idempotency_key: str | None = ..., **params): ...
|
||||
|
||||
Reference in New Issue
Block a user