Skip to content

Commit 4c41878

Browse files
Merge pull request #15 from AfterShip-Team-Mocha/2025-01
fix: change the type of transit_time.
2 parents 8bb2af1 + cb911de commit 4c41878

File tree

279 files changed

+329
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+329
-331
lines changed

.gitignore

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints
67+
68+
tests/

README.md

+6-6

app.py

-73
This file was deleted.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aftership-tracking-sdk"
3-
version = "5.0.0"
3+
version = "5.0.1"
44
description = "The official AfterShip Tracking Python API library"
55
authors = ["AfterShip <[email protected]>"]
66
license = "MIT"
@@ -51,4 +51,4 @@ line-length = 100
5151
quote-style = "double"
5252
indent-style = "space"
5353
docstring-code-format = true
54-
docstring-code-line-length = 60
54+
docstring-code-line-length = 60

tracking/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
from . import exceptions
1212
from .models import *
1313

14-
__version__ = "5.0.0"
14+
__version__ = "5.0.1"
-424 Bytes
Binary file not shown.
-7.46 KB
Binary file not shown.
-983 Bytes
Binary file not shown.
Binary file not shown.
-4.7 KB
Binary file not shown.
-7.11 KB
Binary file not shown.
-3.88 KB
Binary file not shown.
-382 Bytes
Binary file not shown.
-3.76 KB
Binary file not shown.
Binary file not shown.
-14.9 KB
Binary file not shown.

tracking/api/courier.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# Do not edit the class manually.
55

66
import json
7-
from typing import Union
7+
from typing import Union, Annotated
88

9+
from pydantic import Field
910

1011
from tracking.models import (
1112
DetectCourierRequest,

tracking/api/estimated_delivery_date.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# Do not edit the class manually.
55

66
import json
7-
from typing import Union
7+
from typing import Union, Annotated
88

9+
from pydantic import Field
910

1011
from tracking.models import (
1112
PredictRequest,
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-824 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

tracking/models/aftership_estimated_delivery_date_create_tracking_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_delete_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_get_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_mark_tracking_completed_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_retrack_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_tracking.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/aftership_estimated_delivery_date_update_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_create_tracking_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_delete_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_get_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_mark_tracking_completed_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_retrack_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_tracking.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/carbon_emissions_update_tracking_by_id_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

tracking/models/checkpoint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
9+
from pydantic import BaseModel, Field
1010
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

tracking/models/coordinate_checkpoint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from __future__ import annotations
77
import pprint
88

9-
from pydantic import BaseModel
10-
from typing import Any, Dict, Optional
9+
from pydantic import BaseModel, Field
10+
from typing import Any, Dict, List, Optional
1111
from typing_extensions import Self
1212

1313

0 commit comments

Comments
 (0)