Newer Version Available
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:
1[ 2 { 3 "transaction_date": "2023-01-01", 4 "transaction_identifier": "1", 5 "transaction_amount": 213.1, 6 "transaction_description": "t1" 7 }, 8 { 9 "transaction_date": "2023-01-01", 10 "transaction_identifier": "2", 11 "transaction_amount": 150.94, 12 "transaction_description": "t2" 13 } 14] - 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.