Package com.adyen.model.recurring
Class RecurringDetailsResult
- java.lang.Object
-
- com.adyen.model.recurring.RecurringDetailsResult
-
public class RecurringDetailsResult extends Object
RecurringDetailsResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecurringDetailsResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATION_DATEstatic StringSERIALIZED_NAME_DETAILSstatic StringSERIALIZED_NAME_LAST_KNOWN_SHOPPER_EMAILstatic StringSERIALIZED_NAME_SHOPPER_REFERENCE
-
Constructor Summary
Constructors Constructor Description RecurringDetailsResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RecurringDetailsResultaddDetailsItem(RecurringDetail detailsItem)RecurringDetailsResultcreationDate(OffsetDateTime creationDate)RecurringDetailsResultdetails(List<RecurringDetail> details)booleanequals(Object o)static RecurringDetailsResultfromJson(String jsonString)Create an instance of RecurringDetailsResult given an JSON stringOffsetDateTimegetCreationDate()The date when the recurring details were created.List<RecurringDetail>getDetails()Payment details stored for recurring payments.StringgetLastKnownShopperEmail()The most recent email for this shopper (if available).StringgetShopperReference()The reference you use to uniquely identify the shopper (e.g.inthashCode()RecurringDetailsResultlastKnownShopperEmail(String lastKnownShopperEmail)voidsetCreationDate(OffsetDateTime creationDate)voidsetDetails(List<RecurringDetail> details)voidsetLastKnownShopperEmail(String lastKnownShopperEmail)voidsetShopperReference(String shopperReference)RecurringDetailsResultshopperReference(String shopperReference)StringtoJson()Convert an instance of RecurringDetailsResult 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_CREATION_DATE
public static final String SERIALIZED_NAME_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DETAILS
public static final String SERIALIZED_NAME_DETAILS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_KNOWN_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_LAST_KNOWN_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
creationDate
public RecurringDetailsResult creationDate(OffsetDateTime creationDate)
-
getCreationDate
public OffsetDateTime getCreationDate()
The date when the recurring details were created.- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(OffsetDateTime creationDate)
-
details
public RecurringDetailsResult details(List<RecurringDetail> details)
-
addDetailsItem
public RecurringDetailsResult addDetailsItem(RecurringDetail detailsItem)
-
getDetails
public List<RecurringDetail> getDetails()
Payment details stored for recurring payments.- Returns:
- details
-
setDetails
public void setDetails(List<RecurringDetail> details)
-
lastKnownShopperEmail
public RecurringDetailsResult lastKnownShopperEmail(String lastKnownShopperEmail)
-
getLastKnownShopperEmail
public String getLastKnownShopperEmail()
The most recent email for this shopper (if available).- Returns:
- lastKnownShopperEmail
-
setLastKnownShopperEmail
public void setLastKnownShopperEmail(String lastKnownShopperEmail)
-
shopperReference
public RecurringDetailsResult shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
The reference you use to uniquely identify the shopper (e.g. user ID or account ID).- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
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 RecurringDetailsResult
-
fromJson
public static RecurringDetailsResult fromJson(String jsonString) throws IOException
Create an instance of RecurringDetailsResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RecurringDetailsResult
- Throws:
IOException- if the JSON string is invalid with respect to RecurringDetailsResult
-
toJson
public String toJson()
Convert an instance of RecurringDetailsResult to an JSON string- Returns:
- JSON string
-
-