PurchaseCategory

class moco_wrapper.models.PurchaseCategory(moco)

Class for handling Purchase Categories.

static endpoints() → List[moco_wrapper.util.endpoint.endpoint.Endpoint]

Returns all endpoints associated with the model

Returns:List of Endpoint objects
Return type:moco_wrapper.util.endpoint.Endpoint
get(category_id: int)

Retrieve a single category.

Parameters:category_id (int) – Id of the category to retrieve
Returns:Single Category object
Return type:moco_wrapper.util.response.ObjectResponse
getlist()

Retrieve a list of categories.

Returns:List of categories
Return type:moco_wrapper.util.response.ListResponse