generatebeforeGetOffer