Floor Plan Question

I pretty much understand what a dealer’s floor plan is but was wondering if dealers have to pay floor plan costs on vehicles on their lots which were repossessed from a customer, traded in, or obtained (swapped) from another dealer who couldn’t sell them. Seems like this would be good information to know when price haggling for a used vehicle at the dealership.