示例#1
0
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()
示例#4
0
def cancelOrderReservation(orderId):
    order = OrderModel.get(orderId)
    order.setOrderStatusFailed()
    order.save()

    return order.to_dict()