Heat the oil in a large saucepan. Saute the green onion whites, red pepper, chilli paste and garlic for 5-8 minutes until soft and fragrant. Add the thyme, curry powder and allspice, then cook for 1 minute more,
Stir in the tomatoes, then cook for 2 minutes to soften slightly.
Crumble in the stock cube, then add in all the beans and the coconut milk. Simmer for 10 minutes Turn off the heat and stir in most of the green onion greens, the lime juice and salt and pepper.
Ladle into bowls and garnish with remaining green onion just before serving.