<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader18CustomerEngagementO12ShoppingCartV4ItemV"
  },
  "title" : "CustomerEngagement.ShoppingCart.Item"
}
-->

# CustomerEngagement.ShoppingCart.Item

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

```
struct Item
```

## Topics

### Initializers

[`init(id: String, name: String, quantity: Int, totalPrice: Decimal, totalAdjustedPrice: Decimal?, descriptions: [String], details: [String])`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/init(id:name:quantity:totalPrice:totalAdjustedPrice:descriptions:details:))

### Instance Properties

[`var descriptions: [String]`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/descriptions)

An array of description lines for this shopping cart item.

[`var details: [String]`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/details)

An array of detail lines for this shopping cart item.

[`let id: String`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/id)

A unique identifier of the shopping cart item.

[`var name: String`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/name)

The name of the shopping cart item.

[`var quantity: Int`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/quantity)

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

[`var totalAdjustedPrice: Decimal?`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/totalAdjustedPrice)

A total adjusted price associated with the line item, typically used to indicate a price change.

[`var totalPrice: Decimal`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item/totalPrice)

A value indicating the total price of the item.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)