Package com.adyen.model.checkout
Class PaymentMethodsResponse
- java.lang.Object
-
- com.adyen.model.checkout.PaymentMethodsResponse
-
public class PaymentMethodsResponse extends Object
PaymentMethodsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PAYMENT_METHODSstatic StringJSON_PROPERTY_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)Return true if this PaymentMethodsResponse object is equal to 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)Detailed list of payment methods required to generate payment forms.voidsetStoredPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)List of all stored payment methods.PaymentMethodsResponsestoredPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)StringtoJson()Convert an instance of PaymentMethodsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PAYMENT_METHODS
public static final String JSON_PROPERTY_PAYMENT_METHODS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHODS
public static final String JSON_PROPERTY_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)
Detailed list of payment methods required to generate payment forms.- Parameters:
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)
List of all stored payment methods.- Parameters:
storedPaymentMethods-
-
equals
public boolean equals(Object o)
Return true if this PaymentMethodsResponse object is equal to o.
-
fromJson
public static PaymentMethodsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentMethodsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentMethodsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentMethodsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentMethodsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-