def testgetjobitems(self):
     masspay.getjobitems('1234567',
                         a='parameter',
                         alternate_token='AN OAUTH TOKEN',
                         dwollaparse='dwolla')
     masspay.r._get.assert_any_call('/masspay/1234567/items',
                                    {'a': 'parameter'}, {
                                        'alternate_token': 'AN OAUTH TOKEN',
                                        'dwollaparse': 'dwolla'
                                    })
Example #2
0
#         "FundingSource": "Balance",
#         "Total": 3.00,
#         "Fees": 0,
#         "CreatedDate": "2014-04-18T05:49:03Z",
#         "Status": "complete",
#         "ItemSummary": {
#             "Count": 2,
#             "Completed": 2,
#             "Successful": 2
# }


# Example 3: Get all the items submitted with the
# MassPay job which you have just created.

items = masspay.getjobitems(info['Id'])
print(items)
# Return:
# [
#         {
#             "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 #3
0
 def testgetjobitems(self):
     masspay.getjobitems('1234567', {'a': 'parameter'})
     masspay.r._get.assert_any_call('/masspay/1234567/items', {'a': 'parameter', 'oauth_token': 'AN OAUTH TOKEN'})
Example #4
0
#         "AssumeCosts": true,
#         "FundingSource": "Balance",
#         "Total": 3.00,
#         "Fees": 0,
#         "CreatedDate": "2014-04-18T05:49:03Z",
#         "Status": "complete",
#         "ItemSummary": {
#             "Count": 2,
#             "Completed": 2,
#             "Successful": 2
# }

# Example 3: Get all the items submitted with the
# MassPay job which you have just created.

items = masspay.getjobitems(info['Id'])
print(items)
# Return:
# [
#         {
#             "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
0
 def testgetjobitems(self):
     masspay.getjobitems('1234567', a='parameter', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla')
     masspay.r._get.assert_any_call('/masspay/1234567/items', {'a': 'parameter'}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})