message: Added jsonResponse empty string catch
diff: @@ -45,7 +45,7 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService {
  public async request(
  terminalApiRequest: TerminalApiRequest,
  securityKey: SecurityKey,
  - ): Promise<TerminalApiResponse> {
  + ): Promise<any> {
  const formattedRequest = ObjectSerializer.serialize(terminalApiRequest, "TerminalApiRequest");
  const saleToPoiSecuredMessage: SaleToPOISecuredMessage = NexoCrypto.encrypt(
  terminalApiRequest.SaleToPOIRequest.MessageHeader,
  @@ -62,6 +62,10 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService {
  securedPaymentRequest
  );
  + // Catch an empty jsonResponse (i.e. Abort Request)
  + if(jsonResponse == ""){
  + return Promise.resolve();
  + } else {
  const terminalApiSecuredResponse: TerminalApiSecuredResponse =
  ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse");
  @@ -73,5 +77,6 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService {
  return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse");
  }
  }
  +}
  export default TerminalLocalAPI;
  