Nombaone.Discount (Nomba One v0.1.0)

View Source

A coupon applied to a customer or subscription (the application, not the coupon itself).

Fields: id (nbo…dsc), coupon_id, customer_id, subscription_id, status ("active" | "ended"), cycles_remaining (cycles left for a repeating coupon; nil for once/forever), start_at, end_at, mode, created_at, and the raw wire map under __raw__.

Summary

Types

t()

@type t() :: %Nombaone.Discount{
  __raw__: term(),
  coupon_id: term(),
  created_at: term(),
  customer_id: term(),
  cycles_remaining: term(),
  domain: term(),
  end_at: term(),
  id: term(),
  mode: term(),
  start_at: term(),
  status: term(),
  subscription_id: term()
}