Shipping

data class Shipping(val address: Address, val carrier: String? = null, val name: String? = null, val phone: String? = null, val trackingNumber: String? = null) : 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
constructor(address: Address, carrier: String? = null, name: String? = null, phone: String? = null, trackingNumber: String? = null)

Properties

Link copied to clipboard

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.

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)