Class CreatePaymentReversalRequest


  • public class CreatePaymentReversalRequest
    extends Object
    CreatePaymentReversalRequest
    • Constructor Detail

      • CreatePaymentReversalRequest

        public CreatePaymentReversalRequest()
    • Method Detail

      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account that is used to process the payment.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getReference

        public String getReference()
        Your reference for the reversal request. Maximum length: 80 characters.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • 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 CreatePaymentReversalRequest
      • fromJson

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

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