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

The cost in minor unit based on currency

Link copied to clipboard

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

Identifier for the shipping method.

Link copied to clipboard

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