Source code for ingenico.connect.sdk.domain.token.definitions.token_non_sepa_direct_debit_payment_product705_specific_data

# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/
#
from ingenico.connect.sdk.data_object import DataObject
from ingenico.connect.sdk.domain.definitions.bank_account_bban import BankAccountBban


[docs]class TokenNonSepaDirectDebitPaymentProduct705SpecificData(DataObject): __authorisation_id = None __bank_account_bban = None @property def authorisation_id(self): """ | Core reference number for the direct debit instruction in UK Type: str """ return self.__authorisation_id @authorisation_id.setter def authorisation_id(self, value): self.__authorisation_id = value @property def bank_account_bban(self): """ | Object containing account holder name and bank account information Type: :class:`ingenico.connect.sdk.domain.definitions.bank_account_bban.BankAccountBban` """ return self.__bank_account_bban @bank_account_bban.setter def bank_account_bban(self, value): self.__bank_account_bban = value
[docs] def to_dictionary(self): dictionary = super(TokenNonSepaDirectDebitPaymentProduct705SpecificData, self).to_dictionary() if self.authorisation_id is not None: dictionary['authorisationId'] = self.authorisation_id if self.bank_account_bban is not None: dictionary['bankAccountBban'] = self.bank_account_bban.to_dictionary() return dictionary
[docs] def from_dictionary(self, dictionary): super(TokenNonSepaDirectDebitPaymentProduct705SpecificData, self).from_dictionary(dictionary) if 'authorisationId' in dictionary: self.authorisation_id = dictionary['authorisationId'] if 'bankAccountBban' in dictionary: if not isinstance(dictionary['bankAccountBban'], dict): raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['bankAccountBban'])) value = BankAccountBban() self.bank_account_bban = value.from_dictionary(dictionary['bankAccountBban']) return self