PaymentsRequestBuilder extends RequestBuilder { public PaymentsRequestBuilder forTransaction(String transactionId) { transactionId = checkNotNull(transactionId, "transactionId cannot be null"); this.setSegments("transactions", transactionId, "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 testForTransaction() { Server server = new Server("https: URI uri = server.payments() .forTransaction("991534d902063b7715cd74207bef4e7bd7aa2f108f62d3eba837ce6023b2d4f3") .buildUri(); assertEquals("https: }