defined in the Purchase Agreement (collectively, the “Target Companies”). The purchase price is approximately $273.0 million in cash, subject to certain customary adjustments to, primarily, take into account the actual amount of certain assets and liabilities of the Target Companies as of the closing date. The Target Companies each will contain all of the assets exclusively related to the ownership and operation of, and the receipt, storage and throughput of refined products at certain operating, refined-products terminals located in New Haven, CT, Thorofare, NJ, Portland, ME, Linden, NJ and Chelsea, MA. The five terminals have an aggregate storage capacity of approximately 3.9 million barrels. The acquisition is expected to close in the first half of 2023 subject to regulatory approvals and other customary closing conditions. We expect to finance the transaction with borrowings under our revolving credit facility.
Acquisitions—On September 20, 2022, we acquired substantially all of the assets of Tidewater Convenience, Inc. in a cash transaction. The acquisition includes 14 company-operated Tidewater convenience stores and 1 fuel site, all located in Virginia. The purchase price was approximately $40.3 million, including inventory, funded with borrowings under our revolving credit facility.
On February 1, 2022, we acquired substantially all of the retail motor fuel assets of Miller Oil Co., Inc. in a cash transaction. The acquisition includes 21 company-operated Miller’s Neighborhood Market convenience stores and 2 fuel sites that are either owned or leased, including lessee dealer and commissioned agent locations, all located in Virginia, and 34 fuel supply only sites, primarily in Virginia. The purchase price was approximately $60.1 million, including inventory, funded with borrowings under our revolving credit facility.
On January 25, 2022, we acquired substantially all of the assets of Consumers Petroleum of Connecticut, Incorporated, in a cash transaction. The acquisition includes 26 company-owned Wheels convenience stores and related fuel operations located in Connecticut and 22 fuel-supply only sites located in Connecticut and New York. The purchase price was approximately $154.7 million, including inventory, funded with borrowings under our revolving credit facility.
Sale of the Revere Terminal—On June 28, 2022, we completed the sale of our terminal located on Boston Harbor in Revere, Massachusetts (the “Revere Terminal”) for a purchase price of $150.0 million in cash. In connection with closing, we entered into a leaseback agreement with the buyer of the Revere Terminal pursuant to which we lease back key infrastructure at the Revere Terminal, including certain tanks, dock access rights, and loading rack infrastructure, to allow us to continue business operations at the Revere Terminal. See Note 17 of Notes to Consolidated Financial Statements for additional information.
Amendments to the Credit Agreement—On March 9, 2022, we and certain of our subsidiaries entered into the sixth amendment to third amended and restated credit agreement which, among other things, increased the total aggregate commitment to $1.55 billion. On March 30, 2022, we and certain of our subsidiaries entered into the seventh amendment to third amended and restated credit agreement which, among other things, refreshed the accordion feature under the credit agreement.
Operating Segments
We operate our businesses under three segments: (i) Wholesale, (ii) GDSO and (iii) Commercial. In 2022, our Wholesale, GDSO and Commercial sales accounted for approximately 58%, 35% and 7% of our total sales, respectively.
Wholesale
In our Wholesale segment, we engage in the logistics of selling, gathering, blending, storing and transporting refined petroleum products, gasoline blendstocks, renewable fuels, crude oil and propane. We transport these products by railcars, barges, trucks and/or pipelines pursuant to spot or long-term contracts. From time to time, we aggregate crude oil by truck or pipeline in the mid-continent region of the United States and Canada, transport it by rail and ship it by barge to refiners. We sell home heating oil, branded and unbranded gasoline and gasoline blendstocks, diesel, kerosene and residual oil to home heating oil retailers and wholesale distributors. Generally, customers use their own vehicles or contract carriers to take delivery of the gasoline, distillates and propane at bulk terminals and inland storage facilities that we own or control or at which we have throughput or exchange arrangements. Ethanol is shipped primarily by rail and by barge.