Original latch on a Carlson Pet Products gate (pictured) broke internally with no replacement parts from the manufacturer. The part that interfaces to the other side of the gate and the finger sliding mechanism broke at the finger slide interface. This part replaces the whole latch mechanism and only the internal spring in the square metal tube is reused. Simply slide the part over the metal tubing until it clicks into place over the first vertical tube.
Printed using PETG with a 0.8mm nozzle, would work fine with other settings. Included the original Fusion360 file in case welds are different sizes or the vertical tubing is off-center.
The author marked this model as their own original creation.