For the purpose of this Act a credit agreement is an agreement in the nature of a credit facility, a credit transaction, a credit guarantee or any combination of these which the lender
(a) resides or has its principal office within or outside the country;
(b) an institution of state;
(c) an entity controlled by an institution of state; or
(d) is an entity created by an enactment.