contract payment query model.