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

com.paypal.sdk.models.BLIKLevel0PaymentObject 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.JsonSetter;

/**
 * This is a model class for BLIKLevel0PaymentObject type.
 */
public class BLIKLevel0PaymentObject {
    private String authCode;

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

    /**
     * Initialization constructor.
     * @param  authCode  String value for authCode.
     */
    public BLIKLevel0PaymentObject(
            String authCode) {
        this.authCode = authCode;
    }

    /**
     * Getter for AuthCode.
     * The 6-digit code used to authenticate a consumer within BLIK.
     * @return Returns the String
     */
    @JsonGetter("auth_code")
    public String getAuthCode() {
        return authCode;
    }

    /**
     * Setter for AuthCode.
     * The 6-digit code used to authenticate a consumer within BLIK.
     * @param authCode Value for String
     */
    @JsonSetter("auth_code")
    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

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

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

    /**
     * Class to build instances of {@link BLIKLevel0PaymentObject}.
     */
    public static class Builder {
        private String authCode;

        /**
         * Initialization constructor.
         */
        public Builder() {
        }

        /**
         * Initialization constructor.
         * @param  authCode  String value for authCode.
         */
        public Builder(String authCode) {
            this.authCode = authCode;
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy