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

com.paypal.sdk.models.RefundsGetInput 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 RefundsGetInput type.
 */
public class RefundsGetInput {
    private String refundId;
    private String paypalAuthAssertion;

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

    /**
     * Initialization constructor.
     * @param  refundId  String value for refundId.
     * @param  paypalAuthAssertion  String value for paypalAuthAssertion.
     */
    public RefundsGetInput(
            String refundId,
            String paypalAuthAssertion) {
        this.refundId = refundId;
        this.paypalAuthAssertion = paypalAuthAssertion;
    }

    /**
     * Getter for RefundId.
     * The PayPal-generated ID for the refund for which to show details.
     * @return Returns the String
     */
    @JsonGetter("refund_id")
    public String getRefundId() {
        return refundId;
    }

    /**
     * Setter for RefundId.
     * The PayPal-generated ID for the refund for which to show details.
     * @param refundId Value for String
     */
    @JsonSetter("refund_id")
    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }

    /**
     * Getter for PaypalAuthAssertion.
     * An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For
     * details, see
     * [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).<blockquote><strong>Note:</strong>For
     * three party transactions in which a partner is managing the API calls on behalf of a
     * merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header
     * or an access token with target_subject.</blockquote>
     * @return Returns the String
     */
    @JsonGetter("PayPal-Auth-Assertion")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getPaypalAuthAssertion() {
        return paypalAuthAssertion;
    }

    /**
     * Setter for PaypalAuthAssertion.
     * An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For
     * details, see
     * [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).<blockquote><strong>Note:</strong>For
     * three party transactions in which a partner is managing the API calls on behalf of a
     * merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header
     * or an access token with target_subject.</blockquote>
     * @param paypalAuthAssertion Value for String
     */
    @JsonSetter("PayPal-Auth-Assertion")
    public void setPaypalAuthAssertion(String paypalAuthAssertion) {
        this.paypalAuthAssertion = paypalAuthAssertion;
    }

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

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

    /**
     * Class to build instances of {@link RefundsGetInput}.
     */
    public static class Builder {
        private String refundId;
        private String paypalAuthAssertion;

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

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

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

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

        /**
         * Builds a new {@link RefundsGetInput} object using the set fields.
         * @return {@link RefundsGetInput}
         */
        public RefundsGetInput build() {
            return new RefundsGetInput(refundId, paypalAuthAssertion);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy