def teststats(self):
     transactions.stats(a='parameter',
                        alternate_token='AN OAUTH TOKEN',
                        dwollaparse='dwolla')
     transactions.r._get.assert_any_call(
         '/transactions/stats', {'a': 'parameter'}, {
             'alternate_token': 'AN OAUTH TOKEN',
             'dwollaparse': 'dwolla'
         })
Exemplo n.º 2
0
#             "Id": "812-197-4121",
#             "Name": "Some Name",
#             "Type": "dwolla",
#             "Image": ""
#         },
#         "SourceId": "812-202-3784",
#         "SourceName": "David Stancu",
#         "Source": {
#             "Id": "812-202-3784",
#             "Name": "David Stancu",
#             "Type": "Dwolla",
#             "Image": "https://dwolla-avatars.s3.amazonaws.com/812-202-3784/ac045522"
#         },
#         "ClearingDate": "",
#         "Status": "cancelled",
#         "Notes": "",
#         "Fees": null,
#         "OriginalTransactionId": null,
#         "Metadata": null
#     }


# Example 5: Get transaction statistics for the user
# associated with the current OAuth token.

print transactions.stats()
# Return:
# {
#     "TransactionsCount": 5,
#     "TransactionsTotal": 116.92
# }
Exemplo n.º 3
0
 def teststats(self):
     transactions.stats(a='parameter', alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla')
     transactions.r._get.assert_any_call('/transactions/stats', {'a': 'parameter'}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})
Exemplo n.º 4
0
#             "Type": "Dwolla",
#             "Image": "https://dwolla-avatars.s3.amazonaws.com/812-202-3784/ac045522"
#         },
#         "ClearingDate": "",
#         "Status": "cancelled",
#         "Notes": "",
#         "Fees": null,
#         "OriginalTransactionId": null,
#         "Metadata": null
#     }


# Example 5: Get transaction statistics for the user
# associated with the current OAuth token.

print(transactions.stats())
# Return:
# {
#     "TransactionsCount": 5,
#     "TransactionsTotal": 116.92
# }

# Example 6: Schedule a transaction for 2018-01-01 with
# amount $5.50

print(transactions.schedule('812-111-1111', 5.50, '2018-01-01', '5da016f7769bcc1de9998a30d194d5a7'))
# Return: 
#     "Id": "3bfaf7fb-b5e9-4a6e-ab09-1ef30d30bbef",
#     "ScheduledDate": "2018-01-01",
#     "ExpectedClearingDate": "2018-01-06",
#     "TransactionId": null,
Exemplo n.º 5
0
 def teststats(self):
     transactions.stats({'a': 'parameter'})
     transactions.r._get.assert_any_call('/transactions/stats', {'a': 'parameter', 'oauth_token': 'AN OAUTH TOKEN'})
Exemplo n.º 6
0
 def teststats(self):
     transactions.stats(a='parameter')
     transactions.r._get.assert_any_call('/transactions/stats', {'a': 'parameter', 'oauth_token': 'AN OAUTH TOKEN'}, dwollaparse='dwolla')
Exemplo n.º 7
0
#             "Name": "David Stancu",
#             "Type": "Dwolla",
#             "Image": "https://dwolla-avatars.s3.amazonaws.com/812-202-3784/ac045522"
#         },
#         "ClearingDate": "",
#         "Status": "cancelled",
#         "Notes": "",
#         "Fees": null,
#         "OriginalTransactionId": null,
#         "Metadata": null
#     }

# Example 5: Get transaction statistics for the user
# associated with the current OAuth token.

print(transactions.stats())
# Return:
# {
#     "TransactionsCount": 5,
#     "TransactionsTotal": 116.92
# }

# Example 6: Schedule a transaction for 2018-01-01 with
# amount $5.50

print(
    transactions.schedule('812-111-1111', 5.50, '2018-01-01',
                          '5da016f7769bcc1de9998a30d194d5a7'))
# Return:
#     "Id": "3bfaf7fb-b5e9-4a6e-ab09-1ef30d30bbef",
#     "ScheduledDate": "2018-01-01",