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

# CustomerEngagement.ShoppingCart.Summary.LineItem

A label and value pair of text in the summary section.

```
struct LineItem
```

## Topics

### Initializers

[`init(label: String, value: Decimal)`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Summary-swift.struct/LineItem/init(label:value:)-3pcav)

Creates a line item with a label and decimal value, formatted using the
session currency and customer’s locale.

[`init(label: String, value: String)`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Summary-swift.struct/LineItem/init(label:value:)-lf9)

Creates a line item with the given label and string value.

### Instance Properties

[`let label: String`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Summary-swift.struct/LineItem/label)

The summary line label.

[`let value: CustomerEngagement.ShoppingCart.Summary.LineItem.Value`](/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Summary-swift.struct/LineItem/value-swift.property)

The stored string or decimal representation of the line item.

### Enumerations

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

A value that holds either a <doc://com.apple.documentation/documentation/Swift/String> or `<doc://com.apple.documentation/documentation/Foundation/Decimal> amount for a summary line item.

## Relationships

### Conforms To

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

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

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

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

---

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)