Class OwnerEntity
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.OwnerEntity
-
public class OwnerEntity extends Object
OwnerEntity
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description OwnerEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this OwnerEntity object is equal to o.static OwnerEntityfromJson(String jsonString)Create an instance of OwnerEntity given an JSON stringStringgetId()Unique identifier of the resource that owns the document.StringgetType()Type of resource that owns the document.inthashCode()OwnerEntityid(String id)voidsetId(String id)Unique identifier of the resource that owns the document.voidsetType(String type)Type of resource that owns the document.StringtoJson()Convert an instance of OwnerEntity to an JSON stringStringtoString()OwnerEntitytype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public OwnerEntity id(String id)
-
getId
public String getId()
Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).- Returns:
- id
-
setId
public void setId(String id)
Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).- Parameters:
id-
-
type
public OwnerEntity type(String type)
-
getType
public String getType()
Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**.- Returns:
- type
-
setType
public void setType(String type)
Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this OwnerEntity object is equal to o.
-
fromJson
public static OwnerEntity fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of OwnerEntity given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OwnerEntity
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to OwnerEntity
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of OwnerEntity to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-