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 stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.List<PaymentMethod>getPaymentMethods()Detailed list of payment methods required to generate payment forms.List<StoredPaymentMethod>getStoredPaymentMethods()List of all stored payment methods.inthashCode()PaymentMethodsResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentMethodsResponsepaymentMethods(List<PaymentMethod> paymentMethods)Detailed list of payment methods required to generate payment forms.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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)List of all stored payment methods.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)
Detailed list of payment methods required to generate payment forms.- Parameters:
paymentMethods- Detailed list of payment methods required to generate payment forms.- Returns:
- the current
PaymentMethodsResponseinstance, allowing for method chaining
-
addPaymentMethodsItem
public PaymentMethodsResponse addPaymentMethodsItem(PaymentMethod paymentMethodsItem)
-
getPaymentMethods
public List<PaymentMethod> getPaymentMethods()
Detailed list of payment methods required to generate payment forms.- Returns:
- paymentMethods Detailed list of payment methods required to generate payment forms.
-
setPaymentMethods
public void setPaymentMethods(List<PaymentMethod> paymentMethods)
Detailed list of payment methods required to generate payment forms.- Parameters:
paymentMethods- Detailed list of payment methods required to generate payment forms.
-
storedPaymentMethods
public PaymentMethodsResponse storedPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)
List of all stored payment methods.- Parameters:
storedPaymentMethods- List of all stored payment methods.- Returns:
- the current
PaymentMethodsResponseinstance, allowing for method chaining
-
addStoredPaymentMethodsItem
public PaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethod storedPaymentMethodsItem)
-
getStoredPaymentMethods
public List<StoredPaymentMethod> getStoredPaymentMethods()
List of all stored payment methods.- Returns:
- storedPaymentMethods List of all stored payment methods.
-
setStoredPaymentMethods
public void setStoredPaymentMethods(List<StoredPaymentMethod> storedPaymentMethods)
List of all stored payment methods.- Parameters:
storedPaymentMethods- List of all stored payment methods.
-
includeNullValues
public PaymentMethodsResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaymentMethodsResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-