[stripe] Add Session.expire() (#9814)

This commit is contained in:
Denys Zhak
2023-02-27 15:13:49 +02:00
committed by GitHub
parent 05453b0c0a
commit 6b98f7307b
2 changed files with 9 additions and 0 deletions

View File

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

View File

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