def from_dictionary(self, dictionary):
     super(BankDetailsResponse, 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'])
     if 'bankAccountIban' in dictionary:
         if not isinstance(dictionary['bankAccountIban'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['bankAccountIban']))
         value = BankAccountIban()
         self.bank_account_iban = value.from_dictionary(
             dictionary['bankAccountIban'])
     if 'bankData' in dictionary:
         if not isinstance(dictionary['bankData'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['bankData']))
         value = BankData()
         self.bank_data = value.from_dictionary(dictionary['bankData'])
     if 'swift' in dictionary:
         if not isinstance(dictionary['swift'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['swift']))
         value = Swift()
         self.swift = value.from_dictionary(dictionary['swift'])
     return self
Beispiel #2
0
 def from_dictionary(self, dictionary):
     super(RiskAssessmentBankAccount, 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'])
     if 'bankAccountIban' in dictionary:
         if not isinstance(dictionary['bankAccountIban'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['bankAccountIban']))
         value = BankAccountIban()
         self.bank_account_iban = value.from_dictionary(
             dictionary['bankAccountIban'])
     return self
 def from_dictionary(self, dictionary):
     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
Beispiel #4
0
 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
 def from_dictionary(self, dictionary):
     super(BankTransferPayoutMethodSpecificInput, 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'])
     if 'bankAccountIban' in dictionary:
         if not isinstance(dictionary['bankAccountIban'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['bankAccountIban']))
         value = BankAccountIban()
         self.bank_account_iban = value.from_dictionary(dictionary['bankAccountIban'])
     if 'customer' in dictionary:
         if not isinstance(dictionary['customer'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(dictionary['customer']))
         value = PayoutCustomer()
         self.customer = value.from_dictionary(dictionary['customer'])
     if 'payoutDate' in dictionary:
         self.payout_date = dictionary['payoutDate']
     if 'payoutText' in dictionary:
         self.payout_text = dictionary['payoutText']
     if 'swiftCode' in dictionary:
         self.swift_code = dictionary['swiftCode']
     return self
 def from_dictionary(self, dictionary):
     super(RedirectPaymentMethodSpecificOutput,
           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'])
     if 'bankAccountIban' in dictionary:
         if not isinstance(dictionary['bankAccountIban'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['bankAccountIban']))
         value = BankAccountIban()
         self.bank_account_iban = value.from_dictionary(
             dictionary['bankAccountIban'])
     if 'bic' in dictionary:
         self.bic = dictionary['bic']
     if 'fraudResults' in dictionary:
         if not isinstance(dictionary['fraudResults'], dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['fraudResults']))
         value = FraudResults()
         self.fraud_results = value.from_dictionary(
             dictionary['fraudResults'])
     if 'paymentProduct3201SpecificOutput' in dictionary:
         if not isinstance(dictionary['paymentProduct3201SpecificOutput'],
                           dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['paymentProduct3201SpecificOutput']))
         value = PaymentProduct3201SpecificOutput()
         self.payment_product3201_specific_output = value.from_dictionary(
             dictionary['paymentProduct3201SpecificOutput'])
     if 'paymentProduct806SpecificOutput' in dictionary:
         if not isinstance(dictionary['paymentProduct806SpecificOutput'],
                           dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['paymentProduct806SpecificOutput']))
         value = PaymentProduct806SpecificOutput()
         self.payment_product806_specific_output = value.from_dictionary(
             dictionary['paymentProduct806SpecificOutput'])
     if 'paymentProduct836SpecificOutput' in dictionary:
         if not isinstance(dictionary['paymentProduct836SpecificOutput'],
                           dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['paymentProduct836SpecificOutput']))
         value = PaymentProduct836SpecificOutput()
         self.payment_product836_specific_output = value.from_dictionary(
             dictionary['paymentProduct836SpecificOutput'])
     if 'paymentProduct840SpecificOutput' in dictionary:
         if not isinstance(dictionary['paymentProduct840SpecificOutput'],
                           dict):
             raise TypeError('value \'{}\' is not a dictionary'.format(
                 dictionary['paymentProduct840SpecificOutput']))
         value = PaymentProduct840SpecificOutput()
         self.payment_product840_specific_output = value.from_dictionary(
             dictionary['paymentProduct840SpecificOutput'])
     if 'token' in dictionary:
         self.token = dictionary['token']
     return self