BillingPaymentMethod

@Serializable
data class BillingPaymentMethod(val id: String, val last4: String? = null, val paymentType: String? = null, val cardType: String? = null, val isDefault: Boolean? = null, val isRemovable: Boolean? = null, val status: BillingPaymentMethodStatus = BillingPaymentMethodStatus.UNKNOWN, val walletType: String? = null, val expiryYear: Int? = null, val expiryMonth: Int? = null, val createdAt: Long? = null, val updatedAt: Long? = null)

A stored payment method for a user or Organization.

Constructors

Link copied to clipboard
constructor(id: String, last4: String? = null, paymentType: String? = null, cardType: String? = null, isDefault: Boolean? = null, isRemovable: Boolean? = null, status: BillingPaymentMethodStatus = BillingPaymentMethodStatus.UNKNOWN, walletType: String? = null, expiryYear: Int? = null, expiryMonth: Int? = null, createdAt: Long? = null, updatedAt: Long? = null)

Properties

Link copied to clipboard

The brand or type of card. For example, visa or mastercard.

Link copied to clipboard

The date the payment method was created, as Unix milliseconds.

Link copied to clipboard

The card expiration month, if available.

Link copied to clipboard

The card expiration year, if available.

Link copied to clipboard
val id: String

The unique identifier for the payment method.

Link copied to clipboard

Whether the payment method is set as the default for the account.

Link copied to clipboard

Whether the payment method can be removed by the user.

Link copied to clipboard

The last four digits of the payment method.

Link copied to clipboard

The type of payment method. For example, card.

Link copied to clipboard

The current status of the payment method.

Link copied to clipboard

The date the payment method was last updated, as Unix milliseconds.

Link copied to clipboard

The type of digital wallet, if applicable. For example, apple_pay or google_pay.