PaymentMethodUnion

interface PaymentMethodUnion : Parcelable

Union-type for an expandable PaymentMethod.

The PaymentMethod can optionally be expanded by the API in some calls resulting in a full object. This pseudo-union type joins the two possible options into a single field for polymorphic serialization as either an expanded object or just an ID.

Types

Link copied to clipboard
data class Expanded(paymentMethod: PaymentMethod) : PaymentMethodUnion

Container for the expanded PaymentMethod object.

Link copied to clipboard
data class Reference(id: String) : PaymentMethodUnion

Reference to the PaymentMethod's ID (non-expanded)

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
abstract val id: String

ID of the PaymentMethod.

Inheritors

Link copied to clipboard
Link copied to clipboard