Class CreatePaymentCancelRequest


  • public class CreatePaymentCancelRequest
    extends Object
    CreatePaymentCancelRequest
    • Constructor Detail

      • CreatePaymentCancelRequest

        public CreatePaymentCancelRequest()
    • 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 cancel 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 CreatePaymentCancelRequest
      • fromJson

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

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