def testcancel(self): request.cancel('12345') request.r._post.assert_any_call('/requests/12345/cancel/', params={'oauth_token': 'AN OAUTH TOKEN'})
# "Notes": "", # "DateRequested": "2014-07-23T21:49:06Z", # "Status": "Pending" , # "Transaction": null, # "CancelledBy": null, # "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" ,
# "Amount": 5.00, # "Notes": "", # "DateRequested": "2014-07-23T21:49:06Z", # "Status": "Pending" , # "Transaction": null, # "CancelledBy": null, # "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": {
# "Notes": "", # "DateRequested": "2014-07-23T21:49:06Z", # "Status": "Pending" , # "Transaction": null, # "CancelledBy": null, # "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" ,
def testcancel(self): request.cancel('12345') request.r._post.assert_any_call('/requests/12345/cancel/', {'oauth_token': 'AN OAUTH TOKEN'}, dwollaparse='dwolla')