'Verifies that the type of receipt is what we expect.'

def check_type(self, *types):

    if (self.decoded.get('typ', '') not in types):
        log_info(('Receipt    type    not    in    %s' % ','.join(types)))
        raise InvalidReceipt('WRONG_TYPE')
