mirror of
https://github.com/bitwarden/android.git
synced 2026-04-29 04:18:52 -05:00
PM-31735: Add the archivedDate property to the updateCipher API (#6483)
This commit is contained in:
@@ -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?,
|
||||
)
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user