Class PayPalDetails


  • public class PayPalDetails
    extends Object
    PayPalDetails
    • Constructor Detail

      • PayPalDetails

        public PayPalDetails()
    • Method Detail

      • checkoutAttemptId

        public PayPalDetails checkoutAttemptId​(String checkoutAttemptId)
        The checkout attempt identifier.
        Parameters:
        checkoutAttemptId - The checkout attempt identifier.
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getCheckoutAttemptId

        public String getCheckoutAttemptId()
        The checkout attempt identifier.
        Returns:
        checkoutAttemptId The checkout attempt identifier.
      • setCheckoutAttemptId

        public void setCheckoutAttemptId​(String checkoutAttemptId)
        The checkout attempt identifier.
        Parameters:
        checkoutAttemptId - The checkout attempt identifier.
      • orderID

        public PayPalDetails orderID​(String orderID)
        The unique ID associated with the order.
        Parameters:
        orderID - The unique ID associated with the order.
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getOrderID

        public String getOrderID()
        The unique ID associated with the order.
        Returns:
        orderID The unique ID associated with the order.
      • setOrderID

        public void setOrderID​(String orderID)
        The unique ID associated with the order.
        Parameters:
        orderID - The unique ID associated with the order.
      • payeePreferred

        public PayPalDetails payeePreferred​(String payeePreferred)
        IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED
        Parameters:
        payeePreferred - IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getPayeePreferred

        public String getPayeePreferred()
        IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED
        Returns:
        payeePreferred IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED
      • setPayeePreferred

        public void setPayeePreferred​(String payeePreferred)
        IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED
        Parameters:
        payeePreferred - IMMEDIATE_PAYMENT_REQUIRED or UNRESTRICTED
      • payerID

        public PayPalDetails payerID​(String payerID)
        The unique ID associated with the payer.
        Parameters:
        payerID - The unique ID associated with the payer.
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getPayerID

        public String getPayerID()
        The unique ID associated with the payer.
        Returns:
        payerID The unique ID associated with the payer.
      • setPayerID

        public void setPayerID​(String payerID)
        The unique ID associated with the payer.
        Parameters:
        payerID - The unique ID associated with the payer.
      • payerSelected

        public PayPalDetails payerSelected​(String payerSelected)
        PAYPAL or PAYPAL_CREDIT
        Parameters:
        payerSelected - PAYPAL or PAYPAL_CREDIT
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getPayerSelected

        public String getPayerSelected()
        PAYPAL or PAYPAL_CREDIT
        Returns:
        payerSelected PAYPAL or PAYPAL_CREDIT
      • setPayerSelected

        public void setPayerSelected​(String payerSelected)
        PAYPAL or PAYPAL_CREDIT
        Parameters:
        payerSelected - PAYPAL or PAYPAL_CREDIT
      • recurringDetailReference

        @Deprecated
        public PayPalDetails recurringDetailReference​(String recurringDetailReference)
        Deprecated.
        since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.
        This is the `recurringDetailReference` returned in the response when you created the token.
        Parameters:
        recurringDetailReference - This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getRecurringDetailReference

        @Deprecated
        public String getRecurringDetailReference()
        Deprecated.
        // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead.
        This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token.
      • setRecurringDetailReference

        @Deprecated
        public void setRecurringDetailReference​(String recurringDetailReference)
        Deprecated.
        since Adyen Checkout API v49 Use `storedPaymentMethodId` instead.
        This is the `recurringDetailReference` returned in the response when you created the token.
        Parameters:
        recurringDetailReference - This is the `recurringDetailReference` returned in the response when you created the token.
      • storedPaymentMethodId

        public PayPalDetails storedPaymentMethodId​(String storedPaymentMethodId)
        This is the `recurringDetailReference` returned in the response when you created the token.
        Parameters:
        storedPaymentMethodId - This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getStoredPaymentMethodId

        public String getStoredPaymentMethodId()
        This is the `recurringDetailReference` returned in the response when you created the token.
        Returns:
        storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token.
      • setStoredPaymentMethodId

        public void setStoredPaymentMethodId​(String storedPaymentMethodId)
        This is the `recurringDetailReference` returned in the response when you created the token.
        Parameters:
        storedPaymentMethodId - This is the `recurringDetailReference` returned in the response when you created the token.
      • subtype

        public PayPalDetails subtype​(PayPalDetails.SubtypeEnum subtype)
        The type of flow to initiate.
        Parameters:
        subtype - The type of flow to initiate.
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • getSubtype

        public PayPalDetails.SubtypeEnum getSubtype()
        The type of flow to initiate.
        Returns:
        subtype The type of flow to initiate.
      • setSubtype

        public void setSubtype​(PayPalDetails.SubtypeEnum subtype)
        The type of flow to initiate.
        Parameters:
        subtype - The type of flow to initiate.
      • type

        public PayPalDetails type​(PayPalDetails.TypeEnum type)
        **paypal**
        Parameters:
        type - **paypal**
        Returns:
        the current PayPalDetails instance, allowing for method chaining
      • equals

        public boolean equals​(Object o)
        Return true if this PayPalDetails object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static PayPalDetails fromJson​(String jsonString)
                                      throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PayPalDetails given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PayPalDetails
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PayPalDetails
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PayPalDetails to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException