getEthocaAPIRequest(disputeItems, disputeType, namedCredential)
Prepares the payload used in the dispute flow and sends it to the integration provider, retrying if necessary.
public static HttpRequest getEthocaAPIRequest(List<DisputeItem> disputeItems, String disputeType, String namedCredential)
Type: List<DisputeItem>
Disputed transaction data in the following JSON format:
The keys correspond to DisputeItem object fields.
Type: String
A value of the Dispute object’s DisputeType picklist field:
- Processing Error
- Consumer Dispute
- Fraud
Type: String
The named credential for accessing the integration provider.
Type: HttpRequest
Returns an HttpRequest that includes the disputed transaction data and sends it to the integration provider, retrying if necessary.