SubscriptionPhaseRequest

Namespace for request bodies used with the subscription phases API.

Types

Link copied to clipboard

Request body for replacing all phases on a subscription in a single call.

Link copied to clipboard
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.

Link copied to clipboard
data class UpdateSubscriptionPhaseRequest(val ordinal: Int? = null, val pricingType: PhasePricingType? = null, val durationType: PhaseDurationType? = null, val name: String? = null, val amountCents: Int? = null, val discountPercentage: Float? = null, val periodCount: Int? = null, val interval: String? = null, val intervalCount: Int? = null)

Request body for partially updating an existing subscription phase.