Package com.adyen.model.checkout
Class PaymentMethodsResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethodsResponse
-
public class PaymentMethodsResponse extends Object
PaymentMethodsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentMethodsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PAYMENT_METHODSstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHODS
-
Constructor Summary
Constructors Constructor Description PaymentMethodsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentMethodsResponseaddPaymentMethodsItem(PaymentMethod paymentMethodsItem)PaymentMethodsResponseaddStoredPaymentMethodsItem(StoredPaymentMethod storedPaymentMethodsItem)booleanequals(Object o)static PaymentMethodsResponsefromJson(String jsonString)Create an instance of PaymentMethodsResponse given an JSON stringList<PaymentMethod>getPaymentMethods()Detailed list of payment methods required to generate payment forms.List<StoredPaymentMethod>getStoredPaymentMethods()List of all stored payment methods.inthashCode()PaymentMethodsResponsepaymentMethods(List<PaymentMethod> paymentMethods)voidsetPaymentMethods(List<PaymentMethod> paymentMethods)voidsetStoredPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)PaymentMethodsResponsestoredPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)StringtoJson()Convert an instance of PaymentMethodsResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PAYMENT_METHODS
public static final String SERIALIZED_NAME_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORED_PAYMENT_METHODS
public static final String SERIALIZED_NAME_STORED_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
-
Method Detail
-
paymentMethods
public PaymentMethodsResponse paymentMethods(List<PaymentMethod> paymentMethods)
-
addPaymentMethodsItem
public PaymentMethodsResponse addPaymentMethodsItem(PaymentMethod paymentMethodsItem)
-
getPaymentMethods
public List<PaymentMethod> getPaymentMethods()
Detailed list of payment methods required to generate payment forms.- Returns:
- paymentMethods
-
setPaymentMethods
public void setPaymentMethods(List<PaymentMethod> paymentMethods)
-
storedPaymentMethods
public PaymentMethodsResponse storedPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)
-
addStoredPaymentMethodsItem
public PaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethod storedPaymentMethodsItem)
-
getStoredPaymentMethods
public List<StoredPaymentMethod> getStoredPaymentMethods()
List of all stored payment methods.- Returns:
- storedPaymentMethods
-
setStoredPaymentMethods
public void setStoredPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
-
-