LineItem

class LineItem @JvmOverloads constructor(val itemType: KlarnaSourceParams.LineItem.Type, val itemDescription: String, val totalAmount: Int, val quantity: Int? = null) : Parcelable

Constructors

Link copied to clipboard
constructor(itemType: KlarnaSourceParams.LineItem.Type, itemDescription: String, totalAmount: Int, quantity: Int? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The human-readable description for the line item.

Link copied to clipboard

The line item's type. One of sku (for a product), tax (for taxes), or shipping (for shipping costs).

Link copied to clipboard

The quantity to display for this line item.

Link copied to clipboard

The total price of this line item. Note: This is the total price after multiplying by the quantity, not the price of an individual item.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)