def testgetjob(self): masspay.getjob('123456', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') masspay.r._get.assert_any_call('/masspay/123456', {}, { 'alternate_token': 'AN OAUTH TOKEN', 'dwollaparse': 'dwolla' })
# "FundingSource": "Balance", # "Total": 3.00, # "Fees": 0, # "CreatedDate": "2014-04-18T05:49:03Z", # "Status": "queued", # "ItemSummary": { # "Count": 2, # "Completed": 0, # "Successful": 0 # } # Example 2: Get info regarding the MassPay # job which you have just created. print(masspay.getjob(info['Id'])) # Return: # { # "Id": "47fe2f7c-8d6d-4f98-bcd9-a3100178062f", # "AssumeCosts": true, # "FundingSource": "Balance", # "Total": 3.00, # "Fees": 0, # "CreatedDate": "2014-04-18T05:49:03Z", # "Status": "complete", # "ItemSummary": { # "Count": 2, # "Completed": 2, # "Successful": 2 # }
# "FundingSource": "Balance", # "Total": 3.00, # "Fees": 0, # "CreatedDate": "2014-04-18T05:49:03Z", # "Status": "queued", # "ItemSummary": { # "Count": 2, # "Completed": 0, # "Successful": 0 # } # Example 2: Get info regarding the MassPay # job which you have just created. print masspay.getjob(info['Id']) # Return: # { # "Id": "47fe2f7c-8d6d-4f98-bcd9-a3100178062f", # "AssumeCosts": true, # "FundingSource": "Balance", # "Total": 3.00, # "Fees": 0, # "CreatedDate": "2014-04-18T05:49:03Z", # "Status": "complete", # "ItemSummary": { # "Count": 2, # "Completed": 2, # "Successful": 2 # }
def testgetjob(self): masspay.getjob('123456') masspay.r._get.assert_any_call('/masspay/123456', {'oauth_token': 'AN OAUTH TOKEN'})
# "AssumeCosts": true, # "FundingSource": "Balance", # "Total": 3.00, # "Fees": 0, # "CreatedDate": "2014-04-18T05:49:03Z", # "Status": "queued", # "ItemSummary": { # "Count": 2, # "Completed": 0, # "Successful": 0 # } # Example 2: Get info regarding the MassPay # job which you have just created. print(masspay.getjob(info['Id'])) # Return: # { # "Id": "47fe2f7c-8d6d-4f98-bcd9-a3100178062f", # "AssumeCosts": true, # "FundingSource": "Balance", # "Total": 3.00, # "Fees": 0, # "CreatedDate": "2014-04-18T05:49:03Z", # "Status": "complete", # "ItemSummary": { # "Count": 2, # "Completed": 2, # "Successful": 2 # }
def testgetjob(self): masspay.getjob('123456', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') masspay.r._get.assert_any_call('/masspay/123456', {}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})