Package com.checkout.forward.requests
Class DestinationRequest
- java.lang.Object
-
- com.checkout.forward.requests.DestinationRequest
-
public final class DestinationRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDestinationRequest.DestinationRequestBuilder
-
Constructor Summary
Constructors Constructor Description DestinationRequest()DestinationRequest(java.lang.String url, MethodType method, Headers headers, java.lang.String body, AbstractSignature signature)Creates a newDestinationRequestinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DestinationRequest.DestinationRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetBody()The HTTP message body to include in the forward request.HeadersgetHeaders()The HTTP headers to include in the forward request (Required)MethodTypegetMethod()The HTTP method to use for the forward request (Required)AbstractSignaturegetSignature()Optional configuration to add a signature to the forwarded HTTP request.java.lang.StringgetUrl()The URL to forward the request to (Required, max 1024 characters)inthashCode()voidsetBody(java.lang.String body)The HTTP message body to include in the forward request.voidsetHeaders(Headers headers)The HTTP headers to include in the forward request (Required)voidsetMethod(MethodType method)The HTTP method to use for the forward request (Required)voidsetSignature(AbstractSignature signature)Optional configuration to add a signature to the forwarded HTTP request.voidsetUrl(java.lang.String url)The URL to forward the request to (Required, max 1024 characters)java.lang.StringtoString()
-
-
-
Constructor Detail
-
DestinationRequest
public DestinationRequest(java.lang.String url, MethodType method, Headers headers, java.lang.String body, AbstractSignature signature)Creates a newDestinationRequestinstance.- 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
-
builder
public static DestinationRequest.DestinationRequestBuilder builder()
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-