Package com.adyen.model.openbanking
Class AccountParty
- java.lang.Object
-
- com.adyen.model.openbanking.AccountParty
-
public class AccountParty extends Object
AccountParty
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDENTITYstatic StringJSON_PROPERTY_ROLE
-
Constructor Summary
Constructors Constructor Description AccountParty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this AccountParty object is equal to o.static AccountPartyfromJson(String jsonString)Create an instance of AccountParty given an JSON stringIdentitygetIdentity()Get identityPartyRolegetRole()Get roleinthashCode()AccountPartyidentity(Identity identity)identityAccountPartyrole(PartyRole role)rolevoidsetIdentity(Identity identity)identityvoidsetRole(PartyRole role)roleStringtoJson()Convert an instance of AccountParty to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_IDENTITY
public static final String JSON_PROPERTY_IDENTITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLE
public static final String JSON_PROPERTY_ROLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
identity
public AccountParty identity(Identity identity)
identity- Parameters:
identity-- Returns:
- the current
AccountPartyinstance, allowing for method chaining
-
getIdentity
public Identity getIdentity()
Get identity- Returns:
- identity
-
setIdentity
public void setIdentity(Identity identity)
identity- Parameters:
identity-
-
role
public AccountParty role(PartyRole role)
role- Parameters:
role-- Returns:
- the current
AccountPartyinstance, allowing for method chaining
-
getRole
public PartyRole getRole()
Get role- Returns:
- role
-
setRole
public void setRole(PartyRole role)
role- Parameters:
role-
-
equals
public boolean equals(Object o)
Return true if this AccountParty object is equal to o.
-
fromJson
public static AccountParty fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountParty given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountParty
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountParty
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountParty to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-