com.truelayer.java.mandates.entities.mandatedetail.FailedMandateDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelayer-java Show documentation
Show all versions of truelayer-java Show documentation
TrueLayer Java SDK for https://truelayer.com
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;
}
}