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
constructor(label: String, identifier: String, amount: Long, @Size(min = 0, max = 3) currencyCode: String, detail: String? = null)
constructor(label: String, identifier: String, amount: Long, currency: Currency, detail: String? = null)

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.

Functions

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