This is called equity (or equity financing). Another way is getting money from lenders in the form of long-term loans.