Variant - lmsqueezy/lemonsqueezy-swift GitHub Wiki
Variant
In Lemon Squeezy, a product can have one or more variants. A variant represents a different option that is presented to the customer at checkout and has its own unique set of pricing options, files and license key settings.
public struct Variant: Codable, Identifiable
A product will always have at least one variant. If only one variant exists for a product, it is considered the “default” variant and is not shown as a separate option at checkout. It will also have a pending
status.
Inheritance
Codable
, Identifiable
Nested Type Aliases
ID
public typealias ID = String
Properties
id
The unique identifier of this variant.
public let id: ID
type
The type of the resource.
public let type: String
attributes
An object representing the resource data.
public let attributes: Attributes