def testlistjobs(self):
     masspay.listjobs(alternate_token='AN OAUTH TOKEN',
                      dwollaparse='dwolla')
     masspay.r._get.assert_any_call('/masspay', {}, {
         'alternate_token': 'AN OAUTH TOKEN',
         'dwollaparse': 'dwolla'
     })
Example #2
0
#     "JobId": "643f2db9-5b45-4755-a881-a3100178b6d7",
#     "ItemId": 13,
#     "Destination": "812-197-4121",
#     "DestinationType": "dwolla",
#     "Amount": 1.00,
#     "Status": "success",
#     "TransactionId": 4938766,
#     "Error": null,
#     "CreatedDate": "2014-04-18T05:51:34Z"
# }


# Example 5: Get all current MassPay jobs for the
# user associated with the current OAuth token.

print(masspay.listjobs())
# Return:
# [
#         {
#             "Id": "643f2db9-5b45-4755-a881-a3100178b6d7",
#             "UserJobId": "I've got a job for ya",
#             "AssumeCosts": true,
#             "FundingSource": "Balance",
#             "Total": 0.02,
#             "Fees": 0,
#             "CreatedDate": "2014-04-18T05:51:34Z",
#             "Status": "complete",
#             "ItemSummary": {
#                 "Count": 2,
#                 "Completed": 2,
#                 "Successful": 2
Example #3
0
#     "JobId": "643f2db9-5b45-4755-a881-a3100178b6d7",
#     "ItemId": 13,
#     "Destination": "812-197-4121",
#     "DestinationType": "dwolla",
#     "Amount": 1.00,
#     "Status": "success",
#     "TransactionId": 4938766,
#     "Error": null,
#     "CreatedDate": "2014-04-18T05:51:34Z"
# }


# Example 5: Get all current MassPay jobs for the
# user associated with the current OAuth token.

print masspay.listjobs()
# Return:
# [
#         {
#             "Id": "643f2db9-5b45-4755-a881-a3100178b6d7",
#             "UserJobId": "I've got a job for ya",
#             "AssumeCosts": true,
#             "FundingSource": "Balance",
#             "Total": 0.02,
#             "Fees": 0,
#             "CreatedDate": "2014-04-18T05:51:34Z",
#             "Status": "complete",
#             "ItemSummary": {
#                 "Count": 2,
#                 "Completed": 2,
#                 "Successful": 2
Example #4
0
 def testlistjobs(self):
     masspay.listjobs()
     masspay.r._get.assert_any_call('/masspay', {'oauth_token': 'AN OAUTH TOKEN'})
Example #5
0
# {
#     "JobId": "643f2db9-5b45-4755-a881-a3100178b6d7",
#     "ItemId": 13,
#     "Destination": "812-197-4121",
#     "DestinationType": "dwolla",
#     "Amount": 1.00,
#     "Status": "success",
#     "TransactionId": 4938766,
#     "Error": null,
#     "CreatedDate": "2014-04-18T05:51:34Z"
# }

# Example 5: Get all current MassPay jobs for the
# user associated with the current OAuth token.

print(masspay.listjobs())
# Return:
# [
#         {
#             "Id": "643f2db9-5b45-4755-a881-a3100178b6d7",
#             "UserJobId": "I've got a job for ya",
#             "AssumeCosts": true,
#             "FundingSource": "Balance",
#             "Total": 0.02,
#             "Fees": 0,
#             "CreatedDate": "2014-04-18T05:51:34Z",
#             "Status": "complete",
#             "ItemSummary": {
#                 "Count": 2,
#                 "Completed": 2,
#                 "Successful": 2
Example #6
0
 def testlistjobs(self):
     masspay.listjobs(alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla')
     masspay.r._get.assert_any_call('/masspay', {}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})