on the kubota b20 you have a permanent magnet charging system not a dynamo or alternator per say this unit contains only north and south magnets and the conductor wires to make it work. they cannot be repaired and only put out about 11.50 to 12.50 voltage only enough to charge battery and possibly lights.
if bought from dealer normally high side of $200.00 plus can be bought off ebay for a lot less as of today there is one on ebay for $103.00 just google your tractor year and model for alternator