UpdateProductPhaseRequest

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

Request body for updating an existing phase on a product.

All fields are optional; only non-null fields are applied to the phase.

Constructors

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

Properties

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

Updated fixed price for this phase in the smallest currency unit (e.g. cents).

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

Updated percentage discount applied during this phase.

Link copied to clipboard
val name: String? = null

Updated display name for the phase.

Link copied to clipboard
val ordinal: Int? = null

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

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

Updated number of billing periods this phase lasts.

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

Updated pricing strategy applied during this phase.