Class PaymentMethodsResponse


  • public class PaymentMethodsResponse
    extends Object
    PaymentMethodsResponse
    • Constructor Detail

      • PaymentMethodsResponse

        public PaymentMethodsResponse()
    • Method Detail

      • getPaymentMethods

        public List<PaymentMethod> getPaymentMethods()
        Detailed list of payment methods required to generate payment forms.
        Returns:
        paymentMethods
      • setPaymentMethods

        public void setPaymentMethods​(List<PaymentMethod> paymentMethods)
      • getStoredPaymentMethods

        public List<StoredPaymentMethod> getStoredPaymentMethods()
        List of all stored payment methods.
        Returns:
        storedPaymentMethods
      • setStoredPaymentMethods

        public void setStoredPaymentMethods​(List<StoredPaymentMethod> storedPaymentMethods)
      • 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 PaymentMethodsResponse
      • fromJson

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

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