def testgetitem(self): masspay.getitem('123', '456', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') masspay.r._get.assert_any_call('/masspay/123/items/456', {}, { 'alternate_token': 'AN OAUTH TOKEN', 'dwollaparse': 'dwolla' })
# "Status": "success", # "TransactionId": 4938768, # "Error": null, # "CreatedDate": "2014-04-18T05:51:34Z", # "Metadata": null # } # ] # Example 4: Get information about the 0th item from # the MassPay job you just submitted. # # Note: You do not need to get all items first, I just # re-use data for illustrative purposes. print(masspay.getitem(info['Id'], items[0]['ItemId'])) # 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: Get all current MassPay jobs for the
def testgetitem(self): masspay.getitem('123', '456') masspay.r._get.assert_any_call('/masspay/123/items/456', {'oauth_token': 'AN OAUTH TOKEN'})
# "Amount": 2.00, # "Status": "success", # "TransactionId": 4938768, # "Error": null, # "CreatedDate": "2014-04-18T05:51:34Z", # "Metadata": null # } # ] # Example 4: Get information about the 0th item from # the MassPay job you just submitted. # # Note: You do not need to get all items first, I just # re-use data for illustrative purposes. print(masspay.getitem(info['Id'], items[0]['ItemId'])) # 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: Get all current MassPay jobs for the # user associated with the current OAuth token.
def testgetitem(self): masspay.getitem('123', '456', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') masspay.r._get.assert_any_call('/masspay/123/items/456', {}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})