Order Request
- class labstep.entities.orderRequest.model.OrderRequest(data, user)
Represents an Order Request on Labstep.
To see all attributes of the order request run
print(my_order_request)
Specific attributes can be accessed via dot notation like so…
print(my_order_request.name) print(my_order_request.id)
- Inherited-members:
- edit(status=OPTIONAL, resource_id=OPTIONAL, quantity=OPTIONAL, price=OPTIONAL, currency=OPTIONAL, extraParams={})
Edit an existing OrderRequest.
- Parameters:
status (str) – The status of the OrderRequest. Options are: “new”, “approved”, “ordered”, “back_ordered”, “received”, and “cancelled”.
resource_id (int) – The id of the
Resource
being requested.quantity (int) – The quantity of the OrderRequest.
price (int) – The price of the OrderRequest.
currency (str) – The currency of the price in the format of the 3-letter currency code by country. For example, “EUR” for Euro, “GBP” for British Pound Sterling, “USD” for US Dollar, etc.
- Returns:
An object representing the edited OrderRequest.
- Return type:
Example
my_orderRequest = user.getOrderRequest(17000) my_orderRequest.edit(status="back_ordered", quantity=3, price=50, currency="GBP")
- delete()
Delete an existing OrderRequest.
Example
my_orderRequest = user.getOrderRequest(17000) my_orderRequest.delete()