use of com.stripe.model.TransferTransactionCollection in project stripe-java by stripe.
the class TransferTest method testTransferTransactions.
@Test
public void testTransferTransactions() throws StripeException {
Map<String, Object> transferParams = getTransferParams();
Transfer transfer = Transfer.create(transferParams);
HashMap<String, Object> params = new HashMap<String, Object>();
TransferTransactionCollection transactions = transfer.transactions(params, supportedRequestOptions);
// Test that requestOptions and requestParams are the same in returned transactions:
assertEquals(supportedRequestOptions, transactions.getRequestOptions());
assertEquals(params, transactions.getRequestParams());
}
Aggregations