Cal. Corp. Code § 31005
(a) “Franchise” means a contract or agreement, either expressed or implied, whether oral or written, between two or more persons by which:
(b) For the purposes of this division, the term “franchise” also means the following:
(2) Any contract between a refiner and a petroleum distributor, between a refiner and a petroleum retailer, between a petroleum distributor and another petroleum distributor, or between a petroleum distributor and a petroleum retailer, under which a refiner or petroleum distributor authorizes or permits a petroleum retailer or petroleum distributor to use, in connection with the sale, consignment, or distribution of gasoline, diesel, gasohol, or aviation fuel, a trademark which is owned or controlled by such refiner or by a refiner which supplies fuel to the petroleum distributor which authorizes or permits such use. The term “franchise” as defined in this paragraph includes the following:
(c) For purposes of this division, the term “franchise” does not include a nonprofit organization operated on a cooperative basis by and for independent retailers which wholesales goods and services primarily to its member retailers and to which all of the following is applicable: