Package com.checkout.forward.requests
Class DestinationRequest.DestinationRequestBuilder
- java.lang.Object
-
- com.checkout.forward.requests.DestinationRequest.DestinationRequestBuilder
-
- Enclosing class:
- DestinationRequest
public static class DestinationRequest.DestinationRequestBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestinationRequest.DestinationRequestBuilderbody(java.lang.String body)The HTTP message body to include in the forward request.DestinationRequestbuild()DestinationRequest.DestinationRequestBuilderheaders(Headers headers)The HTTP headers to include in the forward request (Required)DestinationRequest.DestinationRequestBuildermethod(MethodType method)The HTTP method to use for the forward request (Required)DestinationRequest.DestinationRequestBuildersignature(AbstractSignature signature)Optional configuration to add a signature to the forwarded HTTP request.java.lang.StringtoString()DestinationRequest.DestinationRequestBuilderurl(java.lang.String url)The URL to forward the request to (Required, max 1024 characters)
-
-
-
Method Detail
-
url
public DestinationRequest.DestinationRequestBuilder url(java.lang.String url)
The URL to forward the request to (Required, max 1024 characters)- Returns:
this.
-
method
public DestinationRequest.DestinationRequestBuilder method(MethodType method)
The HTTP method to use for the forward request (Required)- Returns:
this.
-
headers
public DestinationRequest.DestinationRequestBuilder headers(Headers headers)
The HTTP headers to include in the forward request (Required)- Returns:
this.
-
body
public DestinationRequest.DestinationRequestBuilder body(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)- Returns:
this.
-
signature
public DestinationRequest.DestinationRequestBuilder signature(AbstractSignature signature)
Optional configuration to add a signature to the forwarded HTTP request. (Optional)- Returns:
this.
-
build
public DestinationRequest build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-