It can be both. The latter is called factoring - they will "purchase" the accounts receivable from you for a price based on the riskiness of your debtors, and then chase it up themselves and keep what they get.