def testadd(self): fundingsources.add('123456', '654321', 'Checking', 'Unit Test Bank', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') fundingsources.r._post.assert_any_call( '/fundingsources', { 'routing_number': '654321', 'account_type': 'Checking', 'account_number': '123456', 'account_name': 'Unit Test Bank' }, { 'alternate_token': 'AN OAUTH TOKEN', 'dwollaparse': 'dwolla' })
def testadd(self): fundingsources.add('123456', '654321', 'Checking', 'Unit Test Bank') fundingsources.r._post.assert_any_call('/fundingsources', {'routing_number': '654321', 'account_type': 'Checking', 'oauth_token': 'AN OAUTH TOKEN', 'account_number': '123456', 'account_name': 'Unit Test Bank'}, dwollaparse='dwolla')
# "Type": "Checking", # "Verified": "true", # "ProcessingType": "FiSync" # } # ] # Example 3: Add a funding source to the account associated # with the current OAuth token. # # '12345678' is the account number. # '00000000' is the routing number. # 'Checking' is the account type. # 'My Bank' is a user defined account identifier string. print(fundingsources.add('12345678', '00000000', 'Checking', 'My Bank')) # Return: # { # "Id": "34da835f235cd25302ef0c5c1cb1d4b9", # "Name": "My Bank", # "Type": "Checking", # "Verified": false, # "ProcessingType": "ACH" # } # Example 4: Verify the newly created account with via # the two micro-deposits. # # '0.04' is the first deposit. # '0.02' is the second deposit.
# "Name": "Donations Payout Account - Checking", # "Type": "Checking", # "Verified": "true", # "ProcessingType": "FiSync" # } # ] # Example 3: Add a funding source to the account associated # with the current OAuth token. # # '12345678' is the account number. # '00000000' is the routing number. # 'Checking' is the account type. # 'My Bank' is a user defined account identifier string. print(fundingsources.add('12345678', '00000000', 'Checking', 'My Bank')) # Return: # { # "Id": "34da835f235cd25302ef0c5c1cb1d4b9", # "Name": "My Bank", # "Type": "Checking", # "Verified": false, # "ProcessingType": "ACH" # } # Example 4: Verify the newly created account with via # the two micro-deposits. # # '0.04' is the first deposit. # '0.02' is the second deposit. # '12345678' is the account number.