View Source ExOAPI.Stripe.Schemas.SubscriptionBillingThresholds (exoapi_stripe v0.1.4)

:amount_gte :: :integer

Monetary threshold that triggers the subscription to create an invoice

:reset_billing_cycle_anchor :: :boolean

Indicates if the billing_cycle_anchor should be reset when a threshold is reached. If true, billing_cycle_anchor will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be true if the subscription contains items with plans that have aggregate_usage=last_ever.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.SubscriptionBillingThresholds{
  amount_gte: integer() | nil,
  reset_billing_cycle_anchor: boolean() | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source
@spec changeset(t(), params()) :: Ecto.Changeset.t()