Skip to content

OrderItem_Attributes

mauryaratan edited this page Feb 5, 2023 · 1 revision

OrderItem.Attributes

An object representing the resources data.

public struct Attributes: Codable 

Inheritance

Codable

Properties

orderId

The ID of the order this order item belongs to.

public let orderId: Int

productId

The ID of the product associated with this order item.

public let productId: Int

variantId

The ID of the variant associated with this order item.

public let variantId: Int

productName

The name of the product.

public let productName: String

variantName

The name of the variant.

public let variantName: String

price

A positive integer in cents representing the price of this order item (in the order currency).

public let price: Int

Note, for “pay what you want” products the price will be whatever the customer entered at checkout.

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