PaymentMethod

data class PaymentMethod(val id: String?, val customerId: String? = null, val billing: FrameObjects.BillingAddress?, val type: FrameObjects.PaymentMethodType?, val methodObject: String?, val created: Int?, val updated: Int?, val livemode: Boolean?, val card: FrameObjects.PaymentCard?, val ach: FrameObjects.BankAccount?, val status: FrameObjects.PaymentMethodStatus?)

A payment method stored on the Frame platform.

Constructors

Link copied to clipboard
constructor(id: String?, customerId: String? = null, billing: FrameObjects.BillingAddress?, type: FrameObjects.PaymentMethodType?, methodObject: String?, created: Int?, updated: Int?, livemode: Boolean?, card: FrameObjects.PaymentCard?, ach: FrameObjects.BankAccount?, status: FrameObjects.PaymentMethodStatus?)

Properties

Link copied to clipboard

Bank account details when type is PaymentMethodType.ACH.

Link copied to clipboard

Billing address associated with this payment method.

Link copied to clipboard
Link copied to clipboard
val created: Int?

Unix timestamp when the payment method was created.

Link copied to clipboard
@SerializedName(value = "customer_id")
val customerId: String? = null

The customer this payment method belongs to, if customer-scoped.

Link copied to clipboard
val id: String?

Unique identifier for the payment method.

Link copied to clipboard

true if this is a live-mode resource; false for test-mode.

Link copied to clipboard
@SerializedName(value = "object")
val methodObject: String?

The Frame API object type string (e.g. "payment_method").

Link copied to clipboard

Current PaymentMethodStatus of this payment method.

Link copied to clipboard
Link copied to clipboard
val updated: Int?

Unix timestamp when the payment method was last updated.