def testscheduledbyid(self): transactions.scheduledbyid('1234', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') transactions.r._get.assert_any_call( '/transactions/scheduled/1234', {}, { 'alternate_token': 'AN OAUTH TOKEN', 'dwollaparse': 'dwolla' })
def testscheduledbyid(self): transactions.scheduledbyid('1234', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') transactions.r._get.assert_any_call('/transactions/scheduled/1234', {}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})
# "Id": "812-111-1111", # "Name": "Jane Doe", # "Type": "Dwolla", # "Image": "http://www.dwolla.com/avatars/812-111-1111" # }, # "Status": "scheduled", # "CreatedDate": "2014-09-12T20:37:37Z", # "Metadata": { # "foo": "bar" # } # ... #] # Example 8: Get scheduled transaction with # ID 'asbfdjk434' print transactions.scheduledbyid('asbfdjk434') # Example 9: Edit scheduled transaction with ID # 'asr3r34t' to reflect amount 10.50 print transactions.editscheduledbyid('asr3r34t', {'amount': 10.50}) # Return: # "Id": "asr3r34t", # "ScheduledDate": "2018-01-01", # "ExpectedClearingDate": "2018-01-06", # "TransactionId": null, # "Amount": 10.50, # "FundingSource": "5da016f7769bcc1de9998a30d194d5a7", # "AssumeCosts": false, # "Destination": { # "Id": "812-111-1111",
def testscheduledbyid(self): transactions.scheduledbyid('1234') transactions.r._get.assert_any_call('/transactions/scheduled/1234', {'oauth_token': 'AN OAUTH TOKEN'}, dwollaparse='dwolla')
# "Id": "812-111-1111", # "Name": "Jane Doe", # "Type": "Dwolla", # "Image": "http://www.dwolla.com/avatars/812-111-1111" # }, # "Status": "scheduled", # "CreatedDate": "2014-09-12T20:37:37Z", # "Metadata": { # "foo": "bar" # } # ... #] # Example 8: Get scheduled transaction with # ID 'asbfdjk434' print transactions.scheduledbyid('asbfdjk434') # Example 9: Edit scheduled transaction with ID # 'asr3r34t' to reflect amount 10.50 print transactions.editscheduledbyid('asr3r34t', {'amount': 10.50}) # Return: # "Id": "asr3r34t", # "ScheduledDate": "2018-01-01", # "ExpectedClearingDate": "2018-01-06", # "TransactionId": null, # "Amount": 10.50, # "FundingSource": "5da016f7769bcc1de9998a30d194d5a7", # "AssumeCosts": false, # "Destination": { # "Id": "812-111-1111", # "Name": "Jane Doe",