Class ReturnTransferResponse


  • public class ReturnTransferResponse
    extends Object
    ReturnTransferResponse
    • Constructor Detail

      • ReturnTransferResponse

        public ReturnTransferResponse()
    • Method Detail

      • id

        public ReturnTransferResponse id​(String id)
        The unique identifier of the return.
        Parameters:
        id -
        Returns:
        the current ReturnTransferResponse instance, 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 ReturnTransferResponse instance, 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 ReturnTransferResponse instance, 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 ReturnTransferResponse instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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