001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2026 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.model.json;
011
012// Created by Claude Opus 4.1
013import ca.uhn.fhir.model.api.IModelJson;
014import com.fasterxml.jackson.annotation.JsonProperty;
015
016/**
017 * Response model for privacy notice acceptance confirmation.
018 * Contains the success status and acceptance timestamp.
019 */
020public class PrivacyNoticeAcceptanceJson implements IModelJson {
021        @JsonProperty("success")
022        private boolean mySuccess;
023
024        @JsonProperty("acceptedDate")
025        private String myAcceptedDate;
026
027        public PrivacyNoticeAcceptanceJson() {
028                // Default constructor for JSON deserialization
029        }
030
031        /**
032         * Constructor with success status and accepted date.
033         *
034         * @param theSuccess the success status of the acceptance operation
035         * @param theAcceptedDate the ISO timestamp when the notice was accepted
036         */
037        public PrivacyNoticeAcceptanceJson(boolean theSuccess, String theAcceptedDate) {
038                mySuccess = theSuccess;
039                myAcceptedDate = theAcceptedDate;
040        }
041
042        /**
043         * Get the success status.
044         *
045         * @return true if the acceptance was successful
046         */
047        public boolean getSuccess() {
048                return mySuccess;
049        }
050
051        /**
052         * Set the success status.
053         *
054         * @param theSuccess the success status to set
055         */
056        public void setSuccess(boolean theSuccess) {
057                mySuccess = theSuccess;
058        }
059
060        /**
061         * Get the acceptance date.
062         *
063         * @return the ISO timestamp when the notice was accepted
064         */
065        public String getAcceptedDate() {
066                return myAcceptedDate;
067        }
068
069        /**
070         * Set the acceptance date.
071         *
072         * @param theAcceptedDate the acceptance date to set (ISO timestamp)
073         */
074        public void setAcceptedDate(String theAcceptedDate) {
075                myAcceptedDate = theAcceptedDate;
076        }
077}