Search in sources :

Example 1 with TransferTransactionCollection

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());
}
Also used : TransferTransactionCollection(com.stripe.model.TransferTransactionCollection) HashMap(java.util.HashMap) Transfer(com.stripe.model.Transfer) BaseStripeFunctionalTest(com.stripe.BaseStripeFunctionalTest) Test(org.junit.Test)

Aggregations

BaseStripeFunctionalTest (com.stripe.BaseStripeFunctionalTest)1 Transfer (com.stripe.model.Transfer)1 TransferTransactionCollection (com.stripe.model.TransferTransactionCollection)1 HashMap (java.util.HashMap)1 Test (org.junit.Test)1