def __init__(self, json_data):
        self.messages = [NexmoMessage(data) for data in json_data['messages']]
        self.message_count = len(self.messages)
        self.total_price = sum(msg.message_price for msg in self.messages)
        self.remaining_balance = min(msg.remaining_balance for msg in self.messages)