Source code for worldline.connect.sdk.v1.domain.non_sepa_direct_debit_payment_product730_specific_input
# -*- 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
from worldline.connect.sdk.v1.domain.bank_account_bban import BankAccountBban
[docs]
class NonSepaDirectDebitPaymentProduct730SpecificInput(DataObject):
"""
| ACH specific input fields
"""
__bank_account_bban: Optional[BankAccountBban] = None
@property
def bank_account_bban(self) -> Optional[BankAccountBban]:
"""
| Object containing account holder name and bank account information
Type: :class:`worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban`
"""
return self.__bank_account_bban
@bank_account_bban.setter
def bank_account_bban(self, value: Optional[BankAccountBban]) -> None:
self.__bank_account_bban = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(NonSepaDirectDebitPaymentProduct730SpecificInput, self).to_dictionary()
if self.bank_account_bban is not None:
dictionary['bankAccountBban'] = self.bank_account_bban.to_dictionary()
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'NonSepaDirectDebitPaymentProduct730SpecificInput':
super(NonSepaDirectDebitPaymentProduct730SpecificInput, self).from_dictionary(dictionary)
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