com.truelayer.java.payments.entities.paymentdetail.AuthorizedPaymentDetail 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.payments.entities.paymentdetail;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.truelayer.java.entities.AuthorizationFlowWithConfiguration;
import com.truelayer.java.entities.PaymentSource;
import java.util.Optional;
import lombok.*;
@Value
@EqualsAndHashCode(callSuper = false)
public class AuthorizedPaymentDetail extends PaymentDetail {
Status status = Status.AUTHORIZED;
PaymentSource paymentSource;
AuthorizationFlowWithConfiguration authorizationFlow;
@JsonGetter
public Optional getAuthorizationFlow() {
return Optional.ofNullable(authorizationFlow);
}
}