1378. A contract is an agreement of wills by which one or several persons obligate themselves to one or several other persons to perform a prestation.
Contracts may be divided into contracts of adhesion and contracts by mutual agreement, synallagmatic and unilateral contracts, onerous and gratuitous contracts, commutative and aleatory contracts, and contracts of instantaneous performance or of successive performance; they may also be consumer contracts.