expenses incurred by the agent in the following cases: (1) If the agent acted in contravention of the principal's instructions, unless the latter should wish to avail himself of the benefits derived from the contract; (2) When the expenses were due to the fault of the agent; (3) When the agent incurred them with knowledge that an unfavorable result would ensue, if the principal was not aware thereof; (4) When it was stipulated that the expenses would be borne by the agent, or that the latter would be allowed only a certain sum. (n)
ARTICLE 1919. Agency is extinguished:
(1) By its revocation; (2) By the withdrawal of the agent; (3) By the death, civil interdiction, insanity or insolvency of the principal or of the agent; (4) By the dissolution of the firm or corporation which entrusted or accepted the agency; (5) By the accomplishment of the object or purpose of the agency; (6) By the expiration of the period for which the agency was constituted. (1732a)