Package com.adyen.model.openbanking
Class Route
- java.lang.Object
-
- com.adyen.model.openbanking.Route
-
public class Route extends Object
Route
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LINKstatic StringJSON_PROPERTY_PROVIDER
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Route object is equal to o.static RoutefromJson(String jsonString)Create an instance of Route given an JSON stringStringgetLink()The redirection link.ProvidergetProvider()Get providerinthashCode()Routelink(String link)The redirection link.Routeprovider(Provider provider)providervoidsetLink(String link)The redirection link.voidsetProvider(Provider provider)providerStringtoJson()Convert an instance of Route to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LINK
public static final String JSON_PROPERTY_LINK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROVIDER
public static final String JSON_PROPERTY_PROVIDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
link
public Route link(String link)
The redirection link. You can use this link to redirect the user to the open banking flow when the user selects it.- Parameters:
link- The redirection link. You can use this link to redirect the user to the open banking flow when the user selects it.- Returns:
- the current
Routeinstance, allowing for method chaining
-
getLink
public String getLink()
The redirection link. You can use this link to redirect the user to the open banking flow when the user selects it.- Returns:
- link The redirection link. You can use this link to redirect the user to the open banking flow when the user selects it.
-
setLink
public void setLink(String link)
The redirection link. You can use this link to redirect the user to the open banking flow when the user selects it.- Parameters:
link- The redirection link. You can use this link to redirect the user to the open banking flow when the user selects it.
-
provider
public Route provider(Provider provider)
provider- Parameters:
provider-- Returns:
- the current
Routeinstance, allowing for method chaining
-
getProvider
public Provider getProvider()
Get provider- Returns:
- provider
-
setProvider
public void setProvider(Provider provider)
provider- Parameters:
provider-
-
equals
public boolean equals(Object o)
Return true if this Route object is equal to o.
-
fromJson
public static Route fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Route given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Route
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Route
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Route to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-