def finalizeOrder(orderId): order = OrderModel.get(orderId) order.setOrderTransctionDone() order.save() print(order.to_dict()) return order.to_dict()
def getOrderStatus(orderId): order = OrderModel.get(orderId) return order.to_dict()
def confirmOrderReservation(orderId): order = OrderModel.get(orderId) order.setOrderStatusSucceeded() order.save() return order.to_dict()
def cancelOrderReservation(orderId): order = OrderModel.get(orderId) order.setOrderStatusFailed() order.save() return order.to_dict()