paytechuz 0.2.9__py3-none-any.whl → 0.2.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of paytechuz might be problematic. Click here for more details.
- paytechuz/integrations/fastapi/models.py +23 -0
- {paytechuz-0.2.9.dist-info → paytechuz-0.2.10.dist-info}/METADATA +1 -1
- {paytechuz-0.2.9.dist-info → paytechuz-0.2.10.dist-info}/RECORD +5 -5
- {paytechuz-0.2.9.dist-info → paytechuz-0.2.10.dist-info}/WHEEL +0 -0
- {paytechuz-0.2.9.dist-info → paytechuz-0.2.10.dist-info}/top_level.txt +0 -0
|
@@ -154,3 +154,26 @@ class PaymentTransaction(Base):
|
|
|
154
154
|
db.refresh(self)
|
|
155
155
|
|
|
156
156
|
return self
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def run_migrations(engine: Any) -> None:
|
|
160
|
+
"""
|
|
161
|
+
Run database migrations for PayTechUZ FastAPI integration.
|
|
162
|
+
|
|
163
|
+
This function creates all necessary tables in the database for the
|
|
164
|
+
PayTechUZ payment system. Call this function when setting up your FastAPI
|
|
165
|
+
application to ensure all required database tables are created.
|
|
166
|
+
|
|
167
|
+
Example:
|
|
168
|
+
```python
|
|
169
|
+
from sqlalchemy import create_engine
|
|
170
|
+
from paytechuz.integrations.fastapi.models import run_migrations
|
|
171
|
+
|
|
172
|
+
engine = create_engine("sqlite:///./payments.db")
|
|
173
|
+
run_migrations(engine)
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Args:
|
|
177
|
+
engine: SQLAlchemy engine instance
|
|
178
|
+
"""
|
|
179
|
+
Base.metadata.create_all(bind=engine)
|
|
@@ -27,10 +27,10 @@ paytechuz/integrations/django/webhooks.py,sha256=cP_Jc3VlyyvyzDbBd2yEVHikw60th1_
|
|
|
27
27
|
paytechuz/integrations/django/migrations/0001_initial.py,sha256=SWHIUuwq91crzaxa9v1UK0kay8CxsjUo6t4bqg7j0Gw,1896
|
|
28
28
|
paytechuz/integrations/django/migrations/__init__.py,sha256=KLQ5NdjOMLDS21-u3b_g08G1MjPMMhG95XI_N8m4FSo,41
|
|
29
29
|
paytechuz/integrations/fastapi/__init__.py,sha256=DLnhAZQZf2ghu8BuFFfE7FzbNKWQQ2SLG8qxldRuwR4,565
|
|
30
|
-
paytechuz/integrations/fastapi/models.py,sha256=
|
|
30
|
+
paytechuz/integrations/fastapi/models.py,sha256=9IqrsndIVuIDwDbijZ89biJxEWQASXRBfWVShxgerAc,5113
|
|
31
31
|
paytechuz/integrations/fastapi/routes.py,sha256=X7ejcICe4lFtpsKMXxvyrklqHWQJMhR-AdhcitSiXlE,37647
|
|
32
32
|
paytechuz/integrations/fastapi/schemas.py,sha256=PgRqviJiD4-u3_CIkUOX8R7L8Yqn8L44WLte7968G0E,3887
|
|
33
|
-
paytechuz-0.2.
|
|
34
|
-
paytechuz-0.2.
|
|
35
|
-
paytechuz-0.2.
|
|
36
|
-
paytechuz-0.2.
|
|
33
|
+
paytechuz-0.2.10.dist-info/METADATA,sha256=eQP9iaSd-TgqTNeJkB3ECKFYTsqZpG_dFqwLpkWCrsw,9414
|
|
34
|
+
paytechuz-0.2.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
paytechuz-0.2.10.dist-info/top_level.txt,sha256=oloyKGNVj9Z2h3wpKG5yPyTlpdpWW0-CWr-j-asCWBc,10
|
|
36
|
+
paytechuz-0.2.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|