Skip to content

Commit 024b93d

Browse files
author
gabino
committed
feat: add Jwt resource class and include it in the resources module
1 parent 70ec1cc commit 024b93d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

cuenca/resources/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
'WalletTransaction',
3939
'Webhook',
4040
'WhatsappTransfer',
41+
'Jwt',
4142
]
4243

4344
from .accounts import Account
@@ -59,6 +60,7 @@
5960
from .files import File
6061
from .identities import Identity
6162
from .identity_events import IdentityEvent
63+
from .jwt import Jwt
6264
from .kyc_validations import KYCValidation
6365
from .kyc_verifications import KYCVerification
6466
from .limited_wallets import LimitedWallet

cuenca/resources/jwt.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from typing import ClassVar
2+
3+
from pydantic import SecretStr
4+
5+
from .base import Creatable
6+
7+
8+
class Jwt(Creatable):
9+
_resource: ClassVar = 'jwt'
10+
11+
token: SecretStr
12+
api_key: str

0 commit comments

Comments
 (0)