A right of retention on the thing may be exercised by:
<1° One to whom the thing has been delivered until payment of his claim;
2° One whose unpaid claim results from the contract which obliges him to deliver it;
3° One whose unpaid claim arose during the holding of the thing;
4° One who benefits from a pledge without dispossession.
The right of retention is lost by voluntary divestiture.