commonMain.com.lightspark.sdk.wallet.model.Entity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wallet-sdk Show documentation
Show all versions of wallet-sdk Show documentation
The Lightspark Wallet SDK for Kotlin and Java.
The newest version!
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
@file:Suppress("ktlint:standard:max-line-length")
package com.lightspark.sdk.wallet.model
import kotlinx.datetime.Instant
import kotlinx.serialization.SerialName
/**
* This interface is used by all the entities in the Lightspark system. It defines a few core fields that are available everywhere. Any object that implements this interface can be queried using the `entity` query and its ID.
* @property id The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque string.
* @property createdAt The date and time when the entity was first created.
* @property updatedAt The date and time when the entity was last updated.
*/
interface Entity {
@SerialName("entity_id")
val id: String
@SerialName("entity_created_at")
val createdAt: Instant
@SerialName("entity_updated_at")
val updatedAt: Instant
companion object {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy