Skip to content

Store_Attributes

mauryaratan edited this page Feb 5, 2023 · 1 revision

Store.Attributes

An object representing the resources data.

public struct Attributes: Codable 

Inheritance

Codable

Properties

name

The name of the store.

public let name: String

slug

The slug used to identify the store.

public let slug: String

domain

The domain of the store in the format {slug}.lemonsqueezy.com.

public let domain: String

url

The fully-qualified URL for the store (e.g. https:​//{slug}.lemonsqueezy.com).

public let url: String

avatarUrl

The URL for the store avatar.

public let avatarUrl: String

plan

The current billing plan for the store (e.g. fresh, sweet).

public let plan: String

country

The ISO 3166-1 two-letter country code for the store (e.g. US, GB, etc).

public let country: String

countryNicename

The full country name for the store (e.g. United States, United Kingdom, etc).

public let countryNicename: String

currency

The ISO 4217 currency code for the store (e.g. USD, GBP, etc).

public let currency: String

totalSales

A count of the all-time total sales made by this store.

public let totalSales: Int

totalRevenue

A positive integer in cents representing the total all-time revenue of the store in USD.

public let totalRevenue: Int

thirtyDaySales

A positive integer in cents representing the total revenue of the store in USD in the last 30 days.

public let thirtyDaySales: Int

thirtyDayRevenue

A count of the sales made by this store in the last 30 days.

public let thirtyDayRevenue: Int

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?
Types
Global Functions
Clone this wiki locally