-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stripe] Add type for PaymentLink (#10461)
- Loading branch information
1 parent
7ea173c
commit a83e559
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import overload | ||
|
||
from stripe.api_resources.abstract import ( | ||
CreateableAPIResource as CreateableAPIResource, | ||
ListableAPIResource as ListableAPIResource, | ||
UpdateableAPIResource as UpdateableAPIResource, | ||
) | ||
|
||
class PaymentLink(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource): | ||
OBJECT_NAME: str | ||
|
||
@overload | ||
@classmethod | ||
def list_line_items( | ||
cls, | ||
payment_link: str, | ||
api_key: str | None = None, | ||
stripe_version: str | None = None, | ||
stripe_account: str | None = None, | ||
**params, | ||
): ... | ||
@overload | ||
@classmethod | ||
def list_line_items(cls, idempotency_key: str | None = None, **params): ... |