lingxingapi 1.0.3__py3-none-any.whl → 1.0.4__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 lingxingapi might be problematic. Click here for more details.

lingxingapi/basic/api.py CHANGED
@@ -380,8 +380,8 @@ class BasicAPI(BaseAPI):
380
380
  # 响应数据
381
381
  "data": [
382
382
  {
383
- # 汇率日期 (格式: YYYY-MM)
384
- "date": "2025-01",
383
+ # 汇率日期 (格式: YYYY-MM-DD)
384
+ "date": "2025-01-01",
385
385
  # 货币名称 (中文) [原字段 'name']
386
386
  "currency": "美元",
387
387
  # 货币代码 [原字段 'code']
@@ -190,7 +190,7 @@ class Accounts(ResponseV1):
190
190
  class ExchangeRate(BaseModel):
191
191
  """货币汇率."""
192
192
 
193
- # 汇率日期 (格式: YYYY-MM)
193
+ # 汇率日期 (格式: YYYY-MM-DD)
194
194
  date: str
195
195
  # 货币名称 (中文) [原字段 'name']
196
196
  currency: str = Field(validation_alias="name")
@@ -205,6 +205,12 @@ class ExchangeRate(BaseModel):
205
205
  # 用户汇率修改时间 (北京时间)
206
206
  update_time: str
207
207
 
208
+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
209
+ @field_validator("date", mode="after")
210
+ @classmethod
211
+ def _validate_date(cls, v: str) -> str:
212
+ return v + "-01"
213
+
208
214
 
209
215
  class ExchangeRates(ResponseV1):
210
216
  """货币汇率查询结果."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lingxingapi
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: An async API client for LingXing (领星) ERP
5
5
  Home-page: https://github.com/AresJef/LingXingApi
6
6
  Author: Jiefu Chen
@@ -14,10 +14,10 @@ lingxingapi/base/param.py,sha256=X5-fpqF1g_7SfSeMiEABchhTjOnRw5ik5-1zB_ZAM_8,197
14
14
  lingxingapi/base/route.py,sha256=b-hRndWGVmKfFo2wbGBh6h2xLlhGkmL4k8D27EYI_YU,593
15
15
  lingxingapi/base/schema.py,sha256=xRyRuvr-0w9Mg-A5wG5acn3oJknIg9CceVGQyWkUbPQ,6012
16
16
  lingxingapi/basic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- lingxingapi/basic/api.py,sha256=UIybcV5mzGCYRY05Hr-65tS15VrB2jrOelM7fMOI9jg,17560
17
+ lingxingapi/basic/api.py,sha256=Y68md7YOEcLP00tCJUrRKHvqe7kytC8GHLwkEolVlI8,17566
18
18
  lingxingapi/basic/param.py,sha256=Mq-ZIKHy1DA7aspu1K4MrZe2-FYCJ8Vz43EN5JpHjnA,2480
19
19
  lingxingapi/basic/route.py,sha256=0CXP8rIoBZHrj6gxy1jHycsO9UIunFXwmuU9ryEU0eg,1119
20
- lingxingapi/basic/schema.py,sha256=XnYX90uM2U4Vd-0IISrnxseX1JK4dxW87PWYNgTfOnk,6500
20
+ lingxingapi/basic/schema.py,sha256=4Dc1QJ6fQUgOifEybJVRnLLv4foTcGTsPQAM2dX7q4Q,6699
21
21
  lingxingapi/fba/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  lingxingapi/fba/api.py,sha256=jA1F2JELEcaWsrAXNu4JaDutuoDOFwjITb0VUDFM3uc,75653
23
23
  lingxingapi/fba/param.py,sha256=hvrwpwTeT6wu5y6jCaM5qVD-LrRlZ7BBruvLQvt5VV8,8989
@@ -58,8 +58,8 @@ lingxingapi/warehourse/api.py,sha256=5EgYo5IrmxLN7Km0CiPT7xQwgNPK6jgFyDhcnIZQ9Xg
58
58
  lingxingapi/warehourse/param.py,sha256=DLnLwti1SK6NjKITtH8og_3gA-2Ymt5FLaUZPtwC1H0,22901
59
59
  lingxingapi/warehourse/route.py,sha256=A4FK2EUUuUDc6zE11Wl63A7YJPpzJnKDvkA-3xyLyPs,1914
60
60
  lingxingapi/warehourse/schema.py,sha256=Kltkpznt7Ksf1EEAKyfUBR9Z_2oYU1mhhn8bYjZWnYA,47749
61
- lingxingapi-1.0.3.dist-info/licenses/LICENSE,sha256=oQj0ddF8bHhbdDscjUiJeB3ps0sMasLHbc6tyDHqM_s,1082
62
- lingxingapi-1.0.3.dist-info/METADATA,sha256=C8q_8e43MRatIEwSmgjOQ6H2iQh00U8FYTedZdIXZD4,1898
63
- lingxingapi-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
- lingxingapi-1.0.3.dist-info/top_level.txt,sha256=oJVokkthGq3IRqL37Njwi5mNTBfXIbRQ1dQif3HIO1U,12
65
- lingxingapi-1.0.3.dist-info/RECORD,,
61
+ lingxingapi-1.0.4.dist-info/licenses/LICENSE,sha256=oQj0ddF8bHhbdDscjUiJeB3ps0sMasLHbc6tyDHqM_s,1082
62
+ lingxingapi-1.0.4.dist-info/METADATA,sha256=d2GKk0WMq-1lA1r12WcZkGGAdDgj_ID280MMudqiUZY,1898
63
+ lingxingapi-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
+ lingxingapi-1.0.4.dist-info/top_level.txt,sha256=oJVokkthGq3IRqL37Njwi5mNTBfXIbRQ1dQif3HIO1U,12
65
+ lingxingapi-1.0.4.dist-info/RECORD,,