A heat exchanger unit configured to be connected to a refrigerant pipe in which refrigerant is sealed, the heat exchanger unit comprising: a plurality of heat sources (81, 91), each of the heat sources (81, 91) being configured such that in use it has a different amount of heat generation; and a plurality of cooling units (4, 5) each being configured to cool its associated one of the plurality of heat sources (81, 91), wherein cooling schemes of the plurality of cooling units (4, 5) are different depending on amounts of heat generation of the plurality of heat sources (81, 91), wherein the heat exchanger unit is an outdoor unit including a compressor and a fan, the plurality of heat sources (81, 91) include a first power module configured to drive the compressor, and a second power module configured to drive the fan, the plurality of cooling units (4, 5) include a first cooling unit configured to cool the first power module, and a second cooling unit configured to cool the second power module, the heat exchanger unit including a fan section where the fan is disposed, a heat exchange section where a plurality of heat exchangers (131, 132) are disposed, a mechanical section where an electrical component box in which electronic components are mounted, and the compressor are disposed, wherein the heat exchange section is disposed below the fan section, and the mechanical section is disposed below the heat exchange section, and wherein the electrical component box includes a main body where the first power module, the second power module, the first cooling unit, and the second cooling unit are mounted, and a duct configured to guide air to which heat is radiated by the second power module to outside the main body, the duct housing at least a part of the second cooling unit, a first opening and a second opening are provided on a side surface of the main body of the electrical component box and are arranged in a vertical direction, the second opening being provided above the first opening, the main body and the duct communicate with each other through the second opening, the second cooling unit is in contact with the second power module through the second opening, the first cooling unit is in contact with the first power module through the first opening, and the duct extends above a lower end of the heat exchange section, with an opening formed at an upper end of the duct, the upper end protruding above the lower end of the heat exchange section, and an opening formed at a lower end of the duct. a plurality of heat sources (81, 91), each of the heat sources (81, 91) being configured such that in use it has a different amount of heat generation; and a plurality of cooling units (4, 5) each being configured to cool its associated one of the plurality of heat sources (81, 91), wherein cooling schemes of the plurality of cooling units (4, 5) are different depending on amounts of heat generation of the plurality of heat sources (81, 91), wherein the heat exchanger unit is an outdoor unit including a compressor and a fan, the plurality of heat sources (81, 91) include a first power module configured to drive the compressor, and a second power module configured to drive the fan, the plurality of cooling units (4, 5) include a first cooling unit configured to cool the first power module, and a second cooling unit configured to cool the second power module, the heat exchanger unit including a fan section where the fan is disposed, a heat exchange section where a plurality of heat exchangers (131, 132) are disposed, a mechanical section where an electrical component box in which electronic components are mounted, and the compressor are disposed, wherein the heat exchange section is disposed below the fan section, and the mechanical section is disposed below the heat exchange section, and wherein the electrical component box includes a main body where the first power module, the second power module, the first cooling unit, and the second cooling unit are mounted, and a duct configured to guide air to which heat is radiated by the second power module to outside the main body, the duct housing at least a part of the second cooling unit, a main body where the first power module, the second power module, the first cooling unit, and the second cooling unit are mounted, and a duct configured to guide air to which heat is radiated by the second power module to outside the main body, the duct housing at least a part of the second cooling unit, a first opening and a second opening are provided on a side surface of the main body of the electrical component box and are arranged in a vertical direction, the second opening being provided above the first opening, the main body and the duct communicate with each other through the second opening, the second cooling unit is in contact with the second power module through the second opening, the first cooling unit is in contact with the first power module through the first opening, and the duct extends above a lower end of the heat exchange section, with an opening formed at an upper end of the duct, the upper end protruding above the lower end of the heat exchange section, and an opening formed at a lower end of the duct.