def build_transaction_description(match, type):
	"""Builds a transaction's description from a regex match."""
	return {
		"type": type, 
		"sub_type": match.group(1),
		"location": match.group(2),
		"description": match.group(3)
	}