All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.truelayer.java.mandates.entities.mandatedetail.FailedMandateDetail Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package com.truelayer.java.mandates.entities.mandatedetail;

import com.fasterxml.jackson.annotation.JsonValue;
import com.truelayer.java.entities.AuthorizationFlowWithConfiguration;
import java.time.ZonedDateTime;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Value;

@Value
@EqualsAndHashCode(callSuper = false)
public class FailedMandateDetail extends MandateDetail {

    Status status = Status.FAILED;

    FailureStage failureStage;

    String failureReason;

    ZonedDateTime failedAt;

    AuthorizationFlowWithConfiguration authorizationFlow;

    @RequiredArgsConstructor
    @Getter
    public enum FailureStage {
        AUTHORIZATION_REQUIRED("authorization_required"),
        AUTHORIZING("authorizing"),
        AUTHORIZED("authorized");

        @JsonValue
        private final String failureStage;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy