CartLineItem

@JsonClass(generateAdapter = true)
data class CartLineItem

CartLineItem contains information for a line item in a Cart

For more information, see the official Stripe docs: Set the reader display

To create an instance of this class, use the CartLineItem.Builder

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Types

Link copied to clipboard
class Builder(var description: String, var quantity: Int, var amount: Long)

Properties

Link copied to clipboard
val amount: Long = 0

The price of the item, provided in the cart’s currency’s smallest unit

Link copied to clipboard

The description or name of the item

Link copied to clipboard
val quantity: Int = 0

The quantity of the line item being purchased

Functions

Link copied to clipboard