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

description: Represents a cart to be displayed on the reader

:currency :: :string

Three-letter ISO currency code, in lowercase. Must be a supported currency.

::line_items :: ExOAPI.Stripe.Schemas.TerminalReaderReaderResourceLineItem

:tax :: :integer

Tax amount for the entire cart. A positive integer in the smallest currency unit.

:total :: :integer

Total amount for the entire cart, including tax. A positive integer in the smallest currency unit.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.TerminalReaderReaderResourceCart{
  currency: String.t() | nil,
  line_items: [ExOAPI.Stripe.Schemas.TerminalReaderReaderResourceLineItem.t()],
  tax: integer() | nil,
  total: integer() | nil
}

Link to this section Functions

Link to this function

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

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