fferpcore.GatewayServiceglobal with sharing class GatewayService Service for handling outbound requests to FinancialForce web services from other FinancialForce products. The gateway validates whether the request is from a licensed org. Methods
getglobal static fferpcore.GatewayService.Response get(fferpcore.GatewayService.Request request) This method is used to send a get request to the specified endpoint. Input Parameters
Return ValueThe wrapped response from the FinancialForce web service. postglobal static fferpcore.GatewayService.Response post(fferpcore.GatewayService.Request request) This method is used to send a post request to the specified endpoint. Input Parameters
Return ValueA response that contains a status code and boolean value. fferpcore.GatewayService.Requestglobal with sharing class Request This class is used to formulate a request that is sent using the post or get methods. Methods
Requestglobal Request() withEndpointglobal fferpcore.GatewayService.Request withEndpoint(String endpoint) This method is used to set an endpoint value. Input Parameters
Return ValueA request object with the endpoint specified. withBodyglobal fferpcore.GatewayService.Request withBody(String body) This method is used to set a body value. Input Parameters
Return ValueA request object with the body specified. withSecret1global fferpcore.GatewayService.Request withSecret1(String secret1) This method is used to set a secret value. Input Parameters
Return ValueA request object with secret1 specified. withSecret2global fferpcore.GatewayService.Request withSecret2(String secret2) This method is used to set a secret value. Input Parameters
Return ValueA request object with secret2 specified. fferpcore.GatewayService.Responseglobal with sharing class Response This class is used to return the response that is received from the post or get methods. Properties
MethodsResponseglobal Response(Boolean Success, HttpResponse Response) This constructor is used to set the values for the response. Input Parameters
Return ValueA request object with Success and Response specified. |