@classmethod
def get_counterparty_addresses(cls, cp_ref, cp_type='Sender'):
    """
        Method for fetching counterparty's addresses.

        :example:
            ``Counterparty.get_counterparty_addresses('f70f1bee-55fd-11e5-8d8d-005056887b8d', cp_type='Recipient')``
        :param cp_ref:
            ID of the counterparty
        :type cp_ref:
            str or unicode
        :param cp_type:
            type of the counterparty: can be either `Sender` or `Recipient` (`Sender` used as default)
        :type cp_type:
            str or unicode
        :return:
            dictionary with info about counterparty's addresses
        """
    return cls.send(method='getCounterpartyAddresses', method_props={'Ref':
        cp_ref, 'CounterpartyProperty': cp_type})
