LineItem

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

Types

Link copied to clipboard
enum Type : Enum<KlarnaSourceParams.LineItem.Type>

Functions

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

Properties

Link copied to clipboard
val itemDescription: String

The human-readable description for the line item.

Link copied to clipboard
val itemType: KlarnaSourceParams.LineItem.Type

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

Link copied to clipboard
val quantity: Int? = null

The quantity to display for this line item.

Link copied to clipboard
val totalAmount: Int

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.