Class DestinationRequest


  • public final class DestinationRequest
    extends java.lang.Object
    • Constructor Detail

      • DestinationRequest

        public DestinationRequest​(java.lang.String url,
                                  MethodType method,
                                  Headers headers,
                                  java.lang.String body,
                                  AbstractSignature signature)
        Creates a new DestinationRequest instance.
        Parameters:
        url - The URL to forward the request to (Required, max 1024 characters)
        method - The HTTP method to use for the forward request (Required)
        headers - The HTTP headers to include in the forward request (Required)
        body - The HTTP message body to include in the forward request. If you provide source.id or source.token, you can specify placeholder values in the body. The request will be enriched with the respective payment details from the token or payment instrument you specified. For example, {{card_number}} (Required, max 16384 characters)
        signature - Optional configuration to add a signature to the forwarded HTTP request. (Optional)
      • DestinationRequest

        public DestinationRequest()
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        The URL to forward the request to (Required, max 1024 characters)
      • getMethod

        public MethodType getMethod()
        The HTTP method to use for the forward request (Required)
      • getHeaders

        public Headers getHeaders()
        The HTTP headers to include in the forward request (Required)
      • getBody

        public java.lang.String getBody()
        The HTTP message body to include in the forward request. If you provide source.id or source.token, you can specify placeholder values in the body. The request will be enriched with the respective payment details from the token or payment instrument you specified. For example, {{card_number}} (Required, max 16384 characters)
      • getSignature

        public AbstractSignature getSignature()
        Optional configuration to add a signature to the forwarded HTTP request. (Optional)
      • setUrl

        public void setUrl​(java.lang.String url)
        The URL to forward the request to (Required, max 1024 characters)
      • setMethod

        public void setMethod​(MethodType method)
        The HTTP method to use for the forward request (Required)
      • setHeaders

        public void setHeaders​(Headers headers)
        The HTTP headers to include in the forward request (Required)
      • setBody

        public void setBody​(java.lang.String body)
        The HTTP message body to include in the forward request. If you provide source.id or source.token, you can specify placeholder values in the body. The request will be enriched with the respective payment details from the token or payment instrument you specified. For example, {{card_number}} (Required, max 16384 characters)
      • setSignature

        public void setSignature​(AbstractSignature signature)
        Optional configuration to add a signature to the forwarded HTTP request. (Optional)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object