Skip to content

Checkout_Attributes

mauryaratan edited this page Feb 5, 2023 · 1 revision

Checkout.Attributes

An object representing the resources data.

public struct Attributes: Codable 

Inheritance

Codable

Properties

storeId

The ID of the store this checkout belongs to.

public let storeId: Int

variantId

The ID of the variant associated with this checkout.

public let variantId: Int

customPrice

If the value is not null, this represents a positive integer in cents representing the custom price of the variant.

public let customPrice: Int?

productOptions

An object containing any overridden product options for this

public let productOptions: ProductOptions

checkoutOptions

An object containing checkout options for this checkout.

public let checkoutOptions: CheckoutOptions

checkoutData

An object containing any prefill or custom data to be used in the checkout.

public let checkoutData: CheckoutData

expiresAt

An ISO-8601 formatted date-time string indicating when the checkout expires. Can be null if the checkout 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

url

The unique URL to access the checkout. Note:​ for security reasons, download URLs are signed. If the checkout expiresAt is set, the URL will expire after the specified time.

public let url: String
Types
Global Functions
Clone this wiki locally