コード例 #1
0
 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'
     })
コード例 #2
0
ファイル: masspay.py プロジェクト: Dwolla/dwolla-python
#             "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
コード例 #3
0
ファイル: testMasspay.py プロジェクト: mez/dwolla-python
 def testgetitem(self):
     masspay.getitem('123', '456')
     masspay.r._get.assert_any_call('/masspay/123/items/456', {'oauth_token': 'AN OAUTH TOKEN'})
コード例 #4
0
#             "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.
コード例 #5
0
ファイル: testMasspay.py プロジェクト: Dwolla/dwolla-python
 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'})