Polarex.CustomerOrder (Polarex v0.2.0)

View Source

Provides struct and type for a CustomerOrder

Summary

Types

t()

@type t() :: %Polarex.CustomerOrder{
  amount: integer(),
  billing_address: Polarex.Address.t() | nil,
  billing_reason: String.t(),
  checkout_id: String.t() | nil,
  created_at: DateTime.t(),
  currency: String.t(),
  customer_id: String.t(),
  discount_amount: integer(),
  discount_id: String.t() | nil,
  id: String.t(),
  items: [Polarex.OrderItemSchema.t()],
  modified_at: DateTime.t() | nil,
  net_amount: integer(),
  paid: boolean(),
  product: Polarex.CustomerOrderProduct.t(),
  product_id: String.t(),
  refunded_amount: integer(),
  refunded_tax_amount: integer(),
  status: String.t(),
  subscription: Polarex.CustomerOrderSubscription.t() | nil,
  subscription_id: String.t() | nil,
  subtotal_amount: integer(),
  tax_amount: integer(),
  total_amount: integer(),
  user_id: String.t()
}