Package com.adyen.model.transfers
Class ReturnTransferResponse
- java.lang.Object
-
- com.adyen.model.transfers.ReturnTransferResponse
-
public class ReturnTransferResponse extends Object
ReturnTransferResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReturnTransferResponse.StatusEnumThe resulting status of the return.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TRANSFER_ID
-
Constructor Summary
Constructors Constructor Description ReturnTransferResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ReturnTransferResponse object is equal to o.static ReturnTransferResponsefromJson(String jsonString)Create an instance of ReturnTransferResponse given an JSON stringStringgetId()The unique identifier of the return.StringgetReference()Your internal reference for the return.ReturnTransferResponse.StatusEnumgetStatus()The resulting status of the return.StringgetTransferId()The unique identifier of the original transfer.inthashCode()ReturnTransferResponseid(String id)The unique identifier of the return.ReturnTransferResponsereference(String reference)Your internal reference for the return.voidsetId(String id)The unique identifier of the return.voidsetReference(String reference)Your internal reference for the return.voidsetStatus(ReturnTransferResponse.StatusEnum status)The resulting status of the return.voidsetTransferId(String transferId)The unique identifier of the original transfer.ReturnTransferResponsestatus(ReturnTransferResponse.StatusEnum status)The resulting status of the return.StringtoJson()Convert an instance of ReturnTransferResponse to an JSON stringStringtoString()ReturnTransferResponsetransferId(String transferId)The unique identifier of the original transfer.
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_ID
public static final String JSON_PROPERTY_TRANSFER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public ReturnTransferResponse id(String id)
The unique identifier of the return.- Parameters:
id-- Returns:
- the current
ReturnTransferResponseinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the return.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the return.- Parameters:
id-
-
reference
public ReturnTransferResponse reference(String reference)
Your internal reference for the return.- Parameters:
reference-- Returns:
- the current
ReturnTransferResponseinstance, allowing for method chaining
-
getReference
public String getReference()
Your internal reference for the return.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your internal reference for the return.- Parameters:
reference-
-
status
public ReturnTransferResponse status(ReturnTransferResponse.StatusEnum status)
The resulting status of the return. Possible values: **Authorised**, **Declined**.- Parameters:
status-- Returns:
- the current
ReturnTransferResponseinstance, allowing for method chaining
-
getStatus
public ReturnTransferResponse.StatusEnum getStatus()
The resulting status of the return. Possible values: **Authorised**, **Declined**.- Returns:
- status
-
setStatus
public void setStatus(ReturnTransferResponse.StatusEnum status)
The resulting status of the return. Possible values: **Authorised**, **Declined**.- Parameters:
status-
-
transferId
public ReturnTransferResponse transferId(String transferId)
The unique identifier of the original transfer.- Parameters:
transferId-- Returns:
- the current
ReturnTransferResponseinstance, allowing for method chaining
-
getTransferId
public String getTransferId()
The unique identifier of the original transfer.- Returns:
- transferId
-
setTransferId
public void setTransferId(String transferId)
The unique identifier of the original transfer.- Parameters:
transferId-
-
equals
public boolean equals(Object o)
Return true if this ReturnTransferResponse object is equal to o.
-
fromJson
public static ReturnTransferResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ReturnTransferResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReturnTransferResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ReturnTransferResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ReturnTransferResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-