Class CheckoutNativeRedirectAction


  • public class CheckoutNativeRedirectAction
    extends Object
    CheckoutNativeRedirectAction
    • Constructor Detail

      • CheckoutNativeRedirectAction

        public CheckoutNativeRedirectAction()
    • Method Detail

      • data

        public CheckoutNativeRedirectAction data​(Map<String,​String> data)
        When the redirect URL must be accessed via POST, use this data to post to the redirect URL.
        Parameters:
        data -
        Returns:
        the current CheckoutNativeRedirectAction instance, allowing for method chaining
      • getData

        public Map<String,​String> getData()
        When the redirect URL must be accessed via POST, use this data to post to the redirect URL.
        Returns:
        data
      • setData

        public void setData​(Map<String,​String> data)
        When the redirect URL must be accessed via POST, use this data to post to the redirect URL.
        Parameters:
        data -
      • method

        public CheckoutNativeRedirectAction method​(String method)
        Specifies the HTTP method, for example GET or POST.
        Parameters:
        method -
        Returns:
        the current CheckoutNativeRedirectAction instance, allowing for method chaining
      • getMethod

        public String getMethod()
        Specifies the HTTP method, for example GET or POST.
        Returns:
        method
      • setMethod

        public void setMethod​(String method)
        Specifies the HTTP method, for example GET or POST.
        Parameters:
        method -
      • nativeRedirectData

        public CheckoutNativeRedirectAction nativeRedirectData​(String nativeRedirectData)
        Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.
        Parameters:
        nativeRedirectData -
        Returns:
        the current CheckoutNativeRedirectAction instance, allowing for method chaining
      • getNativeRedirectData

        public String getNativeRedirectData()
        Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.
        Returns:
        nativeRedirectData
      • setNativeRedirectData

        public void setNativeRedirectData​(String nativeRedirectData)
        Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.
        Parameters:
        nativeRedirectData -
      • paymentMethodType

        public CheckoutNativeRedirectAction paymentMethodType​(String paymentMethodType)
        Specifies the payment method.
        Parameters:
        paymentMethodType -
        Returns:
        the current CheckoutNativeRedirectAction instance, allowing for method chaining
      • getPaymentMethodType

        public String getPaymentMethodType()
        Specifies the payment method.
        Returns:
        paymentMethodType
      • setPaymentMethodType

        public void setPaymentMethodType​(String paymentMethodType)
        Specifies the payment method.
        Parameters:
        paymentMethodType -
      • url

        public CheckoutNativeRedirectAction url​(String url)
        Specifies the URL to redirect to.
        Parameters:
        url -
        Returns:
        the current CheckoutNativeRedirectAction instance, allowing for method chaining
      • getUrl

        public String getUrl()
        Specifies the URL to redirect to.
        Returns:
        url
      • setUrl

        public void setUrl​(String url)
        Specifies the URL to redirect to.
        Parameters:
        url -
      • equals

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

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

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

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