def testdeposit(self): fundingsources.deposit(30.50, '123456', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') fundingsources.r._post.assert_any_call( '/fundingsources/123456/deposit', { 'amount': 30.5, 'pin': 1234 }, { 'alternate_token': 'AN OAUTH TOKEN', 'dwollaparse': 'dwolla' })
def testdeposit(self): fundingsources.deposit(30.50, '123456') fundingsources.r._post.assert_any_call('/fundingsources/123456/deposit', {'amount': 30.5, 'oauth_token': 'AN OAUTH TOKEN', 'pin': 1234}, dwollaparse='dwolla')
# "Image": "http://uat.dwolla.com/avatars/812-742-8722" # }, # "ClearingDate": "2014-09-08T00:00:00Z", # "Status": "pending", # "Notes": null, # "Fees": null, # "OriginalTransactionId": null, # "Metadata": null # } # } # Example 6: Deposit $10 into Dwolla from funding ID # '12345678'. print(fundingsources.deposit(10.00, '12345678')) # Return: # { # "Id": 12345678, # "Amount": 5, # "Date": "2014-09-05T06:40:56Z", # "Type": "deposit", # "UserType": "Dwolla", # "DestinationId": "XXX9999", # "DestinationName": "Blah", # "Destination": { # "Id": "812-742-8722", # "Name": "Cafe Kubal", # "Type": "Dwolla", # "Image": "http://uat.dwolla.com/avatars/812-742-8722" # },
# "Type": "Dwolla", # "Image": "http://uat.dwolla.com/avatars/812-742-8722" # }, # "ClearingDate": "2014-09-08T00:00:00Z", # "Status": "pending", # "Notes": null, # "Fees": null, # "OriginalTransactionId": null, # "Metadata": null # } # } # Example 6: Deposit $10 into Dwolla from funding ID # '12345678'. print(fundingsources.deposit(10.00, '12345678')) # Return: # { # "Id": 12345678, # "Amount": 5, # "Date": "2014-09-05T06:40:56Z", # "Type": "deposit", # "UserType": "Dwolla", # "DestinationId": "XXX9999", # "DestinationName": "Blah", # "Destination": { # "Id": "812-742-8722", # "Name": "Cafe Kubal", # "Type": "Dwolla", # "Image": "http://uat.dwolla.com/avatars/812-742-8722" # },