Skip to content

Commit

Permalink
feat: add Jwt resource class and include it in the resources module
Browse files Browse the repository at this point in the history
  • Loading branch information
gabino committed Jan 12, 2025
1 parent 70ec1cc commit 024b93d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cuenca/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'WalletTransaction',
'Webhook',
'WhatsappTransfer',
'Jwt',
]

from .accounts import Account
Expand All @@ -59,6 +60,7 @@
from .files import File
from .identities import Identity
from .identity_events import IdentityEvent
from .jwt import Jwt
from .kyc_validations import KYCValidation
from .kyc_verifications import KYCVerification
from .limited_wallets import LimitedWallet
Expand Down
12 changes: 12 additions & 0 deletions cuenca/resources/jwt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from typing import ClassVar

from pydantic import SecretStr

from .base import Creatable


class Jwt(Creatable):
_resource: ClassVar = 'jwt'

token: SecretStr
api_key: str

0 comments on commit 024b93d

Please sign in to comment.