Class AuthenticationSessionRequest
- java.lang.Object
-
- com.adyen.model.sessionauthentication.AuthenticationSessionRequest
-
public class AuthenticationSessionRequest extends Object
AuthenticationSessionRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOW_ORIGINstatic StringJSON_PROPERTY_POLICYstatic StringJSON_PROPERTY_PRODUCT
-
Constructor Summary
Constructors Constructor Description AuthenticationSessionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationSessionRequestallowOrigin(String allowOrigin)The URL where the component will appear.booleanequals(Object o)Return true if this AuthenticationSessionRequest object is equal to o.static AuthenticationSessionRequestfromJson(String jsonString)Create an instance of AuthenticationSessionRequest given an JSON stringStringgetAllowOrigin()The URL where the component will appear.PolicygetPolicy()Get policyProductTypegetProduct()Get productinthashCode()AuthenticationSessionRequestpolicy(Policy policy)policyAuthenticationSessionRequestproduct(ProductType product)productvoidsetAllowOrigin(String allowOrigin)The URL where the component will appear.voidsetPolicy(Policy policy)policyvoidsetProduct(ProductType product)productStringtoJson()Convert an instance of AuthenticationSessionRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOW_ORIGIN
public static final String JSON_PROPERTY_ALLOW_ORIGIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POLICY
public static final String JSON_PROPERTY_POLICY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRODUCT
public static final String JSON_PROPERTY_PRODUCT
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowOrigin
public AuthenticationSessionRequest allowOrigin(String allowOrigin)
The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.- Parameters:
allowOrigin- The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.- Returns:
- the current
AuthenticationSessionRequestinstance, allowing for method chaining
-
getAllowOrigin
public String getAllowOrigin()
The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.- Returns:
- allowOrigin The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.
-
setAllowOrigin
public void setAllowOrigin(String allowOrigin)
The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.- Parameters:
allowOrigin- The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.
-
policy
public AuthenticationSessionRequest policy(Policy policy)
policy- Parameters:
policy-- Returns:
- the current
AuthenticationSessionRequestinstance, allowing for method chaining
-
getPolicy
public Policy getPolicy()
Get policy- Returns:
- policy
-
setPolicy
public void setPolicy(Policy policy)
policy- Parameters:
policy-
-
product
public AuthenticationSessionRequest product(ProductType product)
product- Parameters:
product-- Returns:
- the current
AuthenticationSessionRequestinstance, allowing for method chaining
-
getProduct
public ProductType getProduct()
Get product- Returns:
- product
-
setProduct
public void setProduct(ProductType product)
product- Parameters:
product-
-
equals
public boolean equals(Object o)
Return true if this AuthenticationSessionRequest object is equal to o.
-
fromJson
public static AuthenticationSessionRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AuthenticationSessionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthenticationSessionRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AuthenticationSessionRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AuthenticationSessionRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-