SourceOrderParams

data class SourceOrderParams @JvmOverloads constructor(val items: List<SourceOrderParams.Item>? = null, val shipping: SourceOrderParams.Shipping? = null) : StripeParamsModel, Parcelable

Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.

API reference

Constructors

Link copied to clipboard
constructor(items: List<SourceOrderParams.Item>? = null, shipping: SourceOrderParams.Shipping? = null)

Types

Link copied to clipboard
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.

Link copied to clipboard
data class Shipping(val address: Address, val carrier: String? = null, val name: String? = null, val phone: String? = null, val trackingNumber: String? = null) : StripeParamsModel, Parcelable

Shipping address for the order. Required if any of the SKUs are for products that have shippable set to true.

Properties

Link copied to clipboard

List of items constituting the order.

Link copied to clipboard

Shipping address for the order. Required if any of the SKUs are for products that have shippable set to true.

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)