diff --git a/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitPortCallServiceAction.java b/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitPortCallServiceAction.java index c8587dc9..d67fb4ea 100644 --- a/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitPortCallServiceAction.java +++ b/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitPortCallServiceAction.java @@ -34,7 +34,7 @@ public JitPortCallServiceAction( serviceType != null ? "Port Call Service: " + serviceType.name() : "Port Call Service"); validator = context.componentFactory().getMessageSchemaValidator(JitSchema.PORT_CALL_SERVICE); if (serviceType == null && previousAction instanceof JitPortCallServiceAction && dsp != null) { - serviceType = dsp.chosenServiceType(); + serviceType = dsp.portCallServiceType(); } this.serviceType = serviceType; } diff --git a/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitTimestampAction.java b/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitTimestampAction.java index 39c56ec3..8d206c1f 100644 --- a/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitTimestampAction.java +++ b/jit/src/main/java/org/dcsa/conformance/standards/jit/action/JitTimestampAction.java @@ -54,10 +54,7 @@ protected void doHandleExchange(ConformanceExchange exchange) { JitTimestamp receivedTimestamp = JitTimestamp.fromJson(requestJsonNode); dsp = dsp.withPreviousTimestamp(dsp.currentTimestamp()) - .withCurrentTimestamp(receivedTimestamp) - .withTimestampDateTime(receivedTimestamp.dateTime()) - .withTimestampType( - JitTimestampType.fromClassifierCode(receivedTimestamp.classifierCode())); + .withCurrentTimestamp(receivedTimestamp); } @Override diff --git a/jit/src/main/java/org/dcsa/conformance/standards/jit/action/SupplyScenarioParametersAction.java b/jit/src/main/java/org/dcsa/conformance/standards/jit/action/SupplyScenarioParametersAction.java index 2d32804e..8b2ac919 100644 --- a/jit/src/main/java/org/dcsa/conformance/standards/jit/action/SupplyScenarioParametersAction.java +++ b/jit/src/main/java/org/dcsa/conformance/standards/jit/action/SupplyScenarioParametersAction.java @@ -60,13 +60,10 @@ public void handlePartyInput(JsonNode partyInput) { new DynamicScenarioParameters( null, null, - null, - null, - null, + suppliedScenarioParameters.serviceType(), suppliedScenarioParameters.portCallID(), suppliedScenarioParameters.terminalCallID(), suppliedScenarioParameters.portCallServiceID(), - suppliedScenarioParameters.serviceType(), selector); } } diff --git a/jit/src/main/java/org/dcsa/conformance/standards/jit/party/DynamicScenarioParameters.java b/jit/src/main/java/org/dcsa/conformance/standards/jit/party/DynamicScenarioParameters.java index c97e69fb..8e1a7863 100644 --- a/jit/src/main/java/org/dcsa/conformance/standards/jit/party/DynamicScenarioParameters.java +++ b/jit/src/main/java/org/dcsa/conformance/standards/jit/party/DynamicScenarioParameters.java @@ -8,26 +8,22 @@ import org.dcsa.conformance.core.party.ScenarioParameters; import org.dcsa.conformance.standards.jit.model.JitServiceTypeSelector; import org.dcsa.conformance.standards.jit.model.JitTimestamp; -import org.dcsa.conformance.standards.jit.model.JitTimestampType; import org.dcsa.conformance.standards.jit.model.PortCallServiceType; @With @JsonInclude(JsonInclude.Include.NON_NULL) public record DynamicScenarioParameters( - JitTimestampType timestampType, JitTimestamp previousTimestamp, JitTimestamp currentTimestamp, PortCallServiceType portCallServiceType, - String timestampDateTime, String portCallID, String terminalCallID, String portCallServiceID, - PortCallServiceType chosenServiceType, JitServiceTypeSelector selector) implements ScenarioParameters { public DynamicScenarioParameters() { - this(null, null, null, null, null, null, null, null, null, null); + this(null, null, null, null, null, null, null); } public static DynamicScenarioParameters fromJson(JsonNode jsonNode) { diff --git a/jit/src/main/java/org/dcsa/conformance/standards/jit/party/JitProvider.java b/jit/src/main/java/org/dcsa/conformance/standards/jit/party/JitProvider.java index 21e497d2..909328d5 100644 --- a/jit/src/main/java/org/dcsa/conformance/standards/jit/party/JitProvider.java +++ b/jit/src/main/java/org/dcsa/conformance/standards/jit/party/JitProvider.java @@ -111,7 +111,7 @@ private void portCallServiceRequest(JsonNode actionPrompt) { if (actionPrompt.has(JitPortCallServiceAction.SERVICE_TYPE)) { serviceType = actionPrompt.required(JitPortCallServiceAction.SERVICE_TYPE).asText(); } else { - serviceType = dsp.chosenServiceType().name(); + serviceType = dsp.portCallServiceType().name(); } dsp = dsp.withPortCallServiceType(PortCallServiceType.fromName(serviceType)); JsonNode jsonBody = replacePlaceHolders("port-call-service", dsp);