@@ -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
146146The 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(
365404print (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
0 commit comments