def testfulfill(self): request.fulfill('12345', 13.37, {'a': 'parameter'}) request.r._post.assert_any_call('/requests/12345/fulfill', {'a': 'parameter', 'oauth_token': 'AN OAUTH TOKEN'})
# "SenderAssumeAdditionalFees": false, # "AdditionalFees": [], # "Metadata": null # } # Example 4: Cancel a pending money request. print request.cancel(1470) # Return: # Empty string if successful, error will be raised if not. # Example 5: Fulfill a pending money request. print request.fulfill(1475, 10.00) # Return: # { # "Id": 147659, # "RequestId": 1475, # "Amount": 10.00, # "SentDate": "2014-01-22T13:11:10Z", # "ClearingDate": "2014-01-22T13:11:10Z", # "Status": "processed" , # "Source": { # "Id": "812-693-9484", # "Name": "Michael Schonfeld", # "Type": "Dwolla", # "Image": null # }, # "Destination": {
# "DateCancelled": "", # "SenderAssumeFee": false, # "SenderAssumeAdditionalFees": false, # "AdditionalFees": [], # "Metadata": null # } # Example 4: Cancel a pending money request. print(request.cancel(1470)) # Return: # Empty string if successful, error will be raised if not. # Example 5: Fulfill a pending money request. print(request.fulfill(1475, 10.00)) # Return: # { # "Id": 147659, # "RequestId": 1475, # "Amount": 10.00, # "SentDate": "2014-01-22T13:11:10Z", # "ClearingDate": "2014-01-22T13:11:10Z", # "Status": "processed" , # "Source": { # "Id": "812-693-9484", # "Name": "Michael Schonfeld", # "Type": "Dwolla", # "Image": null # }, # "Destination": {
# "SenderAssumeAdditionalFees": false, # "AdditionalFees": [], # "Metadata": null # } # Example 4: Cancel a pending money request. print(request.cancel(1470)) # Return: # Empty string if successful, error will be raised if not. # Example 5: Fulfill a pending money request. print(request.fulfill(1475, 10.00)) # Return: # { # "Id": 147659, # "RequestId": 1475, # "Amount": 10.00, # "SentDate": "2014-01-22T13:11:10Z", # "ClearingDate": "2014-01-22T13:11:10Z", # "Status": "processed" , # "Source": { # "Id": "812-693-9484", # "Name": "Michael Schonfeld", # "Type": "Dwolla", # "Image": null # }, # "Destination": {
def testfulfill(self): request.fulfill('12345', 13.37, a='parameter') request.r._post.assert_any_call('/requests/12345/fulfill', {'a': 'parameter', 'oauth_token': 'AN OAUTH TOKEN', 'amount': 13.37, 'pin': 1234}, dwollaparse='dwolla')