xync-schema 0.6.80__tar.gz → 0.6.81__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xync-schema
3
- Version: 0.6.80
3
+ Version: 0.6.81
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -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):
@@ -1,5 +1,5 @@
1
1
  from datetime import datetime
2
- from pydantic import BaseModel, Field
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
- exid: int | None = Field(alias="id")
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
- direction: models.Direction
45
+ direction_id: int
46
46
  detail: str | None = None
47
47
  auto_msg: str | None = None
48
48
  status: AdStatus = AdStatus.active
49
- maker: models.Actor = None
50
- _unq = "exid", "maker", "direction"
49
+ maker_id: int = None
50
+ _unq = "exid", "maker_id", "direction_id"
51
51
 
52
52
  class Config:
53
53
  arbitrary_types_allowed = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xync-schema
3
- Version: 0.6.80
3
+ Version: 0.6.81
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
File without changes
File without changes
File without changes
File without changes
File without changes