A collecting bank has a security interest in an item and in any accompanying documents or in the proceeds of either:
In case of an item deposited in an account, to the extent to which credit given for the item has been withdrawn or applied;
In case of an item for which it has given credit available for withdrawal as of right, to the extent of the credit given, whether or not the credit is drawn upon or there is a right of charge-back; or
If it makes an advance on or against the item.
If credit given for several items received at one time or pursuant to a single agreement is withdrawn or applied in part, the security interest remains upon all the items, any accompanying documents or the proceeds of either. For the purpose of this action, credits first given are first withdrawn.
Receipt by a collecting bank of a final settlement for an item is a realization on its security interest in the item, accompanying documents and proceeds. So long as the bank does not receive final settlement for the item or give up possession of the item or possession or control of the accompanying documents for purposes other than collection, the security interest continues to that extent and is subject to ORS chapter 79, but: