One Logo Pool Ball
ProximityReader · IOS API REFERENCE

CustomerEngagement.ShoppingCart.Item

struct · iOS 27.0+ · SDK 27.1

struct Item

An item in a shopping cart, including details like price and quantity.

Members (14)

get · iOS 27.0+

totalPrice

TypeScript
get totalPrice(): _Foundation_Decimal
Swift declaration
var totalPrice: Decimal

A value indicating the total price of the item. The ``ProximityReader`` framework formats the total price using the customer's locale and currency symbol.

set · iOS 27.0+

totalPrice

TypeScript
set totalPrice(value: _Foundation_Decimal)
Swift declaration
var totalPrice: Decimal

A value indicating the total price of the item. The ``ProximityReader`` framework formats the total price using the customer's locale and currency symbol.

get · iOS 27.0+

descriptions

TypeScript
get descriptions(): Array<string>
Swift declaration
var descriptions: [String]

An array of description lines for this shopping cart item.

set · iOS 27.0+

descriptions

TypeScript
set descriptions(value: Array<string>)
Swift declaration
var descriptions: [String]

An array of description lines for this shopping cart item.

get · iOS 27.0+

totalAdjustedPrice

TypeScript
get totalAdjustedPrice(): (_Foundation_Decimal) | null
Swift declaration
var totalAdjustedPrice: Decimal?

A total adjusted price associated with the line item, typically used to indicate a price change. When the adjusted price is not `nil`, ``totalPrice`` has an overstrike appearance.

set · iOS 27.0+

totalAdjustedPrice

TypeScript
set totalAdjustedPrice(value: (_Foundation_Decimal) | null)
Swift declaration
var totalAdjustedPrice: Decimal?

A total adjusted price associated with the line item, typically used to indicate a price change. When the adjusted price is not `nil`, ``totalPrice`` has an overstrike appearance.

init · iOS 27.0+

init

TypeScript
static init(id: string, name: string, quantity: number, totalPrice: _Foundation_Decimal, totalAdjustedPrice?: (_Foundation_Decimal) | null, descriptions?: Array<string>, details?: Array<string>): CustomerEngagement_ShoppingCart_Item
Swift declaration
init(id: String = UUID().uuidString, name: String, quantity: Int = 1, totalPrice: Decimal, totalAdjustedPrice: Decimal? = nil, descriptions: [String] = [], details: [String] = [])
get · iOS 27.0+

id

TypeScript
get id(): string
Swift declaration
let id: String

A unique identifier of the shopping cart item.

get · iOS 27.0+

name

TypeScript
get name(): string
Swift declaration
var name: String

The name of the shopping cart item.

set · iOS 27.0+

name

TypeScript
set name(value: string)
Swift declaration
var name: String

The name of the shopping cart item.

get · iOS 27.0+

details

TypeScript
get details(): Array<string>
Swift declaration
var details: [String]

An array of detail lines for this shopping cart item. Use details for additional product information.

set · iOS 27.0+

details

TypeScript
set details(value: Array<string>)
Swift declaration
var details: [String]

An array of detail lines for this shopping cart item. Use details for additional product information.

get · iOS 27.0+

quantity

TypeScript
get quantity(): number
Swift declaration
var quantity: Int

The total number of units that make up the line item.

set · iOS 27.0+

quantity

TypeScript
set quantity(value: number)
Swift declaration
var quantity: Int

The total number of units that make up the line item.

Skipped declarations

No declarations were skipped in this snapshot.

All ProximityReader types →