ServiceIntegrationProvider Interface
Namespace
Usage
The IntegrationHandler class calls a class that implements this interface. The ServiceExcellenceAlertCard and ServiceExcellenceGenericAlertCard have Integration Procedure data sources that call the IntegrationHandler class. These FlexCards display information about financial accounts.
ServiceIntegrationProvider Methods
The following are methods for ServiceIntegrationProvider.
getCalloutRequest(requestId, params, attributes)
Signature
public IntegrationCalloutRequest getCalloutRequest(String requestId, Map<String, String> params, Map<String, Object> attributes)
Parameters
- requestId
- Type: String
- Represents the Request GUID that uniquely identifies the API call.
- params
- Type: Map<String,String>
- Represents the input data containing the payload for the API call.
- attributes
- Type: Map<String,Object>
- Represents attribute data from the Integration Definition record.
Return Value
Type: IntegrationCalloutRequest object
Usage
Used by the IntegrationHandler class to retrieve the Continuation object.
getCalloutResponse(httpResponseList, state, attributes)
Signature
public IntegrationCalloutResponse getCalloutResponse(List<HttpResponse> httpResponseList, Object state, Map<String, Object> attributes)
Parameters
- httpResponseList
- Type: List<HttpResponse>
- Represents the response data from the API call.
- state
- Type: Object
- Represents the value of the State property of the Continuation object created by the getCalloutRequest method.
- attributes
- Type: Map<String,Object>
- Represents attribute data from the Integration Definition record.
Return Value
Type: IntegrationCalloutResponse object
Usage
Used by the IntegrationHandler class for postprocessing after the API call.
getProviderAttributes()
Signature
public List<ApexProviderAttr> getProviderAttributes()
Parameters
None
Return Value
Type: List<ApexProviderAttr>
Usage
Used by the IntegrationHandler class to retrieve default values from the Integration Definition record.