Skip to content

Commit 57977cf

Browse files
committed
add get credit card details
1 parent c558016 commit 57977cf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

extend/resources/credit_cards.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,21 @@ async def get_credit_cards(
4949
params = {k: v for k, v in params.items() if v is not None}
5050

5151
return await self._request(method="get", params=params)
52+
53+
async def get_credit_card_detail(
54+
self,
55+
card_id: str
56+
) -> Dict:
57+
"""Get detailed information about a specific credit card.
58+
59+
Args:
60+
card_id (str): The unique identifier of the credit card
61+
62+
Returns:
63+
Dict: A dictionary containing the credit card details:
64+
65+
Raises:
66+
httpx.HTTPError: If the request fails
67+
"""
68+
69+
return await self._request(method="get", path=f"/{card_id}")

0 commit comments

Comments
 (0)