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

# CustomerEngagement.ShoppingCart

A structure that describes the shopping cart content.

```
struct ShoppingCart
```

## Topics

### Structures

[`struct Item`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Item)

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

[`struct Summary`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Summary-swift.struct)

A breakdown of totals, line items, and optional footer text for a shopping cart.

### Initializers

[`init(items: [CustomerEngagement.ShoppingCart.Item], summary: CustomerEngagement.ShoppingCart.Summary)`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/init(items:summary:))

Creates a shopping cart summary.

### Instance Properties

[`let items: [CustomerEngagement.ShoppingCart.Item]`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/items)

The items in the shopping cart.

[`let summary: CustomerEngagement.ShoppingCart.Summary`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/summary-swift.property)

A summary section of the shopping cart.

## Relationships

### Conforms To

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

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

---

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)