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 stringStringgetMerchantAccount()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()ListStoredPaymentMethodsResponsemerchantAccount(String merchantAccount)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)ListStoredPaymentMethodsResponsestoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)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)
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account.- Parameters:
merchantAccount-
-
shopperReference
public ListStoredPaymentMethodsResponse shopperReference(String shopperReference)
-
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
-
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-
-
storedPaymentMethods
public ListStoredPaymentMethodsResponse storedPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)
-
addStoredPaymentMethodsItem
public ListStoredPaymentMethodsResponse addStoredPaymentMethodsItem(StoredPaymentMethodResource storedPaymentMethodsItem)
-
getStoredPaymentMethods
public List<StoredPaymentMethodResource> getStoredPaymentMethods()
List of all stored payment methods.- Returns:
- storedPaymentMethods
-
setStoredPaymentMethods
public void setStoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)
List of all stored payment methods.- Parameters:
storedPaymentMethods-
-
equals
public boolean equals(Object o)
Return true if this ListStoredPaymentMethodsResponse object is equal to o.
-
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
-
-