Exemplo n.º 1
0
 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'
     })
Exemplo n.º 2
0
#         "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
# }
Exemplo n.º 3
0
#         "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
# }
Exemplo n.º 4
0
 def testgetjob(self):
     masspay.getjob('123456')
     masspay.r._get.assert_any_call('/masspay/123456', {'oauth_token': 'AN OAUTH TOKEN'})
Exemplo n.º 5
0
#         "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
# }
Exemplo n.º 6
0
 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'})