BillingPayment

@Serializable
data class BillingPayment(val id: String, val amount: BillingMoneyAmount, val paidAt: Long? = null, val failedAt: Long? = null, val updatedAt: Long, val paymentMethod: BillingPaymentMethod? = null, val subscriptionItem: BillingSubscriptionItem, val chargeType: BillingPaymentChargeType = BillingPaymentChargeType.UNKNOWN, val status: BillingPaymentStatus = BillingPaymentStatus.UNKNOWN, val totals: BillingPaymentTotals? = null)

A payment attempt for a user or Organization.

Constructors

Link copied to clipboard
constructor(id: String, amount: BillingMoneyAmount, paidAt: Long? = null, failedAt: Long? = null, updatedAt: Long, paymentMethod: BillingPaymentMethod? = null, subscriptionItem: BillingSubscriptionItem, chargeType: BillingPaymentChargeType = BillingPaymentChargeType.UNKNOWN, status: BillingPaymentStatus = BillingPaymentStatus.UNKNOWN, totals: BillingPaymentTotals? = null)

Properties

Link copied to clipboard

The amount of the payment.

Link copied to clipboard

The type of charge this payment represents.

Link copied to clipboard

The date and time when the payment failed, as Unix milliseconds.

Link copied to clipboard
val id: String

The unique identifier for the payment.

Link copied to clipboard
val paidAt: Long?

The date and time when the payment was successfully completed, as Unix milliseconds.

Link copied to clipboard

The payment method being used for the payment.

Link copied to clipboard

The current status of the payment.

Link copied to clipboard

The subscription item being paid for.

Link copied to clipboard

Per-payment breakdown with optional base fee and per-unit subtotals. Absent on older responses.

Link copied to clipboard

The date and time when the payment was last updated, as Unix milliseconds.