Source code for worldline.connect.sdk.v1.domain.bank_account_iban

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from typing import Optional

from worldline.connect.sdk.v1.domain.bank_account import BankAccount


[docs] class BankAccountIban(BankAccount): __iban: Optional[str] = None @property def iban(self) -> Optional[str]: """ | The IBAN is the International Bank Account Number. It is an internationally agreed format for the BBAN and includes the ISO country code and two check digits. Type: str """ return self.__iban @iban.setter def iban(self, value: Optional[str]) -> None: self.__iban = value
[docs] def to_dictionary(self) -> dict: dictionary = super(BankAccountIban, self).to_dictionary() if self.iban is not None: dictionary['iban'] = self.iban return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'BankAccountIban': super(BankAccountIban, self).from_dictionary(dictionary) if 'iban' in dictionary: self.iban = dictionary['iban'] return self