Package com.checkout.forward.requests
Class ForwardRequest
- java.lang.Object
-
- com.checkout.forward.requests.ForwardRequest
-
public final class ForwardRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForwardRequest.ForwardRequestBuilder
-
Constructor Summary
Constructors Constructor Description ForwardRequest()ForwardRequest(AbstractSource source, DestinationRequest destinationRequest, java.lang.String reference, java.lang.String processingChannelId, NetworkToken networkToken)Creates a newForwardRequestinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ForwardRequest.ForwardRequestBuilderbuilder()booleanequals(java.lang.Object o)DestinationRequestgetDestinationRequest()The parameters of the forward request (Required)NetworkTokengetNetworkToken()Specifies if and how a network token should be used in the forward request.java.lang.StringgetProcessingChannelId()The processing channel ID to associate the billing for the forward request with (Optional, pattern ^(pc)_(\w{26})$)java.lang.StringgetReference()Unique reference for the forward request.AbstractSourcegetSource()The payment source to enrich the forward request with.inthashCode()voidsetDestinationRequest(DestinationRequest destinationRequest)The parameters of the forward request (Required)voidsetNetworkToken(NetworkToken networkToken)Specifies if and how a network token should be used in the forward request.voidsetProcessingChannelId(java.lang.String processingChannelId)The processing channel ID to associate the billing for the forward request with (Optional, pattern ^(pc)_(\w{26})$)voidsetReference(java.lang.String reference)Unique reference for the forward request.voidsetSource(AbstractSource source)The payment source to enrich the forward request with.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ForwardRequest
public ForwardRequest()
-
ForwardRequest
public ForwardRequest(AbstractSource source, DestinationRequest destinationRequest, java.lang.String reference, java.lang.String processingChannelId, NetworkToken networkToken)
Creates a newForwardRequestinstance.- Parameters:
source- The payment source to enrich the forward request with. You can provide placeholder values in destination_request.body. The request will be enriched with the respective payment credentials from the token or payment instrument you specified. For example, {{card_number}} (Required)destinationRequest- The parameters of the forward request (Required)reference- Unique reference for the forward request. (Optional, max 80 characters)processingChannelId- The processing channel ID to associate the billing for the forward request with (Optional, pattern ^(pc)_(\w{26})$)networkToken- Specifies if and how a network token should be used in the forward request. (Optional)
-
-
Method Detail
-
builder
public static ForwardRequest.ForwardRequestBuilder builder()
-
getSource
public AbstractSource getSource()
The payment source to enrich the forward request with. You can provide placeholder values in destination_request.body. The request will be enriched with the respective payment credentials from the token or payment instrument you specified. For example, {{card_number}} (Required)
-
getDestinationRequest
public DestinationRequest getDestinationRequest()
The parameters of the forward request (Required)
-
getReference
public java.lang.String getReference()
Unique reference for the forward request. (Optional, max 80 characters)
-
getProcessingChannelId
public java.lang.String getProcessingChannelId()
The processing channel ID to associate the billing for the forward request with (Optional, pattern ^(pc)_(\w{26})$)
-
getNetworkToken
public NetworkToken getNetworkToken()
Specifies if and how a network token should be used in the forward request. (Optional)
-
setSource
public void setSource(AbstractSource source)
The payment source to enrich the forward request with. You can provide placeholder values in destination_request.body. The request will be enriched with the respective payment credentials from the token or payment instrument you specified. For example, {{card_number}} (Required)
-
setDestinationRequest
public void setDestinationRequest(DestinationRequest destinationRequest)
The parameters of the forward request (Required)
-
setReference
public void setReference(java.lang.String reference)
Unique reference for the forward request. (Optional, max 80 characters)
-
setProcessingChannelId
public void setProcessingChannelId(java.lang.String processingChannelId)
The processing channel ID to associate the billing for the forward request with (Optional, pattern ^(pc)_(\w{26})$)
-
setNetworkToken
public void setNetworkToken(NetworkToken networkToken)
Specifies if and how a network token should be used in the forward 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
-
-