Subscription Phase
data class SubscriptionPhase(val id: String?, val ordinal: Int?, val name: String?, val pricingType: PhasePricingType?, val durationType: PhaseDurationType?, val amount: Int?, val currency: String?, val discountPercentage: Float?, val periodCount: Int?, val interval: String?, val intervalCount: Int?, val livemode: Boolean?, val created: Int?, val updated: Int?, val phaseObject: String?)
Represents a single billing phase within a subscription.
Constructors
Link copied to clipboard
constructor(id: String?, ordinal: Int?, name: String?, pricingType: PhasePricingType?, durationType: PhaseDurationType?, amount: Int?, currency: String?, discountPercentage: Float?, periodCount: Int?, interval: String?, intervalCount: Int?, livemode: Boolean?, created: Int?, updated: Int?, phaseObject: String?)
Properties
Link copied to clipboard
Percentage discount applied to the phase amount, if any.
Link copied to clipboard
Determines whether the phase runs for a fixed period (PhaseDurationType.FINITE) or indefinitely (PhaseDurationType.INFINITE).
Link copied to clipboard
Number of interval units between each billing cycle.
Link copied to clipboard
Number of billing periods the phase spans when durationType is PhaseDurationType.FINITE.
Link copied to clipboard
API object type identifier, typically "subscription_phase".
Link copied to clipboard
Determines whether the phase price is PhasePricingType.RELATIVE or PhasePricingType.STATIC.