Class PrivacyNoticeStatusJson

java.lang.Object
ca.cdr.api.model.json.PrivacyNoticeStatusJson
All Implemented Interfaces:
IModelJson

public class PrivacyNoticeStatusJson extends Object implements IModelJson
Response model for user's privacy notice acceptance status. Contains information about whether acceptance is required and version details.
  • Constructor Details

    • PrivacyNoticeStatusJson

    • PrivacyNoticeStatusJson

      public PrivacyNoticeStatusJson(boolean theIsRequired, String theCurrentVersion)
      Constructor with required status and current version.
      Parameters:
      theIsRequired - whether privacy notice acceptance is required
      theCurrentVersion - the current privacy notice version
  • Method Details

    • getIsRequired

      public boolean getIsRequired()
      Get whether privacy notice acceptance is required.
      Returns:
      true if the user must accept the privacy notice
    • setIsRequired

      public void setIsRequired(boolean theIsRequired)
      Set whether privacy notice acceptance is required.
      Parameters:
      theIsRequired - the required status to set
    • getCurrentVersion

      Get the current privacy notice version.
      Returns:
      the current version string
    • setCurrentVersion

      public void setCurrentVersion(String theCurrentVersion)
      Set the current privacy notice version.
      Parameters:
      theCurrentVersion - the current version to set
    • getAcceptedVersion

      Get the user's previously accepted version.
      Returns:
      the accepted version string, or null if none
    • setAcceptedVersion

      public void setAcceptedVersion(String theAcceptedVersion)
      Set the user's previously accepted version.
      Parameters:
      theAcceptedVersion - the accepted version to set
    • getAcceptedDate

      Get the date when user accepted the privacy notice.
      Returns:
      the acceptance date (ISO timestamp), or null if none
    • setAcceptedDate

      public void setAcceptedDate(String theAcceptedDate)
      Set the date when user accepted the privacy notice.
      Parameters:
      theAcceptedDate - the acceptance date to set (ISO timestamp)
    • getExpiryDate

      Get the expiry date for the user's acceptance.
      Returns:
      the expiry date (ISO timestamp), or null if none
    • setExpiryDate

      public void setExpiryDate(String theExpiryDate)
      Set the expiry date for the user's acceptance.
      Parameters:
      theExpiryDate - the expiry date to set (ISO timestamp)