Skip to content

Commit 1bd6cae

Browse files
authored
Merge pull request #26 from 1415003719/2025-07
upgrade dependences
2 parents 399f881 + d212a98 commit 1bd6cae

File tree

4 files changed

+49
-49
lines changed

4 files changed

+49
-49
lines changed

README.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ If you need support using AfterShip products, please contact [email protected]
2020
- [Error Handling](#error-handling)
2121
- [Error List](#error-list)
2222
- [Endpoints](#endpoints)
23+
- [/estimated-delivery-date](#estimated-delivery-date)
2324
- [/trackings](#trackings)
2425
- [/couriers](#couriers)
2526
- [/courier-connections](#courier-connections)
26-
- [/estimated-delivery-date](#estimated-delivery-date)
2727
- [Help](#help)
2828
- [License](#license)
2929

@@ -145,6 +145,9 @@ The SDK will return an error object when there is any error during the request,
145145

146146
The AfterShip instance has the following properties which are exactly the same as the API endpoints:
147147

148+
- estimated_delivery_date
149+
- Prediction for the Estimated Delivery Date
150+
- Batch prediction for the Estimated Delivery Date
148151
- tracking
149152
- Get trackings
150153
- Create a tracking
@@ -162,9 +165,45 @@ The AfterShip instance has the following properties which are exactly the same a
162165
- Get courier connection by id
163166
- Update courier connection by id
164167
- Delete courier connection by id
165-
- estimated_delivery_date
166-
- Prediction for the Estimated Delivery Date
167-
- Batch prediction for the Estimated Delivery Date
168+
169+
### /estimated-delivery-date
170+
**POST** /estimated-delivery-date/predict
171+
172+
```python
173+
req = tracking.EstimatedDeliveryDateRequest()
174+
175+
176+
req.slug = 'valid_value'
177+
178+
179+
req.origin_address = tracking.EstimatedDeliveryDateRequestOriginAddress()
180+
181+
182+
req.destination_address = tracking.EstimatedDeliveryDateRequestDestinationAddress()
183+
184+
185+
result = sdk.estimated_delivery_date.predict(
186+
187+
req,
188+
189+
)
190+
print(result)
191+
```
192+
193+
**POST** /estimated-delivery-date/predict-batch
194+
195+
```python
196+
req = tracking.PredictBatchRequest()
197+
198+
199+
200+
result = sdk.estimated_delivery_date.predict_batch(
201+
202+
req,
203+
204+
)
205+
print(result)
206+
```
168207

169208
### /trackings
170209
**GET** /trackings
@@ -365,45 +404,6 @@ result = sdk.courier_connection.delete_courier_connections_by_id(
365404
print(result)
366405
```
367406

368-
### /estimated-delivery-date
369-
**POST** /estimated-delivery-date/predict
370-
371-
```python
372-
req = tracking.EstimatedDeliveryDateRequest()
373-
374-
375-
req.slug = 'valid_value'
376-
377-
378-
req.origin_address = tracking.EstimatedDeliveryDateRequestOriginAddress()
379-
380-
381-
req.destination_address = tracking.EstimatedDeliveryDateRequestDestinationAddress()
382-
383-
384-
result = sdk.estimated_delivery_date.predict(
385-
386-
req,
387-
388-
)
389-
print(result)
390-
```
391-
392-
**POST** /estimated-delivery-date/predict-batch
393-
394-
```python
395-
req = tracking.PredictBatchRequest()
396-
397-
398-
399-
result = sdk.estimated_delivery_date.predict_batch(
400-
401-
req,
402-
403-
)
404-
print(result)
405-
```
406-
407407

408408
## Help
409409

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tracking/api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# Do not edit the class manually.
55

66
__all__ = [
7+
"EstimatedDeliveryDateApi",
78
"TrackingApi",
89
"CourierApi",
910
"CourierConnectionApi",
10-
"EstimatedDeliveryDateApi",
1111
]
1212

13+
from .estimated_delivery_date import EstimatedDeliveryDateApi
1314
from .tracking import TrackingApi
1415
from .courier import CourierApi
1516
from .courier_connection import CourierConnectionApi
16-
from .estimated_delivery_date import EstimatedDeliveryDateApi

tracking/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
from typing import Optional
99

1010
from .configuration import Configuration
11+
from .api import EstimatedDeliveryDateApi
1112
from .api import TrackingApi
1213
from .api import CourierApi
1314
from .api import CourierConnectionApi
14-
from .api import EstimatedDeliveryDateApi
1515

1616

1717
class Client:
1818
def __init__(self, configuration: Optional[Configuration] = None) -> None:
1919
if configuration is None:
2020
configuration = Configuration()
2121

22+
self.estimated_delivery_date = EstimatedDeliveryDateApi(configuration)
2223
self.tracking = TrackingApi(configuration)
2324
self.courier = CourierApi(configuration)
2425
self.courier_connection = CourierConnectionApi(configuration)
25-
self.estimated_delivery_date = EstimatedDeliveryDateApi(configuration)

0 commit comments

Comments
 (0)