Create Subscription Phase Request
data class CreateSubscriptionPhaseRequest(val ordinal: Int, val pricingType: PhasePricingType, val durationType: PhaseDurationType, val name: String?, val amountCents: Int?, val discountPercentage: Float?, val periodCount: Int?, val interval: String?, val intervalCount: Int?)
Request body for creating a new subscription phase.
Constructors
Link copied to clipboard
constructor(ordinal: Int, pricingType: PhasePricingType, durationType: PhaseDurationType, name: String?, amountCents: Int?, discountPercentage: Float?, periodCount: Int?, interval: String?, intervalCount: Int?)
Properties
Link copied to clipboard
Billed amount in the smallest currency unit (e.g. cents).
Link copied to clipboard
Percentage discount to apply to the phase amount.
Link copied to clipboard
Whether the phase is finite or infinite.
Link copied to clipboard
Number of interval units between each billing cycle.
Link copied to clipboard
Number of billing periods the phase spans; required when durationType is PhaseDurationType.FINITE.
Link copied to clipboard
Pricing strategy for the phase.