Class 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.
    • Constructor Detail

      • SensitiveCardData

        public SensitiveCardData()
    • Method Detail

      • PAN

        public SensitiveCardData PAN​(Integer PAN)
        Primary Account Number.
        Parameters:
        PAN - Primary Account Number.
        Returns:
        the current SensitiveCardData instance, 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 SensitiveCardData instance, 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 SensitiveCardData instance, 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 SensitiveCardData instance, allowing for method chaining
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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