Subscription
data class Subscription(val id: String?, val description: String?, val currentPeriodStart: Int?, val currentPeriodEnd: Int?, val livemode: Boolean?, val plan: SubscriptionPlan?, val currency: String?, val status: String?, val quantity: Int?, val customer: String?, val defaultPaymentMethod: String?, val subscriptionObject: String?, val created: Int?, val startDate: Int?)
Represents a recurring billing subscription for a customer.
Constructors
Link copied to clipboard
constructor(id: String?, description: String?, currentPeriodStart: Int?, currentPeriodEnd: Int?, livemode: Boolean?, plan: SubscriptionPlan?, currency: String?, status: String?, quantity: Int?, customer: String?, defaultPaymentMethod: String?, subscriptionObject: String?, created: Int?, startDate: Int?)
Properties
Link copied to clipboard
Unix timestamp marking the end of the current billing period.
Link copied to clipboard
Unix timestamp marking the start of the current billing period.
Link copied to clipboard
ID of the payment method used for recurring charges.
Link copied to clipboard
Optional description of the subscription.
Link copied to clipboard
The billing plan associated with this subscription.
Link copied to clipboard
String identifier for the object type, always "subscription".