def create_parcel(): """Create a parcel function wrapped around the Post /parcels endpoint""" return Parcel_Controller.create_parcel()
def change_status(parcel_id): """Cancel a particular parcel delivery order by a user""" return Parcel_Controller.change_parcel_status(parcel_id)
def change_destination(parcel_id): return Parcel_Controller.change_parcel_destination(parcel_id)
def get_parcel(parcel_id): """Retrieve a particular parcel""" return Parcel_Controller.get_parcel(parcel_id)
def change_location(parcel_id): """Change the present location of a parcel delivery order""" return Parcel_Controller.change_present_location(parcel_id)
def get_cancelled_parcels_by_user(user_id): """Retrieve all cancelled parcels by a specific user""" return Parcel_Controller.get_cancelled_parcels_by_user(user_id)
def get_pending_parcels_by_user(user_id): """Retrieve all pending parcels by a specific user""" return Parcel_Controller.get_pending_parcels_by_user(user_id)
def get_intransit_parcels_by_user(user_id): """Retrieve all intransit parcels by a specific user""" return Parcel_Controller.get_intransit_parcels_by_user(user_id)
def parcels(): """Retrieve all parcels""" return Parcel_Controller.get_parcels()
def index(): """Index page""" return Parcel_Controller.index()