Skip to content

LicenseKey_Attributes

mauryaratan edited this page Mar 27, 2023 · 2 revisions

LicenseKey.Attributes

An object representing the resources data.

public struct Attributes: Codable 

Inheritance

Codable

Properties

storeId

The ID of the store this license key belongs to.

public let storeId: Int

customerId

The ID of the customer this subscription belongs to.

public let customerId: Int

orderId

The ID of the order associated with this license key.

public let orderId: Int

orderItemId

The ID of the order item associated with this license key.

public let orderItemId: Int

productId

The ID of the product associated with this license key.

public let productId: Int

userName

The full name of the customer.

public let userName: String

userEmail

The email address of the customer.

public let userEmail: String

key

The full license key.

public let key: String

keyShort

A “short” representation of the license key, made up of the string “XXXX-” followed by the last 12 characters of the license key.

public let keyShort: String

activationLimit

The activation limit of this license key.

public let activationLimit: Int

instancesCount

A count of the number of instances this license key has been activated on.

public let instancesCount: Int

disabled

Has the value true if this license key has been disabled.

public let disabled: Int

status

The status of the license key. One of inactive, active, expired, disabled.

public let status: String

statusFormatted

The formatted status of the license key.

public let statusFormatted: String

expiresAt

An ISO-8601 formatted date-time string indicating when the license key expires. Can be null if the license key is perpetual.

public let expiresAt: String?

createdAt

An ISO-8601 formatted date-time string indicating when the object was created.

public let createdAt: String

updatedAt

An ISO-8601 formatted date-time string indicating when the object was last updated.

public let updatedAt: String

testMode

A boolean indicating if the returned subscription object was created within test mode.

public let testMode: Bool
Types
Global Functions
Clone this wiki locally