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

com.truelayer.java.payments.entities.paymentdetail.AuthorizedPaymentDetail Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy