8000 Add classmethod to stripe.PaymentIntent.confirm. · python/typeshed@ca68934 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca68934

Browse files
committed
Add classmethod to stripe.PaymentIntent.confirm.
Similar to #7230, stripe.PaymentIntent.confirm can be called as an instance method or a classmethod. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
1 parent 892796a commit ca68934

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# DeletableAPIResource.delete is has a custom classmethod overload
2-
stripe\..*\.delete
2+
stripe\..*\.delete
3+
# PaymentIntent.confirm is has a custom classmethod overload
4+
stripe\.api_resources\.payment_intent\.PaymentIntent\.confirm

stubs/stripe/stripe/api_resources/payment_intent.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ class PaymentIntent(CreateableAPIResource, ListableAPIResource, UpdateableAPIRes
99
OBJECT_NAME: str
1010
def cancel(self, idempotency_key: str | None = ..., **params): ...
1111
def capture(self, idempotency_key: str | None = ..., **params): ...
12-
def confirm(self, idempotency_key: str | None = ..., **params): ...
12+
@classmethod
13+
def confirm(cls: type["PaymentIntent"], idempotency_key: str | None = ..., **params) -> "PaymentIntent": ...

0 commit comments

Comments
 (0)
0