getEthocaAPIRequest(disputeItems, disputeType, namedCredential)

Prepares the payload used in the dispute flow and sends it to the integration provider, retrying if necessary.

Signature

public static HttpRequest getEthocaAPIRequest(List<DisputeItem> disputeItems, String disputeType, String namedCredential)

Parameters

disputeItems
Type: List<DisputeItem>
Disputed transaction data in the following JSON format:
The keys correspond to DisputeItem object fields.
disputeType
Type: String
A value of the Dispute object’s DisputeType picklist field:
  • Processing Error
  • Consumer Dispute
  • Fraud
namedCredential
Type: String
The named credential for accessing the integration provider.

Return Value

Type: HttpRequest

Returns an HttpRequest that includes the disputed transaction data and sends it to the integration provider, retrying if necessary.