SourceOrderParams

data class SourceOrderParams @JvmOverloads constructor(items: List<SourceOrderParams.Item>?, shipping: SourceOrderParams.Shipping?) : 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
fun SourceOrderParams(items: List<SourceOrderParams.Item>? = null, shipping: SourceOrderParams.Shipping? = null)

Types

Link copied to clipboard
data class Item(type: SourceOrderParams.Item.Type?, amount: Int?, currency: String?, description: String?, parent: String?, quantity: Int?) : StripeParamsModel, Parcelable

List of items constituting the order.

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

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)

Properties

Link copied to clipboard
val items: List<SourceOrderParams.Item>? = null

List of items constituting the order.

Link copied to clipboard
val shipping: SourceOrderParams.Shipping? = null

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