Package com.adyen.model.tapi
Class LoginResponse
- java.lang.Object
-
- com.adyen.model.tapi.LoginResponse
-
public class LoginResponse extends Object
It conveys Information related to the Login to process. Content of the Login Response message.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PO_I_SYSTEM_DATAstatic StringJSON_PROPERTY_RESPONSEstatic StringJSON_PROPERTY_TOKEN_REQUEST_STATUS
-
Constructor Summary
Constructors Constructor Description LoginResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this LoginResponse object is equal to o.static LoginResponsefromJson(String jsonString)Create an instance of LoginResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.POISystemDatagetPoISystemData()Get poISystemDataResponsegetResponse()Get responseBooleangetTokenRequestStatus()If token is managed by the POI, the status of the token request.inthashCode()LoginResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.LoginResponsepoISystemData(POISystemData poISystemData)poISystemDataLoginResponseresponse(Response response)responsevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPoISystemData(POISystemData poISystemData)poISystemDatavoidsetResponse(Response response)responsevoidsetTokenRequestStatus(Boolean tokenRequestStatus)If token is managed by the POI, the status of the token request.StringtoJson()Convert an instance of LoginResponse to an JSON stringLoginResponsetokenRequestStatus(Boolean tokenRequestStatus)If token is managed by the POI, the status of the token request.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RESPONSE
public static final String JSON_PROPERTY_RESPONSE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PO_I_SYSTEM_DATA
public static final String JSON_PROPERTY_PO_I_SYSTEM_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_REQUEST_STATUS
public static final String JSON_PROPERTY_TOKEN_REQUEST_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
response
public LoginResponse response(Response response)
response- Parameters:
response-- Returns:
- the current
LoginResponseinstance, allowing for method chaining
-
getResponse
public Response getResponse()
Get response- Returns:
- response
-
setResponse
public void setResponse(Response response)
response- Parameters:
response-
-
poISystemData
public LoginResponse poISystemData(POISystemData poISystemData)
poISystemData- Parameters:
poISystemData-- Returns:
- the current
LoginResponseinstance, allowing for method chaining
-
getPoISystemData
public POISystemData getPoISystemData()
Get poISystemData- Returns:
- poISystemData
-
setPoISystemData
public void setPoISystemData(POISystemData poISystemData)
poISystemData- Parameters:
poISystemData-
-
tokenRequestStatus
public LoginResponse tokenRequestStatus(Boolean tokenRequestStatus)
If token is managed by the POI, the status of the token request.- Parameters:
tokenRequestStatus- If token is managed by the POI, the status of the token request.- Returns:
- the current
LoginResponseinstance, allowing for method chaining
-
getTokenRequestStatus
public Boolean getTokenRequestStatus()
If token is managed by the POI, the status of the token request.- Returns:
- tokenRequestStatus If token is managed by the POI, the status of the token request.
-
setTokenRequestStatus
public void setTokenRequestStatus(Boolean tokenRequestStatus)
If token is managed by the POI, the status of the token request.- Parameters:
tokenRequestStatus- If token is managed by the POI, the status of the token request.
-
includeNullValues
public LoginResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this LoginResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static LoginResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LoginResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoginResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LoginResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LoginResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-