CreateProductPhaseRequest

data class CreateProductPhaseRequest(val ordinal: Int, val name: String?, val pricingType: PhasePricingType, val amountCents: Int?, val discountPercentage: Float?, val periodCount: Int?)

Request body for creating a new phase on a product.

Constructors

Link copied to clipboard
constructor(ordinal: Int, name: String?, pricingType: PhasePricingType, amountCents: Int?, discountPercentage: Float?, periodCount: Int?)

Properties

Link copied to clipboard
@SerializedName(value = "amount_cents")
val amountCents: Int?

The fixed price for this phase in the smallest currency unit (e.g. cents). Used when pricingType is not discount-based.

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

The percentage discount applied during this phase. Required when pricingType is PhasePricingType.STATIC.

Link copied to clipboard
val name: String?

Optional display name for the phase.

Link copied to clipboard

The zero-based position of this phase in the product's phase sequence.

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

The number of billing periods this phase lasts before advancing to the next phase.

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

The pricing strategy applied during this phase.