use of org.folio.rest.acq.model.SequenceNumbers in project mod-orders by folio-org.
the class MockServer method handleGetPoLineNumber.
private void handleGetPoLineNumber(RoutingContext ctx) {
if (PO_NUMBER_ERROR_TENANT.equals(ctx.request().getHeader(OKAPI_HEADER_TENANT))) {
ctx.response().setStatusCode(500).putHeader(HttpHeaders.CONTENT_TYPE, APPLICATION_JSON).end();
} else {
SequenceNumbers seqNumbers = new SequenceNumbers();
List<String> seqNumbersList = new ArrayList<>();
seqNumbersList.add(PO_LINE_NUMBER_VALUE);
seqNumbers.setSequenceNumbers(seqNumbersList);
ctx.response().setStatusCode(200).putHeader(HttpHeaders.CONTENT_TYPE, APPLICATION_JSON).end(JsonObject.mapFrom(seqNumbers).encodePrettily());
}
}
Aggregations