Skip to content

Commit

Permalink
rearrange terms
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomallada1 committed Aug 22, 2024
1 parent af25387 commit 5d3a17f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public DeliveryResult call() throws FDSMException {
}

public DeliveryResult deliver(BIBO bibo, String appId, String serviceId) throws IOException, UnsupportedCallbackException {
APDUBIBO apduBibo = new APDUBIBO(bibo);
card.selectEmpty(apduBibo);
// Address #4
JsonNode deviceInfo = client.rpc(client.getURI(FidesmoApiClient.DEVICES_URL, HexUtils.bin2hex(card.getCIN()), card.getBatchId()));
byte[] iin = HexUtils.decodeHexString_imp(deviceInfo.get("iin").asText());
Expand Down Expand Up @@ -165,9 +167,6 @@ public DeliveryResult deliver(BIBO bibo, String appId, String serviceId) throws

deliveryRequest.set("fields", mapToJsonNode(userInput));

APDUBIBO apduBibo = new APDUBIBO(bibo);
card.selectEmpty(apduBibo);

JsonNode delivery = client.rpc(client.getURI(FidesmoApiClient.SERVICE_DELIVER_URL), deliveryRequest);
String sessionId = delivery.get("sessionId").asText();

Expand Down

0 comments on commit 5d3a17f

Please sign in to comment.