When you put the light unit back together, the terminals on the right of the picture fit over the terminal block on the left of the picture and that's how it gets it's supply.
Bernard, in 'light' (ho ho) of what vera says, does the wiring make more sense? do you still think the guy bought the wrong lamp?
Why?I assume it's a timer.
If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local