Item

data class Item(val type: SourceOrderParams.Item.Type? = null, val amount: Int? = null, val currency: String? = null, val description: String? = null, val parent: String? = null, val quantity: Int? = null) : StripeParamsModel, Parcelable

List of items constituting the order.

API reference

Constructors

Link copied to clipboard
fun Item(type: SourceOrderParams.Item.Type? = null, amount: Int? = null, currency: String? = null, description: String? = null, parent: String? = null, quantity: Int? = null)

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toParamMap(): Map<String, Any>
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val amount: Int? = null

Optional. The amount (price) for this order item.

Link copied to clipboard
val currency: String? = null

Optional. This currency of this order item. Required when amount is present.

Link copied to clipboard
val description: String? = null

Optional. Human-readable description for this order item.

Link copied to clipboard
val parent: String? = null

Optional. The ID of the SKU being ordered.

Link copied to clipboard
val quantity: Int? = null

Optional. The quantity of this order item. When type is Type.Sku, this is the number of instances of the SKU to be ordered.

Link copied to clipboard

Optional. The type of this order item. Must be Type.Sku, Type.Tax, or Type.Shipping.