(b) An account agreement may authorize the bank to debit the special deposit:
- (1) When the bank becomes obligated to pay a beneficiary, in an amount that does not exceed the amount necessary to discharge the obligation;
- (2) For a fee assessed by the bank that relates to an overdraft in the special deposit account;
- (3) For costs incurred by the bank that relate directly to the special deposit; or
- (4) To reverse an earlier credit posted by the bank to the balance of the special deposit account, if the reversal occurs under an event or circumstance warranted under other law of this state governing mistake and restitution.