/**
 * Copyright (C) Posten Norge AS
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package no.digipost.signature.client.direct;

import no.digipost.signature.client.core.ConfirmationReference;
import no.digipost.signature.client.core.PAdESReference;
import no.digipost.signature.client.core.XAdESReference;
import no.digipost.signature.client.core.internal.Confirmable;


public class SignatureJobStatusResponse implements Confirmable {

    private final long signatureJobId;
    private final SignatureJobStatus status;
    private final ConfirmationReference confirmationReference;
    private final XAdESReference xAdESUrl;
    private final PAdESReference pAdESUrl;

    public SignatureJobStatusResponse(long signatureJobId, SignatureJobStatus status, ConfirmationReference confirmationUrl, XAdESReference xAdESUrl, PAdESReference pAdESUrl) {
        this.signatureJobId = signatureJobId;
        this.status = status;
        this.confirmationReference = confirmationUrl;
        this.xAdESUrl = xAdESUrl;
        this.pAdESUrl = pAdESUrl;
    }

    public long getSignatureJobId() {
        return signatureJobId;
    }

    public SignatureJobStatus getStatus() {
        return status;
    }

    public XAdESReference getxAdESUrl() {
        return xAdESUrl;
    }

    public PAdESReference getpAdESUrl() {
        return pAdESUrl;
    }

    @Override
    public ConfirmationReference getConfirmationReference() {
        return confirmationReference;
    }
}

@@ -1984,11 +1984,148 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22status for signature job with ID %22 + signatureJobId + %22: %22 + status;%0A    %7D
 %0A%7D%0A

Add toString on SignatureJobStatusResponse