Package com.checkout.forward.responses
Class ForwardAnApiResponse
- java.lang.Object
-
- com.checkout.HttpMetadata
-
- com.checkout.forward.responses.ForwardAnApiResponse
-
public final class ForwardAnApiResponse extends HttpMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForwardAnApiResponse.ForwardAnApiResponseBuilder
-
Constructor Summary
Constructors Constructor Description ForwardAnApiResponse()ForwardAnApiResponse(java.lang.String requestId, DestinationResponse destinationResponse)Creates a newForwardAnApiResponseinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ForwardAnApiResponse.ForwardAnApiResponseBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)DestinationResponsegetDestinationResponse()The HTTP response received from the destination, if the forward request completed successfully.java.lang.StringgetRequestId()The unique identifier for the forward request (Required)inthashCode()java.lang.StringtoString()-
Methods inherited from class com.checkout.HttpMetadata
getBody, getHttpStatusCode, getResponseHeaders, setBody, setHttpStatusCode, setResponseHeaders
-
-
-
-
Constructor Detail
-
ForwardAnApiResponse
public ForwardAnApiResponse(java.lang.String requestId, DestinationResponse destinationResponse)Creates a newForwardAnApiResponseinstance.- Parameters:
requestId- The unique identifier for the forward request (Required)destinationResponse- The HTTP response received from the destination, if the forward request completed successfully. Sensitive PCI data will be removed from the response (Optional)
-
ForwardAnApiResponse
public ForwardAnApiResponse()
-
-
Method Detail
-
builder
public static ForwardAnApiResponse.ForwardAnApiResponseBuilder builder()
-
getRequestId
public java.lang.String getRequestId()
The unique identifier for the forward request (Required)- Overrides:
getRequestIdin classHttpMetadata
-
getDestinationResponse
public DestinationResponse getDestinationResponse()
The HTTP response received from the destination, if the forward request completed successfully. Sensitive PCI data will be removed from the response (Optional)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classHttpMetadata
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classHttpMetadata
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classHttpMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCodein classHttpMetadata
-
-