def bankcard_info(self, value): if isinstance(value, list): self._bankcard_info = list() for i in value: if isinstance(i, BankCardInfo): self._bankcard_info.append(i) else: self._bankcard_info.append(BankCardInfo.from_alipay_dict(i))
def bank_account(self, value): if isinstance(value, BankCardInfo): self._bank_account = value else: self._bank_account = BankCardInfo.from_alipay_dict(value)