Package com.adyen.model.tapi
Class SensitiveCardData
- java.lang.Object
-
- com.adyen.model.tapi.SensitiveCardData
-
public class SensitiveCardData extends Object
This data structure could be CMS protected (EnvelopedData). In this case the data structure SensitiveCardData is replaced by the data structure ProtectedCardData of type ContentInformationType. When this data is protected, the exact content is unknown by the Sale System, and might include all the information which are required by an external backup POI Server to make a batch payment transaction in case of problem with the POI System. Sensitive information related to the payment card, entered or read by the Sale System.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_SEQ_NUMBstatic StringJSON_PROPERTY_EXPIRY_DATEstatic StringJSON_PROPERTY_P_A_Nstatic StringJSON_PROPERTY_TRACK_DATA
-
Constructor Summary
Constructors Constructor Description SensitiveCardData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SensitiveCardDataaddTrackDataItem(TrackData trackDataItem)SensitiveCardDatacardSeqNumb(Integer cardSeqNumb)Card Sequence Number.booleanequals(Object o)Return true if this SensitiveCardData object is equal to o.SensitiveCardDataexpiryDate(Integer expiryDate)Date after which the card cannot be used.static SensitiveCardDatafromJson(String jsonString)Create an instance of SensitiveCardData given an JSON stringIntegergetCardSeqNumb()Card Sequence Number.IntegergetExpiryDate()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.IntegergetPAN()Primary Account Number. minimum: 8 maximum: 28List<TrackData>getTrackData()Magnetic track or magnetic ink characters line.inthashCode()SensitiveCardDataincludeNullValues(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.SensitiveCardDataPAN(Integer PAN)Primary Account Number.voidsetCardSeqNumb(Integer cardSeqNumb)Card Sequence Number.voidsetExpiryDate(Integer expiryDate)Date after which the card cannot be used.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPAN(Integer PAN)Primary Account Number.voidsetTrackData(List<TrackData> trackData)Magnetic track or magnetic ink characters line.StringtoJson()Convert an instance of SensitiveCardData to an JSON stringStringtoString()SensitiveCardDatatrackData(List<TrackData> trackData)Magnetic track or magnetic ink characters line.
-
-
-
Field Detail
-
JSON_PROPERTY_P_A_N
public static final String JSON_PROPERTY_P_A_N
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD_SEQ_NUMB
public static final String JSON_PROPERTY_CARD_SEQ_NUMB
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRY_DATE
public static final String JSON_PROPERTY_EXPIRY_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRACK_DATA
public static final String JSON_PROPERTY_TRACK_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
PAN
public SensitiveCardData PAN(Integer PAN)
Primary Account Number.- Parameters:
PAN- Primary Account Number.- Returns:
- the current
SensitiveCardDatainstance, allowing for method chaining
-
getPAN
public Integer getPAN()
Primary Account Number. minimum: 8 maximum: 28- Returns:
- PAN Primary Account Number.
-
setPAN
public void setPAN(Integer PAN)
Primary Account Number.- Parameters:
PAN- Primary Account Number.
-
cardSeqNumb
public SensitiveCardData cardSeqNumb(Integer cardSeqNumb)
Card Sequence Number. If EntryMode is File, Keyed, or Manual.- Parameters:
cardSeqNumb- Card Sequence Number. If EntryMode is File, Keyed, or Manual.- Returns:
- the current
SensitiveCardDatainstance, allowing for method chaining
-
getCardSeqNumb
public Integer getCardSeqNumb()
Card Sequence Number. If EntryMode is File, Keyed, or Manual. minimum: 2 maximum: 3- Returns:
- cardSeqNumb Card Sequence Number. If EntryMode is File, Keyed, or Manual.
-
setCardSeqNumb
public void setCardSeqNumb(Integer cardSeqNumb)
Card Sequence Number. If EntryMode is File, Keyed, or Manual.- Parameters:
cardSeqNumb- Card Sequence Number. If EntryMode is File, Keyed, or Manual.
-
expiryDate
public SensitiveCardData expiryDate(Integer expiryDate)
Date after which the card cannot be used. If EntryMode is File.- Parameters:
expiryDate- Date after which the card cannot be used. If EntryMode is File.- Returns:
- the current
SensitiveCardDatainstance, allowing for method chaining
-
getExpiryDate
public Integer getExpiryDate()
Date after which the card cannot be used. If EntryMode is File. minimum: 4 maximum: 4- Returns:
- expiryDate Date after which the card cannot be used. If EntryMode is File.
-
setExpiryDate
public void setExpiryDate(Integer expiryDate)
Date after which the card cannot be used. If EntryMode is File.- Parameters:
expiryDate- Date after which the card cannot be used. If EntryMode is File.
-
trackData
public SensitiveCardData trackData(List<TrackData> trackData)
Magnetic track or magnetic ink characters line. If EntryMode is MagStripe or RFID .- Parameters:
trackData- Magnetic track or magnetic ink characters line. If EntryMode is MagStripe or RFID .- Returns:
- the current
SensitiveCardDatainstance, allowing for method chaining
-
addTrackDataItem
public SensitiveCardData addTrackDataItem(TrackData trackDataItem)
-
getTrackData
public List<TrackData> getTrackData()
Magnetic track or magnetic ink characters line. If EntryMode is MagStripe or RFID .- Returns:
- trackData Magnetic track or magnetic ink characters line. If EntryMode is MagStripe or RFID .
-
setTrackData
public void setTrackData(List<TrackData> trackData)
Magnetic track or magnetic ink characters line. If EntryMode is MagStripe or RFID .- Parameters:
trackData- Magnetic track or magnetic ink characters line. If EntryMode is MagStripe or RFID .
-
includeNullValues
public SensitiveCardData 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 SensitiveCardData 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 SensitiveCardData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SensitiveCardData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SensitiveCardData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SensitiveCardData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SensitiveCardData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-