virgil_sdk.cards.raw_card_content module¶
-
class
virgil_sdk.cards.raw_card_content.RawCardContent(identity, public_key, created_at, version='5.0', previous_card_id=None)[source]¶ Bases:
objectRawCardContent provides content of Virgil Card.
-
property
content_snapshot¶ RawCardContent snapshot.
- Returns
Snapshot of RawCardContent.
-
property
created_at¶ Gets the date and time fo card creation in UTC.
- Returns
Creation date in UTC datetime.
-
classmethod
from_signed_model(card_crypto, raw_singed_model)[source]¶ RawCardContent deserializer from RawSignedModel representation.
- Parameters
card_crypto – CardCrypto witch provides crypto operations.
raw_singed_model – Card raw signed model.
- Returns
Loaded RawCardContent instance.
-
classmethod
from_snapshot(content_snapshot)[source]¶ RawCardContent deserializer from snapshot representation.
- Parameters
content_snapshot – RawCardContent serialized snapshot.
- Returns
Loaded RawCardContent instance.
-
property
identity¶ Gets the identity value that can be anything which identifies the user in your application.
- Returns
User identity.
-
property
previous_card_id¶ Get previous Card ID that current card is used to override to.
- Returns
Previous card id.
-
property
public_key¶ Gets the public key.
- Returns
Public key.
-
to_json()[source]¶ Raw card content json representation.
- Returns
Serialize raw card content to json.
-
property
version¶ Gets the version of the card.
- Returns
Card version.
-
property