Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
c57866bc
Commit
c57866bc
authored
Apr 16, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(payments): add Pydantic models
parent
0052431f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
__init__.py
aisbf/payments/__init__.py
+11
-1
models.py
aisbf/payments/models.py
+28
-0
No files found.
aisbf/payments/__init__.py
View file @
c57866bc
...
...
@@ -2,5 +2,15 @@
Payment system module
"""
from
aisbf.payments.migrations
import
PaymentMigrations
from
aisbf.payments.models
import
(
CryptoAddress
,
CryptoWallet
,
AddCryptoPaymentMethodRequest
)
__all__
=
[
'PaymentMigrations'
]
__all__
=
[
'PaymentMigrations'
,
'CryptoAddress'
,
'CryptoWallet'
,
'AddCryptoPaymentMethodRequest'
]
aisbf/payments/models.py
0 → 100644
View file @
c57866bc
"""
Pydantic models for payment system
"""
from
pydantic
import
BaseModel
from
typing
import
Optional
from
datetime
import
datetime
from
decimal
import
Decimal
class
CryptoAddress
(
BaseModel
):
"""Crypto address model"""
crypto_type
:
str
address
:
str
derivation_path
:
str
derivation_index
:
int
class
CryptoWallet
(
BaseModel
):
"""Crypto wallet balance model"""
crypto_type
:
str
balance_crypto
:
Decimal
balance_fiat
:
Decimal
last_sync_at
:
Optional
[
datetime
]
=
None
class
AddCryptoPaymentMethodRequest
(
BaseModel
):
"""Request to add crypto payment method"""
crypto_type
:
str
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment