Package com.adyen.model.checkout
Class StoredDetails
- java.lang.Object
-
- com.adyen.model.checkout.StoredDetails
-
public class StoredDetails extends Object
StoredDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredDetails.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BANKstatic StringSERIALIZED_NAME_CARDstatic StringSERIALIZED_NAME_EMAIL_ADDRESS
-
Constructor Summary
Constructors Constructor Description StoredDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredDetailsbank(BankAccount bank)StoredDetailscard(Card card)StoredDetailsemailAddress(String emailAddress)booleanequals(Object o)static StoredDetailsfromJson(String jsonString)Create an instance of StoredDetails given an JSON stringBankAccountgetBank()Get bankCardgetCard()Get cardStringgetEmailAddress()The email associated with stored payment details.inthashCode()voidsetBank(BankAccount bank)voidsetCard(Card card)voidsetEmailAddress(String emailAddress)StringtoJson()Convert an instance of StoredDetails 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_BANK
public static final String SERIALIZED_NAME_BANK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARD
public static final String SERIALIZED_NAME_CARD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL_ADDRESS
public static final String SERIALIZED_NAME_EMAIL_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
bank
public StoredDetails bank(BankAccount bank)
-
getBank
public BankAccount getBank()
Get bank- Returns:
- bank
-
setBank
public void setBank(BankAccount bank)
-
card
public StoredDetails card(Card card)
-
getCard
public Card getCard()
Get card- Returns:
- card
-
setCard
public void setCard(Card card)
-
emailAddress
public StoredDetails emailAddress(String emailAddress)
-
getEmailAddress
public String getEmailAddress()
The email associated with stored payment details.- Returns:
- emailAddress
-
setEmailAddress
public void setEmailAddress(String emailAddress)
-
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 StoredDetails
-
fromJson
public static StoredDetails fromJson(String jsonString) throws IOException
Create an instance of StoredDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredDetails
- Throws:
IOException- if the JSON string is invalid with respect to StoredDetails
-
toJson
public String toJson()
Convert an instance of StoredDetails to an JSON string- Returns:
- JSON string
-
-