Examples of BalanceTransaction


Examples of com.stripe.model.BalanceTransaction

  @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);

    BalanceTransaction retrieved = BalanceTransaction.retrieve(first.getId());
    assertEquals(retrieved.getId(), first.getId());
    assertEquals(retrieved.getSource(), first.getSource());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.