The Order class enables access to catalog and tasking orders tracking.
Python
order = up42.initialize_order(order_id="ea36dee9-fed6-457e-8400-2c20ebd30f44")
The info
attribute returns metadata of a specific order. The returned data type is dict
.
An example with info
Python
order.info
The order_details
attribute returns details of a specific tasking order. It doesn’t work with catalog orders. The returned data type is dict
.
An example with order_details
Python
order.order_details
The status
attribute returns the order status. The returned data type is str
.
An example with status
Python
order.status
The is_fulfilled
attribute returns the following:
True
, if the order has theFULFILLED
status.False
, if the job has any other status. The returned data type isbool
.
An example with is_fulfilled
Python
order.is_fulfilled
The track_status()
function allows you to track the order status until the order is fulfilled or failed. The returned data type is str
.
Argument | Overview |
---|---|
report_time | int The time interval for querying whether the order status has changed to FULFILLED or FAILED_PERMANENTLY , in seconds. The default value is 120 . |
An example with track_status()
Python
order.track_status(report_time=150)
The get_assets()
function returns a list of order assets.
Use this function to retrieve multiple assets from the same order.
The returned data type is list[Asset]
.
To search across all assets in your storage, use the get_assets() function from the Storage class.
An example with get_assets()
Python
order.get_assets()