/** * List all connected accounts. */ public static AccountCollection list(Map<String, Object> params) throws StripeException { return list(params, null); }
@Test public void testList() throws StripeException { final Map<String, Object> params = new HashMap<>(); params.put("limit", 1); final AccountCollection accounts = Account.list(params); assertNotNull(accounts); verifyRequest( ApiResource.RequestMethod.GET, String.format("/v1/accounts"), params ); }