Picnic.Schema.Cart (Picnic v0.1.0)

Copy Markdown View Source

Loose struct for the shopping cart. Prices are integers in cents, as the API sends them. Unknown fields are ignored; the complete original payload is always available under :raw.

Summary

Types

t()

@type t() :: %Picnic.Schema.Cart{
  checkout_total_price: term(),
  delivery_slots: term(),
  id: term(),
  items: term(),
  raw: term(),
  selected_slot: term(),
  total_count: term(),
  total_price: term(),
  total_savings: term(),
  type: term()
}