Package com.adyen.model.transferwebhooks
Class TransferOperation
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransferOperation
-
public class TransferOperation extends Object
TransferOperation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DIRECTIONstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description TransferOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferOperationdirection(String direction)booleanequals(Object o)Return true if this TransferOperation object is equal to o.static TransferOperationfromJson(String jsonString)Create an instance of TransferOperation given an JSON stringStringgetDirection()The direction of the money movement.StringgetReference()The reference returned when the amend was initiated.StringgetType()The type of amend for the transfer.inthashCode()TransferOperationreference(String reference)voidsetDirection(String direction)voidsetReference(String reference)voidsetType(String type)StringtoJson()Convert an instance of TransferOperation to an JSON stringStringtoString()TransferOperationtype(String type)
-
-
-
Field Detail
-
JSON_PROPERTY_DIRECTION
public static final String JSON_PROPERTY_DIRECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
direction
public TransferOperation direction(String direction)
-
getDirection
public String getDirection()
The direction of the money movement.- Returns:
- direction
-
setDirection
public void setDirection(String direction)
-
reference
public TransferOperation reference(String reference)
-
getReference
public String getReference()
The reference returned when the amend was initiated.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
type
public TransferOperation type(String type)
-
getType
public String getType()
The type of amend for the transfer.- Returns:
- type
-
setType
public void setType(String type)
-
equals
public boolean equals(Object o)
Return true if this TransferOperation object is equal to o.
-
fromJson
public static TransferOperation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransferOperation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferOperation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransferOperation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransferOperation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-