Class PaymentMethodGroup


  • public class PaymentMethodGroup
    extends Object
    PaymentMethodGroup
    • Constructor Detail

      • PaymentMethodGroup

        public PaymentMethodGroup()
    • Method Detail

      • getName

        public String getName()
        The name of the group.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getPaymentMethodData

        public String getPaymentMethodData()
        Echo data to be used if the payment method is displayed as part of this group.
        Returns:
        paymentMethodData
      • setPaymentMethodData

        public void setPaymentMethodData​(String paymentMethodData)
      • getType

        public String getType()
        The unique code of the group.
        Returns:
        type
      • setType

        public void setType​(String type)
      • 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 PaymentMethodGroup
      • fromJson

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

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