PM-31735: Add the archivedDate property to the updateCipher API (#6483)

This commit is contained in:
David Perez
2026-02-05 14:23:18 -06:00
committed by GitHub
parent f728c15794
commit cbe13d2015
7 changed files with 106 additions and 22 deletions

View File

@@ -23,6 +23,7 @@ import java.time.ZonedDateTime
* @property isFavorite If the cipher is a favorite.
* @property card The card of the cipher.
* @property key The key of the cipher (nullable).
* @property archivedDate The archived date of the cipher (nullable).
* @property encryptedFor ID of the user who the cipher is encrypted by.
*/
@Serializable
@@ -79,6 +80,10 @@ data class CipherJsonRequest(
@SerialName("key")
val key: String?,
@SerialName("archivedDate")
@Contextual
val archivedDate: ZonedDateTime?,
@SerialName("encryptedFor")
val encryptedFor: String?,
)

View File

@@ -29,6 +29,7 @@ fun createMockCipherJsonRequest(
reprompt: CipherRepromptTypeJson = CipherRepromptTypeJson.NONE,
lastKnownRevisionDate: ZonedDateTime? = ZonedDateTime.parse("2023-10-27T12:00:00Z"),
key: String? = "mockKey-$number",
archivedDate: ZonedDateTime? = ZonedDateTime.parse("2023-10-27T12:00:00Z"),
encryptedFor: String? = "mockEncryptedFor-$number",
): CipherJsonRequest =
CipherJsonRequest(
@@ -49,5 +50,6 @@ fun createMockCipherJsonRequest(
reprompt = reprompt,
lastKnownRevisionDate = lastKnownRevisionDate,
key = key,
archivedDate = archivedDate,
encryptedFor = encryptedFor,
)