PaymentLineItem

data class PaymentLineItem(val id: String, val totalAmountIncludingTax: BigDecimal, val sku: String? = null, val name: String? = null, val quantity: BigDecimal = BigDecimal.ONE, val type: PaymentLineItemType = PaymentLineItemType.PRODUCT, val discountIncludingTax: BigDecimal = BigDecimal.ZERO, val taxes: List<PaymentTax> = emptyList())

Line item used in Terminal API payment requests.

Constructors

Link copied to clipboard
constructor(id: String, totalAmountIncludingTax: BigDecimal, sku: String? = null, name: String? = null, quantity: BigDecimal = BigDecimal.ONE, type: PaymentLineItemType = PaymentLineItemType.PRODUCT, discountIncludingTax: BigDecimal = BigDecimal.ZERO, taxes: List<PaymentTax> = emptyList())

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
val name: String? = null
Link copied to clipboard
Link copied to clipboard
val sku: String? = null
Link copied to clipboard
Link copied to clipboard