Package com.adyen.model.checkout
Class ListStoredPaymentMethodsResponse
- java.lang.Object
-
- com.adyen.model.checkout.ListStoredPaymentMethodsResponse
-
public class ListStoredPaymentMethodsResponse extends Object
ListStoredPaymentMethodsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListStoredPaymentMethodsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_SHOPPER_REFERENCEstatic StringSERIALIZED_NAME_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)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)voidsetShopperReference(String shopperReference)voidsetStoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)ListStoredPaymentMethodsResponseshopperReference(String shopperReference)ListStoredPaymentMethodsResponsestoredPaymentMethods(List<StoredPaymentMethodResource> storedPaymentMethods)StringtoJson()Convert an instance of ListStoredPaymentMethodsResponse 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_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- 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
-
merchantAccount
public ListStoredPaymentMethodsResponse merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String 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)
-
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)
-
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 ListStoredPaymentMethodsResponse
-
fromJson
public static ListStoredPaymentMethodsResponse fromJson(String jsonString) throws IOException
Create an instance of ListStoredPaymentMethodsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListStoredPaymentMethodsResponse
- Throws:
IOException- if the JSON string is invalid with respect to ListStoredPaymentMethodsResponse
-
toJson
public String toJson()
Convert an instance of ListStoredPaymentMethodsResponse to an JSON string- Returns:
- JSON string
-
-