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

# -*- 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.domain.data_object import DataObject


[docs] class Swift(DataObject): __bic: Optional[str] = None __category: Optional[str] = None __chips_uid: Optional[str] = None __extra_info: Optional[str] = None __po_box_country: Optional[str] = None __po_box_location: Optional[str] = None __po_box_number: Optional[str] = None __po_box_zip: Optional[str] = None __routing_bic: Optional[str] = None __services: Optional[str] = None @property def bic(self) -> Optional[str]: """ | The BIC is the Business Identifier Code, also known as SWIFT or Bank Identifier code. It is a code with an internationally agreed format to Identify a specific bank or even branch. The BIC contains 8 or 11 positions: the first 4 contain the bank code, followed by the country code and location code. Type: str """ return self.__bic @bic.setter def bic(self, value: Optional[str]) -> None: self.__bic = value @property def category(self) -> Optional[str]: """ | SWIFT category Type: str """ return self.__category @category.setter def category(self, value: Optional[str]) -> None: self.__category = value @property def chips_uid(self) -> Optional[str]: """ | Clearing House Interbank Payments System (CHIPS) UID | CHIPS is one half of the primary US network of large-value domestic and international payments. Type: str """ return self.__chips_uid @chips_uid.setter def chips_uid(self, value: Optional[str]) -> None: self.__chips_uid = value @property def extra_info(self) -> Optional[str]: """ | SWIFT extra information Type: str """ return self.__extra_info @extra_info.setter def extra_info(self, value: Optional[str]) -> None: self.__extra_info = value @property def po_box_country(self) -> Optional[str]: """ | Institution PO Box country Type: str """ return self.__po_box_country @po_box_country.setter def po_box_country(self, value: Optional[str]) -> None: self.__po_box_country = value @property def po_box_location(self) -> Optional[str]: """ | Institution PO Box location Type: str """ return self.__po_box_location @po_box_location.setter def po_box_location(self, value: Optional[str]) -> None: self.__po_box_location = value @property def po_box_number(self) -> Optional[str]: """ | Institution PO Box number Type: str """ return self.__po_box_number @po_box_number.setter def po_box_number(self, value: Optional[str]) -> None: self.__po_box_number = value @property def po_box_zip(self) -> Optional[str]: """ | Institution PO Box ZIP Type: str """ return self.__po_box_zip @po_box_zip.setter def po_box_zip(self, value: Optional[str]) -> None: self.__po_box_zip = value @property def routing_bic(self) -> Optional[str]: """ | Payment routing BIC Type: str """ return self.__routing_bic @routing_bic.setter def routing_bic(self, value: Optional[str]) -> None: self.__routing_bic = value @property def services(self) -> Optional[str]: """ | SWIFT services Type: str """ return self.__services @services.setter def services(self, value: Optional[str]) -> None: self.__services = value
[docs] def to_dictionary(self) -> dict: dictionary = super(Swift, self).to_dictionary() if self.bic is not None: dictionary['bic'] = self.bic if self.category is not None: dictionary['category'] = self.category if self.chips_uid is not None: dictionary['chipsUID'] = self.chips_uid if self.extra_info is not None: dictionary['extraInfo'] = self.extra_info if self.po_box_country is not None: dictionary['poBoxCountry'] = self.po_box_country if self.po_box_location is not None: dictionary['poBoxLocation'] = self.po_box_location if self.po_box_number is not None: dictionary['poBoxNumber'] = self.po_box_number if self.po_box_zip is not None: dictionary['poBoxZip'] = self.po_box_zip if self.routing_bic is not None: dictionary['routingBic'] = self.routing_bic if self.services is not None: dictionary['services'] = self.services return dictionary
[docs] def from_dictionary(self, dictionary: dict) -> 'Swift': super(Swift, self).from_dictionary(dictionary) if 'bic' in dictionary: self.bic = dictionary['bic'] if 'category' in dictionary: self.category = dictionary['category'] if 'chipsUID' in dictionary: self.chips_uid = dictionary['chipsUID'] if 'extraInfo' in dictionary: self.extra_info = dictionary['extraInfo'] if 'poBoxCountry' in dictionary: self.po_box_country = dictionary['poBoxCountry'] if 'poBoxLocation' in dictionary: self.po_box_location = dictionary['poBoxLocation'] if 'poBoxNumber' in dictionary: self.po_box_number = dictionary['poBoxNumber'] if 'poBoxZip' in dictionary: self.po_box_zip = dictionary['poBoxZip'] if 'routingBic' in dictionary: self.routing_bic = dictionary['routingBic'] if 'services' in dictionary: self.services = dictionary['services'] return self