Packages

Complete Stripe SDK for Elixir with parity to the official Ruby SDK. V1+V2 coverage (193 services, 320 resource structs, 525 documented params). Per-event modules, Finch HTTP/2, RustyJSON, automatic retries, OAuth, webhooks, telemetry, per-client config, streaming pagination.

Current section

Files

Jump to
tiger_stripe lib stripe params subscription_migrate_params.ex
Raw

lib/stripe/params/subscription_migrate_params.ex

# File generated from our OpenAPI spec
defmodule Stripe.Params.SubscriptionMigrateParams do
@moduledoc "Parameters for subscription migrate."
@typedoc """
* `billing_mode` - Controls how prorations and invoices for subscriptions are calculated and orchestrated.
* `expand` - Specifies which fields in the response should be expanded.
"""
@type t :: %__MODULE__{
billing_mode: billing_mode(),
expand: [String.t()] | nil
}
defstruct [:billing_mode, :expand]
@typedoc """
* `flexible` - Configure behavior for flexible billing mode.
* `type` - Controls the calculation and orchestration of prorations and invoices for subscriptions. Possible values: `flexible`.
"""
@type billing_mode :: %{
optional(:flexible) => billing_mode_flexible() | nil,
optional(:type) => String.t() | nil,
optional(String.t()) => term()
}
@typedoc """
* `proration_discounts` - Controls how invoices and invoice items display proration amounts and discount amounts. Possible values: `included`, `itemized`.
"""
@type billing_mode_flexible :: %{
optional(:proration_discounts) => String.t() | nil,
optional(String.t()) => term()
}
end