Package com.adyen.service
Class PosMobileApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.PosMobileApi
-
public class PosMobileApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description PosMobileApi(Client client)Default constructor inpackage.PosMobileApi(Client client, String baseURL)Alternative constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSessionResponsecreateCommunicationSession(CreateSessionRequest createSessionRequest)Create a communication sessionCreateSessionResponsecreateCommunicationSession(CreateSessionRequest createSessionRequest, RequestOptions requestOptions)Create a communication session-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
PosMobileApi
public PosMobileApi(Client client)
Default constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
createCommunicationSession
public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest) throws ApiException, IOException
Create a communication session- Parameters:
createSessionRequest-CreateSessionRequest(required)- Returns:
CreateSessionResponse- Throws:
ApiException- if fails to make API callIOException
-
createCommunicationSession
public CreateSessionResponse createCommunicationSession(CreateSessionRequest createSessionRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a communication session- Parameters:
createSessionRequest-CreateSessionRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CreateSessionResponse- Throws:
ApiException- if fails to make API callIOException
-
-