Class PaymentMethodWrapper


  • public class PaymentMethodWrapper
    extends Object
    PaymentMethodWrapper
    • Constructor Detail

      • PaymentMethodWrapper

        public PaymentMethodWrapper()
    • Method Detail

      • getPaymentMethod

        public PaymentMethod getPaymentMethod()
        Get paymentMethod
        Returns:
        paymentMethod
      • setPaymentMethod

        public void setPaymentMethod​(PaymentMethod paymentMethod)
      • 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 PaymentMethodWrapper
      • fromJson

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

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