def convert(entry): return { 'binding': entry['bindingId'], 'masked_pan': entry['maskedPan'], 'expiry_date': entry['expiryDate'], 'system': system_name(entry['maskedPan']) }
def get_system(self, obj): return system_name(self.get_pan(obj))