LatticeStripe.Coupon.AppliesTo (LatticeStripe v1.7.10)

Copy Markdown View Source

Typed representation of a Coupon's applies_to restriction.

When present, products lists the Product IDs this coupon is restricted to. When the parent Coupon's applies_to field is nil, the coupon has no product restrictions.

Summary

Types

t()

@type t() :: %LatticeStripe.Coupon.AppliesTo{
  extra: map(),
  products: [String.t()] | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()