PayPalLineItem

data class PayPalLineItem @JvmOverloads constructor(val kind: PayPalLineItemKind, val name: String, val quantity: String, val unitAmount: String, var description: String? = null, var imageUrl: String? = null, var productCode: String? = null, var unitTaxAmount: String? = null, var upcCode: String? = null, var upcType: PayPalLineItemUpcType? = null, var url: String? = null) : Parcelable

Line item for PayPal checkout flows.

Constructors

Link copied to clipboard
constructor(kind: PayPalLineItemKind, name: String, quantity: String, unitAmount: String, description: String? = null, imageUrl: String? = null, productCode: String? = null, unitTaxAmount: String? = null, upcCode: String? = null, upcType: PayPalLineItemUpcType? = null, url: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Item description to display. Maximum 127 characters.

Link copied to clipboard

The image URL to product information.

Link copied to clipboard

Indicates whether the line item is a debit (sale) or credit (refund) to the customer.

Link copied to clipboard

Item name to display. Maximum 127 characters.

Link copied to clipboard

Product or UPC code for the item. Maximum 127 characters.

Link copied to clipboard

Number of units of the item purchased. This value must be a whole number and can't be negative or zero.

Link copied to clipboard

Per-unit price of the item. Can include up to 2 decimal places. This value can't be negative or zero.

Link copied to clipboard

Per-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative or zero.

Link copied to clipboard

UPC code of the item.

Link copied to clipboard

UPC type of the item.

Link copied to clipboard
var url: String?

The URL to product information.

Functions

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