View Source ExOAPI.Stripe.Schemas.PortalSubscriptionCancel (exoapi_stripe v0.1.4)
:cancellation_reason :: ExOAPI.Stripe.Schemas.PortalSubscriptionCancellationReason
:enabled :: :boolean
Whether the feature is enabled.
:mode :: :string
Whether to cancel subscriptions immediately or at the end of the billing period.
:proration_behavior :: :string
Whether to create prorations when canceling subscriptions. Possible values are none
and create_prorations
.
Link to this section Summary
Link to this section Types
@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.PortalSubscriptionCancel{ cancellation_reason: ExOAPI.Stripe.Schemas.PortalSubscriptionCancellationReason.t() | nil, enabled: boolean() | nil, mode: (:immediately | :at_period_end) | nil, proration_behavior: (:none | :create_prorations | :always_invoice) | nil }
Link to this section Functions
@spec changeset(t(), params()) :: Ecto.Changeset.t()