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

:amount :: :integer

The amount (price) for this order item.

:currency :: :string

This currency of this order item. Required when amount is present.

:description :: :string

Human-readable description for this order item.

:parent :: :string

The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).

:quantity :: :integer

The quantity of this order item. When type is sku, this is the number of instances of the SKU to be ordered.

:type :: :string

The type of this order item. Must be sku, tax, or shipping.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.SourceOrderItem{
  amount: integer() | nil,
  currency: String.t() | nil,
  description: String.t() | nil,
  parent: String.t() | nil,
  quantity: integer() | nil,
  type: String.t() | nil
}

Link to this section Functions

Link to this function

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

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