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

com.paypal.sdk.models.CardAuthenticationResponse Maven / Gradle / Ivy

/*
 * PaypalServerSDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

package com.paypal.sdk.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;

/**
 * This is a model class for CardAuthenticationResponse type.
 */
public class CardAuthenticationResponse {
    private ThreeDSecureAuthenticationResponse threeDSecure;

    /**
     * Default constructor.
     */
    public CardAuthenticationResponse() {
    }

    /**
     * Initialization constructor.
     * @param  threeDSecure  ThreeDSecureAuthenticationResponse value for threeDSecure.
     */
    public CardAuthenticationResponse(
            ThreeDSecureAuthenticationResponse threeDSecure) {
        this.threeDSecure = threeDSecure;
    }

    /**
     * Getter for ThreeDSecure.
     * Results of 3D Secure Authentication.
     * @return Returns the ThreeDSecureAuthenticationResponse
     */
    @JsonGetter("three_d_secure")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public ThreeDSecureAuthenticationResponse getThreeDSecure() {
        return threeDSecure;
    }

    /**
     * Setter for ThreeDSecure.
     * Results of 3D Secure Authentication.
     * @param threeDSecure Value for ThreeDSecureAuthenticationResponse
     */
    @JsonSetter("three_d_secure")
    public void setThreeDSecure(ThreeDSecureAuthenticationResponse threeDSecure) {
        this.threeDSecure = threeDSecure;
    }

    /**
     * Converts this CardAuthenticationResponse into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "CardAuthenticationResponse [" + "threeDSecure=" + threeDSecure + "]";
    }

    /**
     * Builds a new {@link CardAuthenticationResponse.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link CardAuthenticationResponse.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .threeDSecure(getThreeDSecure());
        return builder;
    }

    /**
     * Class to build instances of {@link CardAuthenticationResponse}.
     */
    public static class Builder {
        private ThreeDSecureAuthenticationResponse threeDSecure;



        /**
         * Setter for threeDSecure.
         * @param  threeDSecure  ThreeDSecureAuthenticationResponse value for threeDSecure.
         * @return Builder
         */
        public Builder threeDSecure(ThreeDSecureAuthenticationResponse threeDSecure) {
            this.threeDSecure = threeDSecure;
            return this;
        }

        /**
         * Builds a new {@link CardAuthenticationResponse} object using the set fields.
         * @return {@link CardAuthenticationResponse}
         */
        public CardAuthenticationResponse build() {
            return new CardAuthenticationResponse(threeDSecure);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy