CreateSubscriptionPhaseRequest

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
@SerializedName(value = "amount_cents")
val amountCents: Int?

Billed amount in the smallest currency unit (e.g. cents).

Link copied to clipboard
@SerializedName(value = "discount_percentage")
val discountPercentage: Float?

Percentage discount to apply to the phase amount.

Link copied to clipboard
@SerializedName(value = "duration_type")
val durationType: PhaseDurationType

Whether the phase is finite or infinite.

Link copied to clipboard

Billing interval unit (e.g. "month", "year").

Link copied to clipboard
@SerializedName(value = "interval_count")
val intervalCount: Int?

Number of interval units between each billing cycle.

Link copied to clipboard
val name: String?

Human-readable label for the phase.

Link copied to clipboard

Position of this phase in the subscription's phase sequence.

Link copied to clipboard
@SerializedName(value = "period_count")
val periodCount: Int?

Number of billing periods the phase spans; required when durationType is PhaseDurationType.FINITE.

Link copied to clipboard
@SerializedName(value = "pricing_type")
val pricingType: PhasePricingType

Pricing strategy for the phase.