xync-schema 0.6.80__py3-none-any.whl → 0.6.82__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.
- xync_schema/models.py +4 -2
- xync_schema/types.py +5 -5
- {xync_schema-0.6.80.dist-info → xync_schema-0.6.82.dist-info}/METADATA +1 -1
- xync_schema-0.6.82.dist-info/RECORD +8 -0
- xync_schema-0.6.80.dist-info/RECORD +0 -8
- {xync_schema-0.6.80.dist-info → xync_schema-0.6.82.dist-info}/WHEEL +0 -0
- {xync_schema-0.6.80.dist-info → xync_schema-0.6.82.dist-info}/top_level.txt +0 -0
xync_schema/models.py
CHANGED
|
@@ -97,7 +97,7 @@ class Ex(Model):
|
|
|
97
97
|
module_name = f"xync_client.{self.name}.ex"
|
|
98
98
|
__import__(module_name)
|
|
99
99
|
client = sys.modules[module_name].ExClient
|
|
100
|
-
return client(self, actor)
|
|
100
|
+
return client(self, actor=actor)
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
class Curex(BaseModel):
|
|
@@ -317,10 +317,12 @@ class Ad(Model, TsTrait):
|
|
|
317
317
|
direction: fields.ForeignKeyRelation[Direction] = fields.ForeignKeyField("models.Direction", related_name="ads")
|
|
318
318
|
price: float = fields.FloatField()
|
|
319
319
|
min_fiat: float = fields.FloatField()
|
|
320
|
-
|
|
320
|
+
amount: float = fields.FloatField()
|
|
321
|
+
max_fiat: float | None = fields.FloatField(null=True)
|
|
321
322
|
detail: str | None = fields.CharField(4095, null=True)
|
|
322
323
|
auto_msg: str | None = fields.CharField(255, null=True)
|
|
323
324
|
status: AdStatus = fields.IntEnumField(AdStatus, default=AdStatus.active)
|
|
325
|
+
is_payment: bool | None = fields.BooleanField(default=False)
|
|
324
326
|
|
|
325
327
|
maker: fields.ForeignKeyRelation[Actor] = fields.ForeignKeyField("models.Actor", "my_ads")
|
|
326
328
|
maker_id: int
|
xync_schema/types.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
-
from pydantic import BaseModel
|
|
2
|
+
from pydantic import BaseModel
|
|
3
3
|
|
|
4
4
|
from xync_schema.enums import AdStatus, OrderStatus
|
|
5
5
|
from xync_schema import models
|
|
@@ -36,18 +36,18 @@ class PmexBank(BaseModel):
|
|
|
36
36
|
|
|
37
37
|
class BaseAd(BaseModel):
|
|
38
38
|
price: float
|
|
39
|
-
|
|
39
|
+
id: int | None = None
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
class BaseAdIn(BaseAd):
|
|
43
43
|
min_fiat: float
|
|
44
44
|
max_fiat: float
|
|
45
|
-
|
|
45
|
+
direction_id: int
|
|
46
46
|
detail: str | None = None
|
|
47
47
|
auto_msg: str | None = None
|
|
48
48
|
status: AdStatus = AdStatus.active
|
|
49
|
-
|
|
50
|
-
_unq = "exid", "
|
|
49
|
+
maker_id: int = None
|
|
50
|
+
_unq = "exid", "maker_id", "direction_id"
|
|
51
51
|
|
|
52
52
|
class Config:
|
|
53
53
|
arbitrary_types_allowed = True
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
xync_schema/enums.py,sha256=4ZNpPKY54SY34nz1APsg7wKzCIvpYWhG4sKsZ1uEmVU,12697
|
|
3
|
+
xync_schema/models.py,sha256=lOVO56cqAeW-oFkeEVBRsB3QY8ukH7ETJJGgOGo8XQs,27885
|
|
4
|
+
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
+
xync_schema-0.6.82.dist-info/METADATA,sha256=VJzI0CJSIu2-txRRwwHoQwgOmtmZSOvpekbauQZJtS8,4055
|
|
6
|
+
xync_schema-0.6.82.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
xync_schema-0.6.82.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
+
xync_schema-0.6.82.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
xync_schema/enums.py,sha256=4ZNpPKY54SY34nz1APsg7wKzCIvpYWhG4sKsZ1uEmVU,12697
|
|
3
|
-
xync_schema/models.py,sha256=txi63RtA691mxv6F65YXz78ntSCCw8Q8_-p0CvUYAHA,27758
|
|
4
|
-
xync_schema/types.py,sha256=hYYFIAyukN5PKCOolSIFNgOCDz6NZ7E8BKpBuRpCu1g,1681
|
|
5
|
-
xync_schema-0.6.80.dist-info/METADATA,sha256=HUCis_BcU9yoJEmao-mddwXCnlaabfhjr0ia-syqOpw,4055
|
|
6
|
-
xync_schema-0.6.80.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
-
xync_schema-0.6.80.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
-
xync_schema-0.6.80.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|