Package com.adyen.model.checkout
Class ListStoredPaymentMethodsResponse
- java.lang.Object
-
- com.adyen.model.checkout.ListStoredPaymentMethodsResponse
-
public class ListStoredPaymentMethodsResponse extends Object
ListStoredPaymentMethodsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHODS
-
Constructor Summary
Constructors Constructor Description ListStoredPaymentMethodsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListStoredPaymentMethodsResponseaddStoredPaymentMethodsItem(StoredPaymentMethodResource storedPaymentMethodsItem)booleanequals(Object o)Return true if this ListStoredPaymentMethodsResponse object is equal to o.static ListStoredPaymentMethodsResponsefromJson(String jsonString)Create an instance of ListStoredPaymentMethodsResponse given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetMerchantAccount()Your merchant account.StringgetShopperReference()Your reference to uniquely identify this shopper, for example user ID or account ID.List<StoredPaymentMethodResource>getStoredPaymentMethods()List of all stored payment methods.inthashCode()ListStoredPaymentMethodsResponseincludeNullValues(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.ListStoredPaymentMethodsResponsemerchantAccount(String merchantAccount)Your merchant account.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)Your merchant account.voidsetShopperReference(String shopperReference)Your reference to uniquely identify this shopper, for example user ID or account ID.voidsetStoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)List of all stored payment methods.ListStoredPaymentMethodsResponseshopperReference(String shopperReference)Your reference to uniquely identify this shopper, for example user ID or account ID.ListStoredPaymentMethodsResponsestoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)List of all stored payment methods.StringtoJson()Convert an instance of ListStoredPaymentMethodsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- 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
-
merchantAccount
public ListStoredPaymentMethodsResponse merchantAccount(String merchantAccount)
Your merchant account.- Parameters:
merchantAccount- Your merchant account.- Returns:
- the current
ListStoredPaymentMethodsResponseinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account.- Returns:
- merchantAccount Your merchant account.
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account.- Parameters:
merchantAccount- Your merchant account.
-
shopperReference
public ListStoredPaymentMethodsResponse shopperReference(String shopperReference)
Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Parameters:
shopperReference- Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Returns:
- the current
ListStoredPaymentMethodsResponseinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Returns:
- shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
-
setShopperReference
public void setShopperReference(String shopperReference)
Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Parameters:
shopperReference- Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
-
storedPaymentMethods
public ListStoredPaymentMethodsResponse storedPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)
List of all stored payment methods.- Parameters:
storedPaymentMethods- List of all stored payment methods.- Returns:
- the current
ListStoredPaymentMethodsResponseinstance, allowing for method chaining
-
addStoredPaymentMethodsItem
public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethodResource storedPaymentMethodsItem)
-
getStoredPaymentMethods
public List<StoredPaymentMethodResource> getStoredPaymentMethods()
List of all stored payment methods.- Returns:
- storedPaymentMethods List of all stored payment methods.
-
setStoredPaymentMethods
public void setStoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)
List of all stored payment methods.- Parameters:
storedPaymentMethods- List of all stored payment methods.
-
includeNullValues
public ListStoredPaymentMethodsResponse 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 ListStoredPaymentMethodsResponse 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 ListStoredPaymentMethodsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ListStoredPaymentMethodsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListStoredPaymentMethodsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ListStoredPaymentMethodsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ListStoredPaymentMethodsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-