Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard

Defines the API endpoints available for subscription operations.

Link copied to clipboard
data class SubscriptionPlan(val id: String?, val interval: String?, val product: String?, val amount: Int?, val currency: String?, val planObject: String?, val active: Boolean?, val created: Int?, val livemode: Boolean?)

Represents the billing plan attached to a subscription.

Link copied to clipboard

Namespace for request models used by the Subscriptions API.

Link copied to clipboard

Namespace for response models returned by the Subscriptions API.

Link copied to clipboard

Provides methods for creating, updating, retrieving, searching, and cancelling subscriptions.