Package com.adyen.model.tapi
Class StoredValueAccountID
- java.lang.Object
-
- com.adyen.model.tapi.StoredValueAccountID
-
public class StoredValueAccountID extends Object
Identification of the stored value account or the stored value card and the associated product sold by the Sale System for stored value requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredValueAccountID.EntryModeEnumGets or Sets entryMode
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ENTRY_MODEstatic StringJSON_PROPERTY_EXPIRY_DATEstatic StringJSON_PROPERTY_IDENTIFICATION_TYPEstatic StringJSON_PROPERTY_OWNER_NAMEstatic StringJSON_PROPERTY_STORED_VALUE_ACCOUNT_TYPEstatic StringJSON_PROPERTY_STORED_VALUE_I_Dstatic StringJSON_PROPERTY_STORED_VALUE_PROVIDER
-
Constructor Summary
Constructors Constructor Description StoredValueAccountID()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredValueAccountIDaddEntryModeItem(StoredValueAccountID.EntryModeEnum entryModeItem)StoredValueAccountIDentryMode(List<StoredValueAccountID.EntryModeEnum> entryMode)entryModebooleanequals(Object o)Return true if this StoredValueAccountID object is equal to o.StoredValueAccountIDexpiryDate(Integer expiryDate)Date after which the card cannot be used.static StoredValueAccountIDfromJson(String jsonString)Create an instance of StoredValueAccountID given an JSON stringList<StoredValueAccountID.EntryModeEnum>getEntryMode()Get entryModeIntegergetExpiryDate()Date after which the card cannot be used.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.IdentificationTypegetIdentificationType()Get identificationTypeStringgetOwnerName()Name of the owner of a stored value account.StoredValueAccountTypegetStoredValueAccountType()Get storedValueAccountTypeStringgetStoredValueID()Stored value account identification.StringgetStoredValueProvider()Identification of the provider of the stored value account load/reload.inthashCode()StoredValueAccountIDidentificationType(IdentificationType identificationType)identificationTypeStoredValueAccountIDincludeNullValues(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.StoredValueAccountIDownerName(String ownerName)Name of the owner of a stored value account.voidsetEntryMode(List<StoredValueAccountID.EntryModeEnum> entryMode)entryModevoidsetExpiryDate(Integer expiryDate)Date after which the card cannot be used.voidsetIdentificationType(IdentificationType identificationType)identificationTypevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetOwnerName(String ownerName)Name of the owner of a stored value account.voidsetStoredValueAccountType(StoredValueAccountType storedValueAccountType)storedValueAccountTypevoidsetStoredValueID(String storedValueID)Stored value account identification.voidsetStoredValueProvider(String storedValueProvider)Identification of the provider of the stored value account load/reload.StoredValueAccountIDstoredValueAccountType(StoredValueAccountType storedValueAccountType)storedValueAccountTypeStoredValueAccountIDstoredValueID(String storedValueID)Stored value account identification.StoredValueAccountIDstoredValueProvider(String storedValueProvider)Identification of the provider of the stored value account load/reload.StringtoJson()Convert an instance of StoredValueAccountID to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_STORED_VALUE_ACCOUNT_TYPE
public static final String JSON_PROPERTY_STORED_VALUE_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_VALUE_PROVIDER
public static final String JSON_PROPERTY_STORED_VALUE_PROVIDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OWNER_NAME
public static final String JSON_PROPERTY_OWNER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_DATE
public static final String JSON_PROPERTY_EXPIRY_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENTRY_MODE
public static final String JSON_PROPERTY_ENTRY_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IDENTIFICATION_TYPE
public static final String JSON_PROPERTY_IDENTIFICATION_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_VALUE_I_D
public static final String JSON_PROPERTY_STORED_VALUE_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
storedValueAccountType
public StoredValueAccountID storedValueAccountType(StoredValueAccountType storedValueAccountType)
storedValueAccountType- Parameters:
storedValueAccountType-- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
getStoredValueAccountType
public StoredValueAccountType getStoredValueAccountType()
Get storedValueAccountType- Returns:
- storedValueAccountType
-
setStoredValueAccountType
public void setStoredValueAccountType(StoredValueAccountType storedValueAccountType)
storedValueAccountType- Parameters:
storedValueAccountType-
-
storedValueProvider
public StoredValueAccountID storedValueProvider(String storedValueProvider)
Identification of the provider of the stored value account load/reload. When the ProductCode is not sufficient to identify the provider host which delivers the load or reload of the stored value account (for example if it contains the identification of the application.)- Parameters:
storedValueProvider- Identification of the provider of the stored value account load/reload. When the ProductCode is not sufficient to identify the provider host which delivers the load or reload of the stored value account (for example if it contains the identification of the application.)- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
getStoredValueProvider
public String getStoredValueProvider()
Identification of the provider of the stored value account load/reload. When the ProductCode is not sufficient to identify the provider host which delivers the load or reload of the stored value account (for example if it contains the identification of the application.)- Returns:
- storedValueProvider Identification of the provider of the stored value account load/reload. When the ProductCode is not sufficient to identify the provider host which delivers the load or reload of the stored value account (for example if it contains the identification of the application.)
-
setStoredValueProvider
public void setStoredValueProvider(String storedValueProvider)
Identification of the provider of the stored value account load/reload. When the ProductCode is not sufficient to identify the provider host which delivers the load or reload of the stored value account (for example if it contains the identification of the application.)- Parameters:
storedValueProvider- Identification of the provider of the stored value account load/reload. When the ProductCode is not sufficient to identify the provider host which delivers the load or reload of the stored value account (for example if it contains the identification of the application.)
-
ownerName
public StoredValueAccountID ownerName(String ownerName)
Name of the owner of a stored value account.- Parameters:
ownerName- Name of the owner of a stored value account.- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
getOwnerName
public String getOwnerName()
Name of the owner of a stored value account.- Returns:
- ownerName Name of the owner of a stored value account.
-
setOwnerName
public void setOwnerName(String ownerName)
Name of the owner of a stored value account.- Parameters:
ownerName- Name of the owner of a stored value account.
-
expiryDate
public StoredValueAccountID expiryDate(Integer expiryDate)
Date after which the card cannot be used. If EMV expiry date is present, it overrides Track2 information. Format is MMYY.- Parameters:
expiryDate- Date after which the card cannot be used. If EMV expiry date is present, it overrides Track2 information. Format is MMYY.- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
getExpiryDate
public Integer getExpiryDate()
Date after which the card cannot be used. If EMV expiry date is present, it overrides Track2 information. Format is MMYY. minimum: 4 maximum: 4- Returns:
- expiryDate Date after which the card cannot be used. If EMV expiry date is present, it overrides Track2 information. Format is MMYY.
-
setExpiryDate
public void setExpiryDate(Integer expiryDate)
Date after which the card cannot be used. If EMV expiry date is present, it overrides Track2 information. Format is MMYY.- Parameters:
expiryDate- Date after which the card cannot be used. If EMV expiry date is present, it overrides Track2 information. Format is MMYY.
-
entryMode
public StoredValueAccountID entryMode(List<StoredValueAccountID.EntryModeEnum> entryMode)
entryMode- Parameters:
entryMode-- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
addEntryModeItem
public StoredValueAccountID addEntryModeItem(StoredValueAccountID.EntryModeEnum entryModeItem)
-
getEntryMode
public List<StoredValueAccountID.EntryModeEnum> getEntryMode()
Get entryMode- Returns:
- entryMode
-
setEntryMode
public void setEntryMode(List<StoredValueAccountID.EntryModeEnum> entryMode)
entryMode- Parameters:
entryMode-
-
identificationType
public StoredValueAccountID identificationType(IdentificationType identificationType)
identificationType- Parameters:
identificationType-- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
getIdentificationType
public IdentificationType getIdentificationType()
Get identificationType- Returns:
- identificationType
-
setIdentificationType
public void setIdentificationType(IdentificationType identificationType)
identificationType- Parameters:
identificationType-
-
storedValueID
public StoredValueAccountID storedValueID(String storedValueID)
Stored value account identification. The identification of the stored value account conforming to the IdentificationType.- Parameters:
storedValueID- Stored value account identification. The identification of the stored value account conforming to the IdentificationType.- Returns:
- the current
StoredValueAccountIDinstance, allowing for method chaining
-
getStoredValueID
public String getStoredValueID()
Stored value account identification. The identification of the stored value account conforming to the IdentificationType.- Returns:
- storedValueID Stored value account identification. The identification of the stored value account conforming to the IdentificationType.
-
setStoredValueID
public void setStoredValueID(String storedValueID)
Stored value account identification. The identification of the stored value account conforming to the IdentificationType.- Parameters:
storedValueID- Stored value account identification. The identification of the stored value account conforming to the IdentificationType.
-
includeNullValues
public StoredValueAccountID 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 StoredValueAccountID 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 StoredValueAccountID fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredValueAccountID given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredValueAccountID
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredValueAccountID
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredValueAccountID to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-