PaymentsRequestBuilder extends RequestBuilder { public PaymentsRequestBuilder forLedger(long ledgerSeq) { this.setSegments("ledgers", String.valueOf(ledgerSeq), "payments"); return this; } PaymentsRequestBuilder(OkHttpClient httpClient, URI serverURI); PaymentsRequestBuilder forAccount(KeyPair account); PaymentsRequestBuilder forLedger(long ledgerSeq); PaymentsRequestBuilder forTransaction(String transactionId); static Page<OperationResponse> execute(OkHttpClient httpClient, URI uri); @Override ServerSentEvent stream(EventListener<ListenerType> listener); Page<OperationResponse> execute(); @Override PaymentsRequestBuilder cursor(String token); @Override PaymentsRequestBuilder limit(int number); @Override PaymentsRequestBuilder order(Order direction);  }
@Test public void testForLedger() { Server server = new Server("https: URI uri = server.payments() .forLedger(200000000000L) .limit(50) .order(RequestBuilder.Order.ASC) .buildUri(); assertEquals("https: }