Package com.stripe.model

Examples of com.stripe.model.BalanceTransactionCollection


  }

  @Test
  public void testBalanceTransactionRetrieval() throws StripeException {
    Charge.create(defaultChargeParams);
    BalanceTransactionCollection balanceTransactions = BalanceTransaction.all(null);
    assertFalse(balanceTransactions.getData().isEmpty());
    BalanceTransaction first = balanceTransactions.getData().get(0);
    assertNotNull(first.getStatus());

    HashMap<String, Object> fetchParams = new HashMap<String, Object>();
    fetchParams.put("count", 2);
    assertEquals(BalanceTransaction.all(fetchParams).getData().size(), 2);
View Full Code Here

TOP

Related Classes of com.stripe.model.BalanceTransactionCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.