Package com.stripe.model

Examples of com.stripe.model.Event


  @Test
  public void testEventRetrieve() throws StripeException {
    Map<String, Object> listParams = new HashMap<String, Object>();
    listParams.put("count", 1);
    Event event = Event.all(listParams).getData().get(0);
    Event retrievedEvent = Event.retrieve(event.getId());
    assertEquals(event.getId(), retrievedEvent.getId());
  }
View Full Code Here


  @Test
  public void testEventRetrievePerCallAPIKey() throws StripeException {
    Map<String, Object> listParams = new HashMap<String, Object>();
    listParams.put("count", 1);
    Event event = Event.all(listParams, Stripe.apiKey).getData().get(0);
    Event retrievedEvent = Event.retrieve(event.getId());
    assertEquals(event.getId(), retrievedEvent.getId());
  }
View Full Code Here

TOP

Related Classes of com.stripe.model.Event

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.