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

description: Subscription items allow you to create customer subscriptions with more than one plan, making it easy to represent complex billing relationships.

:billing_thresholds :: ExOAPI.Stripe.Schemas.SubscriptionItemBillingThresholds

Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period

:created :: :integer

Time at which the object was created. Measured in seconds since the Unix epoch.

:id :: :string

Unique identifier for the object.

:metadata :: :map

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

:object :: :string

String representing the object's type. Objects of the same type share the same value.

:price :: ExOAPI.Stripe.Schemas.Price

:quantity :: :integer

The quantity of the plan to which the customer should be subscribed.

:subscription :: ExOAPI.Stripe.Schemas.Subscription

The subscription this subscription_item belongs to.

::tax_rates :: ExOAPI.Stripe.Schemas.TaxRate

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.SubscriptionItem{
  billing_thresholds: ExOAPI.EctoTypes.AnyOf.t() | nil,
  created: integer() | nil,
  id: String.t() | nil,
  metadata: map() | nil,
  object: :subscription_item | nil,
  price: ExOAPI.Stripe.Schemas.Price.t() | nil,
  quantity: integer() | nil,
  subscription: String.t() | nil,
  tax_rates: [ExOAPI.Stripe.Schemas.TaxRate.t()]
}

Link to this section Functions

Link to this function

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

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