VirtualCard

data class VirtualCard(val id: String, val owner: String, val version: Int, val createdAt: Date, val updatedAt: Date, val owners: List<Owner>, val fundingSourceId: String, val currency: String, val state: CardState, val activeTo: Date, val cancelledAt: Date? = null, val cardHolder: String, val last4: String, val cardNumber: String, val securityCode: String, val alias: String?, val metadata: JsonValue<Any>? = null, val billingAddress: BillingAddress? = null, val expiry: Expiry, val lastTransaction: Transaction? = null) : Parcelable

Representation of a Virtual Card used in the Sudo Platform Virtual Cards SDK.

Constructors

Link copied to clipboard
constructor(id: String, owner: String, version: Int, createdAt: Date, updatedAt: Date, owners: List<Owner>, fundingSourceId: String, currency: String, state: CardState, activeTo: Date, cancelledAt: Date? = null, cardHolder: String, last4: String, cardNumber: String, securityCode: String, alias: String?, metadata: JsonValue<Any>? = null, billingAddress: BillingAddress? = null, expiry: Expiry, lastTransaction: Transaction? = null)

Properties

Link copied to clipboard

Date The date of when the virtual card will be active to.

Link copied to clipboard

String deprecated User defined name associated with the virtual card.

Link copied to clipboard

BillingAddress Billing address associated with the virtual card. If not supplied, the default billing address will be used.

Link copied to clipboard
val cancelledAt: Date? = null

The date that the virtual card was cancelled, null if the card has not been cancelled.

Link copied to clipboard

String The name of the virtual card holder.

Link copied to clipboard

String Card number (Permanent Account Number) of the card.

Link copied to clipboard

Date Date when the virtual card was created.

Link copied to clipboard

String The ISO 4217 currency code.

Link copied to clipboard

Expiry Expiry information of the virtual card.

Link copied to clipboard

String Identifier of the funding source associated with the virtual card.

Link copied to clipboard
val id: String

String Identifier of the virtual card.

Link copied to clipboard

String Last 4 digits on the virtual card.

Link copied to clipboard

Transaction Most recent transaction, if any, that has occurred on the virtual card.

Link copied to clipboard
val metadata: JsonValue<Any>? = null

JsonValue Custom metadata to associate with the virtual card. Can be used for values such as card aliases, card colors, image references, etc.

Link copied to clipboard

String Identifier of the user that owns the virtual card.

Link copied to clipboard

List List of identifiers of user/accounts associated with this virtual card. Typically, this will consist of at least the user id and sudo id of the account.

Link copied to clipboard

String Security code (csc) for the back of the card, 3 or 4 digits.

Link copied to clipboard

CardState Current state of the card.

Link copied to clipboard

Date Date when the virtual card was last updated.

Link copied to clipboard

Int Current version of the virtual card.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)