ShippingMethod

data class ShippingMethod @JvmOverloads constructor(    val label: String,     val identifier: String,     val amount: Long,     val currency: Currency,     val detail: String? = null) : StripeModel

Model representing a shipping method in the Android SDK.

Constructors

Link copied to clipboard
fun ShippingMethod(    label: String,     identifier: String,     amount: Long,     @Size(min = 0, max = 3) currencyCode: String,     detail: String? = null)
Link copied to clipboard
fun ShippingMethod(    label: String,     identifier: String,     amount: Long,     currency: Currency,     detail: String? = null)

Functions

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

Properties

Link copied to clipboard
val amount: Long

The cost in minor unit based on currency

Link copied to clipboard
val currency: Currency

The currency that the specified amount will be rendered in.

Link copied to clipboard
val detail: String? = null

Human friendly information such as estimated shipping times that can be shown in the UI

Link copied to clipboard
val identifier: String

Identifier for the shipping method.

Link copied to clipboard
val label: String

Human friendly label specifying the shipping method that can be shown in the UI.