Package model

Class CreateReversalRequest


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class CreateReversalRequest
    extends Object
    CreateReversalRequest
    • Constructor Detail

      • CreateReversalRequest

        public CreateReversalRequest()
    • Method Detail

      • getRefundAmount

        @Nullable
        public Long getRefundAmount()
        The amount of the refund in cents. It must be equal to or less than the amount of the original `Transfer`.
        Returns:
        refundAmount
      • setRefundAmount

        public void setRefundAmount​(Long refundAmount)
      • getTags

        @Nullable
        public Map<String,​String> getTags()
        Key value pair for annotating custom meta data (e.g. order numbers).
        Returns:
        tags
      • getDevice

        @Nullable
        public String getDevice()
        The ID of the `Device` used to process the transaction.
        Returns:
        device
      • setDevice

        public void setDevice​(String device)
      • getAmount

        @Nullable
        public Long getAmount()
        The amount of the sale.
        Returns:
        amount
      • setAmount

        public void setAmount​(Long amount)
      • getCurrency

        @Nullable
        public Currency getCurrency()
        Get currency
        Returns:
        currency
      • setCurrency

        public void setCurrency​(Currency currency)
      • getOperationKey

        @Nullable
        public String getOperationKey()
        Describes the operation to be performed in the transaction. Use **CARD_PRESENT_UNREFERENCED_REFUND** for refunds where the card isn't avalible.
        Returns:
        operationKey
      • setOperationKey

        public void setOperationKey​(String operationKey)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CreateReversalRequest
      • fromJson

        public static CreateReversalRequest fromJson​(String jsonString)
                                              throws IOException
        Create an instance of CreateReversalRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateReversalRequest
        Throws:
        IOException - if the JSON string is invalid with respect to CreateReversalRequest
      • toJson

        public String toJson()
        Convert an instance of CreateReversalRequest to an JSON string
        Returns:
        JSON string