def testeditscheduledbyid(self):
     transactions.editscheduledbyid('1234',
                                    amount=5.5,
                                    alternate_token='AN OAUTH TOKEN',
                                    dwollaparse='dwolla')
     transactions.r._put.assert_any_call('/transactions/scheduled/1234', {
         'amount': 5.5,
         'pin': 1234
     }, {
         'alternate_token': 'AN OAUTH TOKEN',
         'dwollaparse': 'dwolla'
     })
Example #2
0
 def testeditscheduledbyid(self):
     transactions.editscheduledbyid('1234', amount=5.5, alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla')
     transactions.r._put.assert_any_call('/transactions/scheduled/1234', {'amount': 5.5, 'pin': 1234}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})
Example #3
0
#     "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",
#         "Type": "Dwolla",
#         "Image": "http://www.dwolla.com/avatars/812-111-1111"
#     },
#     "Status": "scheduled",
Example #4
0
#     },
#     "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",
#         "Type": "Dwolla",
#         "Image": "http://www.dwolla.com/avatars/812-111-1111"
#     },
#     "Status": "scheduled",