Shipping

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.

API reference

Constructors

Link copied to clipboard
fun Shipping(address: Address, carrier: String? = null, name: String? = null, phone: String? = null, trackingNumber: String? = null)

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 address: Address

Required. Shipping address.

Link copied to clipboard
val carrier: String? = null

Optional. The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.

Link copied to clipboard
val name: String? = null

Optional. Recipient name.

Link copied to clipboard
val phone: String? = null

Optional. Recipient phone (including extension).

Link copied to clipboard
val trackingNumber: String? = null

Optional. The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.